vue-stack-tabs 0.1.11 → 0.1.12

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.
@@ -6194,13 +6194,14 @@ const pu = ["width", "height", "stroke"], gu = /* @__PURE__ */ Kn('<g fill="none
6194
6194
  fallbackLocale: "en-US"
6195
6195
  }), $u = {
6196
6196
  install(e) {
6197
- du("0.1.11"), e.component("VueStackTabs", ru).use(Ru);
6197
+ du("0.1.12"), e.component("VueStackTabs", ru).use(Ru);
6198
6198
  }
6199
6199
  };
6200
6200
  export {
6201
6201
  xu as IFrame,
6202
6202
  En as Stack,
6203
6203
  ru as StackTab,
6204
+ Bn as TabHeaderButton,
6204
6205
  rt as TabScrollMode,
6205
6206
  $u as default,
6206
6207
  eu as useStackTab,
@@ -2,23 +2,23 @@
2
2
  * shared v9.10.1
3
3
  * (c) 2024 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
- */const he=typeof window<"u";let de,We;if(process.env.NODE_ENV!=="production"){const e=he&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(de=t=>{e.mark(t)},We=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const Ka=/\{([0-9a-zA-Z]+)\}/g;function Zt(e,...t){return t.length===1&&H(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ka,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const be=(e,t=!1)=>t?Symbol.for(e):Symbol(e),qa=(e,t,n)=>Za({l:e,k:t,s:n}),Za=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ne=e=>typeof e=="number"&&isFinite(e),Ja=e=>Hn(e)==="[object Date]",we=e=>Hn(e)==="[object RegExp]",Ct=e=>$(e)&&Object.keys(e).length===0,se=Object.assign;let Bn;const Ie=()=>Bn||(Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Qa=Object.prototype.hasOwnProperty;function At(e,t){return Qa.call(e,t)}const K=Array.isArray,X=e=>typeof e=="function",M=e=>typeof e=="string",B=e=>typeof e=="boolean",H=e=>e!==null&&typeof e=="object",es=e=>H(e)&&X(e.then)&&X(e.catch),Gn=Object.prototype.toString,Hn=e=>Gn.call(e),$=e=>{if(!H(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ts=e=>e==null?"":K(e)||$(e)&&e.toString===Gn?JSON.stringify(e,null,2):String(e);function ns(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const jn=2;function rs(e,t=0,n=e.length){const a=e.split(/\r?\n/);let s=0;const r=[];for(let o=0;o<a.length;o++)if(s+=a[o].length+1,s>=t){for(let l=o-jn;l<=o+jn||n>s;l++){if(l<0||l>=a.length)continue;const c=l+1;r.push(`${c}${" ".repeat(3-String(c).length)}| ${a[l]}`);const u=a[l].length;if(l===o){const p=t-(s-u)+1,h=Math.max(1,n>s?u-p:n-t);r.push(" | "+" ".repeat(p)+"^".repeat(h))}else if(l>o){if(n>s){const p=Math.max(Math.min(n-s,u),1);r.push(" | "+"^".repeat(p))}s+=u+1}}break}return r.join(`
6
- `)}function Jt(e){let t=e;return()=>++t}function as(e,t){}const Yn={};function Xn(e){Yn[e]||(Yn[e]=!0,void 0)}function Qt(){const e=new Map;return{events:e,on(n,a){const s=e.get(n);s&&s.push(a)||e.set(n,[a])},off(n,a){const s=e.get(n);s&&s.splice(s.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(s=>s(a)),(e.get("*")||[]).slice().map(s=>s(n,a))}}}const wt=e=>!H(e)||K(e);function Pt(e,t){if(wt(e)||wt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:s}=n.pop();Object.keys(a).forEach(r=>{wt(a[r])||wt(s[r])?s[r]=a[r]:n.push({src:a[r],des:s[r]})})}}/*!
5
+ */const he=typeof window<"u";let de,We;if(process.env.NODE_ENV!=="production"){const e=he&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(de=t=>{e.mark(t)},We=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const Ka=/\{([0-9a-zA-Z]+)\}/g;function Jt(e,...t){return t.length===1&&G(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ka,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const be=(e,t=!1)=>t?Symbol.for(e):Symbol(e),qa=(e,t,n)=>Za({l:e,k:t,s:n}),Za=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ne=e=>typeof e=="number"&&isFinite(e),Ja=e=>Gn(e)==="[object Date]",we=e=>Gn(e)==="[object RegExp]",Ct=e=>$(e)&&Object.keys(e).length===0,se=Object.assign;let Bn;const Ie=()=>Bn||(Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Qa=Object.prototype.hasOwnProperty;function At(e,t){return Qa.call(e,t)}const K=Array.isArray,X=e=>typeof e=="function",M=e=>typeof e=="string",B=e=>typeof e=="boolean",G=e=>e!==null&&typeof e=="object",es=e=>G(e)&&X(e.then)&&X(e.catch),Hn=Object.prototype.toString,Gn=e=>Hn.call(e),$=e=>{if(!G(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ts=e=>e==null?"":K(e)||$(e)&&e.toString===Hn?JSON.stringify(e,null,2):String(e);function ns(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const jn=2;function rs(e,t=0,n=e.length){const a=e.split(/\r?\n/);let s=0;const r=[];for(let o=0;o<a.length;o++)if(s+=a[o].length+1,s>=t){for(let l=o-jn;l<=o+jn||n>s;l++){if(l<0||l>=a.length)continue;const c=l+1;r.push(`${c}${" ".repeat(3-String(c).length)}| ${a[l]}`);const u=a[l].length;if(l===o){const p=t-(s-u)+1,h=Math.max(1,n>s?u-p:n-t);r.push(" | "+" ".repeat(p)+"^".repeat(h))}else if(l>o){if(n>s){const p=Math.max(Math.min(n-s,u),1);r.push(" | "+"^".repeat(p))}s+=u+1}}break}return r.join(`
6
+ `)}function Qt(e){let t=e;return()=>++t}function as(e,t){}const Yn={};function Xn(e){Yn[e]||(Yn[e]=!0,void 0)}function en(){const e=new Map;return{events:e,on(n,a){const s=e.get(n);s&&s.push(a)||e.set(n,[a])},off(n,a){const s=e.get(n);s&&s.splice(s.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(s=>s(a)),(e.get("*")||[]).slice().map(s=>s(n,a))}}}const wt=e=>!G(e)||K(e);function Pt(e,t){if(wt(e)||wt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:s}=n.pop();Object.keys(a).forEach(r=>{wt(a[r])||wt(s[r])?s[r]=a[r]:n.push({src:a[r],des:s[r]})})}}/*!
7
7
  * message-compiler v9.10.1
8
8
  * (c) 2024 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
- */function ss(e,t,n){return{line:e,column:t,offset:n}}function en(e,t,n){const a={start:e,end:t};return n!=null&&(a.source=n),a}const os=/\{([0-9a-zA-Z]+)\}/g;function is(e,...t){return t.length===1&&ls(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(os,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const zn=Object.assign,Kn=e=>typeof e=="string",ls=e=>e!==null&&typeof e=="object";function qn(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const U={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},cs={[U.EXPECTED_TOKEN]:"Expected token: '{0}'",[U.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[U.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[U.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[U.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[U.EMPTY_PLACEHOLDER]:"Empty placeholder",[U.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[U.INVALID_LINKED_FORMAT]:"Invalid linked format",[U.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[U.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[U.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[U.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[U.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Je(e,t,n={}){const{domain:a,messages:s,args:r}=n,o=is((s||cs)[e]||"",...r||[]),l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=a,l}function us(e){throw e}const fs=/<\/?[\w\s="/.':;#-\/]+>/,ds=e=>fs.test(e),Le=" ",ms="\r",ie=`
11
- `,_s="\u2028",hs="\u2029";function ps(e){const t=e;let n=0,a=1,s=1,r=0;const o=I=>t[I]===ms&&t[I+1]===ie,l=I=>t[I]===ie,c=I=>t[I]===hs,u=I=>t[I]===_s,p=I=>o(I)||l(I)||c(I)||u(I),h=()=>n,d=()=>a,N=()=>s,y=()=>r,k=I=>o(I)||c(I)||u(I)?ie:t[I],C=()=>k(n),m=()=>k(n+r);function g(){return r=0,p(n)&&(a++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+r)&&r++,r++,t[n+r]}function b(){n=0,a=1,s=1,r=0}function S(I=0){r=I}function E(){const I=n+r;for(;I!==n;)g();r=0}return{index:h,line:d,column:N,peekOffset:y,charAt:k,currentChar:C,currentPeek:m,next:g,peek:T,reset:b,resetPeek:S,skipToPeek:E}}const Pe=void 0,gs=".",Zn="'",bs="tokenizer";function Es(e,t={}){const n=t.location!==!1,a=ps(e),s=()=>a.index(),r=()=>ss(a.line(),a.column(),a.index()),o=r(),l=s(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=t;function h(_,f,L,...F){const V=u();if(f.column+=L,f.offset+=L,p){const j=n?en(V.startLoc,f):null,ye=Je(_,j,{domain:bs,args:F});p(ye)}}function d(_,f,L){_.endLoc=r(),_.currentType=f;const F={type:f};return n&&(F.loc=en(_.startLoc,_.endLoc)),L!=null&&(F.value=L),F}const N=_=>d(_,14);function y(_,f){return _.currentChar()===f?(_.next(),f):(h(U.EXPECTED_TOKEN,r(),0,f),"")}function k(_){let f="";for(;_.currentPeek()===Le||_.currentPeek()===ie;)f+=_.currentPeek(),_.peek();return f}function C(_){const f=k(_);return _.skipToPeek(),f}function m(_){if(_===Pe)return!1;const f=_.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function g(_){if(_===Pe)return!1;const f=_.charCodeAt(0);return f>=48&&f<=57}function T(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function b(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=_.currentPeek()==="-"?_.peek():_.currentPeek(),V=g(F);return _.resetPeek(),V}function S(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=_.currentPeek()===Zn;return _.resetPeek(),F}function E(_,f){const{currentType:L}=f;if(L!==8)return!1;k(_);const F=_.currentPeek()===".";return _.resetPeek(),F}function I(_,f){const{currentType:L}=f;if(L!==9)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function w(_,f){const{currentType:L}=f;if(!(L===8||L===12))return!1;k(_);const F=_.currentPeek()===":";return _.resetPeek(),F}function v(_,f){const{currentType:L}=f;if(L!==10)return!1;const F=()=>{const j=_.currentPeek();return j==="{"?m(_.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Le||!j?!1:j===ie?(_.peek(),F()):m(j)},V=F();return _.resetPeek(),V}function P(_){k(_);const f=_.currentPeek()==="|";return _.resetPeek(),f}function x(_){const f=k(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:f.length>0}}function O(_,f=!0){const L=(V=!1,j="",ye=!1)=>{const Ae=_.currentPeek();return Ae==="{"?j==="%"?!1:V:Ae==="@"||!Ae?j==="%"?!0:V:Ae==="%"?(_.peek(),L(V,"%",!0)):Ae==="|"?j==="%"||ye?!0:!(j===Le||j===ie):Ae===Le?(_.peek(),L(!0,Le,ye)):Ae===ie?(_.peek(),L(!0,ie,ye)):!0},F=L();return f&&_.resetPeek(),F}function D(_,f){const L=_.currentChar();return L===Pe?Pe:f(L)?(_.next(),L):null}function q(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36})}function z(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57})}function ee(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ce(_){let f="",L="";for(;f=z(_);)L+=f;return L}function Ve(_){C(_);const f=_.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,r(),0,f),_.next(),"%"}function Ce(_){let f="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(O(_))f+=L,_.next();else break;else if(L===Le||L===ie)if(O(_))f+=L,_.next();else{if(P(_))break;f+=L,_.next()}else f+=L,_.next()}return f}function Ot(_){C(_);let f="",L="";for(;f=q(_);)L+=f;return _.currentChar()===Pe&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L}function yt(_){C(_);let f="";return _.currentChar()==="-"?(_.next(),f+=`-${ce(_)}`):f+=ce(_),_.currentChar()===Pe&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f}function ge(_){C(_),y(_,"'");let f="",L="";const F=j=>j!==Zn&&j!==ie;for(;f=D(_,F);)f==="\\"?L+=st(_):L+=f;const V=_.currentChar();return V===ie||V===Pe?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),V===ie&&(_.next(),y(_,"'")),L):(y(_,"'"),L)}function st(_){const f=_.currentChar();switch(f){case"\\":case"'":return _.next(),`\\${f}`;case"u":return ot(_,f,4);case"U":return ot(_,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ot(_,f,L){y(_,f);let F="";for(let V=0;V<L;V++){const j=ee(_);if(!j){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${F}${_.currentChar()}`);break}F+=j}return`\\${f}${F}`}function It(_){C(_);let f="",L="";const F=V=>V!=="{"&&V!=="}"&&V!==Le&&V!==ie;for(;f=D(_,F);)L+=f;return L}function Lt(_){let f="",L="";for(;f=q(_);)L+=f;return L}function kt(_){const f=(L=!1,F)=>{const V=_.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Le?F:V===ie||V===gs?(F+=V,_.next(),f(L,F)):(F+=V,_.next(),f(!0,F))};return f(!1,"")}function it(_){C(_);const f=y(_,"|");return C(_),f}function Ke(_,f){let L=null;switch(_.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),_.next(),L=d(f,2,"{"),C(_),f.braceNest++,L;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,r(),0),_.next(),L=d(f,3,"}"),f.braceNest--,f.braceNest>0&&C(_),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),L;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L=$e(_,f)||N(f),f.braceNest=0,L;default:let V=!0,j=!0,ye=!0;if(P(_))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,L;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,qe(_,f);if(V=T(_,f))return L=d(f,5,Ot(_)),C(_),L;if(j=b(_,f))return L=d(f,6,yt(_)),C(_),L;if(ye=S(_,f))return L=d(f,7,ge(_)),C(_),L;if(!V&&!j&&!ye)return L=d(f,13,It(_)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),C(_),L;break}return L}function $e(_,f){const{currentType:L}=f;let F=null;const V=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(V===ie||V===Le)&&h(U.INVALID_LINKED_FORMAT,r(),0),V){case"@":return _.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return C(_),_.next(),d(f,9,".");case":":return C(_),_.next(),d(f,10,":");default:return P(_)?(F=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,F):E(_,f)||w(_,f)?(C(_),$e(_,f)):I(_,f)?(C(_),d(f,12,Lt(_))):v(_,f)?(C(_),V==="{"?Ke(_,f)||F:d(f,11,kt(_))):(L===8&&h(U.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,qe(_,f))}}function qe(_,f){let L={type:14};if(f.braceNest>0)return Ke(_,f)||N(f);if(f.inLinked)return $e(_,f)||N(f);switch(_.currentChar()){case"{":return Ke(_,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,r(),0),_.next(),d(f,3,"}");case"@":return $e(_,f)||N(f);default:if(P(_))return L=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,L;const{isModulo:V,hasSpace:j}=x(_);if(V)return j?d(f,0,Ce(_)):d(f,4,Ve(_));if(O(_))return d(f,0,Ce(_));break}return L}function St(){const{currentType:_,offset:f,startLoc:L,endLoc:F}=c;return c.lastType=_,c.lastOffset=f,c.lastStartLoc=L,c.lastEndLoc=F,c.offset=s(),c.startLoc=r(),a.currentChar()===Pe?d(c,14):qe(a,c)}return{nextToken:St,currentOffset:s,currentPosition:r,context:u}}const Ts="parser",Ns=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Os(e={}){const t=e.location!==!1,{onError:n}=e;function a(m,g,T,b,...S){const E=m.currentPosition();if(E.offset+=b,E.column+=b,n){const I=t?en(T,E):null,w=Je(g,I,{domain:Ts,args:S});n(w)}}function s(m,g,T){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:T,end:T}),b}function r(m,g,T,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=T))}function o(m,g){const T=m.context(),b=s(3,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function l(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(5,b,S);return E.index=parseInt(g,10),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function c(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(4,b,S);return E.key=g,m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function u(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(9,b,S);return E.value=g.replace(Ns,vs),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function p(m){const g=m.nextToken(),T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(8,b,S);return g.type!==12?(a(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",r(E,b,S),{nextConsumeToken:g,node:E}):(g.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Ee(g)),E.value=g.value||"",r(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,g){const T=m.context(),b=s(7,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),T=s(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const S=p(m);T.modifier=S.node,b=S.nextConsumeToken||m.nextToken()}switch(b.type!==10&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=h(m,b.value||"");break;case 5:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=c(m,b.value||"");break;case 6:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=l(m,b.value||"");break;case 7:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=u(m,b.value||"");break;default:a(m,U.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const S=m.context(),E=s(7,S.offset,S.startLoc);return E.value="",r(E,S.offset,S.startLoc),T.key=E,r(T,S.offset,S.startLoc),{nextConsumeToken:b,node:T}}return r(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const g=m.context(),T=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,S=s(2,T,b);S.items=[];let E=null;do{const v=E||m.nextToken();switch(E=null,v.type){case 0:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(o(m,v.value||""));break;case 6:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(l(m,v.value||""));break;case 5:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(c(m,v.value||""));break;case 7:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(u(m,v.value||""));break;case 8:const P=d(m);S.items.push(P.node),E=P.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const I=g.currentType===1?g.lastOffset:m.currentOffset(),w=g.currentType===1?g.lastEndLoc:m.currentPosition();return r(S,I,w),S}function y(m,g,T,b){const S=m.context();let E=b.items.length===0;const I=s(1,g,T);I.cases=[],I.cases.push(b);do{const w=N(m);E||(E=w.items.length===0),I.cases.push(w)}while(S.currentType!==14);return E&&a(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(I,m.currentOffset(),m.currentPosition()),I}function k(m){const g=m.context(),{offset:T,startLoc:b}=g,S=N(m);return g.currentType===14?S:y(m,T,b,S)}function C(m){const g=Es(m,zn({},e)),T=g.context(),b=s(0,T.offset,T.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=k(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),T.currentType!==14&&a(g,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),r(b,g.currentOffset(),g.currentPosition()),b}return{parse:C}}function Ee(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ys(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Jn(e,t){for(let n=0;n<e.length;n++)tn(e[n],t)}function tn(e,t){switch(e.type){case 1:Jn(e.cases,t),t.helper("plural");break;case 2:Jn(e.items,t);break;case 6:tn(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Is(e,t={}){const n=ys(e);n.helper("normalize"),e.body&&tn(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function Ls(e){const t=e.body;return t.type===2?Qn(t):t.cases.forEach(n=>Qn(n)),e}function Qn(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 a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=qn(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const ks="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:const t=e;Qe(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,a=n.cases;for(let p=0;p<a.length;p++)Qe(a[p]);n.c=a,delete n.cases;break;case 2:const s=e,r=s.items;for(let p=0;p<r.length;p++)Qe(r[p]);s.i=r,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const l=e;Qe(l.key),l.k=l.key,delete l.key,l.modifier&&(Qe(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw Je(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ks,args:[e.type]})}delete e.type}const Ss="parser";function Cs(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const c=()=>l;function u(C,m){l.code+=C}function p(C,m=!0){const g=m?s:"";u(r?g+" ".repeat(C):g)}function h(C=!0){const m=++l.indentLevel;C&&p(m)}function d(C=!0){const m=--l.indentLevel;C&&p(m)}function N(){p(l.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function As(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),et(e,t.key),t.modifier?(e.push(", "),et(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ws(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(et(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function Ps(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(et(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Rs(e,t){t.body?et(e,t.body):e.push("null")}function et(e,t){const{helper:n}=e;switch(t.type){case 0:Rs(e,t);break;case 1:Ps(e,t);break;case 2:ws(e,t);break;case 6:As(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:throw Je(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ss,args:[t.type]})}}const Ms=(e,t={})=>{const n=Kn(t.mode)?t.mode:"normal",a=Kn(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
10
+ */function ss(e,t,n){return{line:e,column:t,offset:n}}function tn(e,t,n){const a={start:e,end:t};return n!=null&&(a.source=n),a}const os=/\{([0-9a-zA-Z]+)\}/g;function is(e,...t){return t.length===1&&ls(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(os,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const zn=Object.assign,Kn=e=>typeof e=="string",ls=e=>e!==null&&typeof e=="object";function qn(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const U={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},cs={[U.EXPECTED_TOKEN]:"Expected token: '{0}'",[U.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[U.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[U.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[U.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[U.EMPTY_PLACEHOLDER]:"Empty placeholder",[U.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[U.INVALID_LINKED_FORMAT]:"Invalid linked format",[U.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[U.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[U.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[U.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[U.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Je(e,t,n={}){const{domain:a,messages:s,args:r}=n,o=is((s||cs)[e]||"",...r||[]),l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=a,l}function us(e){throw e}const fs=/<\/?[\w\s="/.':;#-\/]+>/,ds=e=>fs.test(e),Le=" ",ms="\r",ie=`
11
+ `,_s="\u2028",hs="\u2029";function ps(e){const t=e;let n=0,a=1,s=1,r=0;const o=I=>t[I]===ms&&t[I+1]===ie,l=I=>t[I]===ie,c=I=>t[I]===hs,u=I=>t[I]===_s,p=I=>o(I)||l(I)||c(I)||u(I),h=()=>n,d=()=>a,N=()=>s,y=()=>r,k=I=>o(I)||c(I)||u(I)?ie:t[I],C=()=>k(n),m=()=>k(n+r);function g(){return r=0,p(n)&&(a++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+r)&&r++,r++,t[n+r]}function b(){n=0,a=1,s=1,r=0}function S(I=0){r=I}function E(){const I=n+r;for(;I!==n;)g();r=0}return{index:h,line:d,column:N,peekOffset:y,charAt:k,currentChar:C,currentPeek:m,next:g,peek:T,reset:b,resetPeek:S,skipToPeek:E}}const Pe=void 0,gs=".",Zn="'",bs="tokenizer";function Es(e,t={}){const n=t.location!==!1,a=ps(e),s=()=>a.index(),r=()=>ss(a.line(),a.column(),a.index()),o=r(),l=s(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=t;function h(_,f,L,...F){const V=u();if(f.column+=L,f.offset+=L,p){const j=n?tn(V.startLoc,f):null,ye=Je(_,j,{domain:bs,args:F});p(ye)}}function d(_,f,L){_.endLoc=r(),_.currentType=f;const F={type:f};return n&&(F.loc=tn(_.startLoc,_.endLoc)),L!=null&&(F.value=L),F}const N=_=>d(_,14);function y(_,f){return _.currentChar()===f?(_.next(),f):(h(U.EXPECTED_TOKEN,r(),0,f),"")}function k(_){let f="";for(;_.currentPeek()===Le||_.currentPeek()===ie;)f+=_.currentPeek(),_.peek();return f}function C(_){const f=k(_);return _.skipToPeek(),f}function m(_){if(_===Pe)return!1;const f=_.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function g(_){if(_===Pe)return!1;const f=_.charCodeAt(0);return f>=48&&f<=57}function T(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function b(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=_.currentPeek()==="-"?_.peek():_.currentPeek(),V=g(F);return _.resetPeek(),V}function S(_,f){const{currentType:L}=f;if(L!==2)return!1;k(_);const F=_.currentPeek()===Zn;return _.resetPeek(),F}function E(_,f){const{currentType:L}=f;if(L!==8)return!1;k(_);const F=_.currentPeek()===".";return _.resetPeek(),F}function I(_,f){const{currentType:L}=f;if(L!==9)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function w(_,f){const{currentType:L}=f;if(!(L===8||L===12))return!1;k(_);const F=_.currentPeek()===":";return _.resetPeek(),F}function v(_,f){const{currentType:L}=f;if(L!==10)return!1;const F=()=>{const j=_.currentPeek();return j==="{"?m(_.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Le||!j?!1:j===ie?(_.peek(),F()):m(j)},V=F();return _.resetPeek(),V}function P(_){k(_);const f=_.currentPeek()==="|";return _.resetPeek(),f}function x(_){const f=k(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:f.length>0}}function O(_,f=!0){const L=(V=!1,j="",ye=!1)=>{const Ae=_.currentPeek();return Ae==="{"?j==="%"?!1:V:Ae==="@"||!Ae?j==="%"?!0:V:Ae==="%"?(_.peek(),L(V,"%",!0)):Ae==="|"?j==="%"||ye?!0:!(j===Le||j===ie):Ae===Le?(_.peek(),L(!0,Le,ye)):Ae===ie?(_.peek(),L(!0,ie,ye)):!0},F=L();return f&&_.resetPeek(),F}function D(_,f){const L=_.currentChar();return L===Pe?Pe:f(L)?(_.next(),L):null}function q(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36})}function z(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57})}function ee(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ce(_){let f="",L="";for(;f=z(_);)L+=f;return L}function Ve(_){C(_);const f=_.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,r(),0,f),_.next(),"%"}function Ce(_){let f="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(O(_))f+=L,_.next();else break;else if(L===Le||L===ie)if(O(_))f+=L,_.next();else{if(P(_))break;f+=L,_.next()}else f+=L,_.next()}return f}function Ot(_){C(_);let f="",L="";for(;f=q(_);)L+=f;return _.currentChar()===Pe&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L}function yt(_){C(_);let f="";return _.currentChar()==="-"?(_.next(),f+=`-${ce(_)}`):f+=ce(_),_.currentChar()===Pe&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f}function ge(_){C(_),y(_,"'");let f="",L="";const F=j=>j!==Zn&&j!==ie;for(;f=D(_,F);)f==="\\"?L+=st(_):L+=f;const V=_.currentChar();return V===ie||V===Pe?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),V===ie&&(_.next(),y(_,"'")),L):(y(_,"'"),L)}function st(_){const f=_.currentChar();switch(f){case"\\":case"'":return _.next(),`\\${f}`;case"u":return ot(_,f,4);case"U":return ot(_,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ot(_,f,L){y(_,f);let F="";for(let V=0;V<L;V++){const j=ee(_);if(!j){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${F}${_.currentChar()}`);break}F+=j}return`\\${f}${F}`}function It(_){C(_);let f="",L="";const F=V=>V!=="{"&&V!=="}"&&V!==Le&&V!==ie;for(;f=D(_,F);)L+=f;return L}function Lt(_){let f="",L="";for(;f=q(_);)L+=f;return L}function kt(_){const f=(L=!1,F)=>{const V=_.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Le?F:V===ie||V===gs?(F+=V,_.next(),f(L,F)):(F+=V,_.next(),f(!0,F))};return f(!1,"")}function it(_){C(_);const f=y(_,"|");return C(_),f}function Ke(_,f){let L=null;switch(_.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),_.next(),L=d(f,2,"{"),C(_),f.braceNest++,L;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,r(),0),_.next(),L=d(f,3,"}"),f.braceNest--,f.braceNest>0&&C(_),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),L;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L=$e(_,f)||N(f),f.braceNest=0,L;default:let V=!0,j=!0,ye=!0;if(P(_))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),L=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,L;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,qe(_,f);if(V=T(_,f))return L=d(f,5,Ot(_)),C(_),L;if(j=b(_,f))return L=d(f,6,yt(_)),C(_),L;if(ye=S(_,f))return L=d(f,7,ge(_)),C(_),L;if(!V&&!j&&!ye)return L=d(f,13,It(_)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),C(_),L;break}return L}function $e(_,f){const{currentType:L}=f;let F=null;const V=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(V===ie||V===Le)&&h(U.INVALID_LINKED_FORMAT,r(),0),V){case"@":return _.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return C(_),_.next(),d(f,9,".");case":":return C(_),_.next(),d(f,10,":");default:return P(_)?(F=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,F):E(_,f)||w(_,f)?(C(_),$e(_,f)):I(_,f)?(C(_),d(f,12,Lt(_))):v(_,f)?(C(_),V==="{"?Ke(_,f)||F:d(f,11,kt(_))):(L===8&&h(U.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,qe(_,f))}}function qe(_,f){let L={type:14};if(f.braceNest>0)return Ke(_,f)||N(f);if(f.inLinked)return $e(_,f)||N(f);switch(_.currentChar()){case"{":return Ke(_,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,r(),0),_.next(),d(f,3,"}");case"@":return $e(_,f)||N(f);default:if(P(_))return L=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,L;const{isModulo:V,hasSpace:j}=x(_);if(V)return j?d(f,0,Ce(_)):d(f,4,Ve(_));if(O(_))return d(f,0,Ce(_));break}return L}function St(){const{currentType:_,offset:f,startLoc:L,endLoc:F}=c;return c.lastType=_,c.lastOffset=f,c.lastStartLoc=L,c.lastEndLoc=F,c.offset=s(),c.startLoc=r(),a.currentChar()===Pe?d(c,14):qe(a,c)}return{nextToken:St,currentOffset:s,currentPosition:r,context:u}}const Ts="parser",Ns=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Os(e={}){const t=e.location!==!1,{onError:n}=e;function a(m,g,T,b,...S){const E=m.currentPosition();if(E.offset+=b,E.column+=b,n){const I=t?tn(T,E):null,w=Je(g,I,{domain:Ts,args:S});n(w)}}function s(m,g,T){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:T,end:T}),b}function r(m,g,T,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=T))}function o(m,g){const T=m.context(),b=s(3,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function l(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(5,b,S);return E.index=parseInt(g,10),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function c(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(4,b,S);return E.key=g,m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function u(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(9,b,S);return E.value=g.replace(Ns,vs),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function p(m){const g=m.nextToken(),T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(8,b,S);return g.type!==12?(a(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",r(E,b,S),{nextConsumeToken:g,node:E}):(g.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Ee(g)),E.value=g.value||"",r(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,g){const T=m.context(),b=s(7,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),T=s(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const S=p(m);T.modifier=S.node,b=S.nextConsumeToken||m.nextToken()}switch(b.type!==10&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=h(m,b.value||"");break;case 5:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=c(m,b.value||"");break;case 6:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=l(m,b.value||"");break;case 7:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=u(m,b.value||"");break;default:a(m,U.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const S=m.context(),E=s(7,S.offset,S.startLoc);return E.value="",r(E,S.offset,S.startLoc),T.key=E,r(T,S.offset,S.startLoc),{nextConsumeToken:b,node:T}}return r(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const g=m.context(),T=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,S=s(2,T,b);S.items=[];let E=null;do{const v=E||m.nextToken();switch(E=null,v.type){case 0:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(o(m,v.value||""));break;case 6:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(l(m,v.value||""));break;case 5:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(c(m,v.value||""));break;case 7:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(u(m,v.value||""));break;case 8:const P=d(m);S.items.push(P.node),E=P.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const I=g.currentType===1?g.lastOffset:m.currentOffset(),w=g.currentType===1?g.lastEndLoc:m.currentPosition();return r(S,I,w),S}function y(m,g,T,b){const S=m.context();let E=b.items.length===0;const I=s(1,g,T);I.cases=[],I.cases.push(b);do{const w=N(m);E||(E=w.items.length===0),I.cases.push(w)}while(S.currentType!==14);return E&&a(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(I,m.currentOffset(),m.currentPosition()),I}function k(m){const g=m.context(),{offset:T,startLoc:b}=g,S=N(m);return g.currentType===14?S:y(m,T,b,S)}function C(m){const g=Es(m,zn({},e)),T=g.context(),b=s(0,T.offset,T.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=k(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),T.currentType!==14&&a(g,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),r(b,g.currentOffset(),g.currentPosition()),b}return{parse:C}}function Ee(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ys(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Jn(e,t){for(let n=0;n<e.length;n++)nn(e[n],t)}function nn(e,t){switch(e.type){case 1:Jn(e.cases,t),t.helper("plural");break;case 2:Jn(e.items,t);break;case 6:nn(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Is(e,t={}){const n=ys(e);n.helper("normalize"),e.body&&nn(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function Ls(e){const t=e.body;return t.type===2?Qn(t):t.cases.forEach(n=>Qn(n)),e}function Qn(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 a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=qn(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const ks="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:const t=e;Qe(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,a=n.cases;for(let p=0;p<a.length;p++)Qe(a[p]);n.c=a,delete n.cases;break;case 2:const s=e,r=s.items;for(let p=0;p<r.length;p++)Qe(r[p]);s.i=r,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const l=e;Qe(l.key),l.k=l.key,delete l.key,l.modifier&&(Qe(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw Je(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ks,args:[e.type]})}delete e.type}const Ss="parser";function Cs(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const c=()=>l;function u(C,m){l.code+=C}function p(C,m=!0){const g=m?s:"";u(r?g+" ".repeat(C):g)}function h(C=!0){const m=++l.indentLevel;C&&p(m)}function d(C=!0){const m=--l.indentLevel;C&&p(m)}function N(){p(l.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function As(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),et(e,t.key),t.modifier?(e.push(", "),et(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ws(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(et(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function Ps(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(et(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Rs(e,t){t.body?et(e,t.body):e.push("null")}function et(e,t){const{helper:n}=e;switch(t.type){case 0:Rs(e,t);break;case 1:Ps(e,t);break;case 2:ws(e,t);break;case 6:As(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:throw Je(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ss,args:[t.type]})}}const Ms=(e,t={})=>{const n=Kn(t.mode)?t.mode:"normal",a=Kn(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
12
  `,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],c=Cs(e,{mode:n,filename:a,sourceMap:s,breakLineCode:r,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),l.length>0&&(c.push(`const { ${qn(l.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),et(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:p}=c.context();return{ast:e,code:u,map:p?p.toJSON():void 0}};function Ds(e,t={}){const n=zn({},t),a=!!n.jit,s=!!n.minify,r=n.optimize==null?!0:n.optimize,l=Os(n).parse(e);return a?(r&&Ls(l),s&&Qe(l),{ast:l,code:""}):(Is(l,n),Ms(l,n))}/*!
13
13
  * core-base v9.10.1
14
14
  * (c) 2024 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function Fs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ie().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Re=[];Re[0]={w:[0],i:[3,0],"[":[4],o:[7]},Re[1]={w:[1],".":[2],"[":[4],o:[7]},Re[2]={w:[2],i:[3,0],0:[3,0]},Re[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Re[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Re[5]={"'":[4,0],o:8,l:[5,0]},Re[6]={'"':[4,0],o:8,l:[6,0]};const xs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Us(e){return xs.test(e)}function Vs(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 $s(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 Bs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Us(t)?Vs(t):"*"+t}function Ws(e){const t=[];let n=-1,a=0,s=0,r,o,l,c,u,p,h;const d=[];d[0]=()=>{o===void 0?o=l:o+=l},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,a=4,d[0]();else{if(s=0,o===void 0||(o=Bs(o),o===!1))return!1;d[1]()}};function N(){const y=e[n+1];if(a===5&&y==="'"||a===6&&y==='"')return n++,l="\\"+y,d[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&N())){if(c=$s(r),h=Re[a],u=h[c]||h.l||8,u===8||(a=u[0],u[1]!==void 0&&(p=d[u[1]],p&&(l=r,p()===!1))))return;if(a===7)return t}}const er=new Map;function Gs(e,t){return H(e)?e[t]:null}function Hs(e,t){if(!H(e))return null;let n=er.get(t);if(n||(n=Ws(t),n&&er.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const o=s[n[r]];if(o===void 0||X(s))return null;s=o,r++}return s}const js=e=>e,Ys=e=>"",Xs="text",zs=e=>e.length===0?"":ns(e),Ks=ts;function tr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qs(e){const t=ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ne(e.named.count)||ne(e.named.n))?ne(e.named.count)?e.named.count:ne(e.named.n)?e.named.n:t:t}function Zs(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Js(e={}){const t=e.locale,n=qs(e),a=H(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?e.pluralRules[t]:tr,s=H(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?tr:void 0,r=m=>m[a(n,m.length,s)],o=e.list||[],l=m=>o[m],c=e.named||{};ne(e.pluralIndex)&&Zs(n,c);const u=m=>c[m];function p(m){const g=X(e.messages)?e.messages(m):H(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Ys)}const h=m=>e.modifiers?e.modifiers[m]:js,d=$(e.processor)&&X(e.processor.normalize)?e.processor.normalize:zs,N=$(e.processor)&&X(e.processor.interpolate)?e.processor.interpolate:Ks,y=$(e.processor)&&M(e.processor.type)?e.processor.type:Xs,C={list:l,named:u,plural:r,linked:(m,...g)=>{const[T,b]=g;let S="text",E="";g.length===1?H(T)?(E=T.modifier||E,S=T.type||S):M(T)&&(E=T||E):g.length===2&&(M(T)&&(E=T||E),M(b)&&(S=b||S));const I=p(m)(C),w=S==="vnode"&&K(I)&&E?I[0]:I;return E?h(E)(w,S):w},message:p,type:y,interpolate:N,normalize:d,values:se({},o,c)};return C}let ct=null;function Qs(e){ct=e}function eo(e,t,n){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const to=no("function:translate");function no(e){return t=>ct&&ct.emit(e,t)}const le={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,__EXTEND_POINT__:8},ro={[le.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[le.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[le.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[le.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[le.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 Ge(e,...t){return Zt(ro[e],...t)}const nr=U.__EXTEND_POINT__,He=Jt(nr),ae={INVALID_ARGUMENT:nr,INVALID_DATE_ARGUMENT:He(),INVALID_ISO_DATE_ARGUMENT:He(),NOT_SUPPORT_NON_STRING_MESSAGE:He(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:He(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:He(),NOT_SUPPORT_LOCALE_TYPE:He(),__EXTEND_POINT__:He()};function Te(e){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:ao}:void 0)}const ao={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function nn(e,t){return t.locale!=null?rr(t.locale):rr(e.locale)}let rn;function rr(e){if(M(e))return e;if(X(e)){if(e.resolvedOnce&&rn!=null)return rn;if(e.constructor.name==="Function"){const t=e();if(es(t))throw Te(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return rn=t}else throw Te(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Te(ae.NOT_SUPPORT_LOCALE_TYPE)}function so(e,t,n){return[...new Set([n,...K(t)?t:H(t)?Object.keys(t):M(t)?[t]:[n]])]}function ar(e,t,n){const a=M(n)?n:tt,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let o=[n];for(;K(o);)o=sr(r,o,t);const l=K(t)||!$(t)?t:t.default?t.default:null;o=M(l)?[l]:l,K(o)&&sr(r,o,!1),s.__localeChainCache.set(a,r)}return r}function sr(e,t,n){let a=!0;for(let s=0;s<t.length&&B(a);s++){const r=t[s];M(r)&&(a=oo(e,t[s],n))}return a}function oo(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=io(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function io(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(K(n)||$(n))&&n[s]&&(a=n[s])}return a}const lo="9.10.1",Rt=-1,tt="en-US",Mt="",or=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function co(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&H(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&H(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?or(e):t==="vnode"&&H(e)&&"__v_isVNode"in e?or(e.children):e}}let ir;function lr(e){ir=e}let cr;function uo(e){cr=e}let ur;function fo(e){ur=e}let fr=null;const mo=e=>{fr=e},_o=()=>fr;let dr=null;const mr=e=>{dr=e},ho=()=>dr;let _r=0;function po(e={}){const t=X(e.onWarn)?e.onWarn:as,n=M(e.version)?e.version:lo,a=M(e.locale)||X(e.locale)?e.locale:tt,s=X(a)?tt:a,r=K(e.fallbackLocale)||$(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=$(e.messages)?e.messages:{[s]:{}},l=$(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},c=$(e.numberFormats)?e.numberFormats:{[s]:{}},u=se({},e.modifiers||{},co()),p=e.pluralRules||{},h=X(e.missing)?e.missing:null,d=B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,N=B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,k=!!e.unresolving,C=X(e.postTranslation)?e.postTranslation:null,m=$(e.processor)?e.processor:null,g=B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,b=X(e.messageCompiler)?e.messageCompiler:ir;process.env.NODE_ENV!=="production"&&X(e.messageCompiler)&&Xn(Ge(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const S=X(e.messageResolver)?e.messageResolver:cr||Gs,E=X(e.localeFallbacker)?e.localeFallbacker:ur||so,I=H(e.fallbackContext)?e.fallbackContext:void 0,w=e,v=H(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,P=H(w.__numberFormatters)?w.__numberFormatters:new Map,x=H(w.__meta)?w.__meta:{};_r++;const O={version:n,cid:_r,locale:a,fallbackLocale:r,messages:o,modifiers:u,pluralRules:p,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:y,unresolving:k,postTranslation:C,processor:m,warnHtmlMessage:g,escapeParameter:T,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:I,onWarn:t,__meta:x};return O.datetimeFormats=l,O.numberFormats=c,O.__datetimeFormatters=v,O.__numberFormatters=P,process.env.NODE_ENV!=="production"&&(O.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&eo(O,n,x),O}function Dt(e,t){return e instanceof RegExp?e.test(t):e}function hr(e,t){return e instanceof RegExp?e.test(t):e}function an(e,t,n,a,s){const{missing:r,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const l=r(e,n,t,s);return M(l)?l:t}else return process.env.NODE_ENV!=="production"&&hr(a,t)&&o(Ge(le.NOT_FOUND_KEY,{key:t,locale:n})),t}function ut(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sn(e){return n=>go(n,e)}function go(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,s=a.c||a.cases;return e.plural(s.reduce((r,o)=>[...r,pr(e,o)],[]))}else return pr(e,n)}function pr(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const a=(t.i||t.items).reduce((s,r)=>[...s,on(e,r)],[]);return e.normalize(a)}}function on(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const s=t;return s.v||s.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const l=t,c=l.m||l.modifier;return e.linked(on(e,l.k||l.key),c?on(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const p=t;return p.v||p.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const bo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function gr(e,t){t&&ds(e)&&(Zt(bo,{source:e}),void 0)}const br=e=>e;let nt=Object.create(null);const Me=e=>H(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Er(e,t={}){let n=!1;const a=t.onError||us;return t.onError=s=>{n=!0,a(s)},{...Ds(e,t),detectError:n}}const Eo=(e,t)=>{if(!M(e))throw Te(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{code:o,detectError:l}=Er(e,t),c=new Function(`return ${o}`)();return l?c:nt[s]=c}};function To(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{ast:o,detectError:l}=Er(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=sn(o);return l?c:nt[s]=c}else{if(process.env.NODE_ENV!=="production"&&!Me(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const a=nt[n];return a||(nt[n]=sn(e))}else return sn(e)}}const Tr=()=>"",me=e=>X(e);function Nr(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:o,messages:l}=e,[c,u]=ln(...t),p=B(u.missingWarn)?u.missingWarn:e.missingWarn,h=B(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=B(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,y=M(u.default)||B(u.default)?B(u.default)?r?c:()=>c:u.default:n?r?c:()=>c:"",k=n||y!=="",C=nn(e,u);d&&No(u);let[m,g,T]=N?[c,C,l[C]||{}]:vr(e,c,C,o,h,p),b=m,S=c;if(!N&&!(M(b)||Me(b)||me(b))&&k&&(b=y,S=b),!N&&(!(M(b)||Me(b)||me(b))||!M(g)))return s?Rt:c;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const I=()=>{E=!0},w=me(b)?b:Or(e,c,g,b,S,I);if(E)return b;const v=Io(e,g,T,u),P=Js(v),x=vo(e,w,P),O=a?a(x,c):x;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(c)?c:me(b)?b.key:"",locale:g||(me(b)?b.locale:""),format:M(b)?b:me(b)?b.source:"",message:O};D.meta=se({},e.__meta,_o()||{}),to(D)}return O}function No(e){K(e.list)?e.list=e.list.map(t=>M(t)?Wn(t):t):H(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Wn(e.named[t]))})}function vr(e,t,n,a,s,r){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:u}=e,p=u(e,a,n);let h={},d,N=null,y=n,k=null;const C="translate";for(let m=0;m<p.length;m++){if(d=k=p[m],process.env.NODE_ENV!=="production"&&n!==d&&Dt(s,t)&&l(Ge(le.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:C,key:t,from:y,to:k,groupId:`${C}:${t}`})}h=o[d]||{};let g=null,T,b;if(process.env.NODE_ENV!=="production"&&he&&(g=window.performance.now(),T="intlify-message-resolve-start",b="intlify-message-resolve-end",de&&de(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&he){const E=window.performance.now(),I=e.__v_emitter;I&&g&&N&&I.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-g,groupId:`${C}:${t}`}),T&&b&&de&&We&&(de(b),We("intlify message resolve",T,b))}if(M(N)||Me(N)||me(N))break;const S=an(e,t,d,r,C);S!==t&&(N=S),y=k}return[N,d,h]}function Or(e,t,n,a,s,r){const{messageCompiler:o,warnHtmlMessage:l}=e;if(me(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>a;return d.locale=n,d.key=t,d}let c=null,u,p;process.env.NODE_ENV!=="production"&&he&&(c=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",de&&de(u));const h=o(a,Oo(e,n,s,a,l,r));if(process.env.NODE_ENV!=="production"&&he){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:a,time:d-c,groupId:`translate:${t}`}),u&&p&&de&&We&&(de(p),We("intlify message compilation",u,p))}return h.locale=n,h.key=t,h.source=a,h}function vo(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&he&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",de&&de(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&he){const l=window.performance.now(),c=e.__v_emitter;c&&a&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:l-a,groupId:`translate:${t.key}`}),s&&r&&de&&We&&(de(r),We("intlify message evaluation",s,r))}return o}function ln(...e){const[t,n,a]=e,s={};if(!M(t)&&!ne(t)&&!me(t)&&!Me(t))throw Te(ae.INVALID_ARGUMENT);const r=ne(t)?String(t):(me(t),t);return ne(n)?s.plural=n:M(n)?s.default=n:$(n)&&!Ct(n)?s.named=n:K(n)&&(s.list=n),ne(a)?s.plural=a:M(a)?s.default=a:$(a)&&se(s,a),[r,s]}function Oo(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(r&&r(o),process.env.NODE_ENV!=="production"){const l=yo(a),c=`Message compilation error: ${o.message}`,u=o.location&&l&&rs(l,o.location.start.offset,o.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>qa(t,n,o)}}function yo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Io(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:p}=e,d={locale:t,modifiers:s,pluralRules:r,messages:N=>{let y=o(n,N);if(y==null&&p){const[,,k]=vr(p,N,t,l,c,u);y=o(k,N)}if(M(y)||Me(y)){let k=!1;const m=Or(e,N,t,y,N,()=>{k=!0});return k?Tr:m}else return me(y)?y:Tr}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),ne(a.plural)&&(d.pluralIndex=a.plural),d}const yr=typeof Intl<"u",Ir={dateTimeFormat:yr&&typeof Intl.DateTimeFormat<"u",numberFormat:yr&&typeof Intl.NumberFormat<"u"};function Lr(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ir.dateTimeFormat)return r(Ge(le.CANNOT_FORMAT_DATE)),Mt;const[c,u,p,h]=cn(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.DateTimeFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="datetime format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(Ge(le.FALLBACK_TO_DATE_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Rt:c;let I=`${g}__${c}`;Ct(h)||(I=`${I}__${JSON.stringify(h)}`);let w=l.get(I);return w||(w=new Intl.DateTimeFormat(g,se({},T,h)),l.set(I,w)),y?w.formatToParts(u):w.format(u)}const kr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cn(...e){const[t,n,a,s]=e,r={};let o={},l;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Te(ae.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{l.toISOString()}catch{throw Te(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(Ja(t)){if(isNaN(t.getTime()))throw Te(ae.INVALID_DATE_ARGUMENT);l=t}else if(ne(t))l=t;else throw Te(ae.INVALID_ARGUMENT);return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{kr.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function Sr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function Cr(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ir.numberFormat)return r(Ge(le.CANNOT_FORMAT_NUMBER)),Mt;const[c,u,p,h]=un(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.NumberFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="number format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(Ge(le.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Rt:c;let I=`${g}__${c}`;Ct(h)||(I=`${I}__${JSON.stringify(h)}`);let w=l.get(I);return w||(w=new Intl.NumberFormat(g,se({},T,h)),l.set(I,w)),y?w.formatToParts(u):w.format(u)}const Ar=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function un(...e){const[t,n,a,s]=e,r={};let o={};if(!ne(t))throw Te(ae.INVALID_ARGUMENT);const l=t;return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{Ar.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function wr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Fs();function Lo(){return Pr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Pr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ko=typeof Proxy=="function",So="devtools-plugin:setup",Co="plugin:settings:set";let rt,fn;function Ao(){var e;return rt!==void 0||(typeof window<"u"&&window.performance?(rt=!0,fn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(rt=!0,fn=globalThis.perf_hooks.performance):rt=!1),rt}function wo(){return Ao()?fn.now():Date.now()}class Po{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const o in t.settings){const l=t.settings[o];a[o]=l.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},a);try{const o=localStorage.getItem(s),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return wo()}},n&&n.on(Co,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,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(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}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 Ro(e,t){const n=e,a=Pr(),s=Lo(),r=ko&&n.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(So,e,t);else{const o=r?new Po(n,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
16
+ */function Fs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ie().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Re=[];Re[0]={w:[0],i:[3,0],"[":[4],o:[7]},Re[1]={w:[1],".":[2],"[":[4],o:[7]},Re[2]={w:[2],i:[3,0],0:[3,0]},Re[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Re[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Re[5]={"'":[4,0],o:8,l:[5,0]},Re[6]={'"':[4,0],o:8,l:[6,0]};const xs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Us(e){return xs.test(e)}function Vs(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 $s(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 Bs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Us(t)?Vs(t):"*"+t}function Ws(e){const t=[];let n=-1,a=0,s=0,r,o,l,c,u,p,h;const d=[];d[0]=()=>{o===void 0?o=l:o+=l},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,a=4,d[0]();else{if(s=0,o===void 0||(o=Bs(o),o===!1))return!1;d[1]()}};function N(){const y=e[n+1];if(a===5&&y==="'"||a===6&&y==='"')return n++,l="\\"+y,d[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&N())){if(c=$s(r),h=Re[a],u=h[c]||h.l||8,u===8||(a=u[0],u[1]!==void 0&&(p=d[u[1]],p&&(l=r,p()===!1))))return;if(a===7)return t}}const er=new Map;function Hs(e,t){return G(e)?e[t]:null}function Gs(e,t){if(!G(e))return null;let n=er.get(t);if(n||(n=Ws(t),n&&er.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const o=s[n[r]];if(o===void 0||X(s))return null;s=o,r++}return s}const js=e=>e,Ys=e=>"",Xs="text",zs=e=>e.length===0?"":ns(e),Ks=ts;function tr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qs(e){const t=ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ne(e.named.count)||ne(e.named.n))?ne(e.named.count)?e.named.count:ne(e.named.n)?e.named.n:t:t}function Zs(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Js(e={}){const t=e.locale,n=qs(e),a=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?e.pluralRules[t]:tr,s=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?tr:void 0,r=m=>m[a(n,m.length,s)],o=e.list||[],l=m=>o[m],c=e.named||{};ne(e.pluralIndex)&&Zs(n,c);const u=m=>c[m];function p(m){const g=X(e.messages)?e.messages(m):G(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Ys)}const h=m=>e.modifiers?e.modifiers[m]:js,d=$(e.processor)&&X(e.processor.normalize)?e.processor.normalize:zs,N=$(e.processor)&&X(e.processor.interpolate)?e.processor.interpolate:Ks,y=$(e.processor)&&M(e.processor.type)?e.processor.type:Xs,C={list:l,named:u,plural:r,linked:(m,...g)=>{const[T,b]=g;let S="text",E="";g.length===1?G(T)?(E=T.modifier||E,S=T.type||S):M(T)&&(E=T||E):g.length===2&&(M(T)&&(E=T||E),M(b)&&(S=b||S));const I=p(m)(C),w=S==="vnode"&&K(I)&&E?I[0]:I;return E?h(E)(w,S):w},message:p,type:y,interpolate:N,normalize:d,values:se({},o,c)};return C}let ct=null;function Qs(e){ct=e}function eo(e,t,n){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const to=no("function:translate");function no(e){return t=>ct&&ct.emit(e,t)}const le={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,__EXTEND_POINT__:8},ro={[le.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[le.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[le.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[le.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[le.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 He(e,...t){return Jt(ro[e],...t)}const nr=U.__EXTEND_POINT__,Ge=Qt(nr),ae={INVALID_ARGUMENT:nr,INVALID_DATE_ARGUMENT:Ge(),INVALID_ISO_DATE_ARGUMENT:Ge(),NOT_SUPPORT_NON_STRING_MESSAGE:Ge(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ge(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ge(),NOT_SUPPORT_LOCALE_TYPE:Ge(),__EXTEND_POINT__:Ge()};function Te(e){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:ao}:void 0)}const ao={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function rn(e,t){return t.locale!=null?rr(t.locale):rr(e.locale)}let an;function rr(e){if(M(e))return e;if(X(e)){if(e.resolvedOnce&&an!=null)return an;if(e.constructor.name==="Function"){const t=e();if(es(t))throw Te(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return an=t}else throw Te(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Te(ae.NOT_SUPPORT_LOCALE_TYPE)}function so(e,t,n){return[...new Set([n,...K(t)?t:G(t)?Object.keys(t):M(t)?[t]:[n]])]}function ar(e,t,n){const a=M(n)?n:tt,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let o=[n];for(;K(o);)o=sr(r,o,t);const l=K(t)||!$(t)?t:t.default?t.default:null;o=M(l)?[l]:l,K(o)&&sr(r,o,!1),s.__localeChainCache.set(a,r)}return r}function sr(e,t,n){let a=!0;for(let s=0;s<t.length&&B(a);s++){const r=t[s];M(r)&&(a=oo(e,t[s],n))}return a}function oo(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=io(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function io(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(K(n)||$(n))&&n[s]&&(a=n[s])}return a}const lo="9.10.1",Rt=-1,tt="en-US",Mt="",or=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function co(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?or(e):t==="vnode"&&G(e)&&"__v_isVNode"in e?or(e.children):e}}let ir;function lr(e){ir=e}let cr;function uo(e){cr=e}let ur;function fo(e){ur=e}let fr=null;const mo=e=>{fr=e},_o=()=>fr;let dr=null;const mr=e=>{dr=e},ho=()=>dr;let _r=0;function po(e={}){const t=X(e.onWarn)?e.onWarn:as,n=M(e.version)?e.version:lo,a=M(e.locale)||X(e.locale)?e.locale:tt,s=X(a)?tt:a,r=K(e.fallbackLocale)||$(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=$(e.messages)?e.messages:{[s]:{}},l=$(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},c=$(e.numberFormats)?e.numberFormats:{[s]:{}},u=se({},e.modifiers||{},co()),p=e.pluralRules||{},h=X(e.missing)?e.missing:null,d=B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,N=B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,k=!!e.unresolving,C=X(e.postTranslation)?e.postTranslation:null,m=$(e.processor)?e.processor:null,g=B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,b=X(e.messageCompiler)?e.messageCompiler:ir;process.env.NODE_ENV!=="production"&&X(e.messageCompiler)&&Xn(He(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const S=X(e.messageResolver)?e.messageResolver:cr||Hs,E=X(e.localeFallbacker)?e.localeFallbacker:ur||so,I=G(e.fallbackContext)?e.fallbackContext:void 0,w=e,v=G(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,P=G(w.__numberFormatters)?w.__numberFormatters:new Map,x=G(w.__meta)?w.__meta:{};_r++;const O={version:n,cid:_r,locale:a,fallbackLocale:r,messages:o,modifiers:u,pluralRules:p,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:y,unresolving:k,postTranslation:C,processor:m,warnHtmlMessage:g,escapeParameter:T,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:I,onWarn:t,__meta:x};return O.datetimeFormats=l,O.numberFormats=c,O.__datetimeFormatters=v,O.__numberFormatters=P,process.env.NODE_ENV!=="production"&&(O.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&eo(O,n,x),O}function Dt(e,t){return e instanceof RegExp?e.test(t):e}function hr(e,t){return e instanceof RegExp?e.test(t):e}function sn(e,t,n,a,s){const{missing:r,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const l=r(e,n,t,s);return M(l)?l:t}else return process.env.NODE_ENV!=="production"&&hr(a,t)&&o(He(le.NOT_FOUND_KEY,{key:t,locale:n})),t}function ut(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function on(e){return n=>go(n,e)}function go(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,s=a.c||a.cases;return e.plural(s.reduce((r,o)=>[...r,pr(e,o)],[]))}else return pr(e,n)}function pr(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const a=(t.i||t.items).reduce((s,r)=>[...s,ln(e,r)],[]);return e.normalize(a)}}function ln(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const s=t;return s.v||s.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const l=t,c=l.m||l.modifier;return e.linked(ln(e,l.k||l.key),c?ln(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const p=t;return p.v||p.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const bo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function gr(e,t){t&&ds(e)&&(Jt(bo,{source:e}),void 0)}const br=e=>e;let nt=Object.create(null);const Me=e=>G(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Er(e,t={}){let n=!1;const a=t.onError||us;return t.onError=s=>{n=!0,a(s)},{...Ds(e,t),detectError:n}}const Eo=(e,t)=>{if(!M(e))throw Te(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{code:o,detectError:l}=Er(e,t),c=new Function(`return ${o}`)();return l?c:nt[s]=c}};function To(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{ast:o,detectError:l}=Er(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=on(o);return l?c:nt[s]=c}else{if(process.env.NODE_ENV!=="production"&&!Me(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const a=nt[n];return a||(nt[n]=on(e))}else return on(e)}}const Tr=()=>"",me=e=>X(e);function Nr(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:o,messages:l}=e,[c,u]=cn(...t),p=B(u.missingWarn)?u.missingWarn:e.missingWarn,h=B(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=B(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,y=M(u.default)||B(u.default)?B(u.default)?r?c:()=>c:u.default:n?r?c:()=>c:"",k=n||y!=="",C=rn(e,u);d&&No(u);let[m,g,T]=N?[c,C,l[C]||{}]:vr(e,c,C,o,h,p),b=m,S=c;if(!N&&!(M(b)||Me(b)||me(b))&&k&&(b=y,S=b),!N&&(!(M(b)||Me(b)||me(b))||!M(g)))return s?Rt:c;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const I=()=>{E=!0},w=me(b)?b:Or(e,c,g,b,S,I);if(E)return b;const v=Io(e,g,T,u),P=Js(v),x=vo(e,w,P),O=a?a(x,c):x;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(c)?c:me(b)?b.key:"",locale:g||(me(b)?b.locale:""),format:M(b)?b:me(b)?b.source:"",message:O};D.meta=se({},e.__meta,_o()||{}),to(D)}return O}function No(e){K(e.list)?e.list=e.list.map(t=>M(t)?Wn(t):t):G(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Wn(e.named[t]))})}function vr(e,t,n,a,s,r){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:u}=e,p=u(e,a,n);let h={},d,N=null,y=n,k=null;const C="translate";for(let m=0;m<p.length;m++){if(d=k=p[m],process.env.NODE_ENV!=="production"&&n!==d&&Dt(s,t)&&l(He(le.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:C,key:t,from:y,to:k,groupId:`${C}:${t}`})}h=o[d]||{};let g=null,T,b;if(process.env.NODE_ENV!=="production"&&he&&(g=window.performance.now(),T="intlify-message-resolve-start",b="intlify-message-resolve-end",de&&de(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&he){const E=window.performance.now(),I=e.__v_emitter;I&&g&&N&&I.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-g,groupId:`${C}:${t}`}),T&&b&&de&&We&&(de(b),We("intlify message resolve",T,b))}if(M(N)||Me(N)||me(N))break;const S=sn(e,t,d,r,C);S!==t&&(N=S),y=k}return[N,d,h]}function Or(e,t,n,a,s,r){const{messageCompiler:o,warnHtmlMessage:l}=e;if(me(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>a;return d.locale=n,d.key=t,d}let c=null,u,p;process.env.NODE_ENV!=="production"&&he&&(c=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",de&&de(u));const h=o(a,Oo(e,n,s,a,l,r));if(process.env.NODE_ENV!=="production"&&he){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:a,time:d-c,groupId:`translate:${t}`}),u&&p&&de&&We&&(de(p),We("intlify message compilation",u,p))}return h.locale=n,h.key=t,h.source=a,h}function vo(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&he&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",de&&de(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&he){const l=window.performance.now(),c=e.__v_emitter;c&&a&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:l-a,groupId:`translate:${t.key}`}),s&&r&&de&&We&&(de(r),We("intlify message evaluation",s,r))}return o}function cn(...e){const[t,n,a]=e,s={};if(!M(t)&&!ne(t)&&!me(t)&&!Me(t))throw Te(ae.INVALID_ARGUMENT);const r=ne(t)?String(t):(me(t),t);return ne(n)?s.plural=n:M(n)?s.default=n:$(n)&&!Ct(n)?s.named=n:K(n)&&(s.list=n),ne(a)?s.plural=a:M(a)?s.default=a:$(a)&&se(s,a),[r,s]}function Oo(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(r&&r(o),process.env.NODE_ENV!=="production"){const l=yo(a),c=`Message compilation error: ${o.message}`,u=o.location&&l&&rs(l,o.location.start.offset,o.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>qa(t,n,o)}}function yo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Io(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:p}=e,d={locale:t,modifiers:s,pluralRules:r,messages:N=>{let y=o(n,N);if(y==null&&p){const[,,k]=vr(p,N,t,l,c,u);y=o(k,N)}if(M(y)||Me(y)){let k=!1;const m=Or(e,N,t,y,N,()=>{k=!0});return k?Tr:m}else return me(y)?y:Tr}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),ne(a.plural)&&(d.pluralIndex=a.plural),d}const yr=typeof Intl<"u",Ir={dateTimeFormat:yr&&typeof Intl.DateTimeFormat<"u",numberFormat:yr&&typeof Intl.NumberFormat<"u"};function Lr(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ir.dateTimeFormat)return r(He(le.CANNOT_FORMAT_DATE)),Mt;const[c,u,p,h]=un(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=!!p.part,k=rn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.DateTimeFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="datetime format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_DATE_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;sn(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Rt:c;let I=`${g}__${c}`;Ct(h)||(I=`${I}__${JSON.stringify(h)}`);let w=l.get(I);return w||(w=new Intl.DateTimeFormat(g,se({},T,h)),l.set(I,w)),y?w.formatToParts(u):w.format(u)}const kr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function un(...e){const[t,n,a,s]=e,r={};let o={},l;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Te(ae.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{l.toISOString()}catch{throw Te(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(Ja(t)){if(isNaN(t.getTime()))throw Te(ae.INVALID_DATE_ARGUMENT);l=t}else if(ne(t))l=t;else throw Te(ae.INVALID_ARGUMENT);return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{kr.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function Sr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function Cr(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ir.numberFormat)return r(He(le.CANNOT_FORMAT_NUMBER)),Mt;const[c,u,p,h]=fn(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=!!p.part,k=rn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.NumberFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="number format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;sn(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Rt:c;let I=`${g}__${c}`;Ct(h)||(I=`${I}__${JSON.stringify(h)}`);let w=l.get(I);return w||(w=new Intl.NumberFormat(g,se({},T,h)),l.set(I,w)),y?w.formatToParts(u):w.format(u)}const Ar=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function fn(...e){const[t,n,a,s]=e,r={};let o={};if(!ne(t))throw Te(ae.INVALID_ARGUMENT);const l=t;return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{Ar.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function wr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Fs();function Lo(){return Pr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Pr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ko=typeof Proxy=="function",So="devtools-plugin:setup",Co="plugin:settings:set";let rt,dn;function Ao(){var e;return rt!==void 0||(typeof window<"u"&&window.performance?(rt=!0,dn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(rt=!0,dn=globalThis.perf_hooks.performance):rt=!1),rt}function wo(){return Ao()?dn.now():Date.now()}class Po{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const o in t.settings){const l=t.settings[o];a[o]=l.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},a);try{const o=localStorage.getItem(s),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return wo()}},n&&n.on(Co,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,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(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}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 Ro(e,t){const n=e,a=Pr(),s=Lo(),r=ko&&n.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(So,e,t);else{const o=r?new Po(n,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
17
17
  * vue-i18n v9.10.1
18
18
  * (c) 2024 kazuya kawaguchi
19
19
  * Released under the MIT License.
20
- */const Mo="9.10.1";function Do(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ie().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ie().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ie().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1)}const Rr=le.__EXTEND_POINT__,ke=Jt(Rr),Z={FALLBACK_TO_ROOT:Rr,NOT_SUPPORTED_PRESERVE:ke(),NOT_SUPPORTED_FORMATTER:ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:ke(),NOT_FOUND_PARENT_SCOPE:ke(),IGNORE_OBJ_FLATTEN:ke(),NOTICE_DROP_ALLOW_COMPOSITION:ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ke()},Fo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ue(e,...t){return Zt(Fo[e],...t)}const Mr=ae.__EXTEND_POINT__,fe=Jt(Mr),G={UNEXPECTED_RETURN_TYPE:Mr,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSTALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSTALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:fe(),__EXTEND_POINT__:fe()};function re(e,...t){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:xo,args:t}:void 0)}const xo={[G.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[G.INVALID_ARGUMENT]:"Invalid argument",[G.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[G.NOT_INSTALLED]:"Need to install with `app.use` function",[G.UNEXPECTED_ERROR]:"Unexpected error",[G.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[G.REQUIRED_VALUE]:"Required in value: {0}",[G.INVALID_VALUE]:"Invalid value",[G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[G.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[G.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[G.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dn=be("__translateVNode"),mn=be("__datetimeParts"),_n=be("__numberParts"),je=be("__enableEmitter"),ft=be("__disableEmitter"),Dr=be("__setPluralRules"),Fr=be("__injectWithOption"),hn=be("__dispose");function dt(e){if(!H(e))return e;for(const t in e)if(At(e,t))if(!t.includes("."))H(e[t])&&dt(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]in s||(s[n[o]]={}),!H(s[n[o]])){process.env.NODE_ENV!=="production"&&(ue(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),r=!0;break}s=s[n[o]]}r||(s[n[a]]=e[t],delete e[t]),H(s[n[a]])&&dt(s[n[a]])}return e}function Ft(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=$(n)?n:K(a)?{}:{[e]:{}};if(K(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(o[c]=o[c]||{},Pt(u,o[c])):Pt(u,o)}else M(l)&&Pt(JSON.parse(l),o)}),s==null&&r)for(const l in o)At(o,l)&&dt(o[l]);return o}function xr(e){return e.type}function Ur(e,t,n){let a=H(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ft(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(H(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(H(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vr(e){return i.createVNode(i.Text,null,e,0)}const $r="__INTLIFY_META__",Br=()=>[],Uo=()=>!1;let Wr=0;function Gr(e){return(t,n,a,s)=>e(n,a,i.getCurrentInstance()||void 0,s)}const Vo=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=xr(e)[$r])?{[$r]:t}:null};function pn(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,o=he?i.ref:i.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Xn(ue(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=B(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:tt),p=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ft(u.value,e)),d=o($(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o($(e.numberFormats)?e.numberFormats:{[u.value]:{}});let y=n?n.missingWarn:B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=X(e.missing)?e.missing:null,T=X(e.missing)?Gr(e.missing):null,b=X(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const I=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,v;v=(()=>{s&&mr(null);const A={version:Mo,locale:u.value,fallbackLocale:p.value,messages:h.value,modifiers:I,pluralRules:w,missing:T===null?void 0:T,missingWarn:y,fallbackWarn:k,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=$(v)?v.__datetimeFormatters:void 0,A.__numberFormatters=$(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=$(v)?v.__v_emitter:void 0);const R=po(A);return s&&mr(R),R})(),ut(v,u.value,p.value);function x(){return[u.value,p.value,h.value,d.value,N.value]}const O=i.computed({get:()=>u.value,set:A=>{u.value=A,v.locale=u.value}}),D=i.computed({get:()=>p.value,set:A=>{p.value=A,v.fallbackLocale=p.value,ut(v,u.value,A)}}),q=i.computed(()=>h.value),z=i.computed(()=>d.value),ee=i.computed(()=>N.value);function ce(){return X(b)?b:null}function Ve(A){b=A,v.postTranslation=A}function Ce(){return g}function Ot(A){A!==null&&(T=Gr(A)),g=A,v.missing=T}function yt(A,R){return A!=="translate"||!R.resolvedMessage}const ge=(A,R,Y,Q,Be,qt)=>{x();let lt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=n?ho():void 0),lt=A(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ne(lt)&&lt===Rt||Y==="translate exists"&&!lt){const[Ze,Ac]=R();if(process.env.NODE_ENV!=="production"&&n&&M(Ze)&&yt(Y,Ac)&&(C&&(Dt(k,Ze)||hr(y,Ze))&&(ue(Z.FALLBACK_TO_ROOT,{key:Ze,type:Y}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Xa}=v;Xa&&C&&Xa.emit("fallback",{type:Y,key:Ze,to:"global",groupId:`${Y}:${Ze}`})}return n&&C?Q(n):Be(Ze)}else{if(qt(lt))return lt;throw re(G.UNEXPECTED_RETURN_TYPE)}};function st(...A){return ge(R=>Reflect.apply(Nr,null,[R,...A]),()=>ln(...A),"translate",R=>Reflect.apply(R.t,R,[...A]),R=>R,R=>M(R))}function ot(...A){const[R,Y,Q]=A;if(Q&&!H(Q))throw re(G.INVALID_ARGUMENT);return st(R,Y,se({resolvedMessage:!0},Q||{}))}function It(...A){return ge(R=>Reflect.apply(Lr,null,[R,...A]),()=>cn(...A),"datetime format",R=>Reflect.apply(R.d,R,[...A]),()=>Mt,R=>M(R))}function Lt(...A){return ge(R=>Reflect.apply(Cr,null,[R,...A]),()=>un(...A),"number format",R=>Reflect.apply(R.n,R,[...A]),()=>Mt,R=>M(R))}function kt(A){return A.map(R=>M(R)||ne(R)||B(R)?Vr(String(R)):R)}const Ke={normalize:kt,interpolate:A=>A,type:"vnode"};function $e(...A){return ge(R=>{let Y;const Q=R;try{Q.processor=Ke,Y=Reflect.apply(Nr,null,[Q,...A])}finally{Q.processor=null}return Y},()=>ln(...A),"translate",R=>R[dn](...A),R=>[Vr(R)],R=>K(R))}function qe(...A){return ge(R=>Reflect.apply(Cr,null,[R,...A]),()=>un(...A),"number format",R=>R[_n](...A),Br,R=>M(R)||K(R))}function St(...A){return ge(R=>Reflect.apply(Lr,null,[R,...A]),()=>cn(...A),"datetime format",R=>R[mn](...A),Br,R=>M(R)||K(R))}function _(A){w=A,v.pluralRules=w}function f(A,R){return ge(()=>{if(!A)return!1;const Y=M(R)?R:u.value,Q=V(Y),Be=v.messageResolver(Q,A);return l?Be!=null:Me(Be)||me(Be)||M(Be)},()=>[A],"translate exists",Y=>Reflect.apply(Y.te,Y,[A,R]),Uo,Y=>B(Y))}function L(A){let R=null;const Y=ar(v,p.value,u.value);for(let Q=0;Q<Y.length;Q++){const Be=h.value[Y[Q]]||{},qt=v.messageResolver(Be,A);if(qt!=null){R=qt;break}}return R}function F(A){const R=L(A);return R??(n?n.tm(A)||{}:{})}function V(A){return h.value[A]||{}}function j(A,R){if(r){const Y={[A]:R};for(const Q in Y)At(Y,Q)&&dt(Y[Q]);R=Y[A]}h.value[A]=R,v.messages=h.value}function ye(A,R){h.value[A]=h.value[A]||{};const Y={[A]:R};if(r)for(const Q in Y)At(Y,Q)&&dt(Y[Q]);R=Y[A],Pt(R,h.value[A]),v.messages=h.value}function Ae(A){return d.value[A]||{}}function Ic(A,R){d.value[A]=R,v.datetimeFormats=d.value,Sr(v,A,R)}function Lc(A,R){d.value[A]=se(d.value[A]||{},R),v.datetimeFormats=d.value,Sr(v,A,R)}function kc(A){return N.value[A]||{}}function Sc(A,R){N.value[A]=R,v.numberFormats=N.value,wr(v,A,R)}function Cc(A,R){N.value[A]=se(N.value[A]||{},R),v.numberFormats=N.value,wr(v,A,R)}Wr++,n&&he&&(i.watch(n.locale,A=>{c&&(u.value=A,v.locale=A,ut(v,u.value,p.value))}),i.watch(n.fallbackLocale,A=>{c&&(p.value=A,v.fallbackLocale=A,ut(v,u.value,p.value))}));const te={id:Wr,locale:O,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,p.value=n.fallbackLocale.value,ut(v,u.value,p.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:q,get modifiers(){return I},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(A){y=A,v.missingWarn=y},get fallbackWarn(){return k},set fallbackWarn(A){k=A,v.fallbackWarn=k},get fallbackRoot(){return C},set fallbackRoot(A){C=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,v.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(A){S=A,v.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,v.escapeParameter=A},t:st,getLocaleMessage:V,setLocaleMessage:j,mergeLocaleMessage:ye,getPostTranslationHandler:ce,setPostTranslationHandler:Ve,getMissingHandler:Ce,setMissingHandler:Ot,[Dr]:_};return te.datetimeFormats=z,te.numberFormats=ee,te.rt=ot,te.te=f,te.tm=F,te.d=It,te.n=Lt,te.getDateTimeFormat=Ae,te.setDateTimeFormat=Ic,te.mergeDateTimeFormat=Lc,te.getNumberFormat=kc,te.setNumberFormat=Sc,te.mergeNumberFormat=Cc,te[Fr]=a,te[dn]=$e,te[mn]=St,te[_n]=qe,process.env.NODE_ENV!=="production"&&(te[je]=A=>{v.__v_emitter=A},te[ft]=()=>{v.__v_emitter=void 0}),te}function $o(e){const t=M(e.locale)?e.locale:tt,n=M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,s=B(e.silentTranslationWarn)||we(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=B(e.silentFallbackWarn)||we(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=B(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=$(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=X(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=B(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let y=e.messages;if($(e.sharedMessages)){const E=e.sharedMessages;y=Object.keys(E).reduce((w,v)=>{const P=w[v]||(w[v]={});return se(P,E[v]),w},y||{})}const{__i18n:k,__root:C,__injectWithOption:m}=e,g=e.datetimeFormats,T=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:y,flatJson:b,datetimeFormats:g,numberFormats:T,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:p,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:S,__i18n:k,__root:C,__injectWithOption:m}}function gn(e={},t){{const n=pn($o(e)),{__extender:a}=e,s={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return B(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=B(r)?!r:r},get silentFallbackWarn(){return B(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=B(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,l,c]=r,u={};let p=null,h=null;if(!M(o))throw re(G.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:K(l)?p=l:$(l)&&(h=l),K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,l,c]=r,u={plural:1};let p=null,h=null;if(!M(o))throw re(G.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:ne(l)?u.plural=l:K(l)?p=l:$(l)&&(h=l),M(c)?u.locale=c:K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=r=>{const o=n;o[je]&&o[je](r)},s.__disableEmitter=()=>{const r=n;r[ft]&&r[ft]()}),s}}const bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bo({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===i.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function Hr(e){return i.Fragment}const En=i.defineComponent({name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ne(e)||!isNaN(e)}},bn),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const l=Bo(t,r),c=s[dn](e.keypath,l,o),u=se({},a),p=M(e.tag)||H(e.tag)?e.tag:Hr();return i.h(p,u,c)}}});function Wo(e){return K(e)&&!M(e[0])}function jr(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:H(e.format)&&(M(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((d,N)=>n.includes(N)?se({},d,{[N]:e.format[N]}):d,{}));const c=a(e.value,o,l);let u=[o.key];K(c)?u=c.map((d,N)=>{const y=s[d.type],k=y?y({[d.type]:d.value,index:N,parts:c}):[d.value];return Wo(k)&&(k[0].key=`${d.type}-${N}`),k}):M(c)&&(u=[c]);const p=se({},r),h=M(e.tag)||H(e.tag)?e.tag:Hr();return i.h(h,p,u)}}const Yr=i.defineComponent({name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,Ar,(...a)=>n[_n](...a))}}),Xr=i.defineComponent({name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,kr,(...a)=>n[mn](...a))}});function Go(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Ho(e){const t=o=>{const{instance:l,modifiers:c,value:u}=o;if(!l||!l.$)throw re(G.UNEXPECTED_ERROR);const p=Go(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&(ue(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=zr(u);return[Reflect.apply(p.t,p,[...Kr(h)]),p]};return{created:(o,l)=>{const[c,u]=t(l);he&&e.global===u&&(o.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{he&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,u=zr(l);o.textContent=Reflect.apply(c.t,c,[...Kr(u)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function zr(e){if(M(e))return{path:e};if($(e)){if(!("path"in e))throw re(G.REQUIRED_VALUE,"path");return e}else throw re(G.INVALID_VALUE)}function Kr(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return M(n)&&(o.locale=n),ne(s)&&(o.plural=s),ne(r)&&(o.plural=r),[t,l,o]}function jo(e,t,...n){const a=$(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=B(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&s&&(ue(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:En.name}),void 0),r&&([s?"i18n":En.name,"I18nT"].forEach(o=>e.component(o,En)),[Yr.name,"I18nN"].forEach(o=>e.component(o,Yr)),[Xr.name,"I18nD"].forEach(o=>e.component(o,Xr))),e.directive("t",Ho(t))}const Tn={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Yo={"vue-i18n-resource-inspector":"Search for scopes ..."},Xo={"vue-i18n-timeline":16764185},qr="vue-i18n: composer properties";let Nn;async function zo(e,t){return new Promise((n,a)=>{try{Ro({id:"vue-devtools-plugin-vue-i18n",label:Tn["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:[qr],app:e},s=>{Nn=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ko(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Jr(l,o.vnode.el.__VUE_I18N__):Jr(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Tn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Yo["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ei(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),ni(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=ti(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ai(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Tn["vue-i18n-timeline"],color:Xo["vue-i18n-timeline"]}),n(!0)})}catch{a(!1)}})}function Zr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ko(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Zr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Jr(e,t){const n=qr;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:vn(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 vn(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=Qo(a):Me(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:H(a)?t[n]=vn(a):t[n]=a}),t}const qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Zo(e){return e.replace(/[<>"&]/g,Jo)}function Jo(e){return qo[e]||e}function Qo(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Zo(e.source)}")`:"(?)"}`}}}function ei(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Zr(a)} Scope`})}}function ti(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function Qr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ni(e,t){const n=Qr(e.nodeId,t);return n&&(e.state=ri(n)),null}function ri(e){const t={},n="Locale related info",a=[{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]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:vn(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function mt(e,t){if(Nn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Nn.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 ai(e,t){const n=Qr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&M(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(M(e.state.value)||K(e.state.value)||H(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function si(e,t,n){return{beforeCreate(){const a=i.getCurrentInstance();if(!a)throw re(G.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ea(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=gn(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ea(e,s);else{this.$i18n=gn({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Ur(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Qt();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",mt)}},unmounted(){const a=i.getCurrentInstance();if(!a)throw re(G.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",mt),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ea(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[Dr](t.pluralizationRules||e.pluralizationRules);const n=Ft(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const oi=be("global-vue-i18n");function ii(e={},t){const n=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=B(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,l]=li(e,n),c=be(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&s&&(ue(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return r.get(d)||null}function p(d,N){r.set(d,N)}function h(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(N,...y){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),$(y[0])){const m=y[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let k=null;!n&&a&&(k=gi(N,d.global)),__VUE_I18N_FULL_INSTALL__&&jo(N,d,...y),__VUE_I18N_LEGACY_API__&&n&&N.mixin(si(l,l.__composer,d));const C=N.unmount;if(N.unmount=()=>{k&&k(),d.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await zo(N,d))throw re(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=Qt();if(n){const T=l;T.__enableEmitter&&T.__enableEmitter(g)}else{const T=l;T[je]&&T[je](g)}g.on("*",mt)}},get global(){return l},dispose(){o.stop()},__instances:r,__getInstance:u,__setInstance:p,__deleteInstance:h};return d}}function xt(e={}){const t=i.getCurrentInstance();if(t==null)throw re(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(G.NOT_INSTALLED);const n=ci(t),a=fi(n),s=xr(t),r=ui(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw re(G.NOT_AVAILABLE_IN_LEGACY_MODE);return hi(t,r,a,e)}if(r==="global")return Ur(a,e,s),a;if(r==="parent"){let c=di(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(ue(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=a),c}const o=n;let l=o.__getInstance(t);if(l==null){const c=se({},e);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),l=pn(c),o.__composerExtend&&(l[hn]=o.__composerExtend(l)),_i(o,t,l),o.__setInstance(t,l)}return l}function li(e,t,n){const a=i.effectScope();{const s=__VUE_I18N_LEGACY_API__&&t?a.run(()=>gn(e)):a.run(()=>pn(e));if(s==null)throw re(G.UNEXPECTED_ERROR);return[a,s]}}function ci(e){{const t=i.inject(e.isCE?oi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}}function ui(e,t){return Ct(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fi(e){return e.mode==="composition"?e.global:e.global.__composer}function di(e,t,n=!1){let a=null;const s=t.root;let r=mi(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[Fr]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function mi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _i(e,t,n){let a=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Qt();const s=n;s[je]&&s[je](a),a.on("*",mt)}},t),i.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",mt),s[ft]&&s[ft](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[hn];r&&(r(),delete s[hn])},t)}function hi(e,t,n,a={}){const s=t==="local",r=i.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw re(G.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=B(a.inheritLocale)?a.inheritLocale:!M(a.locale),l=i.ref(!s||o?n.locale.value:M(a.locale)?a.locale:tt),c=i.ref(!s||o?n.fallbackLocale.value:M(a.fallbackLocale)||K(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),u=i.ref(Ft(l.value,a)),p=i.ref($(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),h=i.ref($(a.numberFormats)?a.numberFormats:{[l.value]:{}}),d=s?n.missingWarn:B(a.missingWarn)||we(a.missingWarn)?a.missingWarn:!0,N=s?n.fallbackWarn:B(a.fallbackWarn)||we(a.fallbackWarn)?a.fallbackWarn:!0,y=s?n.fallbackRoot:B(a.fallbackRoot)?a.fallbackRoot:!0,k=!!a.fallbackFormat,C=X(a.missing)?a.missing:null,m=X(a.postTranslation)?a.postTranslation:null,g=s?n.warnHtmlMessage:B(a.warnHtmlMessage)?a.warnHtmlMessage:!0,T=!!a.escapeParameter,b=s?n.modifiers:$(a.modifiers)?a.modifiers:{},S=a.pluralRules||s&&n.pluralRules;function E(){return[l.value,c.value,u.value,p.value,h.value]}const I=i.computed({get:()=>r.value?r.value.locale.value:l.value,set:f=>{r.value&&(r.value.locale.value=f),l.value=f}}),w=i.computed({get:()=>r.value?r.value.fallbackLocale.value:c.value,set:f=>{r.value&&(r.value.fallbackLocale.value=f),c.value=f}}),v=i.computed(()=>r.value?r.value.messages.value:u.value),P=i.computed(()=>p.value),x=i.computed(()=>h.value);function O(){return r.value?r.value.getPostTranslationHandler():m}function D(f){r.value&&r.value.setPostTranslationHandler(f)}function q(){return r.value?r.value.getMissingHandler():C}function z(f){r.value&&r.value.setMissingHandler(f)}function ee(f){return E(),f()}function ce(...f){return r.value?ee(()=>Reflect.apply(r.value.t,null,[...f])):ee(()=>"")}function Ve(...f){return r.value?Reflect.apply(r.value.rt,null,[...f]):""}function Ce(...f){return r.value?ee(()=>Reflect.apply(r.value.d,null,[...f])):ee(()=>"")}function Ot(...f){return r.value?ee(()=>Reflect.apply(r.value.n,null,[...f])):ee(()=>"")}function yt(f){return r.value?r.value.tm(f):{}}function ge(f,L){return r.value?r.value.te(f,L):!1}function st(f){return r.value?r.value.getLocaleMessage(f):{}}function ot(f,L){r.value&&(r.value.setLocaleMessage(f,L),u.value[f]=L)}function It(f,L){r.value&&r.value.mergeLocaleMessage(f,L)}function Lt(f){return r.value?r.value.getDateTimeFormat(f):{}}function kt(f,L){r.value&&(r.value.setDateTimeFormat(f,L),p.value[f]=L)}function it(f,L){r.value&&r.value.mergeDateTimeFormat(f,L)}function Ke(f){return r.value?r.value.getNumberFormat(f):{}}function $e(f,L){r.value&&(r.value.setNumberFormat(f,L),h.value[f]=L)}function qe(f,L){r.value&&r.value.mergeNumberFormat(f,L)}const St={get id(){return r.value?r.value.id:-1},locale:I,fallbackLocale:w,messages:v,datetimeFormats:P,numberFormats:x,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(f){r.value&&(r.value.inheritLocale=f)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(u.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackWarn(){return r.value?r.value.fallbackWarn:N},set fallbackWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackRoot(){return r.value?r.value.fallbackRoot:y},set fallbackRoot(f){r.value&&(r.value.fallbackRoot=f)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(f){r.value&&(r.value.fallbackFormat=f)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:g},set warnHtmlMessage(f){r.value&&(r.value.warnHtmlMessage=f)},get escapeParameter(){return r.value?r.value.escapeParameter:T},set escapeParameter(f){r.value&&(r.value.escapeParameter=f)},t:ce,getPostTranslationHandler:O,setPostTranslationHandler:D,getMissingHandler:q,setMissingHandler:z,rt:Ve,d:Ce,n:Ot,tm:yt,te:ge,getLocaleMessage:st,setLocaleMessage:ot,mergeLocaleMessage:It,getDateTimeFormat:Lt,setDateTimeFormat:kt,mergeDateTimeFormat:it,getNumberFormat:Ke,setNumberFormat:$e,mergeNumberFormat:qe};function _(f){f.locale.value=l.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(L=>{f.mergeLocaleMessage(L,u.value[L])}),Object.keys(p.value).forEach(L=>{f.mergeDateTimeFormat(L,p.value[L])}),Object.keys(h.value).forEach(L=>{f.mergeNumberFormat(L,h.value[L])}),f.escapeParameter=T,f.fallbackFormat=k,f.fallbackRoot=y,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=g}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw re(G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=r.value=e.proxy.$i18n.__composer;t==="global"?(l.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,p.value=f.datetimeFormats.value,h.value=f.numberFormats.value):s&&_(f)}),St}const pi=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gi(e,t){const n=Object.create(null);return pi.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw re(G.UNEXPECTED_ERROR);const o=i.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,ta.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw re(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Do(),__INTLIFY_JIT_COMPILATION__?lr(To):lr(Eo),uo(Hs),fo(ar),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ie();e.__INTLIFY__=!0,Qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const na=({wrap:e,left:t=0,top:n=0,smooth:a=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:a?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function bi({el:e,wrap:t,block:n="start",inline:a="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:a});else{const{offsetLeft:s,offsetTop:r}=e;let o,l;n==="center"?l=r+(e.clientHeight-t.clientHeight)/2:l=r,a==="center"?o=s+(e.clientWidth-t.clientWidth)/2:o=s,na({wrap:t,left:o,top:l})}}const ra=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var De=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(De||{});class Ut{constructor(){za(this,"items");this.items=new Map}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,a)=>{t=`${t}${a===0?"":", "}${n}`}),t}}const Ei=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLefts:"close lefts",closeRights:"close rights",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ti=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),On=()=>{const e=Object.assign({"./lang/en.ts":Ei,"./lang/zh-CN.ts":Ti});function t(r,o){for(const l in r)if(r[l].default){const c=l.substring(l.lastIndexOf("/")+1,l.lastIndexOf("."));o[c]?o[c]={...r[c],...r[l].default}:o[c]=r[l].default}}const n=()=>{const r={};return t(e,r),r},a=i.inject("locales");return{getI18n:()=>{const r={...n(),...a.messages};return xt({useScope:"local",locale:a.locale,messages:r})}}};function yn(e){if(!In(e))throw new Error("Parameter was not an error")}function In(e){return Ni(e)==="[object Error]"||e instanceof Error}function Ni(e){return Object.prototype.toString.call(e)}function vi(e){let t,n="";if(e.length===0)t={};else if(In(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class pe extends Error{constructor(t,n){const a=[...arguments],{options:s,shortMessage:r}=vi(a);let o=r;if(s.cause&&(o=`${o}: ${s.cause.message}`),super(o),this.message=o,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const l=s.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return yn(t),t._cause&&In(t._cause)?t._cause:null}static fullStack(t){yn(t);const n=pe.cause(t);return n?`${t.stack}
21
- caused by: ${pe.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=pe.cause(t);return a&&Object.assign(n,pe.info(a)),t._info&&Object.assign(n,t._info),n}cause(){return pe.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const aa="0123456789ABCDEFGHJKMNPQRSTVWXYZ",_t=32,sa=0xffffffffffff,Oi=10,yi=16,ht=Object.freeze({source:"ulid"});function Ii(e){const t=e||Li(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const a=new Uint8Array(1);return n.getRandomValues(a),a[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new pe({info:{code:"PRNG_DETECT",...ht}},"Failed to find a reliable PRNG")}function Li(){return Ci()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function ki(e,t){let n="";for(;e>0;e--)n=Ai(t)+n;return n}function Si(e,t){if(isNaN(e))throw new pe({info:{code:"ENC_TIME_NAN",...ht}},`Time must be a number: ${e}`);if(e>sa)throw new pe({info:{code:"ENC_TIME_SIZE_EXCEED",...ht}},`Cannot encode a time larger than ${sa}: ${e}`);if(e<0)throw new pe({info:{code:"ENC_TIME_NEG",...ht}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new pe({info:{code:"ENC_TIME_TYPE",...ht}},`Time must be an integer: ${e}`);let n,a="";for(let s=t;s>0;s--)n=e%_t,a=aa.charAt(n)+a,e=(e-n)/_t;return a}function Ci(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Ai(e){let t=Math.floor(e()*_t);return t===_t&&(t=_t-1),aa.charAt(t)}function oa(e,t){const n=t||Ii(),a=isNaN(e)?Date.now():e;return Si(a,Oi)+ki(yi,n)}var Ln={exports:{}};Ln.exports,function(e){var t=function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(c,u){if(!r[c]){r[c]={};for(var p=0;p<c.length;p++)r[c][c.charAt(p)]=p}return r[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(p){return a.charAt(p)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return o(a,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),p=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);p[h*2]=N>>>8,p[h*2+1]=N%256}return p},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),p=0,h=u.length;p<h;p++)u[p]=c[p*2]*256+c[p*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return s.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return o(s,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,p){if(c==null)return"";var h,d,N={},y={},k="",C="",m="",g=2,T=3,b=2,S=[],E=0,I=0,w;for(w=0;w<c.length;w+=1)if(k=c.charAt(w),Object.prototype.hasOwnProperty.call(N,k)||(N[k]=T++,y[k]=!0),C=m+k,Object.prototype.hasOwnProperty.call(N,C))m=C;else{if(Object.prototype.hasOwnProperty.call(y,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,I==u-1?(I=0,S.push(p(E)),E=0):I++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete y[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),N[C]=T++,m=String(k)}if(m!==""){if(Object.prototype.hasOwnProperty.call(y,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,I==u-1?(I=0,S.push(p(E)),E=0):I++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete y[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;for(;;)if(E=E<<1,I==u-1){S.push(p(E));break}else I++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,p){var h=[],d=4,N=4,y=3,k="",C=[],m,g,T,b,S,E,I,w={val:p(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,S=Math.pow(2,2),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;I=n(T);break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;I=n(T);break;case 2:return""}for(h[3]=I,g=I,C.push(I);;){if(w.index>c)return"";for(T=0,S=Math.pow(2,y),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(I=T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),I=N-1,d--;break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),I=N-1,d--;break;case 2:return C.join("")}if(d==0&&(d=Math.pow(2,y),y++),h[I])k=h[I];else if(I===N)k=g+g.charAt(0);else return null;C.push(k),h[N++]=g+k.charAt(0),d--,g=k,d==0&&(d=Math.pow(2,y),y++)}}};return l}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Ln);var ia=Ln.exports;const wi=new TextEncoder,Pi=new TextDecoder("utf-8",{ignoreBOM:!0}),la={encode:e=>wi.encode(e),decode:e=>Pi.decode(e)},ca=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let a=0;a<256;a++)n[a]=`${t[a>>>4&15]}${t[a&15]}`;return n})(),Ri=(()=>{const e={};for(let t=0;t<256;t++){const n=ca[t],a=n[0],s=a.toUpperCase(),r=n[1],o=r.toUpperCase();e[n]=t,e[`${a}${o}`]=t,e[`${s}${r}`]=t,e[`${s}${o}`]=t}return e})(),kn={encode:e=>{let t="";for(let n=0,a=e.length;n<a;n++)t+=ca[e[n]];return t},encodeStr:e=>kn.encode(la.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let a=0;a<t;a++)n[a]=Ri[e.slice(a*2,a*2+2)];return n},decodeStr:e=>la.decode(kn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function pt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Mi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ua(e,...t){if(!Mi(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Sn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function fa(e,t){ua(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Vt=BigInt(2**32-1),da=BigInt(32);function ma(e,t=!1){return t?{h:Number(e&Vt),l:Number(e>>da&Vt)}:{h:Number(e>>da&Vt)|0,l:Number(e&Vt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Di=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),$t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Fi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Bt=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Cn(e){if(typeof e=="string"&&(e=xi(e)),!Fi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Ui{clone(){return this._cloneInto()}}function Vi(e){const t=(a,s)=>e(s).update(Cn(a)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=a=>e(a),t}class $i extends Ui{constructor(t,n,a={},s,r,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,pt(t),pt(n),pt(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(a.key!==void 0&&(a.key.length<1||a.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(a.salt!==void 0&&a.salt.length!==r)throw new Error(`salt must be ${r} byte long or undefined`);if(a.personalization!==void 0&&a.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=$t(this.buffer=new Uint8Array(t))}update(t){Sn(this);const{blockLen:n,buffer:a,buffer32:s}=this;t=Cn(t);const r=t.length,o=t.byteOffset,l=t.buffer;for(let c=0;c<r;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const u=Math.min(n-this.pos,r-c),p=o+c;if(u===n&&!(p%4)&&c+u<r){const h=new Uint32Array(l,p,Math.floor((r-c)/4));for(let d=0;c+n<r;d+=s.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}a.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Sn(this),fa(t,this);const{pos:n,buffer32:a}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(a,0,!0);const s=$t(t);this.get().forEach((r,o)=>s[o]=r)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const a=t.slice(0,n);return this.destroy(),a}_cloneInto(t){const{buffer:n,length:a,finished:s,destroyed:r,outputLen:o,pos:l}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=a,t.finished=s,t.destroyed=r,t.outputLen=o,t.buffer.set(n),t.pos=l,t}}const Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Fe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,16),n=n+a|0,t=Bt(t^n,12),{a:e,b:t,c:n,d:a}}function xe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,8),n=n+a|0,t=Bt(t^n,7),{a:e,b:t,c:n,d:a}}function _a(e,t,n,a,s,r,o,l,c,u,p,h,d,N,y,k,C,m,g,T){let b=0;for(let S=0;S<a;S++)({a:s,b:c,c:d,d:C}=Fe(s,c,d,C,n[t+e[b++]])),{a:s,b:c,c:d,d:C}=xe(s,c,d,C,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=Fe(r,u,N,m,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=xe(r,u,N,m,n[t+e[b++]]),{a:o,b:p,c:y,d:g}=Fe(o,p,y,g,n[t+e[b++]]),{a:o,b:p,c:y,d:g}=xe(o,p,y,g,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=Fe(l,h,k,T,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=xe(l,h,k,T,n[t+e[b++]]),{a:s,b:u,c:y,d:T}=Fe(s,u,y,T,n[t+e[b++]]),{a:s,b:u,c:y,d:T}=xe(s,u,y,T,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=Fe(r,p,k,C,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=xe(r,p,k,C,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=Fe(o,h,d,m,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=xe(o,h,d,m,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=Fe(l,c,N,g,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=xe(l,c,N,g,n[t+e[b++]]);return{v0:s,v1:r,v2:o,v3:l,v4:c,v5:u,v6:p,v7:h,v8:d,v9:N,v10:y,v11:k,v12:C,v13:m,v14:g,v15:T}}const ha=(()=>{const e=Array.from({length:16},(a,s)=>s),t=a=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>a[s]),n=[];for(let a=0,s=e;a<7;a++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class An extends $i{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,pt(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const a=Cn(t.key).slice();if(a.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=$t(a),this.flags=n|16}else if(t.context!==void 0){const a=new An({dkLen:32},32).update(t.context).digest();this.IV=$t(a),this.flags=n|64}else this.IV=Se.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Di(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,a,s=0){const{state:r,pos:o}=this,{h:l,l:c}=ma(BigInt(t),!0),{v0:u,v1:p,v2:h,v3:d,v4:N,v5:y,v6:k,v7:C,v8:m,v9:g,v10:T,v11:b,v12:S,v13:E,v14:I,v15:w}=_a(ha,s,a,7,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],Se[0],Se[1],Se[2],Se[3],l,c,o,n);r[0]=u^m,r[1]=p^g,r[2]=h^T,r[3]=d^b,r[4]=N^S,r[5]=y^E,r[6]=k^I,r[7]=C^w}compress(t,n=0,a=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||a)&&(s|=2),a||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||a){let r=this.state;this.state=this.IV.slice();for(let o,l=this.chunksDone+1;(a||!(l&1))&&(o=this.stack.pop());l>>=1)this.buffer32.set(o,0),this.buffer32.set(r,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),r=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(r)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:a,state:s,chunkPos:r,posOut:o,chunkOut:l,stack:c,chunksDone:u}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=a,t.chunkPos=r,t.chunksDone=u,t.posOut=o,t.chunkOut=l,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:a,buffer32:s,bufferOut32:r}=this,{h:o,l}=ma(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:p,v3:h,v4:d,v5:N,v6:y,v7:k,v8:C,v9:m,v10:g,v11:T,v12:b,v13:S,v14:E,v15:I}=_a(ha,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Se[0],Se[1],Se[2],Se[3],l,o,n,a);r[0]=c^C,r[1]=u^m,r[2]=p^g,r[3]=h^T,r[4]=d^b,r[5]=N^S,r[6]=y^E,r[7]=k^I,r[8]=t[0]^C,r[9]=t[1]^m,r[10]=t[2]^g,r[11]=t[3]^T,r[12]=t[4]^b,r[13]=t[5]^S,r[14]=t[6]^E,r[15]=t[7]^I,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Sn(this,!1),ua(t),this.finish();const{blockLen:n,bufferOut:a}=this;for(let s=0,r=t.length;s<r;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,r-s);t.set(a.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return pt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(fa(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bi=Vi(e=>new An(e)),pa=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ia.compressToEncodedURIComponent(t)},Wi=e=>{const n=ia.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},ga=(e,t,n)=>{const a=[];for(const r in n)r.startsWith("__")||a.push({key:r,value:n[r]});a.sort((r,o)=>{let l=0;return r.key>o.key?l=1:r.key<o.key&&(l=-1),l});const s=Bi(`${e}|${t}|${JSON.stringify(a)}`);return kn.encode(s)};function wn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Pn(e,t,n=".",a){if(!wn(t))return Pn(e,{},n,a);const s=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(a&&a(s,r,o,n)||(Array.isArray(o)&&Array.isArray(s[r])?s[r]=[...o,...s[r]]:wn(o)&&wn(s[r])?s[r]=Pn(o,s[r],(n?`${n}.`:"")+r.toString(),a):s[r]=o))}return s}function Gi(e){return(...t)=>t.reduce((n,a)=>Pn(n,a,"",e),{})}const Ne=Gi(),Rn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),a={};for(const s of n){const r=s.split("=");r[1]!==null&&r[1]!==void 0&&r[1]!==""&&(a[r[0]]=r[1])}return{path:t[0],query:a}}},W=i.ref([]),Wt=[],oe=i.ref([]),Ye=new Map,Gt=new Set,gt=i.ref(!0),ba="stacktab-active-tab",bt=()=>{const e=_e.useRouter(),t=()=>W.value.length,n=v=>{Wt.splice(0);for(const x of v){const O=Ne(x,{id:oa()}),D=pa(O),q=Rn(O.path),z=Ne(O,{closable:!0,refreshable:!0,iframe:!1}),ee=ga(O.id,q.path,q.query),ce={id:ee,tabId:O.id,path:q.path,query:Ne(q.query,{__tab:D})},Ve=new Ut;Ve.push(ce);const Ce={id:O.id,title:z.title,closable:z.closable,refreshable:z.refreshable,iframe:z.iframe,active:!1,pages:Ve};Wt.push(Ce),W.value.push(Ce),oe.value.push(ee)}const P=window.sessionStorage.getItem(ba);if(P!=null){const x=Ne({pages:new Ut},JSON.parse(P));let O=!1;for(const D of W.value)if(D.id===x.id){O=!0;break}O||W.value.push(x)}},a=v=>{for(const P of W.value)if(P.id===v)return!0;return!1},s=v=>{W.value.push(v)},r=v=>{for(const P of W.value)if(P.id===v)return P;return null},o=(v,P)=>{let x;const O=Wi(v.query.__tab),D=ga(O.id,v.path,v.query.valueOf()),q=v.query.__src;if(Ye.has(D))x=Ye.get(D);else{x=i.defineComponent({name:D,components:{DynamicComponent:P},setup(){return i.onActivated(()=>{g(),P.props=null}),i.onUnmounted(()=>{}),()=>i.createVNode("div",{class:"cache-page-wrapper",id:O.id},[i.createVNode(i.resolveComponent("dynamic-component"),{tId:O.id,pId:D},null)])}}),Ye.set(D,x);let z=null;for(const ce of i.unref(W))ce.active=!1,ce.id===O.id&&(z=ce);const ee={id:D,tabId:O.id,path:v.path,query:v.query};if(z===null){const ce=new Ut;ce.push(ee),z={id:O.id,title:O.title,closable:O.closable,refreshable:O.refreshable,iframe:O.iframe,url:decodeURIComponent(q),active:!0,pages:ce},W.value.push(z)}else z.active=!0,(z.pages.isEmpty()||z.pages.peek().id!==ee.id)&&z.pages.push(ee);E(z)}return b(D),x},l=v=>{let P="";for(let x=W.value.length-1;x>=0;x--)if(v===i.unref(W)[x].id){if(!i.unref(W)[x].closable)return v;for(const O of i.unref(W)[x].pages.list())C(O.id),m(O.id);i.unref(W)[x].pages.clear(),W.value.length>1&&i.unref(W)[x].active&&(x===0?P=i.unref(W)[x+1].id:P=i.unref(W)[x-1].id),i.unref(W).splice(x,1);break}return P!==""&&S(P),g(),P},c=()=>{const v=i.unref(W);for(let P=v.length-1;P>=0;P--)if(v[P].closable){for(const x of v[P].pages.list())C(x.id),m(x.id);i.unref(W)[P].pages.clear(),i.unref(W).splice(P,1)}for(const P of v)if(P.active){g();return}S(v[v.length-1].id)},u=v=>{const P=i.unref(W);let x;for(let O=P.length-1;O>=0;O--)if(P[O].id===v)x=P[O];else if(P[O].closable&&P[O].id!==v){for(const D of P[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}x.active?g():S(v)},p=v=>{let P=-1;const x=i.unref(W);for(let O=0;O<x.length;O++)if(x[O].id===v){P=O-1;break}for(let O=P;O>=0;O--)if(x[O].closable){for(const D of x[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}for(const O of x)if(O.active){g();return}S(x[0].id)},h=v=>{const P=i.unref(W);let x=P.length;for(let O=0;O<P.length;O++)if(P[O].id===v){x=O+1;break}for(let O=P.length-1;O>=x;O--)if(P[O].closable){for(const D of P[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}for(const O of P)if(O.active){g();return}S(P[P.length-1].id)},d=v=>{var P;for(const x of i.unref(W))if(x.id===v){const O=(P=x.pages.peek())==null?void 0:P.id;for(let D=oe.value.length-1;D>=0;D--)if(oe.value[D]===O){oe.value.splice(D,1),x.active&&(gt.value=!1);break}break}},N=()=>{const v=new Set;W.value.forEach(P=>{v.add(P.pages.peek().id)});for(let P=oe.value.length-1;P>=0;P--){const x=oe.value[P];v.has(x)&&oe.value.splice(P,1)}gt.value=!1},y=(v,P)=>{Ye.set(v,P)},k=v=>Ye.get(v),C=v=>{Ye.delete(v)},m=v=>{Gt.add(v)},g=()=>{for(let v=oe.value.length-1;v>=0;v--)Gt.has(oe.value[v])&&i.unref(oe).splice(v,1);Gt.clear()},T=v=>{for(let P=oe.value.length-1;P>=0;P--)v===oe.value[P]&&i.unref(oe).splice(P,1)},b=v=>{new Set(oe.value).has(v)||oe.value.push(v)},S=(v,P=!0)=>{for(let x=W.value.length-1;x>=0;x--){const O=W.value[x];if(O.id===v){if(O.active)break;if(O.active=!0,gt.value=!1,E(O),P){const D=O.pages.peek();e.push({path:D.path,query:D.query})}}else W.value[x].active=!1}},E=v=>{window.sessionStorage.setItem(ba,JSON.stringify(v))},I=()=>{w(),i.unref(W).push(...Wt),S(Wt[0].id)},w=()=>{i.unref(W).splice(0),Ye.clear(),Gt.clear(),i.unref(oe).splice(0),gt.value=!0};return{tabs:W,caches:oe,pageShown:gt,initial:n,size:t,active:S,destroy:w,reset:I,addCache:b,removeCache:T,getTab:r,addTab:s,removeTab:l,removeAllTabs:c,removeLeftTabs:p,removeRightTabs:h,removeOtherTabs:u,hasTab:a,addPage:o,addComponent:y,getComponent:k,removeComponent:C,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:N}},Hi={class:"stack-tab__contextmenu-item"},Ue=i.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",Hi,[i.createElementVNode("div",{class:i.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),i.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(t.title),33)]))}}),ji={key:0,class:"divider div-transparent"},Yi=((e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n})(i.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=On().getI18n(),a=i.ref(),s=i.reactive({left:t.left,top:t.top}),{removeTab:r,removeAllTabs:o,removeLeftTabs:l,removeRightTabs:c,refreshTab:u,refreshAllTabs:p,removeOtherTabs:h}=bt();return i.onMounted(()=>{const d=a.value?a.value.clientWidth:0,N=window.innerWidth;s.left+d>N&&(s.left=N-d-5)}),(d,N)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"contextmenu",ref:a,class:"stack-tab__contextmenu",style:i.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":i.unref(ra)(".stack-tab,.stack-tab *")})},[i.createVNode(Ue,{icon:"stack-tab__icon-reload svg-mask",title:i.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=y=>i.unref(u)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-reload-all svg-mask",title:i.unref(n)("VueStackTab.reloadAll"),onClick:i.unref(p)},null,8,["title","onClick"]),i.createVNode(Ue,{icon:"stack-tab__icon-close svg-mask",title:i.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=y=>i.unref(r)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-lefts svg-mask",title:i.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=y=>i.unref(l)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-rights svg-mask",title:i.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=y=>i.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-others svg-mask",title:i.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=y=>i.unref(h)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-all svg-mask",title:i.unref(n)("VueStackTab.closeAll"),onClick:i.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(i.openBlock(),i.createElementBlock("div",ji)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.contextMenu,(y,k)=>(i.openBlock(),i.createBlock(Ue,{key:k,icon:y.icon,title:y.title,disabled:y.disabled(d.tabItem)?"disabled":null,onClick:C=>!y.disabled&&y.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-716ce427"]]),Xi=()=>{const e=i.reactive({item:{},index:-1,left:0,top:0,max:0}),t=i.ref(!1);i.onMounted(()=>{document.addEventListener("click",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a)});const n=async(s,r,o,l)=>{t.value=!1,await i.nextTick(()=>{const{clientY:c,clientX:u}=s;t.value=!0,Object.assign(e,{item:r,index:o,top:c,left:u,max:l})})},a=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},zi={class:"stack-tab__item-title"},Ki=["title"],qi=["title"],Zi=i.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:a}=On().getI18n(),s=i.ref(),r=e;i.watch(()=>r.item.active,u=>{u&&c()});const o=i.computed(()=>r.item.title||a("undefined")),l=()=>{n("close",r.item)},c=()=>{n("active",r.item,s)};return(u,p)=>(i.openBlock(),i.createElementBlock("li",{ref_key:"curtab",ref:s,class:i.normalizeClass(["stack-tab__item",{"is-active":u.item.active,"is-icon":u.item.closable}]),onClick:c},[i.createElementVNode("div",zi,[i.createElementVNode("div",{class:"stack-tab__item-title-content",title:o.value},i.toDisplayString(o.value),9,Ki)]),u.item.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:i.unref(a)("VueStackTab.close"),onClick:i.withModifiers(l,["stop"])},null,8,qi)):i.createCommentVNode("",!0)],2))}});var Xe=[],Ji=function(){return Xe.some(function(e){return e.activeTargets.length>0})},Qi=function(){return Xe.some(function(e){return e.skippedTargets.length>0})},Ea="ResizeObserver loop completed with undelivered notifications.",el=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ea}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ea),window.dispatchEvent(e)},Et;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Et||(Et={}));var ze=function(e){return Object.freeze(e)},tl=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ze(this)}return e}(),Ta=function(){function e(t,n,a,s){return this.x=t,this.y=n,this.width=a,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,a=t.y,s=t.top,r=t.right,o=t.bottom,l=t.left,c=t.width,u=t.height;return{x:n,y:a,top:s,right:r,bottom:o,left:l,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Mn=function(e){return e instanceof SVGElement&&"getBBox"in e},Na=function(e){if(Mn(e)){var t=e.getBBox(),n=t.width,a=t.height;return!n&&!a}var s=e,r=s.offsetWidth,o=s.offsetHeight;return!(r||o||e.getClientRects().length)},va=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},nl=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},Tt=typeof window<"u"?window:{},Ht=new WeakMap,Oa=/auto|scroll/,rl=/^tb|vertical/,al=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),ve=function(e){return parseFloat(e||"0")},at=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new tl((n?t:e)||0,(n?e:t)||0)},ya=ze({devicePixelContentBoxSize:at(),borderBoxSize:at(),contentBoxSize:at(),contentRect:new Ta(0,0,0,0)}),Ia=function(e,t){if(t===void 0&&(t=!1),Ht.has(e)&&!t)return Ht.get(e);if(Na(e))return Ht.set(e,ya),ya;var n=getComputedStyle(e),a=Mn(e)&&e.ownerSVGElement&&e.getBBox(),s=!al&&n.boxSizing==="border-box",r=rl.test(n.writingMode||""),o=!a&&Oa.test(n.overflowY||""),l=!a&&Oa.test(n.overflowX||""),c=a?0:ve(n.paddingTop),u=a?0:ve(n.paddingRight),p=a?0:ve(n.paddingBottom),h=a?0:ve(n.paddingLeft),d=a?0:ve(n.borderTopWidth),N=a?0:ve(n.borderRightWidth),y=a?0:ve(n.borderBottomWidth),k=a?0:ve(n.borderLeftWidth),C=h+u,m=c+p,g=k+N,T=d+y,b=l?e.offsetHeight-T-e.clientHeight:0,S=o?e.offsetWidth-g-e.clientWidth:0,E=s?C+g:0,I=s?m+T:0,w=a?a.width:ve(n.width)-E-S,v=a?a.height:ve(n.height)-I-b,P=w+C+S+g,x=v+m+b+T,O=ze({devicePixelContentBoxSize:at(Math.round(w*devicePixelRatio),Math.round(v*devicePixelRatio),r),borderBoxSize:at(P,x,r),contentBoxSize:at(w,v,r),contentRect:new Ta(h,c,w,v)});return Ht.set(e,O),O},La=function(e,t,n){var a=Ia(e,n),s=a.borderBoxSize,r=a.contentBoxSize,o=a.devicePixelContentBoxSize;switch(t){case Et.DEVICE_PIXEL_CONTENT_BOX:return o;case Et.BORDER_BOX:return s;default:return r}},sl=function(){function e(t){var n=Ia(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ze([n.borderBoxSize]),this.contentBoxSize=ze([n.contentBoxSize]),this.devicePixelContentBoxSize=ze([n.devicePixelContentBoxSize])}return e}(),ka=function(e){if(Na(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ol=function(){var e=1/0,t=[];Xe.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(u){var p=new sl(u.target),h=ka(u.target);l.push(p),u.lastReportedSize=La(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,a=t;n<a.length;n++){var s=a[n];s()}return e},Sa=function(e){Xe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(ka(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},il=function(){var e=0;for(Sa(e);Ji();)e=ol(),Sa(e);return Qi()&&el(),e>0},Dn,Ca=[],ll=function(){return Ca.splice(0).forEach(function(e){return e()})},cl=function(e){if(!Dn){var t=0,n=document.createTextNode(""),a={characterData:!0};new MutationObserver(function(){return ll()}).observe(n,a),Dn=function(){n.textContent="".concat(t?t--:t++)}}Ca.push(e),Dn()},ul=function(e){cl(function(){requestAnimationFrame(e)})},jt=0,fl=function(){return!!jt},dl=250,ml={attributes:!0,characterData:!0,childList:!0,subtree:!0},Aa=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],wa=function(e){return e===void 0&&(e=0),Date.now()+e},Fn=!1,_l=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=dl),!Fn){Fn=!0;var a=wa(t);ul(function(){var s=!1;try{s=il()}finally{if(Fn=!1,t=a-wa(),!fl())return;s?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,ml)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Aa.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Aa.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xn=new _l,Pa=function(e){!jt&&e>0&&xn.start(),jt+=e,!jt&&xn.stop()},hl=function(e){return!Mn(e)&&!nl(e)&&getComputedStyle(e).display==="inline"},pl=function(){function e(t,n){this.target=t,this.observedBox=n||Et.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=La(this.target,this.observedBox,!0);return hl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),gl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yt=new WeakMap,Ra=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xt=function(){function e(){}return e.connect=function(t,n){var a=new gl(t,n);Yt.set(t,a)},e.observe=function(t,n,a){var s=Yt.get(t),r=s.observationTargets.length===0;Ra(s.observationTargets,n)<0&&(r&&Xe.push(s),s.observationTargets.push(new pl(n,a&&a.box)),Pa(1),xn.schedule())},e.unobserve=function(t,n){var a=Yt.get(t),s=Ra(a.observationTargets,n),r=a.observationTargets.length===1;s>=0&&(r&&Xe.splice(Xe.indexOf(a),1),a.observationTargets.splice(s,1),Pa(-1))},e.disconnect=function(t){var n=this,a=Yt.get(t);a.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),a.activeTargets.splice(0,a.activeTargets.length)},e}(),Ma=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.");Xt.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(!va(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.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(!va(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.unobserve(this,t)},e.prototype.disconnect=function(){Xt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const bl=["disabled","title"],El={key:1,class:"stack-tab__button"},Un=i.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(i.openBlock(),i.createElementBlock("div",El,[i.renderSlot(t.$slots,"icon")])):i.createCommentVNode("",!0)],10,bl))}}),Tl=i.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=i.ref(null),a=i.ref(null),s=i.ref(null),r=i.ref(!1),o=i.ref(!1),l=i.ref(!1),c=i.ref(!0),u=i.ref(),p=e,h=i.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=i.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});i.watch(h,O=>{N(O)});const N=O=>{o.value=O.scrollLeft<=10,l.value=O.clientWidth+O.scrollLeft-O.scrollWidth>=-10,c.value=O.scrollWidth!==O.clientWidth},y=i.computed(()=>h.scrollWidth>h.clientWidth),k=i.computed(()=>{if(!y.value)return 0;const{clientWidth:O,scrollWidth:D}=h;return O/D*O}),C=i.computed(()=>{if(!y.value)return 0;const{clientWidth:O,scrollWidth:D,scrollLeft:q}=h;return(O-k.value)*(q/(D-O))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:O,scrollWidth:D,scrollLeft:q}=n.value;Object.assign(h,{clientWidth:O,scrollWidth:D,scrollLeft:q})},g=new Ma(()=>{var D;m();const O=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");O&&(x(O)||P(O))}),T=new Ma(()=>{var O;if(!y.value){const D=(O=n.value)==null?void 0:O.querySelector(".stack-tab__item.is-active");D&&(x(D)||P(D))}m()}),b=(O,D=!0)=>{na({wrap:n.value,left:O,smooth:D})},S=O=>{b(n.value.scrollLeft+O)},E=O=>{const D=O.deltaY<0;b(n.value.scrollLeft+(D?-p.space:p.space))},I=O=>{var D;Object.assign(d,{startPageX:O.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:C.value,thumbLeft:C.value}),r.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",v)},w=O=>{const{clientWidth:D,scrollWidth:q}=h;let z=d.startThumbLeft+O.pageX-d.startPageX;const ee=D-k.value;z<0?z=0:z>ee&&(z=ee),d.thumbLeft=z,b(z*(q-D)/(D-k.value),!1),O.preventDefault()},v=O=>{r.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),O.preventDefault()};i.onMounted(()=>{var D;g.observe(u.value);const O=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");T.observe(O)}),i.onUnmounted(()=>{g.disconnect(),T.disconnect()});const P=O=>{bi({el:O,wrap:n,block:"end",inline:"center"})},x=O=>{if(!y.value)return!0;const D=O.offsetLeft,q=n.value.scrollLeft;return!(D<q||D+O.clientWidth>q+n.value.clientWidth)};return t({scrollIntoView:P,isInView:x}),(O,D)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[c.value?(i.openBlock(),i.createBlock(Un,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:D[0]||(D[0]=q=>!o.value&&S(-1*O.space))},null,8,["disabled"])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:i.withModifiers(E,["prevent"])},[i.createElementVNode("div",{ref_key:"container",ref:n,class:i.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!o.value&&l.value,"stack-tab__shadow-inset-right":!l.value&&o.value,"stack-tab__shadow-inset-all":!o.value&&!l.value}]),onScrollPassive:m},[i.renderSlot(O.$slots,"default")],34),i.withDirectives(i.createElementVNode("div",{ref_key:"bar",ref:a,class:i.normalizeClass(["stack-tab__scrollbar",{"is-dragging":r.value}])},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":r.value}]),style:i.normalizeStyle({width:`${k.value}px`,transform:`translateX(${C.value}px)`}),onMousedown:i.withModifiers(I,["prevent"])},null,38)],2),[[i.vShow,y.value]])],544),c.value?(i.openBlock(),i.createBlock(Un,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:l.value,onClick:D[1]||(D[1]=q=>!l.value&&S(O.space))},null,8,["disabled"])):i.createCommentVNode("",!0)],64))}}),Nl={class:"stack-tab__header"},vl=i.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:De.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=On().getI18n(),a=i.inject("maximum"),s=t,r=i.ref(),{shown:o,contextMenuData:l,showContextMenu:c}=Xi(),u=e,{removeTab:p,active:h,tabs:d}=bt(),N=i.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),y=i.computed(()=>u.tabScrollMode===De.BOTH||u.tabScrollMode===De.BUTTON),k=u.tabScrollMode===De.BOTH||u.tabScrollMode===De.WHEEL,C=g=>{if(g.closable){const T=p(g.id);s("active",T)}o.value=!1},m=(g,T)=>{r.value&&(r.value.isInView(T.value)||r.value.scrollIntoView(T.value),h(g.id),s("active",g.id))};return(g,T)=>(i.openBlock(),i.createElementBlock("div",Nl,[i.renderSlot(g.$slots,"leftButton"),i.createVNode(Tl,{ref_key:"scroll",ref:r,space:g.space,"is-scroll-wheel":i.unref(k),"is-scroll-button":y.value},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,i.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(d),(b,S)=>(i.openBlock(),i.createBlock(Zi,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:i.withModifiers(E=>i.unref(c)(E,b,S,i.unref(d).length),["prevent"]),onMouseup:i.withModifiers(E=>C(b),["middle","prevent"]),onClose:C,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),i.renderSlot(g.$slots,"rightButton"),i.createVNode(Un,{"icon-class":i.unref(a)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:i.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=b=>a.value=!i.unref(a))},null,8,["icon-class","title"]),i.createVNode(i.Transition,{name:"stack-tab-zoom",appear:""},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(Yi,{key:"tabMenuTrans",left:i.unref(l).left,top:i.unref(l).top,"tab-item":i.unref(l).item,max:i.unref(l).max,index:i.unref(l).index},null,8,["left","top","tab-item","max","index"])):i.createCommentVNode("",!0)]),_:1})]))}});var Ol=typeof global=="object"&&global&&global.Object===Object&&global,yl=typeof self=="object"&&self&&self.Object===Object&&self,Da=Ol||yl||Function("return this")(),zt=Da.Symbol,Fa=Object.prototype,Il=Fa.hasOwnProperty,Ll=Fa.toString,Nt=zt?zt.toStringTag:void 0;function kl(e){var t=Il.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var a=!0}catch{}var s=Ll.call(e);return a&&(t?e[Nt]=n:delete e[Nt]),s}var Sl=Object.prototype,Cl=Sl.toString;function Al(e){return Cl.call(e)}var wl="[object Null]",Pl="[object Undefined]",xa=zt?zt.toStringTag:void 0;function Rl(e){return e==null?e===void 0?Pl:wl:xa&&xa in Object(e)?kl(e):Al(e)}function Ml(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function Fl(e){return typeof e=="symbol"||Ml(e)&&Rl(e)==Dl}var xl=/\s/;function Ul(e){for(var t=e.length;t--&&xl.test(e.charAt(t)););return t}var Vl=/^\s+/;function $l(e){return e&&e.slice(0,Ul(e)+1).replace(Vl,"")}function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ua=NaN,Bl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Gl=/^0o[0-7]+$/i,Hl=parseInt;function Va(e){if(typeof e=="number")return e;if(Fl(e))return Ua;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$l(e);var n=Wl.test(e);return n||Gl.test(e)?Hl(e.slice(2),n?2:8):Bl.test(e)?Ua:+e}var Vn=function(){return Da.Date.now()},jl="Expected a function",Yl=Math.max,Xl=Math.min;function zl(e,t,n){var a,s,r,o,l,c,u=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(jl);t=Va(t)||0,Kt(n)&&(p=!!n.leading,h="maxWait"in n,r=h?Yl(Va(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d);function N(E){var I=a,w=s;return a=s=void 0,u=E,o=e.apply(w,I),o}function y(E){return u=E,l=setTimeout(m,t),p?N(E):o}function k(E){var I=E-c,w=E-u,v=t-I;return h?Xl(v,r-w):v}function C(E){var I=E-c,w=E-u;return c===void 0||I>=t||I<0||h&&w>=r}function m(){var E=Vn();if(C(E))return g(E);l=setTimeout(m,k(E))}function g(E){return l=void 0,d&&a?N(E):(a=s=void 0,o)}function T(){l!==void 0&&clearTimeout(l),u=0,a=c=s=l=void 0}function b(){return l===void 0?o:g(Vn())}function S(){var E=Vn(),I=C(E);if(a=arguments,s=this,c=E,I){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(m,t),N(c)}return l===void 0&&(l=setTimeout(m,t)),o}return S.cancel=T,S.flush=b,S}var Kl="Expected a function";function ql(e,t,n){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Kl);return Kt(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),zl(e,t,{leading:a,maxWait:t,trailing:s})}let $a;const Ba=()=>{const e=_e.useRouter(),{active:t,hasTab:n,pageShown:a,reset:s}=bt();return{openNewTab:ql(async l=>{if(!a.value)return;const c=Ne(l,{refreshable:!0,closable:!0,iframe:!1});if(n(c.id)){t(c.id);return}c.id||(c.id=oa());const u=pa(c);let p=Ne({__tab:u},l.query),h;if(l.iframe){const d=encodeURIComponent(l.path);h=$a,p.__src=d}else{const d=Rn(l.path);h=d.path,p=Ne(d.query,p)}return e.push({path:h,query:p}),c.id},500),setIFramePath:l=>{$a=l},active:t,reset:s}},Zl={class:"stack-tab__container"},Jl=["src"],Wa=i.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:De.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:()=>({locale:"zh-CN",messages:{}})},messages:{},reloadable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},space:{default:300},iframePath:{}},emits:["onActive"],setup(e,{emit:t}){const{tabs:n,pageShown:a,caches:s,addPage:r,destroy:o,initial:l}=bt(),c=t,u=e;i.provide("locales",{...u.i18n});const p=i.ref(!1);i.provide("maximum",p);const{setIFramePath:h}=Ba();h(u.iframePath),i.onBeforeMount(()=>{l(u.defaultTabs)});const d=(k,C)=>r(k,C),N=k=>{c("onActive",k)};i.onUnmounted(()=>{o()});const y=_e.useRouter();return i.watch(()=>y.currentRoute.value.fullPath,()=>{a.value=!0}),(k,C)=>{const m=i.resolveComponent("router-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:i.normalizeStyle({width:k.width,height:k.height,"z-index":p.value?i.unref(ra)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[i.createVNode(vl,{space:k.space,onActive:N,"tab-transition":k.tabTransition,max:k.max},{leftButton:i.withCtx(()=>[i.renderSlot(k.$slots,"leftButton")]),rightButton:i.withCtx(()=>[i.renderSlot(k.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),i.createElementVNode("div",Zl,[i.createVNode(m,null,{default:i.withCtx(({Component:g,route:T})=>[i.createVNode(i.Transition,{name:k.pageTransition,appear:"",onAfterLeave:C[0]||(C[0]=b=>a.value=!0)},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.KeepAlive,{include:i.unref(s)},[i.unref(a)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d(T,g)),{key:T.fullPath})):i.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),i.createVNode(i.TransitionGroup,{name:k.pageTransition,appear:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).filter(g=>g.iframe),g=>i.withDirectives((i.openBlock(),i.createElementBlock("iframe",{key:g.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(g.url??"")?"about:blank":g.url,frameborder:"0"},null,8,Jl)),[[i.vShow,g.active&&i.unref(a)]])),128))]),_:1},8,["name"])])],6)}}}),$n=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ga=typeof TextEncoder=="function"?new TextEncoder:void 0,vt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,a)=>t[n]=a),t})(vt);const Oe=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Ql=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Ha=typeof btoa=="function"?e=>btoa(e):$n?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,a,s,r="";const o=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|a<<8|s,r+=vt[t>>18&63]+vt[t>>12&63]+vt[t>>6&63]+vt[t&63]}return o?r.slice(0,o-3)+"===".substring(o):r},ec=$n?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,s=e.length;a<s;a+=4096)n.push(Oe.apply(null,e.subarray(a,a+4096)));return Ha(n.join(""))},tc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Oe(192|t>>>6)+Oe(128|t&63):Oe(224|t>>>12&15)+Oe(128|t>>>6&63)+Oe(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Oe(240|t>>>18&7)+Oe(128|t>>>12&63)+Oe(128|t>>>6&63)+Oe(128|t&63)}},nc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rc=e=>e.replace(nc,tc),ja=$n?e=>Buffer.from(e,"utf8").toString("base64"):Ga?e=>ec(Ga.encode(e)):e=>Ha(rc(e)),ac=(e,t=!1)=>t?Ql(ja(e)):ja(e),sc=e=>{const a=`<?xml version="1.0" encoding="UTF-8"?>
20
+ */const Mo="9.10.1";function Do(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ie().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ie().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ie().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ie().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ie().__INTLIFY_PROD_DEVTOOLS__=!1)}const Rr=le.__EXTEND_POINT__,ke=Qt(Rr),Z={FALLBACK_TO_ROOT:Rr,NOT_SUPPORTED_PRESERVE:ke(),NOT_SUPPORTED_FORMATTER:ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:ke(),NOT_FOUND_PARENT_SCOPE:ke(),IGNORE_OBJ_FLATTEN:ke(),NOTICE_DROP_ALLOW_COMPOSITION:ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ke()},Fo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ue(e,...t){return Jt(Fo[e],...t)}const Mr=ae.__EXTEND_POINT__,fe=Qt(Mr),H={UNEXPECTED_RETURN_TYPE:Mr,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSTALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSTALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:fe(),__EXTEND_POINT__:fe()};function re(e,...t){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:xo,args:t}:void 0)}const xo={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},mn=be("__translateVNode"),_n=be("__datetimeParts"),hn=be("__numberParts"),je=be("__enableEmitter"),ft=be("__disableEmitter"),Dr=be("__setPluralRules"),Fr=be("__injectWithOption"),pn=be("__dispose");function dt(e){if(!G(e))return e;for(const t in e)if(At(e,t))if(!t.includes("."))G(e[t])&&dt(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]in s||(s[n[o]]={}),!G(s[n[o]])){process.env.NODE_ENV!=="production"&&(ue(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),r=!0;break}s=s[n[o]]}r||(s[n[a]]=e[t],delete e[t]),G(s[n[a]])&&dt(s[n[a]])}return e}function Ft(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=$(n)?n:K(a)?{}:{[e]:{}};if(K(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(o[c]=o[c]||{},Pt(u,o[c])):Pt(u,o)}else M(l)&&Pt(JSON.parse(l),o)}),s==null&&r)for(const l in o)At(o,l)&&dt(o[l]);return o}function xr(e){return e.type}function Ur(e,t,n){let a=G(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ft(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(G(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(G(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vr(e){return i.createVNode(i.Text,null,e,0)}const $r="__INTLIFY_META__",Br=()=>[],Uo=()=>!1;let Wr=0;function Hr(e){return(t,n,a,s)=>e(n,a,i.getCurrentInstance()||void 0,s)}const Vo=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=xr(e)[$r])?{[$r]:t}:null};function gn(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,o=he?i.ref:i.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Xn(ue(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=B(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:tt),p=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ft(u.value,e)),d=o($(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o($(e.numberFormats)?e.numberFormats:{[u.value]:{}});let y=n?n.missingWarn:B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=X(e.missing)?e.missing:null,T=X(e.missing)?Hr(e.missing):null,b=X(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const I=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,v;v=(()=>{s&&mr(null);const A={version:Mo,locale:u.value,fallbackLocale:p.value,messages:h.value,modifiers:I,pluralRules:w,missing:T===null?void 0:T,missingWarn:y,fallbackWarn:k,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=$(v)?v.__datetimeFormatters:void 0,A.__numberFormatters=$(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=$(v)?v.__v_emitter:void 0);const R=po(A);return s&&mr(R),R})(),ut(v,u.value,p.value);function x(){return[u.value,p.value,h.value,d.value,N.value]}const O=i.computed({get:()=>u.value,set:A=>{u.value=A,v.locale=u.value}}),D=i.computed({get:()=>p.value,set:A=>{p.value=A,v.fallbackLocale=p.value,ut(v,u.value,A)}}),q=i.computed(()=>h.value),z=i.computed(()=>d.value),ee=i.computed(()=>N.value);function ce(){return X(b)?b:null}function Ve(A){b=A,v.postTranslation=A}function Ce(){return g}function Ot(A){A!==null&&(T=Hr(A)),g=A,v.missing=T}function yt(A,R){return A!=="translate"||!R.resolvedMessage}const ge=(A,R,Y,Q,Be,Zt)=>{x();let lt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=n?ho():void 0),lt=A(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ne(lt)&&lt===Rt||Y==="translate exists"&&!lt){const[Ze,Ac]=R();if(process.env.NODE_ENV!=="production"&&n&&M(Ze)&&yt(Y,Ac)&&(C&&(Dt(k,Ze)||hr(y,Ze))&&(ue(Z.FALLBACK_TO_ROOT,{key:Ze,type:Y}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Xa}=v;Xa&&C&&Xa.emit("fallback",{type:Y,key:Ze,to:"global",groupId:`${Y}:${Ze}`})}return n&&C?Q(n):Be(Ze)}else{if(Zt(lt))return lt;throw re(H.UNEXPECTED_RETURN_TYPE)}};function st(...A){return ge(R=>Reflect.apply(Nr,null,[R,...A]),()=>cn(...A),"translate",R=>Reflect.apply(R.t,R,[...A]),R=>R,R=>M(R))}function ot(...A){const[R,Y,Q]=A;if(Q&&!G(Q))throw re(H.INVALID_ARGUMENT);return st(R,Y,se({resolvedMessage:!0},Q||{}))}function It(...A){return ge(R=>Reflect.apply(Lr,null,[R,...A]),()=>un(...A),"datetime format",R=>Reflect.apply(R.d,R,[...A]),()=>Mt,R=>M(R))}function Lt(...A){return ge(R=>Reflect.apply(Cr,null,[R,...A]),()=>fn(...A),"number format",R=>Reflect.apply(R.n,R,[...A]),()=>Mt,R=>M(R))}function kt(A){return A.map(R=>M(R)||ne(R)||B(R)?Vr(String(R)):R)}const Ke={normalize:kt,interpolate:A=>A,type:"vnode"};function $e(...A){return ge(R=>{let Y;const Q=R;try{Q.processor=Ke,Y=Reflect.apply(Nr,null,[Q,...A])}finally{Q.processor=null}return Y},()=>cn(...A),"translate",R=>R[mn](...A),R=>[Vr(R)],R=>K(R))}function qe(...A){return ge(R=>Reflect.apply(Cr,null,[R,...A]),()=>fn(...A),"number format",R=>R[hn](...A),Br,R=>M(R)||K(R))}function St(...A){return ge(R=>Reflect.apply(Lr,null,[R,...A]),()=>un(...A),"datetime format",R=>R[_n](...A),Br,R=>M(R)||K(R))}function _(A){w=A,v.pluralRules=w}function f(A,R){return ge(()=>{if(!A)return!1;const Y=M(R)?R:u.value,Q=V(Y),Be=v.messageResolver(Q,A);return l?Be!=null:Me(Be)||me(Be)||M(Be)},()=>[A],"translate exists",Y=>Reflect.apply(Y.te,Y,[A,R]),Uo,Y=>B(Y))}function L(A){let R=null;const Y=ar(v,p.value,u.value);for(let Q=0;Q<Y.length;Q++){const Be=h.value[Y[Q]]||{},Zt=v.messageResolver(Be,A);if(Zt!=null){R=Zt;break}}return R}function F(A){const R=L(A);return R??(n?n.tm(A)||{}:{})}function V(A){return h.value[A]||{}}function j(A,R){if(r){const Y={[A]:R};for(const Q in Y)At(Y,Q)&&dt(Y[Q]);R=Y[A]}h.value[A]=R,v.messages=h.value}function ye(A,R){h.value[A]=h.value[A]||{};const Y={[A]:R};if(r)for(const Q in Y)At(Y,Q)&&dt(Y[Q]);R=Y[A],Pt(R,h.value[A]),v.messages=h.value}function Ae(A){return d.value[A]||{}}function Ic(A,R){d.value[A]=R,v.datetimeFormats=d.value,Sr(v,A,R)}function Lc(A,R){d.value[A]=se(d.value[A]||{},R),v.datetimeFormats=d.value,Sr(v,A,R)}function kc(A){return N.value[A]||{}}function Sc(A,R){N.value[A]=R,v.numberFormats=N.value,wr(v,A,R)}function Cc(A,R){N.value[A]=se(N.value[A]||{},R),v.numberFormats=N.value,wr(v,A,R)}Wr++,n&&he&&(i.watch(n.locale,A=>{c&&(u.value=A,v.locale=A,ut(v,u.value,p.value))}),i.watch(n.fallbackLocale,A=>{c&&(p.value=A,v.fallbackLocale=A,ut(v,u.value,p.value))}));const te={id:Wr,locale:O,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,p.value=n.fallbackLocale.value,ut(v,u.value,p.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:q,get modifiers(){return I},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(A){y=A,v.missingWarn=y},get fallbackWarn(){return k},set fallbackWarn(A){k=A,v.fallbackWarn=k},get fallbackRoot(){return C},set fallbackRoot(A){C=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,v.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(A){S=A,v.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,v.escapeParameter=A},t:st,getLocaleMessage:V,setLocaleMessage:j,mergeLocaleMessage:ye,getPostTranslationHandler:ce,setPostTranslationHandler:Ve,getMissingHandler:Ce,setMissingHandler:Ot,[Dr]:_};return te.datetimeFormats=z,te.numberFormats=ee,te.rt=ot,te.te=f,te.tm=F,te.d=It,te.n=Lt,te.getDateTimeFormat=Ae,te.setDateTimeFormat=Ic,te.mergeDateTimeFormat=Lc,te.getNumberFormat=kc,te.setNumberFormat=Sc,te.mergeNumberFormat=Cc,te[Fr]=a,te[mn]=$e,te[_n]=St,te[hn]=qe,process.env.NODE_ENV!=="production"&&(te[je]=A=>{v.__v_emitter=A},te[ft]=()=>{v.__v_emitter=void 0}),te}function $o(e){const t=M(e.locale)?e.locale:tt,n=M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,s=B(e.silentTranslationWarn)||we(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=B(e.silentFallbackWarn)||we(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=B(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=$(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=X(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=B(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let y=e.messages;if($(e.sharedMessages)){const E=e.sharedMessages;y=Object.keys(E).reduce((w,v)=>{const P=w[v]||(w[v]={});return se(P,E[v]),w},y||{})}const{__i18n:k,__root:C,__injectWithOption:m}=e,g=e.datetimeFormats,T=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:y,flatJson:b,datetimeFormats:g,numberFormats:T,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:p,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:S,__i18n:k,__root:C,__injectWithOption:m}}function bn(e={},t){{const n=gn($o(e)),{__extender:a}=e,s={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return B(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=B(r)?!r:r},get silentFallbackWarn(){return B(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=B(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,l,c]=r,u={};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:K(l)?p=l:$(l)&&(h=l),K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,l,c]=r,u={plural:1};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:ne(l)?u.plural=l:K(l)?p=l:$(l)&&(h=l),M(c)?u.locale=c:K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=r=>{const o=n;o[je]&&o[je](r)},s.__disableEmitter=()=>{const r=n;r[ft]&&r[ft]()}),s}}const En={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bo({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===i.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function Gr(e){return i.Fragment}const Tn=i.defineComponent({name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ne(e)||!isNaN(e)}},En),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const l=Bo(t,r),c=s[mn](e.keypath,l,o),u=se({},a),p=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(p,u,c)}}});function Wo(e){return K(e)&&!M(e[0])}function jr(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:G(e.format)&&(M(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((d,N)=>n.includes(N)?se({},d,{[N]:e.format[N]}):d,{}));const c=a(e.value,o,l);let u=[o.key];K(c)?u=c.map((d,N)=>{const y=s[d.type],k=y?y({[d.type]:d.value,index:N,parts:c}):[d.value];return Wo(k)&&(k[0].key=`${d.type}-${N}`),k}):M(c)&&(u=[c]);const p=se({},r),h=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(h,p,u)}}const Yr=i.defineComponent({name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},En),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,Ar,(...a)=>n[hn](...a))}}),Xr=i.defineComponent({name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},En),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,kr,(...a)=>n[_n](...a))}});function Ho(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Go(e){const t=o=>{const{instance:l,modifiers:c,value:u}=o;if(!l||!l.$)throw re(H.UNEXPECTED_ERROR);const p=Ho(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&(ue(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=zr(u);return[Reflect.apply(p.t,p,[...Kr(h)]),p]};return{created:(o,l)=>{const[c,u]=t(l);he&&e.global===u&&(o.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{he&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,u=zr(l);o.textContent=Reflect.apply(c.t,c,[...Kr(u)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function zr(e){if(M(e))return{path:e};if($(e)){if(!("path"in e))throw re(H.REQUIRED_VALUE,"path");return e}else throw re(H.INVALID_VALUE)}function Kr(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return M(n)&&(o.locale=n),ne(s)&&(o.plural=s),ne(r)&&(o.plural=r),[t,l,o]}function jo(e,t,...n){const a=$(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=B(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&s&&(ue(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Tn.name}),void 0),r&&([s?"i18n":Tn.name,"I18nT"].forEach(o=>e.component(o,Tn)),[Yr.name,"I18nN"].forEach(o=>e.component(o,Yr)),[Xr.name,"I18nD"].forEach(o=>e.component(o,Xr))),e.directive("t",Go(t))}const Nn={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Yo={"vue-i18n-resource-inspector":"Search for scopes ..."},Xo={"vue-i18n-timeline":16764185},qr="vue-i18n: composer properties";let vn;async function zo(e,t){return new Promise((n,a)=>{try{Ro({id:"vue-devtools-plugin-vue-i18n",label:Nn["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:[qr],app:e},s=>{vn=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ko(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Jr(l,o.vnode.el.__VUE_I18N__):Jr(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Nn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Yo["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ei(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),ni(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=ti(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ai(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Nn["vue-i18n-timeline"],color:Xo["vue-i18n-timeline"]}),n(!0)})}catch{a(!1)}})}function Zr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ko(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Zr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Jr(e,t){const n=qr;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:On(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 On(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=Qo(a):Me(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:G(a)?t[n]=On(a):t[n]=a}),t}const qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Zo(e){return e.replace(/[<>"&]/g,Jo)}function Jo(e){return qo[e]||e}function Qo(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Zo(e.source)}")`:"(?)"}`}}}function ei(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Zr(a)} Scope`})}}function ti(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function Qr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ni(e,t){const n=Qr(e.nodeId,t);return n&&(e.state=ri(n)),null}function ri(e){const t={},n="Locale related info",a=[{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]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:On(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function mt(e,t){if(vn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),vn.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 ai(e,t){const n=Qr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&M(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(M(e.state.value)||K(e.state.value)||G(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function si(e,t,n){return{beforeCreate(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ea(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=bn(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ea(e,s);else{this.$i18n=bn({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Ur(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=en();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",mt)}},unmounted(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",mt),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ea(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[Dr](t.pluralizationRules||e.pluralizationRules);const n=Ft(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const oi=be("global-vue-i18n");function ii(e={},t){const n=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=B(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,l]=li(e,n),c=be(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&s&&(ue(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return r.get(d)||null}function p(d,N){r.set(d,N)}function h(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(N,...y){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),$(y[0])){const m=y[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let k=null;!n&&a&&(k=gi(N,d.global)),__VUE_I18N_FULL_INSTALL__&&jo(N,d,...y),__VUE_I18N_LEGACY_API__&&n&&N.mixin(si(l,l.__composer,d));const C=N.unmount;if(N.unmount=()=>{k&&k(),d.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await zo(N,d))throw re(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=en();if(n){const T=l;T.__enableEmitter&&T.__enableEmitter(g)}else{const T=l;T[je]&&T[je](g)}g.on("*",mt)}},get global(){return l},dispose(){o.stop()},__instances:r,__getInstance:u,__setInstance:p,__deleteInstance:h};return d}}function xt(e={}){const t=i.getCurrentInstance();if(t==null)throw re(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(H.NOT_INSTALLED);const n=ci(t),a=fi(n),s=xr(t),r=ui(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw re(H.NOT_AVAILABLE_IN_LEGACY_MODE);return hi(t,r,a,e)}if(r==="global")return Ur(a,e,s),a;if(r==="parent"){let c=di(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(ue(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=a),c}const o=n;let l=o.__getInstance(t);if(l==null){const c=se({},e);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),l=gn(c),o.__composerExtend&&(l[pn]=o.__composerExtend(l)),_i(o,t,l),o.__setInstance(t,l)}return l}function li(e,t,n){const a=i.effectScope();{const s=__VUE_I18N_LEGACY_API__&&t?a.run(()=>bn(e)):a.run(()=>gn(e));if(s==null)throw re(H.UNEXPECTED_ERROR);return[a,s]}}function ci(e){{const t=i.inject(e.isCE?oi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function ui(e,t){return Ct(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fi(e){return e.mode==="composition"?e.global:e.global.__composer}function di(e,t,n=!1){let a=null;const s=t.root;let r=mi(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[Fr]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function mi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _i(e,t,n){let a=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=en();const s=n;s[je]&&s[je](a),a.on("*",mt)}},t),i.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",mt),s[ft]&&s[ft](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[pn];r&&(r(),delete s[pn])},t)}function hi(e,t,n,a={}){const s=t==="local",r=i.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw re(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=B(a.inheritLocale)?a.inheritLocale:!M(a.locale),l=i.ref(!s||o?n.locale.value:M(a.locale)?a.locale:tt),c=i.ref(!s||o?n.fallbackLocale.value:M(a.fallbackLocale)||K(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),u=i.ref(Ft(l.value,a)),p=i.ref($(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),h=i.ref($(a.numberFormats)?a.numberFormats:{[l.value]:{}}),d=s?n.missingWarn:B(a.missingWarn)||we(a.missingWarn)?a.missingWarn:!0,N=s?n.fallbackWarn:B(a.fallbackWarn)||we(a.fallbackWarn)?a.fallbackWarn:!0,y=s?n.fallbackRoot:B(a.fallbackRoot)?a.fallbackRoot:!0,k=!!a.fallbackFormat,C=X(a.missing)?a.missing:null,m=X(a.postTranslation)?a.postTranslation:null,g=s?n.warnHtmlMessage:B(a.warnHtmlMessage)?a.warnHtmlMessage:!0,T=!!a.escapeParameter,b=s?n.modifiers:$(a.modifiers)?a.modifiers:{},S=a.pluralRules||s&&n.pluralRules;function E(){return[l.value,c.value,u.value,p.value,h.value]}const I=i.computed({get:()=>r.value?r.value.locale.value:l.value,set:f=>{r.value&&(r.value.locale.value=f),l.value=f}}),w=i.computed({get:()=>r.value?r.value.fallbackLocale.value:c.value,set:f=>{r.value&&(r.value.fallbackLocale.value=f),c.value=f}}),v=i.computed(()=>r.value?r.value.messages.value:u.value),P=i.computed(()=>p.value),x=i.computed(()=>h.value);function O(){return r.value?r.value.getPostTranslationHandler():m}function D(f){r.value&&r.value.setPostTranslationHandler(f)}function q(){return r.value?r.value.getMissingHandler():C}function z(f){r.value&&r.value.setMissingHandler(f)}function ee(f){return E(),f()}function ce(...f){return r.value?ee(()=>Reflect.apply(r.value.t,null,[...f])):ee(()=>"")}function Ve(...f){return r.value?Reflect.apply(r.value.rt,null,[...f]):""}function Ce(...f){return r.value?ee(()=>Reflect.apply(r.value.d,null,[...f])):ee(()=>"")}function Ot(...f){return r.value?ee(()=>Reflect.apply(r.value.n,null,[...f])):ee(()=>"")}function yt(f){return r.value?r.value.tm(f):{}}function ge(f,L){return r.value?r.value.te(f,L):!1}function st(f){return r.value?r.value.getLocaleMessage(f):{}}function ot(f,L){r.value&&(r.value.setLocaleMessage(f,L),u.value[f]=L)}function It(f,L){r.value&&r.value.mergeLocaleMessage(f,L)}function Lt(f){return r.value?r.value.getDateTimeFormat(f):{}}function kt(f,L){r.value&&(r.value.setDateTimeFormat(f,L),p.value[f]=L)}function it(f,L){r.value&&r.value.mergeDateTimeFormat(f,L)}function Ke(f){return r.value?r.value.getNumberFormat(f):{}}function $e(f,L){r.value&&(r.value.setNumberFormat(f,L),h.value[f]=L)}function qe(f,L){r.value&&r.value.mergeNumberFormat(f,L)}const St={get id(){return r.value?r.value.id:-1},locale:I,fallbackLocale:w,messages:v,datetimeFormats:P,numberFormats:x,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(f){r.value&&(r.value.inheritLocale=f)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(u.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackWarn(){return r.value?r.value.fallbackWarn:N},set fallbackWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackRoot(){return r.value?r.value.fallbackRoot:y},set fallbackRoot(f){r.value&&(r.value.fallbackRoot=f)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(f){r.value&&(r.value.fallbackFormat=f)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:g},set warnHtmlMessage(f){r.value&&(r.value.warnHtmlMessage=f)},get escapeParameter(){return r.value?r.value.escapeParameter:T},set escapeParameter(f){r.value&&(r.value.escapeParameter=f)},t:ce,getPostTranslationHandler:O,setPostTranslationHandler:D,getMissingHandler:q,setMissingHandler:z,rt:Ve,d:Ce,n:Ot,tm:yt,te:ge,getLocaleMessage:st,setLocaleMessage:ot,mergeLocaleMessage:It,getDateTimeFormat:Lt,setDateTimeFormat:kt,mergeDateTimeFormat:it,getNumberFormat:Ke,setNumberFormat:$e,mergeNumberFormat:qe};function _(f){f.locale.value=l.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(L=>{f.mergeLocaleMessage(L,u.value[L])}),Object.keys(p.value).forEach(L=>{f.mergeDateTimeFormat(L,p.value[L])}),Object.keys(h.value).forEach(L=>{f.mergeNumberFormat(L,h.value[L])}),f.escapeParameter=T,f.fallbackFormat=k,f.fallbackRoot=y,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=g}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw re(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=r.value=e.proxy.$i18n.__composer;t==="global"?(l.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,p.value=f.datetimeFormats.value,h.value=f.numberFormats.value):s&&_(f)}),St}const pi=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gi(e,t){const n=Object.create(null);return pi.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw re(H.UNEXPECTED_ERROR);const o=i.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,ta.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw re(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Do(),__INTLIFY_JIT_COMPILATION__?lr(To):lr(Eo),uo(Gs),fo(ar),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ie();e.__INTLIFY__=!0,Qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const na=({wrap:e,left:t=0,top:n=0,smooth:a=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:a?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function bi({el:e,wrap:t,block:n="start",inline:a="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:a});else{const{offsetLeft:s,offsetTop:r}=e;let o,l;n==="center"?l=r+(e.clientHeight-t.clientHeight)/2:l=r,a==="center"?o=s+(e.clientWidth-t.clientWidth)/2:o=s,na({wrap:t,left:o,top:l})}}const ra=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var De=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(De||{});class Ut{constructor(){za(this,"items");this.items=new Map}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,a)=>{t=`${t}${a===0?"":", "}${n}`}),t}}const Ei=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLefts:"close lefts",closeRights:"close rights",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ti=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),yn=()=>{const e=Object.assign({"./lang/en.ts":Ei,"./lang/zh-CN.ts":Ti});function t(r,o){for(const l in r)if(r[l].default){const c=l.substring(l.lastIndexOf("/")+1,l.lastIndexOf("."));o[c]?o[c]={...r[c],...r[l].default}:o[c]=r[l].default}}const n=()=>{const r={};return t(e,r),r},a=i.inject("locales");return{getI18n:()=>{const r={...n(),...a.messages};return xt({useScope:"local",locale:a.locale,messages:r})}}};function In(e){if(!Ln(e))throw new Error("Parameter was not an error")}function Ln(e){return Ni(e)==="[object Error]"||e instanceof Error}function Ni(e){return Object.prototype.toString.call(e)}function vi(e){let t,n="";if(e.length===0)t={};else if(Ln(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class pe extends Error{constructor(t,n){const a=[...arguments],{options:s,shortMessage:r}=vi(a);let o=r;if(s.cause&&(o=`${o}: ${s.cause.message}`),super(o),this.message=o,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const l=s.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return In(t),t._cause&&Ln(t._cause)?t._cause:null}static fullStack(t){In(t);const n=pe.cause(t);return n?`${t.stack}
21
+ caused by: ${pe.fullStack(n)}`:t.stack}static info(t){In(t);const n={},a=pe.cause(t);return a&&Object.assign(n,pe.info(a)),t._info&&Object.assign(n,t._info),n}cause(){return pe.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const aa="0123456789ABCDEFGHJKMNPQRSTVWXYZ",_t=32,sa=0xffffffffffff,Oi=10,yi=16,ht=Object.freeze({source:"ulid"});function Ii(e){const t=e||Li(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const a=new Uint8Array(1);return n.getRandomValues(a),a[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new pe({info:{code:"PRNG_DETECT",...ht}},"Failed to find a reliable PRNG")}function Li(){return Ci()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function ki(e,t){let n="";for(;e>0;e--)n=Ai(t)+n;return n}function Si(e,t){if(isNaN(e))throw new pe({info:{code:"ENC_TIME_NAN",...ht}},`Time must be a number: ${e}`);if(e>sa)throw new pe({info:{code:"ENC_TIME_SIZE_EXCEED",...ht}},`Cannot encode a time larger than ${sa}: ${e}`);if(e<0)throw new pe({info:{code:"ENC_TIME_NEG",...ht}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new pe({info:{code:"ENC_TIME_TYPE",...ht}},`Time must be an integer: ${e}`);let n,a="";for(let s=t;s>0;s--)n=e%_t,a=aa.charAt(n)+a,e=(e-n)/_t;return a}function Ci(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Ai(e){let t=Math.floor(e()*_t);return t===_t&&(t=_t-1),aa.charAt(t)}function oa(e,t){const n=t||Ii(),a=isNaN(e)?Date.now():e;return Si(a,Oi)+ki(yi,n)}var kn={exports:{}};kn.exports,function(e){var t=function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(c,u){if(!r[c]){r[c]={};for(var p=0;p<c.length;p++)r[c][c.charAt(p)]=p}return r[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(p){return a.charAt(p)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return o(a,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),p=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);p[h*2]=N>>>8,p[h*2+1]=N%256}return p},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),p=0,h=u.length;p<h;p++)u[p]=c[p*2]*256+c[p*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return s.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return o(s,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,p){if(c==null)return"";var h,d,N={},y={},k="",C="",m="",g=2,T=3,b=2,S=[],E=0,I=0,w;for(w=0;w<c.length;w+=1)if(k=c.charAt(w),Object.prototype.hasOwnProperty.call(N,k)||(N[k]=T++,y[k]=!0),C=m+k,Object.prototype.hasOwnProperty.call(N,C))m=C;else{if(Object.prototype.hasOwnProperty.call(y,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,I==u-1?(I=0,S.push(p(E)),E=0):I++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete y[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),N[C]=T++,m=String(k)}if(m!==""){if(Object.prototype.hasOwnProperty.call(y,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,I==u-1?(I=0,S.push(p(E)),E=0):I++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete y[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,h=0;h<b;h++)E=E<<1|d&1,I==u-1?(I=0,S.push(p(E)),E=0):I++,d=d>>1;for(;;)if(E=E<<1,I==u-1){S.push(p(E));break}else I++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,p){var h=[],d=4,N=4,y=3,k="",C=[],m,g,T,b,S,E,I,w={val:p(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,S=Math.pow(2,2),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;I=n(T);break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;I=n(T);break;case 2:return""}for(h[3]=I,g=I,C.push(I);;){if(w.index>c)return"";for(T=0,S=Math.pow(2,y),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(I=T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),I=N-1,d--;break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),I=N-1,d--;break;case 2:return C.join("")}if(d==0&&(d=Math.pow(2,y),y++),h[I])k=h[I];else if(I===N)k=g+g.charAt(0);else return null;C.push(k),h[N++]=g+k.charAt(0),d--,g=k,d==0&&(d=Math.pow(2,y),y++)}}};return l}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(kn);var ia=kn.exports;const wi=new TextEncoder,Pi=new TextDecoder("utf-8",{ignoreBOM:!0}),la={encode:e=>wi.encode(e),decode:e=>Pi.decode(e)},ca=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let a=0;a<256;a++)n[a]=`${t[a>>>4&15]}${t[a&15]}`;return n})(),Ri=(()=>{const e={};for(let t=0;t<256;t++){const n=ca[t],a=n[0],s=a.toUpperCase(),r=n[1],o=r.toUpperCase();e[n]=t,e[`${a}${o}`]=t,e[`${s}${r}`]=t,e[`${s}${o}`]=t}return e})(),Sn={encode:e=>{let t="";for(let n=0,a=e.length;n<a;n++)t+=ca[e[n]];return t},encodeStr:e=>Sn.encode(la.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let a=0;a<t;a++)n[a]=Ri[e.slice(a*2,a*2+2)];return n},decodeStr:e=>la.decode(Sn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function pt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Mi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ua(e,...t){if(!Mi(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Cn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function fa(e,t){ua(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Vt=BigInt(2**32-1),da=BigInt(32);function ma(e,t=!1){return t?{h:Number(e&Vt),l:Number(e>>da&Vt)}:{h:Number(e>>da&Vt)|0,l:Number(e&Vt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Di=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),$t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Fi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Bt=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function An(e){if(typeof e=="string"&&(e=xi(e)),!Fi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Ui{clone(){return this._cloneInto()}}function Vi(e){const t=(a,s)=>e(s).update(An(a)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=a=>e(a),t}class $i extends Ui{constructor(t,n,a={},s,r,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,pt(t),pt(n),pt(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(a.key!==void 0&&(a.key.length<1||a.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(a.salt!==void 0&&a.salt.length!==r)throw new Error(`salt must be ${r} byte long or undefined`);if(a.personalization!==void 0&&a.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=$t(this.buffer=new Uint8Array(t))}update(t){Cn(this);const{blockLen:n,buffer:a,buffer32:s}=this;t=An(t);const r=t.length,o=t.byteOffset,l=t.buffer;for(let c=0;c<r;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const u=Math.min(n-this.pos,r-c),p=o+c;if(u===n&&!(p%4)&&c+u<r){const h=new Uint32Array(l,p,Math.floor((r-c)/4));for(let d=0;c+n<r;d+=s.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}a.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Cn(this),fa(t,this);const{pos:n,buffer32:a}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(a,0,!0);const s=$t(t);this.get().forEach((r,o)=>s[o]=r)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const a=t.slice(0,n);return this.destroy(),a}_cloneInto(t){const{buffer:n,length:a,finished:s,destroyed:r,outputLen:o,pos:l}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=a,t.finished=s,t.destroyed=r,t.outputLen=o,t.buffer.set(n),t.pos=l,t}}const Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Fe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,16),n=n+a|0,t=Bt(t^n,12),{a:e,b:t,c:n,d:a}}function xe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,8),n=n+a|0,t=Bt(t^n,7),{a:e,b:t,c:n,d:a}}function _a(e,t,n,a,s,r,o,l,c,u,p,h,d,N,y,k,C,m,g,T){let b=0;for(let S=0;S<a;S++)({a:s,b:c,c:d,d:C}=Fe(s,c,d,C,n[t+e[b++]])),{a:s,b:c,c:d,d:C}=xe(s,c,d,C,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=Fe(r,u,N,m,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=xe(r,u,N,m,n[t+e[b++]]),{a:o,b:p,c:y,d:g}=Fe(o,p,y,g,n[t+e[b++]]),{a:o,b:p,c:y,d:g}=xe(o,p,y,g,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=Fe(l,h,k,T,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=xe(l,h,k,T,n[t+e[b++]]),{a:s,b:u,c:y,d:T}=Fe(s,u,y,T,n[t+e[b++]]),{a:s,b:u,c:y,d:T}=xe(s,u,y,T,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=Fe(r,p,k,C,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=xe(r,p,k,C,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=Fe(o,h,d,m,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=xe(o,h,d,m,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=Fe(l,c,N,g,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=xe(l,c,N,g,n[t+e[b++]]);return{v0:s,v1:r,v2:o,v3:l,v4:c,v5:u,v6:p,v7:h,v8:d,v9:N,v10:y,v11:k,v12:C,v13:m,v14:g,v15:T}}const ha=(()=>{const e=Array.from({length:16},(a,s)=>s),t=a=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>a[s]),n=[];for(let a=0,s=e;a<7;a++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class wn extends $i{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,pt(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const a=An(t.key).slice();if(a.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=$t(a),this.flags=n|16}else if(t.context!==void 0){const a=new wn({dkLen:32},32).update(t.context).digest();this.IV=$t(a),this.flags=n|64}else this.IV=Se.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Di(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,a,s=0){const{state:r,pos:o}=this,{h:l,l:c}=ma(BigInt(t),!0),{v0:u,v1:p,v2:h,v3:d,v4:N,v5:y,v6:k,v7:C,v8:m,v9:g,v10:T,v11:b,v12:S,v13:E,v14:I,v15:w}=_a(ha,s,a,7,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],Se[0],Se[1],Se[2],Se[3],l,c,o,n);r[0]=u^m,r[1]=p^g,r[2]=h^T,r[3]=d^b,r[4]=N^S,r[5]=y^E,r[6]=k^I,r[7]=C^w}compress(t,n=0,a=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||a)&&(s|=2),a||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||a){let r=this.state;this.state=this.IV.slice();for(let o,l=this.chunksDone+1;(a||!(l&1))&&(o=this.stack.pop());l>>=1)this.buffer32.set(o,0),this.buffer32.set(r,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),r=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(r)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:a,state:s,chunkPos:r,posOut:o,chunkOut:l,stack:c,chunksDone:u}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=a,t.chunkPos=r,t.chunksDone=u,t.posOut=o,t.chunkOut=l,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:a,buffer32:s,bufferOut32:r}=this,{h:o,l}=ma(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:p,v3:h,v4:d,v5:N,v6:y,v7:k,v8:C,v9:m,v10:g,v11:T,v12:b,v13:S,v14:E,v15:I}=_a(ha,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Se[0],Se[1],Se[2],Se[3],l,o,n,a);r[0]=c^C,r[1]=u^m,r[2]=p^g,r[3]=h^T,r[4]=d^b,r[5]=N^S,r[6]=y^E,r[7]=k^I,r[8]=t[0]^C,r[9]=t[1]^m,r[10]=t[2]^g,r[11]=t[3]^T,r[12]=t[4]^b,r[13]=t[5]^S,r[14]=t[6]^E,r[15]=t[7]^I,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Cn(this,!1),ua(t),this.finish();const{blockLen:n,bufferOut:a}=this;for(let s=0,r=t.length;s<r;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,r-s);t.set(a.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return pt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(fa(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bi=Vi(e=>new wn(e)),pa=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ia.compressToEncodedURIComponent(t)},Wi=e=>{const n=ia.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},ga=(e,t,n)=>{const a=[];for(const r in n)r.startsWith("__")||a.push({key:r,value:n[r]});a.sort((r,o)=>{let l=0;return r.key>o.key?l=1:r.key<o.key&&(l=-1),l});const s=Bi(`${e}|${t}|${JSON.stringify(a)}`);return Sn.encode(s)};function Pn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Rn(e,t,n=".",a){if(!Pn(t))return Rn(e,{},n,a);const s=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(a&&a(s,r,o,n)||(Array.isArray(o)&&Array.isArray(s[r])?s[r]=[...o,...s[r]]:Pn(o)&&Pn(s[r])?s[r]=Rn(o,s[r],(n?`${n}.`:"")+r.toString(),a):s[r]=o))}return s}function Hi(e){return(...t)=>t.reduce((n,a)=>Rn(n,a,"",e),{})}const Ne=Hi(),Mn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),a={};for(const s of n){const r=s.split("=");r[1]!==null&&r[1]!==void 0&&r[1]!==""&&(a[r[0]]=r[1])}return{path:t[0],query:a}}},W=i.ref([]),Wt=[],oe=i.ref([]),Ye=new Map,Ht=new Set,gt=i.ref(!0),ba="stacktab-active-tab",bt=()=>{const e=_e.useRouter(),t=()=>W.value.length,n=v=>{Wt.splice(0);for(const x of v){const O=Ne(x,{id:oa()}),D=pa(O),q=Mn(O.path),z=Ne(O,{closable:!0,refreshable:!0,iframe:!1}),ee=ga(O.id,q.path,q.query),ce={id:ee,tabId:O.id,path:q.path,query:Ne(q.query,{__tab:D})},Ve=new Ut;Ve.push(ce);const Ce={id:O.id,title:z.title,closable:z.closable,refreshable:z.refreshable,iframe:z.iframe,active:!1,pages:Ve};Wt.push(Ce),W.value.push(Ce),oe.value.push(ee)}const P=window.sessionStorage.getItem(ba);if(P!=null){const x=Ne({pages:new Ut},JSON.parse(P));let O=!1;for(const D of W.value)if(D.id===x.id){O=!0;break}O||W.value.push(x)}},a=v=>{for(const P of W.value)if(P.id===v)return!0;return!1},s=v=>{W.value.push(v)},r=v=>{for(const P of W.value)if(P.id===v)return P;return null},o=(v,P)=>{let x;const O=Wi(v.query.__tab),D=ga(O.id,v.path,v.query.valueOf()),q=v.query.__src;if(Ye.has(D))x=Ye.get(D);else{x=i.defineComponent({name:D,components:{DynamicComponent:P},setup(){return i.onActivated(()=>{g(),P.props=null}),i.onUnmounted(()=>{}),()=>i.createVNode("div",{class:"cache-page-wrapper",id:O.id},[i.createVNode(i.resolveComponent("dynamic-component"),{tId:O.id,pId:D},null)])}}),Ye.set(D,x);let z=null;for(const ce of i.unref(W))ce.active=!1,ce.id===O.id&&(z=ce);const ee={id:D,tabId:O.id,path:v.path,query:v.query};if(z===null){const ce=new Ut;ce.push(ee),z={id:O.id,title:O.title,closable:O.closable,refreshable:O.refreshable,iframe:O.iframe,url:decodeURIComponent(q),active:!0,pages:ce},W.value.push(z)}else z.active=!0,(z.pages.isEmpty()||z.pages.peek().id!==ee.id)&&z.pages.push(ee);E(z)}return b(D),x},l=v=>{let P="";for(let x=W.value.length-1;x>=0;x--)if(v===i.unref(W)[x].id){if(!i.unref(W)[x].closable)return v;for(const O of i.unref(W)[x].pages.list())C(O.id),m(O.id);i.unref(W)[x].pages.clear(),W.value.length>1&&i.unref(W)[x].active&&(x===0?P=i.unref(W)[x+1].id:P=i.unref(W)[x-1].id),i.unref(W).splice(x,1);break}return P!==""&&S(P),g(),P},c=()=>{const v=i.unref(W);for(let P=v.length-1;P>=0;P--)if(v[P].closable){for(const x of v[P].pages.list())C(x.id),m(x.id);i.unref(W)[P].pages.clear(),i.unref(W).splice(P,1)}for(const P of v)if(P.active){g();return}S(v[v.length-1].id)},u=v=>{const P=i.unref(W);let x;for(let O=P.length-1;O>=0;O--)if(P[O].id===v)x=P[O];else if(P[O].closable&&P[O].id!==v){for(const D of P[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}x.active?g():S(v)},p=v=>{let P=-1;const x=i.unref(W);for(let O=0;O<x.length;O++)if(x[O].id===v){P=O-1;break}for(let O=P;O>=0;O--)if(x[O].closable){for(const D of x[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}for(const O of x)if(O.active){g();return}S(x[0].id)},h=v=>{const P=i.unref(W);let x=P.length;for(let O=0;O<P.length;O++)if(P[O].id===v){x=O+1;break}for(let O=P.length-1;O>=x;O--)if(P[O].closable){for(const D of P[O].pages.list())C(D.id),m(D.id);i.unref(W)[O].pages.clear(),i.unref(W).splice(O,1)}for(const O of P)if(O.active){g();return}S(P[P.length-1].id)},d=v=>{var P;for(const x of i.unref(W))if(x.id===v){const O=(P=x.pages.peek())==null?void 0:P.id;for(let D=oe.value.length-1;D>=0;D--)if(oe.value[D]===O){oe.value.splice(D,1),x.active&&(gt.value=!1);break}break}},N=()=>{const v=new Set;W.value.forEach(P=>{v.add(P.pages.peek().id)});for(let P=oe.value.length-1;P>=0;P--){const x=oe.value[P];v.has(x)&&oe.value.splice(P,1)}gt.value=!1},y=(v,P)=>{Ye.set(v,P)},k=v=>Ye.get(v),C=v=>{Ye.delete(v)},m=v=>{Ht.add(v)},g=()=>{for(let v=oe.value.length-1;v>=0;v--)Ht.has(oe.value[v])&&i.unref(oe).splice(v,1);Ht.clear()},T=v=>{for(let P=oe.value.length-1;P>=0;P--)v===oe.value[P]&&i.unref(oe).splice(P,1)},b=v=>{new Set(oe.value).has(v)||oe.value.push(v)},S=(v,P=!0)=>{for(let x=W.value.length-1;x>=0;x--){const O=W.value[x];if(O.id===v){if(O.active)break;if(O.active=!0,gt.value=!1,E(O),P){const D=O.pages.peek();e.push({path:D.path,query:D.query})}}else W.value[x].active=!1}},E=v=>{window.sessionStorage.setItem(ba,JSON.stringify(v))},I=()=>{w(),i.unref(W).push(...Wt),S(Wt[0].id)},w=()=>{i.unref(W).splice(0),Ye.clear(),Ht.clear(),i.unref(oe).splice(0),gt.value=!0};return{tabs:W,caches:oe,pageShown:gt,initial:n,size:t,active:S,destroy:w,reset:I,addCache:b,removeCache:T,getTab:r,addTab:s,removeTab:l,removeAllTabs:c,removeLeftTabs:p,removeRightTabs:h,removeOtherTabs:u,hasTab:a,addPage:o,addComponent:y,getComponent:k,removeComponent:C,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:N}},Gi={class:"stack-tab__contextmenu-item"},Ue=i.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",Gi,[i.createElementVNode("div",{class:i.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),i.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(t.title),33)]))}}),ji={key:0,class:"divider div-transparent"},Yi=((e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n})(i.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=yn().getI18n(),a=i.ref(),s=i.reactive({left:t.left,top:t.top}),{removeTab:r,removeAllTabs:o,removeLeftTabs:l,removeRightTabs:c,refreshTab:u,refreshAllTabs:p,removeOtherTabs:h}=bt();return i.onMounted(()=>{const d=a.value?a.value.clientWidth:0,N=window.innerWidth;s.left+d>N&&(s.left=N-d-5)}),(d,N)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"contextmenu",ref:a,class:"stack-tab__contextmenu",style:i.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":i.unref(ra)(".stack-tab,.stack-tab *")})},[i.createVNode(Ue,{icon:"stack-tab__icon-reload svg-mask",title:i.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=y=>i.unref(u)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-reload-all svg-mask",title:i.unref(n)("VueStackTab.reloadAll"),onClick:i.unref(p)},null,8,["title","onClick"]),i.createVNode(Ue,{icon:"stack-tab__icon-close svg-mask",title:i.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=y=>i.unref(r)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-lefts svg-mask",title:i.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=y=>i.unref(l)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-rights svg-mask",title:i.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=y=>i.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-others svg-mask",title:i.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=y=>i.unref(h)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-all svg-mask",title:i.unref(n)("VueStackTab.closeAll"),onClick:i.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(i.openBlock(),i.createElementBlock("div",ji)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.contextMenu,(y,k)=>(i.openBlock(),i.createBlock(Ue,{key:k,icon:y.icon,title:y.title,disabled:y.disabled(d.tabItem)?"disabled":null,onClick:C=>!y.disabled&&y.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-716ce427"]]),Xi=()=>{const e=i.reactive({item:{},index:-1,left:0,top:0,max:0}),t=i.ref(!1);i.onMounted(()=>{document.addEventListener("click",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a)});const n=async(s,r,o,l)=>{t.value=!1,await i.nextTick(()=>{const{clientY:c,clientX:u}=s;t.value=!0,Object.assign(e,{item:r,index:o,top:c,left:u,max:l})})},a=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},zi={class:"stack-tab__item-title"},Ki=["title"],qi=["title"],Zi=i.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:a}=yn().getI18n(),s=i.ref(),r=e;i.watch(()=>r.item.active,u=>{u&&c()});const o=i.computed(()=>r.item.title||a("undefined")),l=()=>{n("close",r.item)},c=()=>{n("active",r.item,s)};return(u,p)=>(i.openBlock(),i.createElementBlock("li",{ref_key:"curtab",ref:s,class:i.normalizeClass(["stack-tab__item",{"is-active":u.item.active,"is-icon":u.item.closable}]),onClick:c},[i.createElementVNode("div",zi,[i.createElementVNode("div",{class:"stack-tab__item-title-content",title:o.value},i.toDisplayString(o.value),9,Ki)]),u.item.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:i.unref(a)("VueStackTab.close"),onClick:i.withModifiers(l,["stop"])},null,8,qi)):i.createCommentVNode("",!0)],2))}});var Xe=[],Ji=function(){return Xe.some(function(e){return e.activeTargets.length>0})},Qi=function(){return Xe.some(function(e){return e.skippedTargets.length>0})},Ea="ResizeObserver loop completed with undelivered notifications.",el=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ea}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ea),window.dispatchEvent(e)},Et;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Et||(Et={}));var ze=function(e){return Object.freeze(e)},tl=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ze(this)}return e}(),Ta=function(){function e(t,n,a,s){return this.x=t,this.y=n,this.width=a,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,a=t.y,s=t.top,r=t.right,o=t.bottom,l=t.left,c=t.width,u=t.height;return{x:n,y:a,top:s,right:r,bottom:o,left:l,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Dn=function(e){return e instanceof SVGElement&&"getBBox"in e},Na=function(e){if(Dn(e)){var t=e.getBBox(),n=t.width,a=t.height;return!n&&!a}var s=e,r=s.offsetWidth,o=s.offsetHeight;return!(r||o||e.getClientRects().length)},va=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},nl=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},Tt=typeof window<"u"?window:{},Gt=new WeakMap,Oa=/auto|scroll/,rl=/^tb|vertical/,al=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),ve=function(e){return parseFloat(e||"0")},at=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new tl((n?t:e)||0,(n?e:t)||0)},ya=ze({devicePixelContentBoxSize:at(),borderBoxSize:at(),contentBoxSize:at(),contentRect:new Ta(0,0,0,0)}),Ia=function(e,t){if(t===void 0&&(t=!1),Gt.has(e)&&!t)return Gt.get(e);if(Na(e))return Gt.set(e,ya),ya;var n=getComputedStyle(e),a=Dn(e)&&e.ownerSVGElement&&e.getBBox(),s=!al&&n.boxSizing==="border-box",r=rl.test(n.writingMode||""),o=!a&&Oa.test(n.overflowY||""),l=!a&&Oa.test(n.overflowX||""),c=a?0:ve(n.paddingTop),u=a?0:ve(n.paddingRight),p=a?0:ve(n.paddingBottom),h=a?0:ve(n.paddingLeft),d=a?0:ve(n.borderTopWidth),N=a?0:ve(n.borderRightWidth),y=a?0:ve(n.borderBottomWidth),k=a?0:ve(n.borderLeftWidth),C=h+u,m=c+p,g=k+N,T=d+y,b=l?e.offsetHeight-T-e.clientHeight:0,S=o?e.offsetWidth-g-e.clientWidth:0,E=s?C+g:0,I=s?m+T:0,w=a?a.width:ve(n.width)-E-S,v=a?a.height:ve(n.height)-I-b,P=w+C+S+g,x=v+m+b+T,O=ze({devicePixelContentBoxSize:at(Math.round(w*devicePixelRatio),Math.round(v*devicePixelRatio),r),borderBoxSize:at(P,x,r),contentBoxSize:at(w,v,r),contentRect:new Ta(h,c,w,v)});return Gt.set(e,O),O},La=function(e,t,n){var a=Ia(e,n),s=a.borderBoxSize,r=a.contentBoxSize,o=a.devicePixelContentBoxSize;switch(t){case Et.DEVICE_PIXEL_CONTENT_BOX:return o;case Et.BORDER_BOX:return s;default:return r}},sl=function(){function e(t){var n=Ia(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ze([n.borderBoxSize]),this.contentBoxSize=ze([n.contentBoxSize]),this.devicePixelContentBoxSize=ze([n.devicePixelContentBoxSize])}return e}(),ka=function(e){if(Na(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ol=function(){var e=1/0,t=[];Xe.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(u){var p=new sl(u.target),h=ka(u.target);l.push(p),u.lastReportedSize=La(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,a=t;n<a.length;n++){var s=a[n];s()}return e},Sa=function(e){Xe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(ka(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},il=function(){var e=0;for(Sa(e);Ji();)e=ol(),Sa(e);return Qi()&&el(),e>0},Fn,Ca=[],ll=function(){return Ca.splice(0).forEach(function(e){return e()})},cl=function(e){if(!Fn){var t=0,n=document.createTextNode(""),a={characterData:!0};new MutationObserver(function(){return ll()}).observe(n,a),Fn=function(){n.textContent="".concat(t?t--:t++)}}Ca.push(e),Fn()},ul=function(e){cl(function(){requestAnimationFrame(e)})},jt=0,fl=function(){return!!jt},dl=250,ml={attributes:!0,characterData:!0,childList:!0,subtree:!0},Aa=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],wa=function(e){return e===void 0&&(e=0),Date.now()+e},xn=!1,_l=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=dl),!xn){xn=!0;var a=wa(t);ul(function(){var s=!1;try{s=il()}finally{if(xn=!1,t=a-wa(),!fl())return;s?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,ml)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Aa.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Aa.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Un=new _l,Pa=function(e){!jt&&e>0&&Un.start(),jt+=e,!jt&&Un.stop()},hl=function(e){return!Dn(e)&&!nl(e)&&getComputedStyle(e).display==="inline"},pl=function(){function e(t,n){this.target=t,this.observedBox=n||Et.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=La(this.target,this.observedBox,!0);return hl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),gl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yt=new WeakMap,Ra=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xt=function(){function e(){}return e.connect=function(t,n){var a=new gl(t,n);Yt.set(t,a)},e.observe=function(t,n,a){var s=Yt.get(t),r=s.observationTargets.length===0;Ra(s.observationTargets,n)<0&&(r&&Xe.push(s),s.observationTargets.push(new pl(n,a&&a.box)),Pa(1),Un.schedule())},e.unobserve=function(t,n){var a=Yt.get(t),s=Ra(a.observationTargets,n),r=a.observationTargets.length===1;s>=0&&(r&&Xe.splice(Xe.indexOf(a),1),a.observationTargets.splice(s,1),Pa(-1))},e.disconnect=function(t){var n=this,a=Yt.get(t);a.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),a.activeTargets.splice(0,a.activeTargets.length)},e}(),Ma=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.");Xt.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(!va(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.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(!va(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.unobserve(this,t)},e.prototype.disconnect=function(){Xt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const bl=["disabled","title"],El={key:1,class:"stack-tab__button"},zt=i.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(i.openBlock(),i.createElementBlock("div",El,[i.renderSlot(t.$slots,"icon")])):i.createCommentVNode("",!0)],10,bl))}}),Tl=i.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=i.ref(null),a=i.ref(null),s=i.ref(null),r=i.ref(!1),o=i.ref(!1),l=i.ref(!1),c=i.ref(!0),u=i.ref(),p=e,h=i.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=i.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});i.watch(h,O=>{N(O)});const N=O=>{o.value=O.scrollLeft<=10,l.value=O.clientWidth+O.scrollLeft-O.scrollWidth>=-10,c.value=O.scrollWidth!==O.clientWidth},y=i.computed(()=>h.scrollWidth>h.clientWidth),k=i.computed(()=>{if(!y.value)return 0;const{clientWidth:O,scrollWidth:D}=h;return O/D*O}),C=i.computed(()=>{if(!y.value)return 0;const{clientWidth:O,scrollWidth:D,scrollLeft:q}=h;return(O-k.value)*(q/(D-O))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:O,scrollWidth:D,scrollLeft:q}=n.value;Object.assign(h,{clientWidth:O,scrollWidth:D,scrollLeft:q})},g=new Ma(()=>{var D;m();const O=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");O&&(x(O)||P(O))}),T=new Ma(()=>{var O;if(!y.value){const D=(O=n.value)==null?void 0:O.querySelector(".stack-tab__item.is-active");D&&(x(D)||P(D))}m()}),b=(O,D=!0)=>{na({wrap:n.value,left:O,smooth:D})},S=O=>{b(n.value.scrollLeft+O)},E=O=>{const D=O.deltaY<0;b(n.value.scrollLeft+(D?-p.space:p.space))},I=O=>{var D;Object.assign(d,{startPageX:O.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:C.value,thumbLeft:C.value}),r.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",v)},w=O=>{const{clientWidth:D,scrollWidth:q}=h;let z=d.startThumbLeft+O.pageX-d.startPageX;const ee=D-k.value;z<0?z=0:z>ee&&(z=ee),d.thumbLeft=z,b(z*(q-D)/(D-k.value),!1),O.preventDefault()},v=O=>{r.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),O.preventDefault()};i.onMounted(()=>{var D;g.observe(u.value);const O=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");T.observe(O)}),i.onUnmounted(()=>{g.disconnect(),T.disconnect()});const P=O=>{bi({el:O,wrap:n,block:"end",inline:"center"})},x=O=>{if(!y.value)return!0;const D=O.offsetLeft,q=n.value.scrollLeft;return!(D<q||D+O.clientWidth>q+n.value.clientWidth)};return t({scrollIntoView:P,isInView:x}),(O,D)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[c.value?(i.openBlock(),i.createBlock(zt,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:D[0]||(D[0]=q=>!o.value&&S(-1*O.space))},null,8,["disabled"])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:i.withModifiers(E,["prevent"])},[i.createElementVNode("div",{ref_key:"container",ref:n,class:i.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!o.value&&l.value,"stack-tab__shadow-inset-right":!l.value&&o.value,"stack-tab__shadow-inset-all":!o.value&&!l.value}]),onScrollPassive:m},[i.renderSlot(O.$slots,"default")],34),i.withDirectives(i.createElementVNode("div",{ref_key:"bar",ref:a,class:i.normalizeClass(["stack-tab__scrollbar",{"is-dragging":r.value}])},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":r.value}]),style:i.normalizeStyle({width:`${k.value}px`,transform:`translateX(${C.value}px)`}),onMousedown:i.withModifiers(I,["prevent"])},null,38)],2),[[i.vShow,y.value]])],544),c.value?(i.openBlock(),i.createBlock(zt,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:l.value,onClick:D[1]||(D[1]=q=>!l.value&&S(O.space))},null,8,["disabled"])):i.createCommentVNode("",!0)],64))}}),Nl={class:"stack-tab__header"},vl=i.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:De.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=yn().getI18n(),a=i.inject("maximum"),s=t,r=i.ref(),{shown:o,contextMenuData:l,showContextMenu:c}=Xi(),u=e,{removeTab:p,active:h,tabs:d}=bt(),N=i.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),y=i.computed(()=>u.tabScrollMode===De.BOTH||u.tabScrollMode===De.BUTTON),k=u.tabScrollMode===De.BOTH||u.tabScrollMode===De.WHEEL,C=g=>{if(g.closable){const T=p(g.id);s("active",T)}o.value=!1},m=(g,T)=>{r.value&&(r.value.isInView(T.value)||r.value.scrollIntoView(T.value),h(g.id),s("active",g.id))};return(g,T)=>(i.openBlock(),i.createElementBlock("div",Nl,[i.renderSlot(g.$slots,"leftButton"),i.createVNode(Tl,{ref_key:"scroll",ref:r,space:g.space,"is-scroll-wheel":i.unref(k),"is-scroll-button":y.value},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,i.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(d),(b,S)=>(i.openBlock(),i.createBlock(Zi,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:i.withModifiers(E=>i.unref(c)(E,b,S,i.unref(d).length),["prevent"]),onMouseup:i.withModifiers(E=>C(b),["middle","prevent"]),onClose:C,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),i.renderSlot(g.$slots,"rightButton"),i.createVNode(zt,{"icon-class":i.unref(a)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:i.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=b=>a.value=!i.unref(a))},null,8,["icon-class","title"]),i.createVNode(i.Transition,{name:"stack-tab-zoom",appear:""},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(Yi,{key:"tabMenuTrans",left:i.unref(l).left,top:i.unref(l).top,"tab-item":i.unref(l).item,max:i.unref(l).max,index:i.unref(l).index},null,8,["left","top","tab-item","max","index"])):i.createCommentVNode("",!0)]),_:1})]))}});var Ol=typeof global=="object"&&global&&global.Object===Object&&global,yl=typeof self=="object"&&self&&self.Object===Object&&self,Da=Ol||yl||Function("return this")(),Kt=Da.Symbol,Fa=Object.prototype,Il=Fa.hasOwnProperty,Ll=Fa.toString,Nt=Kt?Kt.toStringTag:void 0;function kl(e){var t=Il.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var a=!0}catch{}var s=Ll.call(e);return a&&(t?e[Nt]=n:delete e[Nt]),s}var Sl=Object.prototype,Cl=Sl.toString;function Al(e){return Cl.call(e)}var wl="[object Null]",Pl="[object Undefined]",xa=Kt?Kt.toStringTag:void 0;function Rl(e){return e==null?e===void 0?Pl:wl:xa&&xa in Object(e)?kl(e):Al(e)}function Ml(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function Fl(e){return typeof e=="symbol"||Ml(e)&&Rl(e)==Dl}var xl=/\s/;function Ul(e){for(var t=e.length;t--&&xl.test(e.charAt(t)););return t}var Vl=/^\s+/;function $l(e){return e&&e.slice(0,Ul(e)+1).replace(Vl,"")}function qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ua=NaN,Bl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Hl=/^0o[0-7]+$/i,Gl=parseInt;function Va(e){if(typeof e=="number")return e;if(Fl(e))return Ua;if(qt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$l(e);var n=Wl.test(e);return n||Hl.test(e)?Gl(e.slice(2),n?2:8):Bl.test(e)?Ua:+e}var Vn=function(){return Da.Date.now()},jl="Expected a function",Yl=Math.max,Xl=Math.min;function zl(e,t,n){var a,s,r,o,l,c,u=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(jl);t=Va(t)||0,qt(n)&&(p=!!n.leading,h="maxWait"in n,r=h?Yl(Va(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d);function N(E){var I=a,w=s;return a=s=void 0,u=E,o=e.apply(w,I),o}function y(E){return u=E,l=setTimeout(m,t),p?N(E):o}function k(E){var I=E-c,w=E-u,v=t-I;return h?Xl(v,r-w):v}function C(E){var I=E-c,w=E-u;return c===void 0||I>=t||I<0||h&&w>=r}function m(){var E=Vn();if(C(E))return g(E);l=setTimeout(m,k(E))}function g(E){return l=void 0,d&&a?N(E):(a=s=void 0,o)}function T(){l!==void 0&&clearTimeout(l),u=0,a=c=s=l=void 0}function b(){return l===void 0?o:g(Vn())}function S(){var E=Vn(),I=C(E);if(a=arguments,s=this,c=E,I){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(m,t),N(c)}return l===void 0&&(l=setTimeout(m,t)),o}return S.cancel=T,S.flush=b,S}var Kl="Expected a function";function ql(e,t,n){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Kl);return qt(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),zl(e,t,{leading:a,maxWait:t,trailing:s})}let $a;const Ba=()=>{const e=_e.useRouter(),{active:t,hasTab:n,pageShown:a,reset:s}=bt();return{openNewTab:ql(async l=>{if(!a.value)return;const c=Ne(l,{refreshable:!0,closable:!0,iframe:!1});if(n(c.id)){t(c.id);return}c.id||(c.id=oa());const u=pa(c);let p=Ne({__tab:u},l.query),h;if(l.iframe){const d=encodeURIComponent(l.path);h=$a,p.__src=d}else{const d=Mn(l.path);h=d.path,p=Ne(d.query,p)}return e.push({path:h,query:p}),c.id},500),setIFramePath:l=>{$a=l},active:t,reset:s}},Zl={class:"stack-tab__container"},Jl=["src"],Wa=i.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:De.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:()=>({locale:"zh-CN",messages:{}})},messages:{},reloadable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},space:{default:300},iframePath:{}},emits:["onActive"],setup(e,{emit:t}){const{tabs:n,pageShown:a,caches:s,addPage:r,destroy:o,initial:l}=bt(),c=t,u=e;i.provide("locales",{...u.i18n});const p=i.ref(!1);i.provide("maximum",p);const{setIFramePath:h}=Ba();h(u.iframePath),i.onBeforeMount(()=>{l(u.defaultTabs)});const d=(k,C)=>r(k,C),N=k=>{c("onActive",k)};i.onUnmounted(()=>{o()});const y=_e.useRouter();return i.watch(()=>y.currentRoute.value.fullPath,()=>{a.value=!0}),(k,C)=>{const m=i.resolveComponent("router-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:i.normalizeStyle({width:k.width,height:k.height,"z-index":p.value?i.unref(ra)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[i.createVNode(vl,{space:k.space,onActive:N,"tab-transition":k.tabTransition,max:k.max},{leftButton:i.withCtx(()=>[i.renderSlot(k.$slots,"leftButton")]),rightButton:i.withCtx(()=>[i.renderSlot(k.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),i.createElementVNode("div",Zl,[i.createVNode(m,null,{default:i.withCtx(({Component:g,route:T})=>[i.createVNode(i.Transition,{name:k.pageTransition,appear:"",onAfterLeave:C[0]||(C[0]=b=>a.value=!0)},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.KeepAlive,{include:i.unref(s)},[i.unref(a)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d(T,g)),{key:T.fullPath})):i.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),i.createVNode(i.TransitionGroup,{name:k.pageTransition,appear:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).filter(g=>g.iframe),g=>i.withDirectives((i.openBlock(),i.createElementBlock("iframe",{key:g.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(g.url??"")?"about:blank":g.url,frameborder:"0"},null,8,Jl)),[[i.vShow,g.active&&i.unref(a)]])),128))]),_:1},8,["name"])])],6)}}}),$n=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ha=typeof TextEncoder=="function"?new TextEncoder:void 0,vt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,a)=>t[n]=a),t})(vt);const Oe=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Ql=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Ga=typeof btoa=="function"?e=>btoa(e):$n?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,a,s,r="";const o=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|a<<8|s,r+=vt[t>>18&63]+vt[t>>12&63]+vt[t>>6&63]+vt[t&63]}return o?r.slice(0,o-3)+"===".substring(o):r},ec=$n?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,s=e.length;a<s;a+=4096)n.push(Oe.apply(null,e.subarray(a,a+4096)));return Ga(n.join(""))},tc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Oe(192|t>>>6)+Oe(128|t&63):Oe(224|t>>>12&15)+Oe(128|t>>>6&63)+Oe(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Oe(240|t>>>18&7)+Oe(128|t>>>12&63)+Oe(128|t>>>6&63)+Oe(128|t&63)}},nc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rc=e=>e.replace(nc,tc),ja=$n?e=>Buffer.from(e,"utf8").toString("base64"):Ha?e=>ec(Ha.encode(e)):e=>Ga(rc(e)),ac=(e,t=!1)=>t?Ql(ja(e)):ja(e),sc=e=>{const a=`<?xml version="1.0" encoding="UTF-8"?>
22
22
  <svg id="uuid-cb9fc1ae-07f4-4aa2-a904-54dfcb9a64e0" data-name=" 图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.08 237.76">
23
23
  <path d="M79.24,19.73h108.91v29.7h-108.91s0-29.7,0-29.7Z" style="fill: #79a7ff; stroke-width: 0px;"/>
24
24
  <path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4h0V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.54,0,6.42,2.87,6.42,6.42h0v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill: #377dff; stroke-width: 0px;"/>
@@ -43,4 +43,4 @@ caused by: ${pe.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=pe.caus
43
43
  </g>
44
44
  <text transform="translate(943.45 229.96)" style="fill: #00d797; font-family: ArialMT, Arial; font-size: 24px;"><tspan x="0" y="0">version: ${e}</tspan></text>
45
45
  </svg>
46
- `,o="data:image/svg+xml;base64,"+ac(a),l="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",l+`background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ya=()=>{const{attrs:e}=i.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:a,removeComponent:s,getComponent:r}=bt(),o=_e.useRoute(),l=_e.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Ne({__tab:u},d.query);l.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const y=n(c);if(!y)return;const k=y.pages;let C=0;if(typeof d=="number")C=Math.abs(d);else{let T=1,b=!1;const S=k.list(),E=Rn(d);N=Ne(E.query,N);for(let I=k.size()-2;I>=0;I--){if(S[I].path===E.path){b=!0;break}T+=1}b&&(C=T)}if(C===0||k.size()<=C)return;for(let T=0;T<C;T++){const b=k.pop();s(b.id),a(b.id)}const m=k==null?void 0:k.peek(),g=r(m.id);if(g!=null){const T=g.components.DynamicComponent;T.props=Ne(N,T.props)}l.push({path:m.path,query:m.query})}}},oc=i.defineComponent({__name:"iframe",setup(e){return Ya(),(t,n)=>(i.openBlock(),i.createElementBlock("div"))}}),ic=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)};function lc(e,t,n,a={}){const s=i.h(e,t,a),r=document.createElement("div");return r.classList.add("vld-container"),n.appendChild(r),i.render(s,r),s.component}const cc=["width","height","stroke"],uc=[i.createStaticVNode('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)],fc=i.defineComponent({__name:"spinner",props:{color:{default:"#000"},height:{default:64},width:{default:64}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,stroke:t.color},uc,8,cc))}}),dc=["fill","width","height"],mc=[i.createStaticVNode('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)],_c=i.defineComponent({__name:"dots",props:{color:{default:"#000"},height:{default:240},width:{default:60}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t.color,width:t.width,height:t.height},mc,8,dc))}}),hc=["height","width","fill"],pc=[i.createStaticVNode('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)],gc={spinner:fc,dots:_c,bars:i.defineComponent({__name:"bars",props:{color:{default:"#000"},height:{default:40},width:{default:40}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:t.height,width:t.width,fill:t.color},pc,8,hc))}})},bc=["aria-busy"],Ec={class:"vl-icon"},Tc=i.defineComponent({__name:"Component",props:{active:{type:Boolean},programmatic:{type:Boolean},container:{},isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:{type:Boolean},transition:{default:"fade"},canCancel:{type:Boolean},onCancel:{type:Function,default:()=>{}},color:{},backgroundColor:{},opacity:{},width:{},height:{},zIndex:{},loader:{default:"spinner"}},emits:["hide","update:active"],setup(e,{expose:t,emit:n}){const a=e,s=i.ref(),r=i.ref(a.active),o=n,l=()=>{!a.canCancel||!r.value||(c(),a.onCancel.apply(null,null))},c=()=>{o("hide"),o("update:active",!1),a.programmatic&&(r.value=!1,setTimeout(()=>{const y=s.value.parentElement;i.render(null,y),ic(y)},150))},u=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.add("vl-shown")},p=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.remove("vl-shown")},h=y=>{y.code==="Escape"&&l()},d=y=>{if(!r.value||y.target===s.value||s.value.contains(y.target))return;const k=a.container?a.container:a.isFullPage?null:s.value.parentElement;(a.isFullPage||k&&k.contains(y.target))&&(y.preventDefault(),s.value.focus())},N=i.computed(()=>({background:a.backgroundColor,opacity:a.opacity}));return i.watch(()=>a.active,y=>{r.value=y}),i.watch(()=>r,y=>{y?u():p()}),i.onMounted(()=>{a.enforceFocus&&document.addEventListener("focusin",d),document.addEventListener("keyup",h)}),i.onBeforeUnmount(()=>{document.removeEventListener("keyup",h),document.removeEventListener("focusin",d)}),t({hide:c}),(y,k)=>(i.openBlock(),i.createBlock(i.Transition,{name:y.transition},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{tabindex:"0",class:i.normalizeClass(["vl-overlay vl-active",{"vl-full-page":y.isFullPage}]),"aria-busy":r.value,"aria-label":"Loading",style:i.normalizeStyle({zIndex:y.zIndex}),ref_key:"overlay",ref:s},[i.createElementVNode("div",{class:"vl-background",onClick:i.withModifiers(l,["prevent"]),style:i.normalizeStyle(N.value)},null,4),i.createElementVNode("div",Ec,[i.renderSlot(y.$slots,"before"),i.renderSlot(y.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(gc)[y.loader]),{color:y.color,width:y.width,height:y.height},null,8,["color","width","height"]))]),i.renderSlot(y.$slots,"after")])],14,bc),[[i.vShow,r.value]])]),_:3},8,["name"]))}}),Nc=(e={},t={})=>({show(n=e,a=t){const r={...e,...n,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let o=r.container;r.container||(o=document.body,r.isFullPage=!0);const l={...t,...a};return{hide:lc(Tc,r,o,l).exposed.hide}}}),vc=()=>{const e=Nc(),{attrs:t}=i.getCurrentInstance();let n=null;i.onUnmounted(()=>{s()});const a=()=>{const r=document.querySelector(`#${t.tId}`);n===null&&(n=e.show({canCancel:!1,isFullPage:!1,height:85,width:85,loader:"spinner",color:"#007bff",container:r}))},s=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:a,closeTabLoading:s}},Oc=ii({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),yc={install(e){sc("0.1.11"),e.component("VueStackTabs",Wa).use(Oc)}};J.IFrame=oc,J.Stack=Ut,J.StackTab=Wa,J.TabScrollMode=De,J.default=yc,J.useStackTab=Ba,J.useTabLoading=vc,J.useTabRouter=Ya,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
46
+ `,o="data:image/svg+xml;base64,"+ac(a),l="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",l+`background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ya=()=>{const{attrs:e}=i.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:a,removeComponent:s,getComponent:r}=bt(),o=_e.useRoute(),l=_e.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Ne({__tab:u},d.query);l.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const y=n(c);if(!y)return;const k=y.pages;let C=0;if(typeof d=="number")C=Math.abs(d);else{let T=1,b=!1;const S=k.list(),E=Mn(d);N=Ne(E.query,N);for(let I=k.size()-2;I>=0;I--){if(S[I].path===E.path){b=!0;break}T+=1}b&&(C=T)}if(C===0||k.size()<=C)return;for(let T=0;T<C;T++){const b=k.pop();s(b.id),a(b.id)}const m=k==null?void 0:k.peek(),g=r(m.id);if(g!=null){const T=g.components.DynamicComponent;T.props=Ne(N,T.props)}l.push({path:m.path,query:m.query})}}},oc=i.defineComponent({__name:"iframe",setup(e){return Ya(),(t,n)=>(i.openBlock(),i.createElementBlock("div"))}}),ic=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)};function lc(e,t,n,a={}){const s=i.h(e,t,a),r=document.createElement("div");return r.classList.add("vld-container"),n.appendChild(r),i.render(s,r),s.component}const cc=["width","height","stroke"],uc=[i.createStaticVNode('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)],fc=i.defineComponent({__name:"spinner",props:{color:{default:"#000"},height:{default:64},width:{default:64}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,stroke:t.color},uc,8,cc))}}),dc=["fill","width","height"],mc=[i.createStaticVNode('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)],_c=i.defineComponent({__name:"dots",props:{color:{default:"#000"},height:{default:240},width:{default:60}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t.color,width:t.width,height:t.height},mc,8,dc))}}),hc=["height","width","fill"],pc=[i.createStaticVNode('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)],gc={spinner:fc,dots:_c,bars:i.defineComponent({__name:"bars",props:{color:{default:"#000"},height:{default:40},width:{default:40}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:t.height,width:t.width,fill:t.color},pc,8,hc))}})},bc=["aria-busy"],Ec={class:"vl-icon"},Tc=i.defineComponent({__name:"Component",props:{active:{type:Boolean},programmatic:{type:Boolean},container:{},isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:{type:Boolean},transition:{default:"fade"},canCancel:{type:Boolean},onCancel:{type:Function,default:()=>{}},color:{},backgroundColor:{},opacity:{},width:{},height:{},zIndex:{},loader:{default:"spinner"}},emits:["hide","update:active"],setup(e,{expose:t,emit:n}){const a=e,s=i.ref(),r=i.ref(a.active),o=n,l=()=>{!a.canCancel||!r.value||(c(),a.onCancel.apply(null,null))},c=()=>{o("hide"),o("update:active",!1),a.programmatic&&(r.value=!1,setTimeout(()=>{const y=s.value.parentElement;i.render(null,y),ic(y)},150))},u=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.add("vl-shown")},p=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.remove("vl-shown")},h=y=>{y.code==="Escape"&&l()},d=y=>{if(!r.value||y.target===s.value||s.value.contains(y.target))return;const k=a.container?a.container:a.isFullPage?null:s.value.parentElement;(a.isFullPage||k&&k.contains(y.target))&&(y.preventDefault(),s.value.focus())},N=i.computed(()=>({background:a.backgroundColor,opacity:a.opacity}));return i.watch(()=>a.active,y=>{r.value=y}),i.watch(()=>r,y=>{y?u():p()}),i.onMounted(()=>{a.enforceFocus&&document.addEventListener("focusin",d),document.addEventListener("keyup",h)}),i.onBeforeUnmount(()=>{document.removeEventListener("keyup",h),document.removeEventListener("focusin",d)}),t({hide:c}),(y,k)=>(i.openBlock(),i.createBlock(i.Transition,{name:y.transition},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{tabindex:"0",class:i.normalizeClass(["vl-overlay vl-active",{"vl-full-page":y.isFullPage}]),"aria-busy":r.value,"aria-label":"Loading",style:i.normalizeStyle({zIndex:y.zIndex}),ref_key:"overlay",ref:s},[i.createElementVNode("div",{class:"vl-background",onClick:i.withModifiers(l,["prevent"]),style:i.normalizeStyle(N.value)},null,4),i.createElementVNode("div",Ec,[i.renderSlot(y.$slots,"before"),i.renderSlot(y.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(gc)[y.loader]),{color:y.color,width:y.width,height:y.height},null,8,["color","width","height"]))]),i.renderSlot(y.$slots,"after")])],14,bc),[[i.vShow,r.value]])]),_:3},8,["name"]))}}),Nc=(e={},t={})=>({show(n=e,a=t){const r={...e,...n,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let o=r.container;r.container||(o=document.body,r.isFullPage=!0);const l={...t,...a};return{hide:lc(Tc,r,o,l).exposed.hide}}}),vc=()=>{const e=Nc(),{attrs:t}=i.getCurrentInstance();let n=null;i.onUnmounted(()=>{s()});const a=()=>{const r=document.querySelector(`#${t.tId}`);n===null&&(n=e.show({canCancel:!1,isFullPage:!1,height:85,width:85,loader:"spinner",color:"#007bff",container:r}))},s=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:a,closeTabLoading:s}},Oc=ii({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),yc={install(e){sc("0.1.12"),e.component("VueStackTabs",Wa).use(Oc)}};J.IFrame=oc,J.Stack=Ut,J.StackTab=Wa,J.TabHeaderButton=zt,J.TabScrollMode=De,J.default=yc,J.useStackTab=Ba,J.useTabLoading=vc,J.useTabRouter=Ya,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-stack-tabs",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Vue.js component for router tab.",
5
5
  "private": false,
6
6
  "type": "module",
package/src/lib/index.ts CHANGED
@@ -6,6 +6,7 @@ import IFrame from './iframe.vue'
6
6
  import useTabLoading from './hooks/useTabLoading'
7
7
  import useTabRouter from './hooks/useTabRouter'
8
8
  import useStackTab from './hooks/useStackTab'
9
+ import TabHeaderButton from '@/lib/components/TabHeader/TabHeaderButton.vue'
9
10
  import './assets/style/index.scss'
10
11
  const i18n = createI18n({
11
12
  legacy: false,
@@ -14,7 +15,7 @@ const i18n = createI18n({
14
15
  })
15
16
 
16
17
  export * from './model/TabModel'
17
- export { IFrame, useTabLoading, useTabRouter, useStackTab,StackTab }
18
+ export { IFrame, useTabLoading, useTabRouter, useStackTab,TabHeaderButton,StackTab }
18
19
  export default {
19
20
  install(Vue: App): void {
20
21
  tabVersion(import.meta.env.PACKAGE_VERSION)
@@ -4,9 +4,10 @@ import IFrame from './iframe.vue';
4
4
  import useTabLoading from './hooks/useTabLoading';
5
5
  import useTabRouter from './hooks/useTabRouter';
6
6
  import useStackTab from './hooks/useStackTab';
7
+ import TabHeaderButton from './components/TabHeader/TabHeaderButton.vue';
7
8
  import './assets/style/index.scss';
8
9
  export * from './model/TabModel';
9
- export { IFrame, useTabLoading, useTabRouter, useStackTab, StackTab };
10
+ export { IFrame, useTabLoading, useTabRouter, useStackTab, TabHeaderButton, StackTab };
10
11
  declare const _default: {
11
12
  install(Vue: App): void;
12
13
  };