vue-stack-tabs 0.1.0 → 0.1.2
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.
- package/dist/style.css +1 -1
- package/dist/vue-stack-tabs.es.js +7373 -5250
- package/dist/vue-stack-tabs.umd.js +14 -14
- package/package.json +16 -14
- package/src/lib/StackTabs.vue +7 -15
- package/src/lib/components/ContextMenu/ContextMenuItem.vue +1 -1
- package/src/lib/components/ContextMenu/index.vue +6 -6
- package/src/lib/components/TabHeader/index.vue +9 -9
- package/src/lib/hooks/useContextMenu.ts +1 -1
- package/src/lib/hooks/useStackTab.ts +4 -4
- package/src/lib/hooks/useTabpanel.tsx +4 -4
- package/src/lib/iframe.vue +1 -1
- package/src/lib/index.ts +2 -4
- package/src/lib/utils/TabIdHelper.ts +1 -7
- package/types/hooks/useStackTab.d.ts +1 -0
- package/types/index.d.ts +1 -1
- package/types/utils/TabIdHelper.d.ts +10 -0
- package/types/utils/UriHelper.d.ts +4 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(ee,
|
|
2
|
-
* shared v9.
|
|
1
|
+
(function(ee,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],f):(ee=typeof globalThis<"u"?globalThis:ee||self,f(ee["vue-stack-tabs"]={},ee.Vue,ee.vueRouter))})(this,function(ee,f,Ee){"use strict";var hc=Object.defineProperty;var gc=(ee,f,Ee)=>f in ee?hc(ee,f,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ee[f]=Ee;var Ks=(ee,f,Ee)=>(gc(ee,typeof f!="symbol"?f+"":f,Ee),Ee);/*!
|
|
2
|
+
* shared v9.10.1
|
|
3
3
|
* (c) 2024 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/const
|
|
6
|
-
`)}function
|
|
7
|
-
* message-compiler v9.
|
|
5
|
+
*/const ve=typeof window<"u";let he,Ke;if(process.env.NODE_ENV!=="production"){const e=ve&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(he=t=>{e.mark(t)},Ke=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Zs=/\{([0-9a-zA-Z]+)\}/g;function Jt(e,...t){return t.length===1&&Y(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Zs,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Oe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Js=(e,t,n)=>Qs({l:e,k:t,s:n}),Qs=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),se=e=>typeof e=="number"&&isFinite(e),qs=e=>jn(e)==="[object Date]",xe=e=>jn(e)==="[object RegExp]",kt=e=>W(e)&&Object.keys(e).length===0,ie=Object.assign;let Vn;const we=()=>Vn||(Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bn(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const $s=Object.prototype.hasOwnProperty;function St(e,t){return $s.call(e,t)}const q=Array.isArray,Z=e=>typeof e=="function",M=e=>typeof e=="string",j=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",ea=e=>Y(e)&&Z(e.then)&&Z(e.catch),Wn=Object.prototype.toString,jn=e=>Wn.call(e),W=e=>{if(!Y(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ta=e=>e==null?"":q(e)||W(e)&&e.toString===Wn?JSON.stringify(e,null,2):String(e);function na(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const Hn=2;function ra(e,t=0,n=e.length){const s=e.split(/\r?\n/);let a=0;const r=[];for(let o=0;o<s.length;o++)if(a+=s[o].length+1,a>=t){for(let i=o-Hn;i<=o+Hn||n>a;i++){if(i<0||i>=s.length)continue;const l=i+1;r.push(`${l}${" ".repeat(3-String(l).length)}| ${s[i]}`);const c=s[i].length;if(i===o){const h=t-(a-c)+1,p=Math.max(1,n>a?c-h:n-t);r.push(" | "+" ".repeat(h)+"^".repeat(p))}else if(i>o){if(n>a){const h=Math.max(Math.min(n-a,c),1);r.push(" | "+"^".repeat(h))}a+=c+1}}break}return r.join(`
|
|
6
|
+
`)}function Qt(e){let t=e;return()=>++t}function sa(e,t){}const Gn={};function Yn(e){Gn[e]||(Gn[e]=!0,void 0)}function qt(){const e=new Map;return{events:e,on(n,s){const a=e.get(n);a&&a.push(s)||e.set(n,[s])},off(n,s){const a=e.get(n);a&&a.splice(a.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(a=>a(s)),(e.get("*")||[]).slice().map(a=>a(n,s))}}}const Ct=e=>!Y(e)||q(e);function At(e,t){if(Ct(e)||Ct(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:a}=n.pop();Object.keys(s).forEach(r=>{Ct(s[r])||Ct(a[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]})})}}/*!
|
|
7
|
+
* message-compiler v9.10.1
|
|
8
8
|
* (c) 2024 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function
|
|
11
|
-
`,ho="\u2028",go="\u2029";function bo(e){const t=e;let n=0,a=1,o=1,s=0;const r=O=>t[O]===po&&t[O+1]===de,l=O=>t[O]===de,i=O=>t[O]===go,u=O=>t[O]===ho,p=O=>r(O)||l(O)||i(O)||u(O),h=()=>n,d=()=>a,N=()=>o,A=()=>s,I=O=>r(O)||i(O)||u(O)?de:t[O],S=()=>I(n),m=()=>I(n+s);function g(){return s=0,p(n)&&(a++,o=0),r(n)&&n++,n++,o++,t[n]}function E(){return r(n+s)&&s++,s++,t[n+s]}function b(){n=0,a=1,o=1,s=0}function k(O=0){s=O}function v(){const O=n+s;for(;O!==n;)g();s=0}return{index:h,line:d,column:N,peekOffset:A,charAt:I,currentChar:S,currentPeek:m,next:g,peek:E,reset:b,resetPeek:k,skipToPeek:v}}const Ue=void 0,vo=".",Jn="'",Eo="tokenizer";function To(e,t={}){const n=t.location!==!1,a=bo(e),o=()=>a.index(),s=()=>ro(a.line(),a.column(),a.index()),r=s(),l=o(),i={currentType:14,offset:l,startLoc:r,endLoc:r,lastType:14,lastOffset:l,lastStartLoc:r,lastEndLoc:r,braceNest:0,inLinked:!1,text:""},u=()=>i,{onError:p}=t;function h(_,f,L,...F){const B=u();if(f.column+=L,f.offset+=L,p){const X=n?en(B.startLoc,f):null,Ae=ot(_,X,{domain:Eo,args:F});p(Ae)}}function d(_,f,L){_.endLoc=s(),_.currentType=f;const F={type:f};return n&&(F.loc=en(_.startLoc,_.endLoc)),L!=null&&(F.value=L),F}const N=_=>d(_,14);function A(_,f){return _.currentChar()===f?(_.next(),f):(h(V.EXPECTED_TOKEN,s(),0,f),"")}function I(_){let f="";for(;_.currentPeek()===Pe||_.currentPeek()===de;)f+=_.currentPeek(),_.peek();return f}function S(_){const f=I(_);return _.skipToPeek(),f}function m(_){if(_===Ue)return!1;const f=_.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function g(_){if(_===Ue)return!1;const f=_.charCodeAt(0);return f>=48&&f<=57}function E(_,f){const{currentType:L}=f;if(L!==2)return!1;I(_);const F=m(_.currentPeek());return _.resetPeek(),F}function b(_,f){const{currentType:L}=f;if(L!==2)return!1;I(_);const F=_.currentPeek()==="-"?_.peek():_.currentPeek(),B=g(F);return _.resetPeek(),B}function k(_,f){const{currentType:L}=f;if(L!==2)return!1;I(_);const F=_.currentPeek()===Jn;return _.resetPeek(),F}function v(_,f){const{currentType:L}=f;if(L!==8)return!1;I(_);const F=_.currentPeek()===".";return _.resetPeek(),F}function O(_,f){const{currentType:L}=f;if(L!==9)return!1;I(_);const F=m(_.currentPeek());return _.resetPeek(),F}function T(_,f){const{currentType:L}=f;if(!(L===8||L===12))return!1;I(_);const F=_.currentPeek()===":";return _.resetPeek(),F}function w(_,f){const{currentType:L}=f;if(L!==10)return!1;const F=()=>{const X=_.currentPeek();return X==="{"?m(_.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===Pe||!X?!1:X===de?(_.peek(),F()):m(X)},B=F();return _.resetPeek(),B}function P(_){I(_);const f=_.currentPeek()==="|";return _.resetPeek(),f}function x(_){const f=I(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:f.length>0}}function y(_,f=!0){const L=(B=!1,X="",Ae=!1)=>{const Fe=_.currentPeek();return Fe==="{"?X==="%"?!1:B:Fe==="@"||!Fe?X==="%"?!0:B:Fe==="%"?(_.peek(),L(B,"%",!0)):Fe==="|"?X==="%"||Ae?!0:!(X===Pe||X===de):Fe===Pe?(_.peek(),L(!0,Pe,Ae)):Fe===de?(_.peek(),L(!0,de,Ae)):!0},F=L();return f&&_.resetPeek(),F}function D(_,f){const L=_.currentChar();return L===Ue?Ue:f(L)?(_.next(),L):null}function J(_){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 K(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57})}function te(_){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=K(_);)L+=f;return L}function Ce(_){S(_);const f=_.currentChar();return f!=="%"&&h(V.EXPECTED_TOKEN,s(),0,f),_.next(),"%"}function Ne(_){let f="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(y(_))f+=L,_.next();else break;else if(L===Pe||L===de)if(y(_))f+=L,_.next();else{if(P(_))break;f+=L,_.next()}else f+=L,_.next()}return f}function dt(_){S(_);let f="",L="";for(;f=J(_);)L+=f;return _.currentChar()===Ue&&h(V.UNTERMINATED_CLOSING_BRACE,s(),0),L}function be(_){S(_);let f="";return _.currentChar()==="-"?(_.next(),f+=`-${ce(_)}`):f+=ce(_),_.currentChar()===Ue&&h(V.UNTERMINATED_CLOSING_BRACE,s(),0),f}function Xe(_){S(_),A(_,"'");let f="",L="";const F=X=>X!==Jn&&X!==de;for(;f=D(_,F);)f==="\\"?L+=tt(_):L+=f;const B=_.currentChar();return B===de||B===Ue?(h(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),B===de&&(_.next(),A(_,"'")),L):(A(_,"'"),L)}function tt(_){const f=_.currentChar();switch(f){case"\\":case"'":return _.next(),`\\${f}`;case"u":return nt(_,f,4);case"U":return nt(_,f,6);default:return h(V.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function nt(_,f,L){A(_,f);let F="";for(let B=0;B<L;B++){const X=te(_);if(!X){h(V.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${F}${_.currentChar()}`);break}F+=X}return`\\${f}${F}`}function Me(_){S(_);let f="",L="";const F=B=>B!=="{"&&B!=="}"&&B!==Pe&&B!==de;for(;f=D(_,F);)L+=f;return L}function ze(_){let f="",L="";for(;f=J(_);)L+=f;return L}function mt(_){const f=(L=!1,F)=>{const B=_.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===Pe?F:B===de||B===vo?(F+=B,_.next(),f(L,F)):(F+=B,_.next(),f(!0,F))};return f(!1,"")}function De(_){S(_);const f=A(_,"|");return S(_),f}function U(_,f){let L=null;switch(_.currentChar()){case"{":return f.braceNest>=1&&h(V.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),_.next(),L=d(f,2,"{"),S(_),f.braceNest++,L;case"}":return f.braceNest>0&&f.currentType===2&&h(V.EMPTY_PLACEHOLDER,s(),0),_.next(),L=d(f,3,"}"),f.braceNest--,f.braceNest>0&&S(_),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),L;case"@":return f.braceNest>0&&h(V.UNTERMINATED_CLOSING_BRACE,s(),0),L=Q(_,f)||N(f),f.braceNest=0,L;default:let B=!0,X=!0,Ae=!0;if(P(_))return f.braceNest>0&&h(V.UNTERMINATED_CLOSING_BRACE,s(),0),L=d(f,1,De(_)),f.braceNest=0,f.inLinked=!1,L;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(V.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,ue(_,f);if(B=E(_,f))return L=d(f,5,dt(_)),S(_),L;if(X=b(_,f))return L=d(f,6,be(_)),S(_),L;if(Ae=k(_,f))return L=d(f,7,Xe(_)),S(_),L;if(!B&&!X&&!Ae)return L=d(f,13,Me(_)),h(V.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,L.value),S(_),L;break}return L}function Q(_,f){const{currentType:L}=f;let F=null;const B=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(B===de||B===Pe)&&h(V.INVALID_LINKED_FORMAT,s(),0),B){case"@":return _.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return S(_),_.next(),d(f,9,".");case":":return S(_),_.next(),d(f,10,":");default:return P(_)?(F=d(f,1,De(_)),f.braceNest=0,f.inLinked=!1,F):v(_,f)||T(_,f)?(S(_),Q(_,f)):O(_,f)?(S(_),d(f,12,ze(_))):w(_,f)?(S(_),B==="{"?U(_,f)||F:d(f,11,mt(_))):(L===8&&h(V.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,ue(_,f))}}function ue(_,f){let L={type:14};if(f.braceNest>0)return U(_,f)||N(f);if(f.inLinked)return Q(_,f)||N(f);switch(_.currentChar()){case"{":return U(_,f)||N(f);case"}":return h(V.UNBALANCED_CLOSING_BRACE,s(),0),_.next(),d(f,3,"}");case"@":return Q(_,f)||N(f);default:if(P(_))return L=d(f,1,De(_)),f.braceNest=0,f.inLinked=!1,L;const{isModulo:B,hasSpace:X}=x(_);if(B)return X?d(f,0,Ne(_)):d(f,4,Ce(_));if(y(_))return d(f,0,Ne(_));break}return L}function fe(){const{currentType:_,offset:f,startLoc:L,endLoc:F}=i;return i.lastType=_,i.lastOffset=f,i.lastStartLoc=L,i.lastEndLoc=F,i.offset=o(),i.startLoc=s(),a.currentChar()===Ue?d(i,14):ue(a,i)}return{nextToken:fe,currentOffset:o,currentPosition:s,context:u}}const No="parser",Oo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function yo(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 Lo(e={}){const t=e.location!==!1,{onError:n}=e;function a(m,g,E,b,...k){const v=m.currentPosition();if(v.offset+=b,v.column+=b,n){const O=t?en(E,v):null,T=ot(g,O,{domain:No,args:k});n(T)}}function o(m,g,E){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:E,end:E}),b}function s(m,g,E,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=E))}function r(m,g){const E=m.context(),b=o(3,E.offset,E.startLoc);return b.value=g,s(b,m.currentOffset(),m.currentPosition()),b}function l(m,g){const E=m.context(),{lastOffset:b,lastStartLoc:k}=E,v=o(5,b,k);return v.index=parseInt(g,10),m.nextToken(),s(v,m.currentOffset(),m.currentPosition()),v}function i(m,g){const E=m.context(),{lastOffset:b,lastStartLoc:k}=E,v=o(4,b,k);return v.key=g,m.nextToken(),s(v,m.currentOffset(),m.currentPosition()),v}function u(m,g){const E=m.context(),{lastOffset:b,lastStartLoc:k}=E,v=o(9,b,k);return v.value=g.replace(Oo,yo),m.nextToken(),s(v,m.currentOffset(),m.currentPosition()),v}function p(m){const g=m.nextToken(),E=m.context(),{lastOffset:b,lastStartLoc:k}=E,v=o(8,b,k);return g.type!==12?(a(m,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),v.value="",s(v,b,k),{nextConsumeToken:g,node:v}):(g.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ye(g)),v.value=g.value||"",s(v,m.currentOffset(),m.currentPosition()),{node:v})}function h(m,g){const E=m.context(),b=o(7,E.offset,E.startLoc);return b.value=g,s(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),E=o(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const k=p(m);E.modifier=k.node,b=k.nextConsumeToken||m.nextToken()}switch(b.type!==10&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),E.key=h(m,b.value||"");break;case 5:b.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),E.key=i(m,b.value||"");break;case 6:b.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),E.key=l(m,b.value||"");break;case 7:b.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),E.key=u(m,b.value||"");break;default:a(m,V.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const k=m.context(),v=o(7,k.offset,k.startLoc);return v.value="",s(v,k.offset,k.startLoc),E.key=v,s(E,k.offset,k.startLoc),{nextConsumeToken:b,node:E}}return s(E,m.currentOffset(),m.currentPosition()),{node:E}}function N(m){const g=m.context(),E=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,k=o(2,E,b);k.items=[];let v=null;do{const w=v||m.nextToken();switch(v=null,w.type){case 0:w.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(w)),k.items.push(r(m,w.value||""));break;case 6:w.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(w)),k.items.push(l(m,w.value||""));break;case 5:w.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(w)),k.items.push(i(m,w.value||""));break;case 7:w.value==null&&a(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(w)),k.items.push(u(m,w.value||""));break;case 8:const P=d(m);k.items.push(P.node),v=P.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const O=g.currentType===1?g.lastOffset:m.currentOffset(),T=g.currentType===1?g.lastEndLoc:m.currentPosition();return s(k,O,T),k}function A(m,g,E,b){const k=m.context();let v=b.items.length===0;const O=o(1,g,E);O.cases=[],O.cases.push(b);do{const T=N(m);v||(v=T.items.length===0),O.cases.push(T)}while(k.currentType!==14);return v&&a(m,V.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),s(O,m.currentOffset(),m.currentPosition()),O}function I(m){const g=m.context(),{offset:E,startLoc:b}=g,k=N(m);return g.currentType===14?k:A(m,E,b,k)}function S(m){const g=To(m,zn({},e)),E=g.context(),b=o(0,E.offset,E.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=I(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),E.currentType!==14&&a(g,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,m[E.offset]||""),s(b,g.currentOffset(),g.currentPosition()),b}return{parse:S}}function ye(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 ko(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Qn(e,t){for(let n=0;n<e.length;n++)tn(e[n],t)}function tn(e,t){switch(e.type){case 1:Qn(e.cases,t),t.helper("plural");break;case 2:Qn(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 Io(e,t={}){const n=ko(e);n.helper("normalize"),e.body&&tn(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function So(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=Zn(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 Co="minifier";function rt(e){switch(e.t=e.type,e.type){case 0:const t=e;rt(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++)rt(a[p]);n.c=a,delete n.cases;break;case 2:const o=e,s=o.items;for(let p=0;p<s.length;p++)rt(s[p]);o.i=s,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const r=e;r.value&&(r.v=r.value,delete r.value);break;case 6:const l=e;rt(l.key),l.k=l.key,delete l.key,l.modifier&&(rt(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const i=e;i.i=i.index,delete i.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw ot(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Co,args:[e.type]})}delete e.type}const Ao="parser";function wo(e,t){const{sourceMap:n,filename:a,breakLineCode:o,needIndent:s}=t,r=t.location!==!1,l={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:s,indentLevel:0};r&&e.loc&&(l.source=e.loc.source);const i=()=>l;function u(S,m){l.code+=S}function p(S,m=!0){const g=m?o:"";u(s?g+" ".repeat(S):g)}function h(S=!0){const m=++l.indentLevel;S&&p(m)}function d(S=!0){const m=--l.indentLevel;S&&p(m)}function N(){p(l.indentLevel)}return{context:i,push:u,indent:h,deindent:d,newline:N,helper:S=>`_${S}`,needIndent:()=>l.needIndent}}function Po(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),lt(e,t.key),t.modifier?(e.push(", "),lt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ro(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const o=t.items.length;for(let s=0;s<o&&(lt(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(a()),e.push("])")}function Mo(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const o=t.cases.length;for(let s=0;s<o&&(lt(e,t.cases[s]),s!==o-1);s++)e.push(", ");e.deindent(a()),e.push("])")}}function Do(e,t){t.body?lt(e,t.body):e.push("null")}function lt(e,t){const{helper:n}=e;switch(t.type){case 0:Do(e,t);break;case 1:Mo(e,t);break;case 2:Ro(e,t);break;case 6:Po(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 ot(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ao,args:[t.type]})}}const Fo=(e,t={})=>{const n=Kn(t.mode)?t.mode:"normal",a=Kn(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
-
`,
|
|
13
|
-
* core-base v9.
|
|
10
|
+
*/function aa(e,t,n){return{line:e,column:t,offset:n}}function $t(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const oa=/\{([0-9a-zA-Z]+)\}/g;function ia(e,...t){return t.length===1&&la(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(oa,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Xn=Object.assign,zn=e=>typeof e=="string",la=e=>e!==null&&typeof e=="object";function Kn(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const V={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},ca={[V.EXPECTED_TOKEN]:"Expected token: '{0}'",[V.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[V.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[V.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[V.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[V.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[V.EMPTY_PLACEHOLDER]:"Empty placeholder",[V.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[V.INVALID_LINKED_FORMAT]:"Invalid linked format",[V.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[V.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[V.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[V.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[V.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function st(e,t,n={}){const{domain:s,messages:a,args:r}=n,o=ia((a||ca)[e]||"",...r||[]),i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=s,i}function ua(e){throw e}const fa=/<\/?[\w\s="/.':;#-\/]+>/,da=e=>fa.test(e),Pe=" ",ma="\r",de=`
|
|
11
|
+
`,_a="\u2028",pa="\u2029";function ha(e){const t=e;let n=0,s=1,a=1,r=0;const o=y=>t[y]===ma&&t[y+1]===de,i=y=>t[y]===de,l=y=>t[y]===pa,c=y=>t[y]===_a,h=y=>o(y)||i(y)||l(y)||c(y),p=()=>n,d=()=>s,O=()=>a,w=()=>r,k=y=>o(y)||l(y)||c(y)?de:t[y],S=()=>k(n),m=()=>k(n+r);function g(){return r=0,h(n)&&(s++,a=0),o(n)&&n++,n++,a++,t[n]}function v(){return o(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,a=1,r=0}function I(y=0){r=y}function E(){const y=n+r;for(;y!==n;)g();r=0}return{index:p,line:d,column:O,peekOffset:w,charAt:k,currentChar:S,currentPeek:m,next:g,peek:v,reset:b,resetPeek:I,skipToPeek:E}}const Ue=void 0,ga=".",Zn="'",ba="tokenizer";function Ea(e,t={}){const n=t.location!==!1,s=ha(e),a=()=>s.index(),r=()=>aa(s.line(),s.column(),s.index()),o=r(),i=a(),l={currentType:14,offset:i,startLoc:o,endLoc:o,lastType:14,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:h}=t;function p(_,u,L,...F){const B=c();if(u.column+=L,u.offset+=L,h){const X=n?$t(B.startLoc,u):null,Ae=st(_,X,{domain:ba,args:F});h(Ae)}}function d(_,u,L){_.endLoc=r(),_.currentType=u;const F={type:u};return n&&(F.loc=$t(_.startLoc,_.endLoc)),L!=null&&(F.value=L),F}const O=_=>d(_,14);function w(_,u){return _.currentChar()===u?(_.next(),u):(p(V.EXPECTED_TOKEN,r(),0,u),"")}function k(_){let u="";for(;_.currentPeek()===Pe||_.currentPeek()===de;)u+=_.currentPeek(),_.peek();return u}function S(_){const u=k(_);return _.skipToPeek(),u}function m(_){if(_===Ue)return!1;const u=_.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function g(_){if(_===Ue)return!1;const u=_.charCodeAt(0);return u>=48&&u<=57}function v(_,u){const{currentType:L}=u;if(L!==2)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function b(_,u){const{currentType:L}=u;if(L!==2)return!1;k(_);const F=_.currentPeek()==="-"?_.peek():_.currentPeek(),B=g(F);return _.resetPeek(),B}function I(_,u){const{currentType:L}=u;if(L!==2)return!1;k(_);const F=_.currentPeek()===Zn;return _.resetPeek(),F}function E(_,u){const{currentType:L}=u;if(L!==8)return!1;k(_);const F=_.currentPeek()===".";return _.resetPeek(),F}function y(_,u){const{currentType:L}=u;if(L!==9)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function A(_,u){const{currentType:L}=u;if(!(L===8||L===12))return!1;k(_);const F=_.currentPeek()===":";return _.resetPeek(),F}function T(_,u){const{currentType:L}=u;if(L!==10)return!1;const F=()=>{const X=_.currentPeek();return X==="{"?m(_.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===Pe||!X?!1:X===de?(_.peek(),F()):m(X)},B=F();return _.resetPeek(),B}function P(_){k(_);const u=_.currentPeek()==="|";return _.resetPeek(),u}function x(_){const u=k(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:u.length>0}}function N(_,u=!0){const L=(B=!1,X="",Ae=!1)=>{const Fe=_.currentPeek();return Fe==="{"?X==="%"?!1:B:Fe==="@"||!Fe?X==="%"?!0:B:Fe==="%"?(_.peek(),L(B,"%",!0)):Fe==="|"?X==="%"||Ae?!0:!(X===Pe||X===de):Fe===Pe?(_.peek(),L(!0,Pe,Ae)):Fe===de?(_.peek(),L(!0,de,Ae)):!0},F=L();return u&&_.resetPeek(),F}function D(_,u){const L=_.currentChar();return L===Ue?Ue:u(L)?(_.next(),L):null}function J(_){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 K(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57})}function te(_){return D(_,L=>{const F=L.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ce(_){let u="",L="";for(;u=K(_);)L+=u;return L}function Ce(_){S(_);const u=_.currentChar();return u!=="%"&&p(V.EXPECTED_TOKEN,r(),0,u),_.next(),"%"}function Ne(_){let u="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(N(_))u+=L,_.next();else break;else if(L===Pe||L===de)if(N(_))u+=L,_.next();else{if(P(_))break;u+=L,_.next()}else u+=L,_.next()}return u}function ft(_){S(_);let u="",L="";for(;u=J(_);)L+=u;return _.currentChar()===Ue&&p(V.UNTERMINATED_CLOSING_BRACE,r(),0),L}function dt(_){S(_);let u="";return _.currentChar()==="-"?(_.next(),u+=`-${ce(_)}`):u+=ce(_),_.currentChar()===Ue&&p(V.UNTERMINATED_CLOSING_BRACE,r(),0),u}function ge(_){S(_),w(_,"'");let u="",L="";const F=X=>X!==Zn&&X!==de;for(;u=D(_,F);)u==="\\"?L+=Ge(_):L+=u;const B=_.currentChar();return B===de||B===Ue?(p(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),B===de&&(_.next(),w(_,"'")),L):(w(_,"'"),L)}function Ge(_){const u=_.currentChar();switch(u){case"\\":case"'":return _.next(),`\\${u}`;case"u":return tt(_,u,4);case"U":return tt(_,u,6);default:return p(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,u),""}}function tt(_,u,L){w(_,u);let F="";for(let B=0;B<L;B++){const X=te(_);if(!X){p(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${u}${F}${_.currentChar()}`);break}F+=X}return`\\${u}${F}`}function De(_){S(_);let u="",L="";const F=B=>B!=="{"&&B!=="}"&&B!==Pe&&B!==de;for(;u=D(_,F);)L+=u;return L}function Ye(_){let u="",L="";for(;u=J(_);)L+=u;return L}function nt(_){const u=(L=!1,F)=>{const B=_.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===Pe?F:B===de||B===ga?(F+=B,_.next(),u(L,F)):(F+=B,_.next(),u(!0,F))};return u(!1,"")}function Xe(_){S(_);const u=w(_,"|");return S(_),u}function U(_,u){let L=null;switch(_.currentChar()){case"{":return u.braceNest>=1&&p(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),_.next(),L=d(u,2,"{"),S(_),u.braceNest++,L;case"}":return u.braceNest>0&&u.currentType===2&&p(V.EMPTY_PLACEHOLDER,r(),0),_.next(),L=d(u,3,"}"),u.braceNest--,u.braceNest>0&&S(_),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),L;case"@":return u.braceNest>0&&p(V.UNTERMINATED_CLOSING_BRACE,r(),0),L=Q(_,u)||O(u),u.braceNest=0,L;default:let B=!0,X=!0,Ae=!0;if(P(_))return u.braceNest>0&&p(V.UNTERMINATED_CLOSING_BRACE,r(),0),L=d(u,1,Xe(_)),u.braceNest=0,u.inLinked=!1,L;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return p(V.UNTERMINATED_CLOSING_BRACE,r(),0),u.braceNest=0,ue(_,u);if(B=v(_,u))return L=d(u,5,ft(_)),S(_),L;if(X=b(_,u))return L=d(u,6,dt(_)),S(_),L;if(Ae=I(_,u))return L=d(u,7,ge(_)),S(_),L;if(!B&&!X&&!Ae)return L=d(u,13,De(_)),p(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),S(_),L;break}return L}function Q(_,u){const{currentType:L}=u;let F=null;const B=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(B===de||B===Pe)&&p(V.INVALID_LINKED_FORMAT,r(),0),B){case"@":return _.next(),F=d(u,8,"@"),u.inLinked=!0,F;case".":return S(_),_.next(),d(u,9,".");case":":return S(_),_.next(),d(u,10,":");default:return P(_)?(F=d(u,1,Xe(_)),u.braceNest=0,u.inLinked=!1,F):E(_,u)||A(_,u)?(S(_),Q(_,u)):y(_,u)?(S(_),d(u,12,Ye(_))):T(_,u)?(S(_),B==="{"?U(_,u)||F:d(u,11,nt(_))):(L===8&&p(V.INVALID_LINKED_FORMAT,r(),0),u.braceNest=0,u.inLinked=!1,ue(_,u))}}function ue(_,u){let L={type:14};if(u.braceNest>0)return U(_,u)||O(u);if(u.inLinked)return Q(_,u)||O(u);switch(_.currentChar()){case"{":return U(_,u)||O(u);case"}":return p(V.UNBALANCED_CLOSING_BRACE,r(),0),_.next(),d(u,3,"}");case"@":return Q(_,u)||O(u);default:if(P(_))return L=d(u,1,Xe(_)),u.braceNest=0,u.inLinked=!1,L;const{isModulo:B,hasSpace:X}=x(_);if(B)return X?d(u,0,Ne(_)):d(u,4,Ce(_));if(N(_))return d(u,0,Ne(_));break}return L}function fe(){const{currentType:_,offset:u,startLoc:L,endLoc:F}=l;return l.lastType=_,l.lastOffset=u,l.lastStartLoc=L,l.lastEndLoc=F,l.offset=a(),l.startLoc=r(),s.currentChar()===Ue?d(l,14):ue(s,l)}return{nextToken:fe,currentOffset:a,currentPosition:r,context:c}}const va="parser",Ta=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Na(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Oa(e={}){const t=e.location!==!1,{onError:n}=e;function s(m,g,v,b,...I){const E=m.currentPosition();if(E.offset+=b,E.column+=b,n){const y=t?$t(v,E):null,A=st(g,y,{domain:va,args:I});n(A)}}function a(m,g,v){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:v,end:v}),b}function r(m,g,v,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=v))}function o(m,g){const v=m.context(),b=a(3,v.offset,v.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function i(m,g){const v=m.context(),{lastOffset:b,lastStartLoc:I}=v,E=a(5,b,I);return E.index=parseInt(g,10),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function l(m,g){const v=m.context(),{lastOffset:b,lastStartLoc:I}=v,E=a(4,b,I);return E.key=g,m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function c(m,g){const v=m.context(),{lastOffset:b,lastStartLoc:I}=v,E=a(9,b,I);return E.value=g.replace(Ta,Na),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function h(m){const g=m.nextToken(),v=m.context(),{lastOffset:b,lastStartLoc:I}=v,E=a(8,b,I);return g.type!==12?(s(m,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),E.value="",r(E,b,I),{nextConsumeToken:g,node:E}):(g.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,ye(g)),E.value=g.value||"",r(E,m.currentOffset(),m.currentPosition()),{node:E})}function p(m,g){const v=m.context(),b=a(7,v.offset,v.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),v=a(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const I=h(m);v.modifier=I.node,b=I.nextConsumeToken||m.nextToken()}switch(b.type!==10&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),v.key=p(m,b.value||"");break;case 5:b.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),v.key=l(m,b.value||"");break;case 6:b.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),v.key=i(m,b.value||"");break;case 7:b.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(b)),v.key=c(m,b.value||"");break;default:s(m,V.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const I=m.context(),E=a(7,I.offset,I.startLoc);return E.value="",r(E,I.offset,I.startLoc),v.key=E,r(v,I.offset,I.startLoc),{nextConsumeToken:b,node:v}}return r(v,m.currentOffset(),m.currentPosition()),{node:v}}function O(m){const g=m.context(),v=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,I=a(2,v,b);I.items=[];let E=null;do{const T=E||m.nextToken();switch(E=null,T.type){case 0:T.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(T)),I.items.push(o(m,T.value||""));break;case 6:T.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(T)),I.items.push(i(m,T.value||""));break;case 5:T.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(T)),I.items.push(l(m,T.value||""));break;case 7:T.value==null&&s(m,V.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ye(T)),I.items.push(c(m,T.value||""));break;case 8:const P=d(m);I.items.push(P.node),E=P.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const y=g.currentType===1?g.lastOffset:m.currentOffset(),A=g.currentType===1?g.lastEndLoc:m.currentPosition();return r(I,y,A),I}function w(m,g,v,b){const I=m.context();let E=b.items.length===0;const y=a(1,g,v);y.cases=[],y.cases.push(b);do{const A=O(m);E||(E=A.items.length===0),y.cases.push(A)}while(I.currentType!==14);return E&&s(m,V.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),r(y,m.currentOffset(),m.currentPosition()),y}function k(m){const g=m.context(),{offset:v,startLoc:b}=g,I=O(m);return g.currentType===14?I:w(m,v,b,I)}function S(m){const g=Ea(m,Xn({},e)),v=g.context(),b=a(0,v.offset,v.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=k(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),v.currentType!==14&&s(g,V.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,m[v.offset]||""),r(b,g.currentOffset(),g.currentPosition()),b}return{parse:S}}function ye(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 ya(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++)en(e[n],t)}function en(e,t){switch(e.type){case 1:Jn(e.cases,t),t.helper("plural");break;case 2:Jn(e.items,t);break;case 6:en(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 La(e,t={}){const n=ya(e);n.helper("normalize"),e.body&&en(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Ia(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 s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Kn(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const ka="minifier";function at(e){switch(e.t=e.type,e.type){case 0:const t=e;at(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,s=n.cases;for(let h=0;h<s.length;h++)at(s[h]);n.c=s,delete n.cases;break;case 2:const a=e,r=a.items;for(let h=0;h<r.length;h++)at(r[h]);a.i=r,delete a.items,a.static&&(a.s=a.static,delete a.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 i=e;at(i.key),i.k=i.key,delete i.key,i.modifier&&(at(i.modifier),i.m=i.modifier,delete i.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const c=e;c.k=c.key,delete c.key;break;default:throw st(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ka,args:[e.type]})}delete e.type}const Sa="parser";function Ca(e,t){const{sourceMap:n,filename:s,breakLineCode:a,needIndent:r}=t,o=t.location!==!1,i={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:r,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const l=()=>i;function c(S,m){i.code+=S}function h(S,m=!0){const g=m?a:"";c(r?g+" ".repeat(S):g)}function p(S=!0){const m=++i.indentLevel;S&&h(m)}function d(S=!0){const m=--i.indentLevel;S&&h(m)}function O(){h(i.indentLevel)}return{context:l,push:c,indent:p,deindent:d,newline:O,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function Aa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ot(e,t.key),t.modifier?(e.push(", "),ot(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function wa(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const a=t.items.length;for(let r=0;r<a&&(ot(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Pa(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const a=t.cases.length;for(let r=0;r<a&&(ot(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Ra(e,t){t.body?ot(e,t.body):e.push("null")}function ot(e,t){const{helper:n}=e;switch(t.type){case 0:Ra(e,t);break;case 1:Pa(e,t);break;case 2:wa(e,t);break;case 6:Aa(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 st(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Sa,args:[t.type]})}}const Ma=(e,t={})=>{const n=zn(t.mode)?t.mode:"normal",s=zn(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=Ca(e,{mode:n,filename:s,sourceMap:a,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),i.length>0&&(l.push(`const { ${Kn(i.map(p=>`${p}: _${p}`),", ")} } = ctx`),l.newline()),l.push("return "),ot(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:h}=l.context();return{ast:e,code:c,map:h?h.toJSON():void 0}};function Da(e,t={}){const n=Xn({},t),s=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,i=Oa(n).parse(e);return s?(r&&Ia(i),a&&at(i),{ast:i,code:""}):(La(i,n),Ma(i,n))}/*!
|
|
13
|
+
* core-base v9.10.1
|
|
14
14
|
* (c) 2024 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function Uo(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(we().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(we().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(we().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ve=[];Ve[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ve[1]={w:[1],".":[2],"[":[4],o:[7]},Ve[2]={w:[2],i:[3,0],0:[3,0]},Ve[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ve[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ve[5]={"'":[4,0],o:8,l:[5,0]},Ve[6]={'"':[4,0],o:8,l:[6,0]};const Vo=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Bo(e){return Vo.test(e)}function Wo(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 Ho(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 jo(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Bo(t)?Wo(t):"*"+t}function Go(e){const t=[];let n=-1,a=0,o=0,s,r,l,i,u,p,h;const d=[];d[0]=()=>{r===void 0?r=l:r+=l},d[1]=()=>{r!==void 0&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,a=4,d[0]();else{if(o=0,r===void 0||(r=jo(r),r===!1))return!1;d[1]()}};function N(){const A=e[n+1];if(a===5&&A==="'"||a===6&&A==='"')return n++,l="\\"+A,d[0](),!0}for(;a!==null;)if(n++,s=e[n],!(s==="\\"&&N())){if(i=Ho(s),h=Ve[a],u=h[i]||h.l||8,u===8||(a=u[0],u[1]!==void 0&&(p=d[u[1]],p&&(l=s,p()===!1))))return;if(a===7)return t}}const $n=new Map;function Yo(e,t){return Y(e)?e[t]:null}function Xo(e,t){if(!Y(e))return null;let n=$n.get(t);if(n||(n=Go(t),n&&$n.set(t,n)),!n)return null;const a=n.length;let o=e,s=0;for(;s<a;){const r=o[n[s]];if(r===void 0||Z(o))return null;o=r,s++}return o}const zo=e=>e,Ko=e=>"",Zo="text",Jo=e=>e.length===0?"":no(e),Qo=to;function es(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qo(e){const t=ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ae(e.named.count)||ae(e.named.n))?ae(e.named.count)?e.named.count:ae(e.named.n)?e.named.n:t:t}function $o(e,t){t.count||(t.count=e),t.n||(t.n=e)}function er(e={}){const t=e.locale,n=qo(e),a=Y(e.pluralRules)&&M(t)&&Z(e.pluralRules[t])?e.pluralRules[t]:es,o=Y(e.pluralRules)&&M(t)&&Z(e.pluralRules[t])?es:void 0,s=m=>m[a(n,m.length,o)],r=e.list||[],l=m=>r[m],i=e.named||{};ae(e.pluralIndex)&&$o(n,i);const u=m=>i[m];function p(m){const g=Z(e.messages)?e.messages(m):Y(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Ko)}const h=m=>e.modifiers?e.modifiers[m]:zo,d=W(e.processor)&&Z(e.processor.normalize)?e.processor.normalize:Jo,N=W(e.processor)&&Z(e.processor.interpolate)?e.processor.interpolate:Qo,A=W(e.processor)&&M(e.processor.type)?e.processor.type:Zo,S={list:l,named:u,plural:s,linked:(m,...g)=>{const[E,b]=g;let k="text",v="";g.length===1?Y(E)?(v=E.modifier||v,k=E.type||k):M(E)&&(v=E||v):g.length===2&&(M(E)&&(v=E||v),M(b)&&(k=b||k));const O=p(m)(S),T=k==="vnode"&&q(O)&&v?O[0]:O;return v?h(v)(T,k):T},message:p,type:A,interpolate:N,normalize:d,values:le({},r,i)};return S}let pt=null;function tr(e){pt=e}function nr(e,t,n){pt&&pt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const sr=ar("function:translate");function ar(e){return t=>pt&&pt.emit(e,t)}const me={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},or={[me.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[me.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[me.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[me.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[me.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[me.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[me.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 Ze(e,...t){return Qt(or[e],...t)}const ts=V.__EXTEND_POINT__,Je=qt(ts),re={INVALID_ARGUMENT:ts,INVALID_DATE_ARGUMENT:Je(),INVALID_ISO_DATE_ARGUMENT:Je(),NOT_SUPPORT_NON_STRING_MESSAGE:Je(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Je(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Je(),NOT_SUPPORT_LOCALE_TYPE:Je(),__EXTEND_POINT__:Je()};function Le(e){return ot(e,null,process.env.NODE_ENV!=="production"?{messages:rr}:void 0)}const rr={[re.INVALID_ARGUMENT]:"Invalid arguments",[re.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[re.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[re.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[re.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[re.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function nn(e,t){return t.locale!=null?ns(t.locale):ns(e.locale)}let sn;function ns(e){if(M(e))return e;if(Z(e)){if(e.resolvedOnce&&sn!=null)return sn;if(e.constructor.name==="Function"){const t=e();if(eo(t))throw Le(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return sn=t}else throw Le(re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Le(re.NOT_SUPPORT_LOCALE_TYPE)}function lr(e,t,n){return[...new Set([n,...q(t)?t:Y(t)?Object.keys(t):M(t)?[t]:[n]])]}function ss(e,t,n){const a=M(n)?n:it,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(a);if(!s){s=[];let r=[n];for(;q(r);)r=as(s,r,t);const l=q(t)||!W(t)?t:t.default?t.default:null;r=M(l)?[l]:l,q(r)&&as(s,r,!1),o.__localeChainCache.set(a,s)}return s}function as(e,t,n){let a=!0;for(let o=0;o<t.length&&H(a);o++){const s=t[o];M(s)&&(a=ir(e,t[o],n))}return a}function ir(e,t,n){let a;const o=t.split("-");do{const s=o.join("-");a=cr(e,s,n),o.splice(-1,1)}while(o.length&&a===!0);return a}function cr(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(q(n)||W(n))&&n[o]&&(a=n[o])}return a}const ur="9.9.1",Rt=-1,it="en-US",Mt="",os=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function fr(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?os(e):t==="vnode"&&Y(e)&&"__v_isVNode"in e?os(e.children):e}}let rs;function ls(e){rs=e}let is;function dr(e){is=e}let cs;function mr(e){cs=e}let us=null;const _r=e=>{us=e},pr=()=>us;let fs=null;const ds=e=>{fs=e},hr=()=>fs;let ms=0;function gr(e={}){const t=Z(e.onWarn)?e.onWarn:ao,n=M(e.version)?e.version:ur,a=M(e.locale)||Z(e.locale)?e.locale:it,o=Z(a)?it:a,s=q(e.fallbackLocale)||W(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,r=W(e.messages)?e.messages:{[o]:{}},l=W(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},i=W(e.numberFormats)?e.numberFormats:{[o]:{}},u=le({},e.modifiers||{},fr()),p=e.pluralRules||{},h=Z(e.missing)?e.missing:null,d=H(e.missingWarn)||xe(e.missingWarn)?e.missingWarn:!0,N=H(e.fallbackWarn)||xe(e.fallbackWarn)?e.fallbackWarn:!0,A=!!e.fallbackFormat,I=!!e.unresolving,S=Z(e.postTranslation)?e.postTranslation:null,m=W(e.processor)?e.processor:null,g=H(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,b=Z(e.messageCompiler)?e.messageCompiler:rs;process.env.NODE_ENV!=="production"&&Z(e.messageCompiler)&&oo(Ze(me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=Z(e.messageResolver)?e.messageResolver:is||Yo,v=Z(e.localeFallbacker)?e.localeFallbacker:cs||lr,O=Y(e.fallbackContext)?e.fallbackContext:void 0,T=e,w=Y(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,P=Y(T.__numberFormatters)?T.__numberFormatters:new Map,x=Y(T.__meta)?T.__meta:{};ms++;const y={version:n,cid:ms,locale:a,fallbackLocale:s,messages:r,modifiers:u,pluralRules:p,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:A,unresolving:I,postTranslation:S,processor:m,warnHtmlMessage:g,escapeParameter:E,messageCompiler:b,messageResolver:k,localeFallbacker:v,fallbackContext:O,onWarn:t,__meta:x};return y.datetimeFormats=l,y.numberFormats=i,y.__datetimeFormatters=w,y.__numberFormatters=P,process.env.NODE_ENV!=="production"&&(y.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&nr(y,n,x),y}function Dt(e,t){return e instanceof RegExp?e.test(t):e}function _s(e,t){return e instanceof RegExp?e.test(t):e}function an(e,t,n,a,o){const{missing:s,onWarn:r}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(s!==null){const l=s(e,n,t,o);return M(l)?l:t}else return process.env.NODE_ENV!=="production"&&_s(a,t)&&r(Ze(me.NOT_FOUND_KEY,{key:t,locale:n})),t}function ht(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function on(e){return n=>br(n,e)}function br(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,o=a.c||a.cases;return e.plural(o.reduce((s,r)=>[...s,ps(e,r)],[]))}else return ps(e,n)}function ps(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((o,s)=>[...o,rn(e,s)],[]);return e.normalize(a)}}function rn(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const o=t;return o.v||o.value;case 4:const s=t;return e.interpolate(e.named(s.k||s.key));case 5:const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index));case 6:const l=t,i=l.m||l.modifier;return e.linked(rn(e,l.k||l.key),i?rn(e,i):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 vr="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function hs(e,t){t&&_o(e)&&(Qt(vr,{source:e}),void 0)}const gs=e=>e;let ct=Object.create(null);const Be=e=>Y(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function bs(e,t={}){let n=!1;const a=t.onError||fo;return t.onError=o=>{n=!0,a(o)},{...xo(e,t),detectError:n}}const Er=(e,t)=>{if(!M(e))throw Le(re.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=H(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&hs(e,n);const o=(t.onCacheKey||gs)(e),s=ct[o];if(s)return s;const{code:r,detectError:l}=bs(e,t),i=new Function(`return ${r}`)();return l?i:ct[o]=i}};function Tr(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=H(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&hs(e,n);const o=(t.onCacheKey||gs)(e),s=ct[o];if(s)return s;const{ast:r,detectError:l}=bs(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),i=on(r);return l?i:ct[o]=i}else{if(process.env.NODE_ENV!=="production"&&!Be(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const a=ct[n];return a||(ct[n]=on(e))}else return on(e)}}const vs=()=>"",ge=e=>Z(e);function Es(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,messageCompiler:s,fallbackLocale:r,messages:l}=e,[i,u]=ln(...t),p=H(u.missingWarn)?u.missingWarn:e.missingWarn,h=H(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=H(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,A=M(u.default)||H(u.default)?H(u.default)?s?i:()=>i:u.default:n?s?i:()=>i:"",I=n||A!=="",S=nn(e,u);d&&Nr(u);let[m,g,E]=N?[i,S,l[S]||{}]:Ts(e,i,S,r,h,p),b=m,k=i;if(!N&&!(M(b)||Be(b)||ge(b))&&I&&(b=A,k=b),!N&&(!(M(b)||Be(b)||ge(b))||!M(g)))return o?Rt:i;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${i}`,i;let v=!1;const O=()=>{v=!0},T=ge(b)?b:Ns(e,i,g,b,k,O);if(v)return b;const w=kr(e,g,E,u),P=er(w),x=Or(e,T,P),y=a?a(x,i):x;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(i)?i:ge(b)?b.key:"",locale:g||(ge(b)?b.locale:""),format:M(b)?b:ge(b)?b.source:"",message:y};D.meta=le({},e.__meta,pr()||{}),sr(D)}return y}function Nr(e){q(e.list)?e.list=e.list.map(t=>M(t)?Hn(t):t):Y(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Hn(e.named[t]))})}function Ts(e,t,n,a,o,s){const{messages:r,onWarn:l,messageResolver:i,localeFallbacker:u}=e,p=u(e,a,n);let h={},d,N=null,A=n,I=null;const S="translate";for(let m=0;m<p.length;m++){if(d=I=p[m],process.env.NODE_ENV!=="production"&&n!==d&&Dt(o,t)&&l(Ze(me.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const v=e.__v_emitter;v&&v.emit("fallback",{type:S,key:t,from:A,to:I,groupId:`${S}:${t}`})}h=r[d]||{};let g=null,E,b;if(process.env.NODE_ENV!=="production"&&Ee&&(g=window.performance.now(),E="intlify-message-resolve-start",b="intlify-message-resolve-end",pe&&pe(E)),(N=i(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&Ee){const v=window.performance.now(),O=e.__v_emitter;O&&g&&N&&O.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:v-g,groupId:`${S}:${t}`}),E&&b&&pe&&Ke&&(pe(b),Ke("intlify message resolve",E,b))}if(M(N)||Be(N)||ge(N))break;const k=an(e,t,d,s,S);k!==t&&(N=k),A=I}return[N,d,h]}function Ns(e,t,n,a,o,s){const{messageCompiler:r,warnHtmlMessage:l}=e;if(ge(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(r==null){const d=()=>a;return d.locale=n,d.key=t,d}let i=null,u,p;process.env.NODE_ENV!=="production"&&Ee&&(i=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",pe&&pe(u));const h=r(a,yr(e,n,o,a,l,s));if(process.env.NODE_ENV!=="production"&&Ee){const d=window.performance.now(),N=e.__v_emitter;N&&i&&N.emit("message-compilation",{type:"message-compilation",message:a,time:d-i,groupId:`translate:${t}`}),u&&p&&pe&&Ke&&(pe(p),Ke("intlify message compilation",u,p))}return h.locale=n,h.key=t,h.source=a,h}function Or(e,t,n){let a=null,o,s;process.env.NODE_ENV!=="production"&&Ee&&(a=window.performance.now(),o="intlify-message-evaluation-start",s="intlify-message-evaluation-end",pe&&pe(o));const r=t(n);if(process.env.NODE_ENV!=="production"&&Ee){const l=window.performance.now(),i=e.__v_emitter;i&&a&&i.emit("message-evaluation",{type:"message-evaluation",value:r,time:l-a,groupId:`translate:${t.key}`}),o&&s&&pe&&Ke&&(pe(s),Ke("intlify message evaluation",o,s))}return r}function ln(...e){const[t,n,a]=e,o={};if(!M(t)&&!ae(t)&&!ge(t)&&!Be(t))throw Le(re.INVALID_ARGUMENT);const s=ae(t)?String(t):(ge(t),t);return ae(n)?o.plural=n:M(n)?o.default=n:W(n)&&!Ct(n)?o.named=n:q(n)&&(o.list=n),ae(a)?o.plural=a:M(a)?o.default=a:W(a)&&le(o,a),[s,o]}function yr(e,t,n,a,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:r=>{if(s&&s(r),process.env.NODE_ENV!=="production"){const l=Lr(a),i=`Message compilation error: ${r.message}`,u=r.location&&l&&so(l,r.location.start.offset,r.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:r.message,start:r.location&&r.location.start.offset,end:r.location&&r.location.end.offset,groupId:`translate:${n}`})}else throw r},onCacheKey:r=>Ja(t,n,r)}}function Lr(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function kr(e,t,n,a){const{modifiers:o,pluralRules:s,messageResolver:r,fallbackLocale:l,fallbackWarn:i,missingWarn:u,fallbackContext:p}=e,d={locale:t,modifiers:o,pluralRules:s,messages:N=>{let A=r(n,N);if(A==null&&p){const[,,I]=Ts(p,N,t,l,i,u);A=r(I,N)}if(M(A)||Be(A)){let I=!1;const m=Ns(e,N,t,A,N,()=>{I=!0});return I?vs:m}else return ge(A)?A:vs}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),ae(a.plural)&&(d.pluralIndex=a.plural),d}const Os=typeof Intl<"u",ys={dateTimeFormat:Os&&typeof Intl.DateTimeFormat<"u",numberFormat:Os&&typeof Intl.NumberFormat<"u"};function Ls(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:o,onWarn:s,localeFallbacker:r}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!ys.dateTimeFormat)return s(Ze(me.CANNOT_FORMAT_DATE)),Mt;const[i,u,p,h]=cn(...t),d=H(p.missingWarn)?p.missingWarn:e.missingWarn,N=H(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,A=!!p.part,I=nn(e,p),S=r(e,o,I);if(!M(i)||i==="")return new Intl.DateTimeFormat(I,h).format(u);let m={},g,E=null,b=I,k=null;const v="datetime format";for(let w=0;w<S.length;w++){if(g=k=S[w],process.env.NODE_ENV!=="production"&&I!==g&&Dt(N,i)&&s(Ze(me.FALLBACK_TO_DATE_FORMAT,{key:i,target:g})),process.env.NODE_ENV!=="production"&&I!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:v,key:i,from:b,to:k,groupId:`${v}:${i}`})}if(m=n[g]||{},E=m[i],W(E))break;an(e,i,g,d,v),b=k}if(!W(E)||!M(g))return a?Rt:i;let O=`${g}__${i}`;Ct(h)||(O=`${O}__${JSON.stringify(h)}`);let T=l.get(O);return T||(T=new Intl.DateTimeFormat(g,le({},E,h)),l.set(O,T)),A?T.formatToParts(u):T.format(u)}const ks=["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,o]=e,s={};let r={},l;if(M(t)){const i=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!i)throw Le(re.INVALID_ISO_DATE_ARGUMENT);const u=i[3]?i[3].trim().startsWith("T")?`${i[1].trim()}${i[3].trim()}`:`${i[1].trim()}T${i[3].trim()}`:i[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Le(re.INVALID_ISO_DATE_ARGUMENT)}}else if(qa(t)){if(isNaN(t.getTime()))throw Le(re.INVALID_DATE_ARGUMENT);l=t}else if(ae(t))l=t;else throw Le(re.INVALID_ARGUMENT);return M(n)?s.key=n:W(n)&&Object.keys(n).forEach(i=>{ks.includes(i)?r[i]=n[i]:s[i]=n[i]}),M(a)?s.locale=a:W(a)&&(r=a),W(o)&&(r=o),[s.key||"",l,s,r]}function Is(e,t,n){const a=e;for(const o in n){const s=`${t}__${o}`;a.__datetimeFormatters.has(s)&&a.__datetimeFormatters.delete(s)}}function Ss(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:o,onWarn:s,localeFallbacker:r}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!ys.numberFormat)return s(Ze(me.CANNOT_FORMAT_NUMBER)),Mt;const[i,u,p,h]=un(...t),d=H(p.missingWarn)?p.missingWarn:e.missingWarn,N=H(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,A=!!p.part,I=nn(e,p),S=r(e,o,I);if(!M(i)||i==="")return new Intl.NumberFormat(I,h).format(u);let m={},g,E=null,b=I,k=null;const v="number format";for(let w=0;w<S.length;w++){if(g=k=S[w],process.env.NODE_ENV!=="production"&&I!==g&&Dt(N,i)&&s(Ze(me.FALLBACK_TO_NUMBER_FORMAT,{key:i,target:g})),process.env.NODE_ENV!=="production"&&I!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:v,key:i,from:b,to:k,groupId:`${v}:${i}`})}if(m=n[g]||{},E=m[i],W(E))break;an(e,i,g,d,v),b=k}if(!W(E)||!M(g))return a?Rt:i;let O=`${g}__${i}`;Ct(h)||(O=`${O}__${JSON.stringify(h)}`);let T=l.get(O);return T||(T=new Intl.NumberFormat(g,le({},E,h)),l.set(O,T)),A?T.formatToParts(u):T.format(u)}const Cs=["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,o]=e,s={};let r={};if(!ae(t))throw Le(re.INVALID_ARGUMENT);const l=t;return M(n)?s.key=n:W(n)&&Object.keys(n).forEach(i=>{Cs.includes(i)?r[i]=n[i]:s[i]=n[i]}),M(a)?s.locale=a:W(a)&&(r=a),W(o)&&(r=o),[s.key||"",l,s,r]}function As(e,t,n){const a=e;for(const o in n){const s=`${t}__${o}`;a.__numberFormatters.has(s)&&a.__numberFormatters.delete(s)}}Uo();function Ir(){return ws().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ws(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Sr=typeof Proxy=="function",Cr="devtools-plugin:setup",Ar="plugin:settings:set";let ut,fn;function wr(){var e;return ut!==void 0||(typeof window<"u"&&window.performance?(ut=!0,fn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ut=!0,fn=globalThis.perf_hooks.performance):ut=!1),ut}function Pr(){return wr()?fn.now():Date.now()}class Rr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const r in t.settings){const l=t.settings[r];a[r]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},a);try{const r=localStorage.getItem(o),l=JSON.parse(r);Object.assign(s,l)}catch{}this.fallbacks={getSettings(){return s},setSettings(r){try{localStorage.setItem(o,JSON.stringify(r))}catch{}s=r},now(){return Pr()}},n&&n.on(Ar,(r,l)=>{r===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(r,l)=>this.target?this.target.on[l]:(...i)=>{this.onQueue.push({method:l,args:i})}}),this.proxiedTarget=new Proxy({},{get:(r,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...i)=>(this.targetQueue.push({method:l,args:i,resolve:()=>{}}),this.fallbacks[l](...i)):(...i)=>new Promise(u=>{this.targetQueue.push({method:l,args:i,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 Mr(e,t){const n=e,a=ws(),o=Ir(),s=Sr&&n.enableEarlyProxy;if(o&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Cr,e,t);else{const r=s?new Rr(n,o):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:r}),r&&t(r.proxiedTarget)}}/*!
|
|
17
|
-
* vue-i18n v9.
|
|
16
|
+
*/function Fa(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(we().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(we().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(we().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ve=[];Ve[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ve[1]={w:[1],".":[2],"[":[4],o:[7]},Ve[2]={w:[2],i:[3,0],0:[3,0]},Ve[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ve[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ve[5]={"'":[4,0],o:8,l:[5,0]},Ve[6]={'"':[4,0],o:8,l:[6,0]};const xa=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ua(e){return xa.test(e)}function Va(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 Ba(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 Wa(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ua(t)?Va(t):"*"+t}function ja(e){const t=[];let n=-1,s=0,a=0,r,o,i,l,c,h,p;const d=[];d[0]=()=>{o===void 0?o=i:o+=i},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,s=4,d[0]();else{if(a=0,o===void 0||(o=Wa(o),o===!1))return!1;d[1]()}};function O(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,i="\\"+w,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&O())){if(l=Ba(r),p=Ve[s],c=p[l]||p.l||8,c===8||(s=c[0],c[1]!==void 0&&(h=d[c[1]],h&&(i=r,h()===!1))))return;if(s===7)return t}}const qn=new Map;function Ha(e,t){return Y(e)?e[t]:null}function Ga(e,t){if(!Y(e))return null;let n=qn.get(t);if(n||(n=ja(t),n&&qn.set(t,n)),!n)return null;const s=n.length;let a=e,r=0;for(;r<s;){const o=a[n[r]];if(o===void 0||Z(a))return null;a=o,r++}return a}const Ya=e=>e,Xa=e=>"",za="text",Ka=e=>e.length===0?"":na(e),Za=ta;function $n(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ja(e){const t=se(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(se(e.named.count)||se(e.named.n))?se(e.named.count)?e.named.count:se(e.named.n)?e.named.n:t:t}function Qa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qa(e={}){const t=e.locale,n=Ja(e),s=Y(e.pluralRules)&&M(t)&&Z(e.pluralRules[t])?e.pluralRules[t]:$n,a=Y(e.pluralRules)&&M(t)&&Z(e.pluralRules[t])?$n:void 0,r=m=>m[s(n,m.length,a)],o=e.list||[],i=m=>o[m],l=e.named||{};se(e.pluralIndex)&&Qa(n,l);const c=m=>l[m];function h(m){const g=Z(e.messages)?e.messages(m):Y(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Xa)}const p=m=>e.modifiers?e.modifiers[m]:Ya,d=W(e.processor)&&Z(e.processor.normalize)?e.processor.normalize:Ka,O=W(e.processor)&&Z(e.processor.interpolate)?e.processor.interpolate:Za,w=W(e.processor)&&M(e.processor.type)?e.processor.type:za,S={list:i,named:c,plural:r,linked:(m,...g)=>{const[v,b]=g;let I="text",E="";g.length===1?Y(v)?(E=v.modifier||E,I=v.type||I):M(v)&&(E=v||E):g.length===2&&(M(v)&&(E=v||E),M(b)&&(I=b||I));const y=h(m)(S),A=I==="vnode"&&q(y)&&E?y[0]:y;return E?p(E)(A,I):A},message:h,type:w,interpolate:O,normalize:d,values:ie({},o,l)};return S}let _t=null;function $a(e){_t=e}function eo(e,t,n){_t&&_t.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const to=no("function:translate");function no(e){return t=>_t&&_t.emit(e,t)}const me={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={[me.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[me.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[me.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[me.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[me.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[me.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[me.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 Ze(e,...t){return Jt(ro[e],...t)}const er=V.__EXTEND_POINT__,Je=Qt(er),oe={INVALID_ARGUMENT:er,INVALID_DATE_ARGUMENT:Je(),INVALID_ISO_DATE_ARGUMENT:Je(),NOT_SUPPORT_NON_STRING_MESSAGE:Je(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Je(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Je(),NOT_SUPPORT_LOCALE_TYPE:Je(),__EXTEND_POINT__:Je()};function Le(e){return st(e,null,process.env.NODE_ENV!=="production"?{messages:so}:void 0)}const so={[oe.INVALID_ARGUMENT]:"Invalid arguments",[oe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[oe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[oe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[oe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function tn(e,t){return t.locale!=null?tr(t.locale):tr(e.locale)}let nn;function tr(e){if(M(e))return e;if(Z(e)){if(e.resolvedOnce&&nn!=null)return nn;if(e.constructor.name==="Function"){const t=e();if(ea(t))throw Le(oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nn=t}else throw Le(oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Le(oe.NOT_SUPPORT_LOCALE_TYPE)}function ao(e,t,n){return[...new Set([n,...q(t)?t:Y(t)?Object.keys(t):M(t)?[t]:[n]])]}function nr(e,t,n){const s=M(n)?n:it,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;q(o);)o=rr(r,o,t);const i=q(t)||!W(t)?t:t.default?t.default:null;o=M(i)?[i]:i,q(o)&&rr(r,o,!1),a.__localeChainCache.set(s,r)}return r}function rr(e,t,n){let s=!0;for(let a=0;a<t.length&&j(s);a++){const r=t[a];M(r)&&(s=oo(e,t[a],n))}return s}function oo(e,t,n){let s;const a=t.split("-");do{const r=a.join("-");s=io(e,r,n),a.splice(-1,1)}while(a.length&&s===!0);return s}function io(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(q(n)||W(n))&&n[a]&&(s=n[a])}return s}const lo="9.10.1",wt=-1,it="en-US",Pt="",sr=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function co(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?sr(e):t==="vnode"&&Y(e)&&"__v_isVNode"in e?sr(e.children):e}}let ar;function or(e){ar=e}let ir;function uo(e){ir=e}let lr;function fo(e){lr=e}let cr=null;const mo=e=>{cr=e},_o=()=>cr;let ur=null;const fr=e=>{ur=e},po=()=>ur;let dr=0;function ho(e={}){const t=Z(e.onWarn)?e.onWarn:sa,n=M(e.version)?e.version:lo,s=M(e.locale)||Z(e.locale)?e.locale:it,a=Z(s)?it:s,r=q(e.fallbackLocale)||W(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=W(e.messages)?e.messages:{[a]:{}},i=W(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=W(e.numberFormats)?e.numberFormats:{[a]:{}},c=ie({},e.modifiers||{},co()),h=e.pluralRules||{},p=Z(e.missing)?e.missing:null,d=j(e.missingWarn)||xe(e.missingWarn)?e.missingWarn:!0,O=j(e.fallbackWarn)||xe(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,k=!!e.unresolving,S=Z(e.postTranslation)?e.postTranslation:null,m=W(e.processor)?e.processor:null,g=j(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,b=Z(e.messageCompiler)?e.messageCompiler:ar;process.env.NODE_ENV!=="production"&&Z(e.messageCompiler)&&Yn(Ze(me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=Z(e.messageResolver)?e.messageResolver:ir||Ha,E=Z(e.localeFallbacker)?e.localeFallbacker:lr||ao,y=Y(e.fallbackContext)?e.fallbackContext:void 0,A=e,T=Y(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,P=Y(A.__numberFormatters)?A.__numberFormatters:new Map,x=Y(A.__meta)?A.__meta:{};dr++;const N={version:n,cid:dr,locale:s,fallbackLocale:r,messages:o,modifiers:c,pluralRules:h,missing:p,missingWarn:d,fallbackWarn:O,fallbackFormat:w,unresolving:k,postTranslation:S,processor:m,warnHtmlMessage:g,escapeParameter:v,messageCompiler:b,messageResolver:I,localeFallbacker:E,fallbackContext:y,onWarn:t,__meta:x};return N.datetimeFormats=i,N.numberFormats=l,N.__datetimeFormatters=T,N.__numberFormatters=P,process.env.NODE_ENV!=="production"&&(N.__v_emitter=A.__v_emitter!=null?A.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&eo(N,n,x),N}function Rt(e,t){return e instanceof RegExp?e.test(t):e}function mr(e,t){return e instanceof RegExp?e.test(t):e}function rn(e,t,n,s,a){const{missing:r,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const i=r(e,n,t,a);return M(i)?i:t}else return process.env.NODE_ENV!=="production"&&mr(s,t)&&o(Ze(me.NOT_FOUND_KEY,{key:t,locale:n})),t}function pt(e,t,n){const s=e;s.__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 s=n,a=s.c||s.cases;return e.plural(a.reduce((r,o)=>[...r,_r(e,o)],[]))}else return _r(e,n)}function _r(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((a,r)=>[...a,an(e,r)],[]);return e.normalize(s)}}function an(e,t){const n=t.t||t.type;switch(n){case 3:const s=t;return s.v||s.value;case 9:const a=t;return a.v||a.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 i=t,l=i.m||i.modifier;return e.linked(an(e,i.k||i.key),l?an(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const h=t;return h.v||h.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 pr(e,t){t&&da(e)&&(Jt(bo,{source:e}),void 0)}const hr=e=>e;let lt=Object.create(null);const Be=e=>Y(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function gr(e,t={}){let n=!1;const s=t.onError||ua;return t.onError=a=>{n=!0,s(a)},{...Da(e,t),detectError:n}}const Eo=(e,t)=>{if(!M(e))throw Le(oe.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=j(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&pr(e,n);const a=(t.onCacheKey||hr)(e),r=lt[a];if(r)return r;const{code:o,detectError:i}=gr(e,t),l=new Function(`return ${o}`)();return i?l:lt[a]=l}};function vo(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=j(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&pr(e,n);const a=(t.onCacheKey||hr)(e),r=lt[a];if(r)return r;const{ast:o,detectError:i}=gr(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=sn(o);return i?l:lt[a]=l}else{if(process.env.NODE_ENV!=="production"&&!Be(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const s=lt[n];return s||(lt[n]=sn(e))}else return sn(e)}}const br=()=>"",be=e=>Z(e);function Er(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:a,messageCompiler:r,fallbackLocale:o,messages:i}=e,[l,c]=on(...t),h=j(c.missingWarn)?c.missingWarn:e.missingWarn,p=j(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=j(c.escapeParameter)?c.escapeParameter:e.escapeParameter,O=!!c.resolvedMessage,w=M(c.default)||j(c.default)?j(c.default)?r?l:()=>l:c.default:n?r?l:()=>l:"",k=n||w!=="",S=tn(e,c);d&&To(c);let[m,g,v]=O?[l,S,i[S]||{}]:vr(e,l,S,o,p,h),b=m,I=l;if(!O&&!(M(b)||Be(b)||be(b))&&k&&(b=w,I=b),!O&&(!(M(b)||Be(b)||be(b))||!M(g)))return a?wt:l;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${l}`,l;let E=!1;const y=()=>{E=!0},A=be(b)?b:Tr(e,l,g,b,I,y);if(E)return b;const T=Lo(e,g,v,c),P=qa(T),x=No(e,A,P),N=s?s(x,l):x;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(l)?l:be(b)?b.key:"",locale:g||(be(b)?b.locale:""),format:M(b)?b:be(b)?b.source:"",message:N};D.meta=ie({},e.__meta,_o()||{}),to(D)}return N}function To(e){q(e.list)?e.list=e.list.map(t=>M(t)?Bn(t):t):Y(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Bn(e.named[t]))})}function vr(e,t,n,s,a,r){const{messages:o,onWarn:i,messageResolver:l,localeFallbacker:c}=e,h=c(e,s,n);let p={},d,O=null,w=n,k=null;const S="translate";for(let m=0;m<h.length;m++){if(d=k=h[m],process.env.NODE_ENV!=="production"&&n!==d&&Rt(a,t)&&i(Ze(me.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:S,key:t,from:w,to:k,groupId:`${S}:${t}`})}p=o[d]||{};let g=null,v,b;if(process.env.NODE_ENV!=="production"&&ve&&(g=window.performance.now(),v="intlify-message-resolve-start",b="intlify-message-resolve-end",he&&he(v)),(O=l(p,t))===null&&(O=p[t]),process.env.NODE_ENV!=="production"&&ve){const E=window.performance.now(),y=e.__v_emitter;y&&g&&O&&y.emit("message-resolve",{type:"message-resolve",key:t,message:O,time:E-g,groupId:`${S}:${t}`}),v&&b&&he&&Ke&&(he(b),Ke("intlify message resolve",v,b))}if(M(O)||Be(O)||be(O))break;const I=rn(e,t,d,r,S);I!==t&&(O=I),w=k}return[O,d,p]}function Tr(e,t,n,s,a,r){const{messageCompiler:o,warnHtmlMessage:i}=e;if(be(s)){const d=s;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>s;return d.locale=n,d.key=t,d}let l=null,c,h;process.env.NODE_ENV!=="production"&&ve&&(l=window.performance.now(),c="intlify-message-compilation-start",h="intlify-message-compilation-end",he&&he(c));const p=o(s,Oo(e,n,a,s,i,r));if(process.env.NODE_ENV!=="production"&&ve){const d=window.performance.now(),O=e.__v_emitter;O&&l&&O.emit("message-compilation",{type:"message-compilation",message:s,time:d-l,groupId:`translate:${t}`}),c&&h&&he&&Ke&&(he(h),Ke("intlify message compilation",c,h))}return p.locale=n,p.key=t,p.source=s,p}function No(e,t,n){let s=null,a,r;process.env.NODE_ENV!=="production"&&ve&&(s=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",he&&he(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&ve){const i=window.performance.now(),l=e.__v_emitter;l&&s&&l.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-s,groupId:`translate:${t.key}`}),a&&r&&he&&Ke&&(he(r),Ke("intlify message evaluation",a,r))}return o}function on(...e){const[t,n,s]=e,a={};if(!M(t)&&!se(t)&&!be(t)&&!Be(t))throw Le(oe.INVALID_ARGUMENT);const r=se(t)?String(t):(be(t),t);return se(n)?a.plural=n:M(n)?a.default=n:W(n)&&!kt(n)?a.named=n:q(n)&&(a.list=n),se(s)?a.plural=s:M(s)?a.default=s:W(s)&&ie(a,s),[r,a]}function Oo(e,t,n,s,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(r&&r(o),process.env.NODE_ENV!=="production"){const i=yo(s),l=`Message compilation error: ${o.message}`,c=o.location&&i&&ra(i,o.location.start.offset,o.location.end.offset),h=e.__v_emitter;h&&i&&h.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>Js(t,n,o)}}function yo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Lo(e,t,n,s){const{modifiers:a,pluralRules:r,messageResolver:o,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:h}=e,d={locale:t,modifiers:a,pluralRules:r,messages:O=>{let w=o(n,O);if(w==null&&h){const[,,k]=vr(h,O,t,i,l,c);w=o(k,O)}if(M(w)||Be(w)){let k=!1;const m=Tr(e,O,t,w,O,()=>{k=!0});return k?br:m}else return be(w)?w:br}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),se(s.plural)&&(d.pluralIndex=s.plural),d}const Nr=typeof Intl<"u",Or={dateTimeFormat:Nr&&typeof Intl.DateTimeFormat<"u",numberFormat:Nr&&typeof Intl.NumberFormat<"u"};function yr(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Or.dateTimeFormat)return r(Ze(me.CANNOT_FORMAT_DATE)),Pt;const[l,c,h,p]=ln(...t),d=j(h.missingWarn)?h.missingWarn:e.missingWarn,O=j(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,w=!!h.part,k=tn(e,h),S=o(e,a,k);if(!M(l)||l==="")return new Intl.DateTimeFormat(k,p).format(c);let m={},g,v=null,b=k,I=null;const E="datetime format";for(let T=0;T<S.length;T++){if(g=I=S[T],process.env.NODE_ENV!=="production"&&k!==g&&Rt(O,l)&&r(Ze(me.FALLBACK_TO_DATE_FORMAT,{key:l,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:l,from:b,to:I,groupId:`${E}:${l}`})}if(m=n[g]||{},v=m[l],W(v))break;rn(e,l,g,d,E),b=I}if(!W(v)||!M(g))return s?wt:l;let y=`${g}__${l}`;kt(p)||(y=`${y}__${JSON.stringify(p)}`);let A=i.get(y);return A||(A=new Intl.DateTimeFormat(g,ie({},v,p)),i.set(y,A)),w?A.formatToParts(c):A.format(c)}const Lr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ln(...e){const[t,n,s,a]=e,r={};let o={},i;if(M(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Le(oe.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();i=new Date(c);try{i.toISOString()}catch{throw Le(oe.INVALID_ISO_DATE_ARGUMENT)}}else if(qs(t)){if(isNaN(t.getTime()))throw Le(oe.INVALID_DATE_ARGUMENT);i=t}else if(se(t))i=t;else throw Le(oe.INVALID_ARGUMENT);return M(n)?r.key=n:W(n)&&Object.keys(n).forEach(l=>{Lr.includes(l)?o[l]=n[l]:r[l]=n[l]}),M(s)?r.locale=s:W(s)&&(o=s),W(a)&&(o=a),[r.key||"",i,r,o]}function Ir(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function kr(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Or.numberFormat)return r(Ze(me.CANNOT_FORMAT_NUMBER)),Pt;const[l,c,h,p]=cn(...t),d=j(h.missingWarn)?h.missingWarn:e.missingWarn,O=j(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,w=!!h.part,k=tn(e,h),S=o(e,a,k);if(!M(l)||l==="")return new Intl.NumberFormat(k,p).format(c);let m={},g,v=null,b=k,I=null;const E="number format";for(let T=0;T<S.length;T++){if(g=I=S[T],process.env.NODE_ENV!=="production"&&k!==g&&Rt(O,l)&&r(Ze(me.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const P=e.__v_emitter;P&&P.emit("fallback",{type:E,key:l,from:b,to:I,groupId:`${E}:${l}`})}if(m=n[g]||{},v=m[l],W(v))break;rn(e,l,g,d,E),b=I}if(!W(v)||!M(g))return s?wt:l;let y=`${g}__${l}`;kt(p)||(y=`${y}__${JSON.stringify(p)}`);let A=i.get(y);return A||(A=new Intl.NumberFormat(g,ie({},v,p)),i.set(y,A)),w?A.formatToParts(c):A.format(c)}const Sr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cn(...e){const[t,n,s,a]=e,r={};let o={};if(!se(t))throw Le(oe.INVALID_ARGUMENT);const i=t;return M(n)?r.key=n:W(n)&&Object.keys(n).forEach(l=>{Sr.includes(l)?o[l]=n[l]:r[l]=n[l]}),M(s)?r.locale=s:W(s)&&(o=s),W(a)&&(o=a),[r.key||"",i,r,o]}function Cr(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Fa();function Io(){return Ar().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ar(){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 ct,un;function Ao(){var e;return ct!==void 0||(typeof window<"u"&&window.performance?(ct=!0,un=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ct=!0,un=globalThis.perf_hooks.performance):ct=!1),ct}function wo(){return Ao()?un.now():Date.now()}class Po{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const o in t.settings){const i=t.settings[o];s[o]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(a),i=JSON.parse(o);Object.assign(r,i)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}r=o},now(){return wo()}},n&&n.on(Co,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...l)=>{this.onQueue.push({method:i,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...l)=>(this.targetQueue.push({method:i,args:l,resolve:()=>{}}),this.fallbacks[i](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:i,args:l,resolve:c})})})}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,s=Ar(),a=Io(),r=ko&&n.enableEarlyProxy;if(a&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(So,e,t);else{const o=r?new Po(n,a):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
17
|
+
* vue-i18n v9.10.1
|
|
18
18
|
* (c) 2024 kazuya kawaguchi
|
|
19
19
|
* Released under the MIT License.
|
|
20
|
-
*/const Dr="9.9.1";function Fr(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(we().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(we().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(we().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(we().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(we().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ps=me.__EXTEND_POINT__,We=qt(Ps),$={FALLBACK_TO_ROOT:Ps,NOT_SUPPORTED_PRESERVE:We(),NOT_SUPPORTED_FORMATTER:We(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:We(),NOT_SUPPORTED_GET_CHOICE_INDEX:We(),COMPONENT_NAME_LEGACY_COMPATIBLE:We(),NOT_FOUND_PARENT_SCOPE:We(),IGNORE_OBJ_FLATTEN:We(),NOTICE_DROP_ALLOW_COMPOSITION:We()},xr={[$.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[$.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[$.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[$.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[$.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[$.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[$.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[$.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[$.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function he(e,...t){return Qt(xr[e],...t)}const Rs=re.__EXTEND_POINT__,_e=qt(Rs),G={UNEXPECTED_RETURN_TYPE:Rs,INVALID_ARGUMENT:_e(),MUST_BE_CALL_SETUP_TOP:_e(),NOT_INSTALLED:_e(),NOT_AVAILABLE_IN_LEGACY_MODE:_e(),REQUIRED_VALUE:_e(),INVALID_VALUE:_e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_e(),NOT_INSTALLED_WITH_PROVIDE:_e(),UNEXPECTED_ERROR:_e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_e(),BRIDGE_SUPPORT_VUE_2_ONLY:_e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:_e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:_e(),__EXTEND_POINT__:_e()};function oe(e,...t){return ot(e,null,process.env.NODE_ENV!=="production"?{messages:Ur,args:t}:void 0)}const Ur={[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=Oe("__translateVNode"),mn=Oe("__datetimeParts"),_n=Oe("__numberParts"),Qe=Oe("__enableEmitter"),gt=Oe("__disableEmitter"),Ms=Oe("__setPluralRules"),Ds=Oe("__injectWithOption"),pn=Oe("__dispose");function bt(e){if(!Y(e))return e;for(const t in e)if(At(e,t))if(!t.includes("."))Y(e[t])&&bt(e[t]);else{const n=t.split("."),a=n.length-1;let o=e,s=!1;for(let r=0;r<a;r++){if(n[r]in o||(o[n[r]]={}),!Y(o[n[r]])){process.env.NODE_ENV!=="production"&&(he($.IGNORE_OBJ_FLATTEN,{key:n[r]}),void 0),s=!0;break}o=o[n[r]]}s||(o[n[a]]=e[t],delete e[t]),Y(o[n[a]])&&bt(o[n[a]])}return e}function Ft(e,t){const{messages:n,__i18n:a,messageResolver:o,flatJson:s}=t,r=W(n)?n:q(a)?{}:{[e]:{}};if(q(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:i,resource:u}=l;i?(r[i]=r[i]||{},Pt(u,r[i])):Pt(u,r)}else M(l)&&Pt(JSON.parse(l),r)}),o==null&&s)for(const l in r)At(r,l)&&bt(r[l]);return r}function Fs(e){return e.type}function xs(e,t,n){let a=Y(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ft(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const o=Object.keys(a);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,a[s])});{if(Y(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(r=>{e.mergeDateTimeFormat(r,t.datetimeFormats[r])})}if(Y(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(r=>{e.mergeNumberFormat(r,t.numberFormats[r])})}}}function Us(e){return c.createVNode(c.Text,null,e,0)}const Vs="__INTLIFY_META__",Bs=()=>[],Vr=()=>!1;let Ws=0;function Hs(e){return(t,n,a,o)=>e(n,a,c.getCurrentInstance()||void 0,o)}const Br=()=>{const e=c.getCurrentInstance();let t=null;return e&&(t=Fs(e)[Vs])?{[Vs]:t}:null};function hn(e={},t){const{__root:n,__injectWithOption:a}=e,o=n===void 0,s=e.flatJson,r=Ee?c.ref:c.shallowRef;let l=H(e.inheritLocale)?e.inheritLocale:!0;const i=r(n&&l?n.locale.value:M(e.locale)?e.locale:it),u=r(n&&l?n.fallbackLocale.value:M(e.fallbackLocale)||q(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),p=r(Ft(i.value,e)),h=r(W(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=r(W(e.numberFormats)?e.numberFormats:{[i.value]:{}});let N=n?n.missingWarn:H(e.missingWarn)||xe(e.missingWarn)?e.missingWarn:!0,A=n?n.fallbackWarn:H(e.fallbackWarn)||xe(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:H(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,m=Z(e.missing)?e.missing:null,g=Z(e.missing)?Hs(e.missing):null,E=Z(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:H(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const v=n?n.modifiers:W(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,T;T=(()=>{o&&ds(null);const C={version:Dr,locale:i.value,fallbackLocale:u.value,messages:p.value,modifiers:v,pluralRules:O,missing:g===null?void 0:g,missingWarn:N,fallbackWarn:A,fallbackFormat:S,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:b,escapeParameter:k,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=h.value,C.numberFormats=d.value,C.__datetimeFormatters=W(T)?T.__datetimeFormatters:void 0,C.__numberFormatters=W(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=W(T)?T.__v_emitter:void 0);const R=gr(C);return o&&ds(R),R})(),ht(T,i.value,u.value);function P(){return[i.value,u.value,p.value,h.value,d.value]}const x=c.computed({get:()=>i.value,set:C=>{i.value=C,T.locale=i.value}}),y=c.computed({get:()=>u.value,set:C=>{u.value=C,T.fallbackLocale=u.value,ht(T,i.value,C)}}),D=c.computed(()=>p.value),J=c.computed(()=>h.value),K=c.computed(()=>d.value);function te(){return Z(E)?E:null}function ce(C){E=C,T.postTranslation=C}function Ce(){return m}function Ne(C){C!==null&&(g=Hs(C)),m=C,T.missing=g}function dt(C,R){return C!=="translate"||!R.resolvedMessage}const be=(C,R,z,ne,st,Jt)=>{P();let _t;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=n?hr():void 0),_t=C(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=void 0)}if(z!=="translate exists"&&ae(_t)&&_t===Rt||z==="translate exists"&&!_t){const[at,bc]=R();if(process.env.NODE_ENV!=="production"&&n&&M(at)&&dt(z,bc)&&(I&&(Dt(A,at)||_s(N,at))&&(he($.FALLBACK_TO_ROOT,{key:at,type:z}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:za}=T;za&&I&&za.emit("fallback",{type:z,key:at,to:"global",groupId:`${z}:${at}`})}return n&&I?ne(n):st(at)}else{if(Jt(_t))return _t;throw oe(G.UNEXPECTED_RETURN_TYPE)}};function Xe(...C){return be(R=>Reflect.apply(Es,null,[R,...C]),()=>ln(...C),"translate",R=>Reflect.apply(R.t,R,[...C]),R=>R,R=>M(R))}function tt(...C){const[R,z,ne]=C;if(ne&&!Y(ne))throw oe(G.INVALID_ARGUMENT);return Xe(R,z,le({resolvedMessage:!0},ne||{}))}function nt(...C){return be(R=>Reflect.apply(Ls,null,[R,...C]),()=>cn(...C),"datetime format",R=>Reflect.apply(R.d,R,[...C]),()=>Mt,R=>M(R))}function Me(...C){return be(R=>Reflect.apply(Ss,null,[R,...C]),()=>un(...C),"number format",R=>Reflect.apply(R.n,R,[...C]),()=>Mt,R=>M(R))}function ze(C){return C.map(R=>M(R)||ae(R)||H(R)?Us(String(R)):R)}const De={normalize:ze,interpolate:C=>C,type:"vnode"};function U(...C){return be(R=>{let z;const ne=R;try{ne.processor=De,z=Reflect.apply(Es,null,[ne,...C])}finally{ne.processor=null}return z},()=>ln(...C),"translate",R=>R[dn](...C),R=>[Us(R)],R=>q(R))}function Q(...C){return be(R=>Reflect.apply(Ss,null,[R,...C]),()=>un(...C),"number format",R=>R[_n](...C),Bs,R=>M(R)||q(R))}function ue(...C){return be(R=>Reflect.apply(Ls,null,[R,...C]),()=>cn(...C),"datetime format",R=>R[mn](...C),Bs,R=>M(R)||q(R))}function fe(C){O=C,T.pluralRules=O}function _(C,R){return be(()=>{if(!C)return!1;const z=M(R)?R:i.value,ne=F(z),st=T.messageResolver(ne,C);return Be(st)||ge(st)||M(st)},()=>[C],"translate exists",z=>Reflect.apply(z.te,z,[C,R]),Vr,z=>H(z))}function f(C){let R=null;const z=ss(T,u.value,i.value);for(let ne=0;ne<z.length;ne++){const st=p.value[z[ne]]||{},Jt=T.messageResolver(st,C);if(Jt!=null){R=Jt;break}}return R}function L(C){const R=f(C);return R??(n?n.tm(C)||{}:{})}function F(C){return p.value[C]||{}}function B(C,R){if(s){const z={[C]:R};for(const ne in z)At(z,ne)&&bt(z[ne]);R=z[C]}p.value[C]=R,T.messages=p.value}function X(C,R){p.value[C]=p.value[C]||{};const z={[C]:R};if(s)for(const ne in z)At(z,ne)&&bt(z[ne]);R=z[C],Pt(R,p.value[C]),T.messages=p.value}function Ae(C){return h.value[C]||{}}function Fe(C,R){h.value[C]=R,T.datetimeFormats=h.value,Is(T,C,R)}function _c(C,R){h.value[C]=le(h.value[C]||{},R),T.datetimeFormats=h.value,Is(T,C,R)}function pc(C){return d.value[C]||{}}function hc(C,R){d.value[C]=R,T.numberFormats=d.value,As(T,C,R)}function gc(C,R){d.value[C]=le(d.value[C]||{},R),T.numberFormats=d.value,As(T,C,R)}Ws++,n&&Ee&&(c.watch(n.locale,C=>{l&&(i.value=C,T.locale=C,ht(T,i.value,u.value))}),c.watch(n.fallbackLocale,C=>{l&&(u.value=C,T.fallbackLocale=C,ht(T,i.value,u.value))}));const se={id:Ws,locale:x,fallbackLocale:y,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&n&&(i.value=n.locale.value,u.value=n.fallbackLocale.value,ht(T,i.value,u.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:D,get modifiers(){return v},get pluralRules(){return O||{}},get isGlobal(){return o},get missingWarn(){return N},set missingWarn(C){N=C,T.missingWarn=N},get fallbackWarn(){return A},set fallbackWarn(C){A=C,T.fallbackWarn=A},get fallbackRoot(){return I},set fallbackRoot(C){I=C},get fallbackFormat(){return S},set fallbackFormat(C){S=C,T.fallbackFormat=S},get warnHtmlMessage(){return b},set warnHtmlMessage(C){b=C,T.warnHtmlMessage=C},get escapeParameter(){return k},set escapeParameter(C){k=C,T.escapeParameter=C},t:Xe,getLocaleMessage:F,setLocaleMessage:B,mergeLocaleMessage:X,getPostTranslationHandler:te,setPostTranslationHandler:ce,getMissingHandler:Ce,setMissingHandler:Ne,[Ms]:fe};return se.datetimeFormats=J,se.numberFormats=K,se.rt=tt,se.te=_,se.tm=L,se.d=nt,se.n=Me,se.getDateTimeFormat=Ae,se.setDateTimeFormat=Fe,se.mergeDateTimeFormat=_c,se.getNumberFormat=pc,se.setNumberFormat=hc,se.mergeNumberFormat=gc,se[Ds]=a,se[dn]=U,se[mn]=ue,se[_n]=Q,process.env.NODE_ENV!=="production"&&(se[Qe]=C=>{T.__v_emitter=C},se[gt]=()=>{T.__v_emitter=void 0}),se}function Wr(e){const t=M(e.locale)?e.locale:it,n=M(e.fallbackLocale)||q(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=Z(e.missing)?e.missing:void 0,o=H(e.silentTranslationWarn)||xe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=H(e.silentFallbackWarn)||xe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,r=H(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,i=W(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=Z(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=H(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(he($.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(he($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let A=e.messages;if(W(e.sharedMessages)){const k=e.sharedMessages;A=Object.keys(k).reduce((O,T)=>{const w=O[T]||(O[T]={});return le(w,k[T]),O},A||{})}const{__i18n:I,__root:S,__injectWithOption:m}=e,g=e.datetimeFormats,E=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:A,flatJson:b,datetimeFormats:g,numberFormats:E,missing:a,missingWarn:o,fallbackWarn:s,fallbackRoot:r,fallbackFormat:l,modifiers:i,pluralRules:u,postTranslation:p,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,__i18n:I,__root:S,__injectWithOption:m}}function gn(e={},t){{const n=hn(Wr(e)),{__extender:a}=e,o={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},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"&&(he($.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&(he($.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return H(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=H(s)?!s:s},get silentFallbackWarn(){return H(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=H(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&(he($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&(he($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[r,l,i]=s,u={};let p=null,h=null;if(!M(r))throw oe(G.INVALID_ARGUMENT);const d=r;return M(l)?u.locale=l:q(l)?p=l:W(l)&&(h=l),q(i)?p=i:W(i)&&(h=i),Reflect.apply(n.t,n,[d,p||h||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[r,l,i]=s,u={plural:1};let p=null,h=null;if(!M(r))throw oe(G.INVALID_ARGUMENT);const d=r;return M(l)?u.locale=l:ae(l)?u.plural=l:q(l)?p=l:W(l)&&(h=l),M(i)?u.locale=i:q(i)?p=i:W(i)&&(h=i),Reflect.apply(n.t,n,[d,p||h||{},u])},te(s,r){return n.te(s,r)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,r){n.setLocaleMessage(s,r)},mergeLocaleMessage(s,r){n.mergeLocaleMessage(s,r)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,r){n.setDateTimeFormat(s,r)},mergeDateTimeFormat(s,r){n.mergeDateTimeFormat(s,r)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,r){n.setNumberFormat(s,r)},mergeNumberFormat(s,r){n.mergeNumberFormat(s,r)},getChoiceIndex(s,r){return process.env.NODE_ENV!=="production"&&(he($.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return o.__extender=a,process.env.NODE_ENV!=="production"&&(o.__enableEmitter=s=>{const r=n;r[Qe]&&r[Qe](s)},o.__disableEmitter=()=>{const s=n;s[gt]&&s[gt]()}),o}}const bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Hr({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,o)=>[...a,...o.type===c.Fragment?o.children:[o]],[]):t.reduce((n,a)=>{const o=e[a];return o&&(n[a]=o()),n},{})}function js(e){return c.Fragment}const vn=c.defineComponent({name:"i18n-t",props:le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ae(e)||!isNaN(e)}},bn),setup(e,t){const{slots:n,attrs:a}=t,o=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(h=>h!=="_"),r={};e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=M(e.plural)?+e.plural:e.plural);const l=Hr(t,s),i=o[dn](e.keypath,l,r),u=le({},a),p=M(e.tag)||Y(e.tag)?e.tag:js();return c.h(p,u,i)}}});function jr(e){return q(e)&&!M(e[0])}function Gs(e,t,n,a){const{slots:o,attrs:s}=t;return()=>{const r={part:!0};let l={};e.locale&&(r.locale=e.locale),M(e.format)?r.key=e.format:Y(e.format)&&(M(e.format.key)&&(r.key=e.format.key),l=Object.keys(e.format).reduce((d,N)=>n.includes(N)?le({},d,{[N]:e.format[N]}):d,{}));const i=a(e.value,r,l);let u=[r.key];q(i)?u=i.map((d,N)=>{const A=o[d.type],I=A?A({[d.type]:d.value,index:N,parts:i}):[d.value];return jr(I)&&(I[0].key=`${d.type}-${N}`),I}):M(i)&&(u=[i]);const p=le({},s),h=M(e.tag)||Y(e.tag)?e.tag:js();return c.h(h,p,u)}}const Ys=c.defineComponent({name:"i18n-n",props:le({value:{type:Number,required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Gs(e,t,Cs,(...a)=>n[_n](...a))}}),Xs=c.defineComponent({name:"i18n-d",props:le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return Gs(e,t,ks,(...a)=>n[mn](...a))}});function Gr(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 Yr(e){const t=r=>{const{instance:l,modifiers:i,value:u}=r;if(!l||!l.$)throw oe(G.UNEXPECTED_ERROR);const p=Gr(e,l.$);process.env.NODE_ENV!=="production"&&i.preserve&&(he($.NOT_SUPPORTED_PRESERVE),void 0);const h=zs(u);return[Reflect.apply(p.t,p,[...Ks(h)]),p]};return{created:(r,l)=>{const[i,u]=t(l);Ee&&e.global===u&&(r.__i18nWatcher=c.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),r.__composer=u,r.textContent=i},unmounted:r=>{Ee&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:l})=>{if(r.__composer){const i=r.__composer,u=zs(l);r.textContent=Reflect.apply(i.t,i,[...Ks(u)])}},getSSRProps:r=>{const[l]=t(r);return{textContent:l}}}}function zs(e){if(M(e))return{path:e};if(W(e)){if(!("path"in e))throw oe(G.REQUIRED_VALUE,"path");return e}else throw oe(G.INVALID_VALUE)}function Ks(e){const{path:t,locale:n,args:a,choice:o,plural:s}=e,r={},l=a||{};return M(n)&&(r.locale=n),ae(o)&&(r.plural=o),ae(s)&&(r.plural=s),[t,l,r]}function Xr(e,t,...n){const a=W(n[0])?n[0]:{},o=!!a.useI18nComponentName,s=H(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&o&&(he($.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:vn.name}),void 0),s&&([o?"i18n":vn.name,"I18nT"].forEach(r=>e.component(r,vn)),[Ys.name,"I18nN"].forEach(r=>e.component(r,Ys)),[Xs.name,"I18nD"].forEach(r=>e.component(r,Xs))),e.directive("t",Yr(t))}const En={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},zr={"vue-i18n-resource-inspector":"Search for scopes ..."},Kr={"vue-i18n-timeline":16764185},Zs="vue-i18n: composer properties";let Tn;async function Zr(e,t){return new Promise((n,a)=>{try{Mr({id:"vue-devtools-plugin-vue-i18n",label:En["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:[Zs],app:e},o=>{Tn=o,o.on.visitComponentTree(({componentInstance:r,treeNode:l})=>{Jr(r,l,t)}),o.on.inspectComponent(({componentInstance:r,instanceData:l})=>{r.vnode.el&&r.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?r.vnode.el.__VUE_I18N__!==t.global.__composer&&Qs(l,r.vnode.el.__VUE_I18N__):Qs(l,r.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:En["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:zr["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(r=>{r.app===e&&r.inspectorId==="vue-i18n-resource-inspector"&&tl(r,t)});const s=new Map;o.on.getInspectorState(async r=>{if(r.app===e&&r.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),sl(r,t),r.nodeId==="global"){if(!s.has(r.app)){const[l]=await o.getComponentInstances(r.app);s.set(r.app,l)}o.highlightElement(s.get(r.app))}else{const l=nl(r.nodeId,t);l&&o.highlightElement(l)}}),o.on.editInspectorState(r=>{r.app===e&&r.inspectorId==="vue-i18n-resource-inspector"&&ol(r,t)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:En["vue-i18n-timeline"],color:Kr["vue-i18n-timeline"]}),n(!0)})}catch{a(!1)}})}function Js(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Jr(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 o={label:`i18n (${Js(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(o)}}function Qs(e,t){const n=Zs;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:Nn(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 Nn(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];Z(a)&&"source"in a?t[n]=el(a):Be(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:Y(a)?t[n]=Nn(a):t[n]=a}),t}const Qr={"<":"<",">":">",'"':""","&":"&"};function qr(e){return e.replace(/[<>"&]/g,$r)}function $r(e){return Qr[e]||e}function el(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${qr(e.source)}")`:"(?)"}`}}}function tl(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,o]of t.__instances){const s=t.mode==="composition"?o:o.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Js(a)} Scope`})}}function nl(e,t){let n=null;if(e!=="global"){for(const[a,o]of t.__instances.entries())if(o.id.toString()===e){n=a;break}}return n}function qs(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 sl(e,t){const n=qs(e.nodeId,t);return n&&(e.state=al(n)),null}function al(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 o="Locale messages info",s=[{type:o,key:"messages",editable:!1,value:Nn(e.messages.value)}];t[o]=s;{const r="Datetime formats info",l=[{type:r,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[r]=l;const i="Datetime formats info",u=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[i]=u}return t}function vt(e,t){if(Tn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Tn.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 ol(e,t){const n=qs(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)||q(e.state.value)||Y(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&H(e.state.value)&&(n.inheritLocale=e.state.value)}}function rl(e,t,n){return{beforeCreate(){const a=c.getCurrentInstance();if(!a)throw oe(G.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=$s(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=gn(s);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=$s(e,o);else{this.$i18n=gn({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&xs(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,r)=>this.$i18n.te(s,r),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),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 o=this.__v_emitter=$t();a.__enableEmitter&&a.__enableEmitter(o),o.on("*",vt)}},unmounted(){const a=c.getCurrentInstance();if(!a)throw oe(G.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",vt),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__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,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(a),delete this.$i18n}}}function $s(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[Ms](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 ll=Oe("global-vue-i18n");function il(e={},t){const n=__VUE_I18N_LEGACY_API__&&H(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=H(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[r,l]=cl(e,n),i=Oe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&o&&(he($.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return s.get(d)||null}function p(d,N){s.set(d,N)}function h(d){s.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(N,...A){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=i,N.provide(N.__VUE_I18N_SYMBOL__,d),W(A[0])){const m=A[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let I=null;!n&&a&&(I=bl(N,d.global)),__VUE_I18N_FULL_INSTALL__&&Xr(N,d,...A),__VUE_I18N_LEGACY_API__&&n&&N.mixin(rl(l,l.__composer,d));const S=N.unmount;if(N.unmount=()=>{I&&I(),d.dispose(),S()},process.env.NODE_ENV!=="production"){if(!await Zr(N,d))throw oe(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=$t();if(n){const E=l;E.__enableEmitter&&E.__enableEmitter(g)}else{const E=l;E[Qe]&&E[Qe](g)}g.on("*",vt)}},get global(){return l},dispose(){r.stop()},__instances:s,__getInstance:u,__setInstance:p,__deleteInstance:h};return d}}function xt(e={}){const t=c.getCurrentInstance();if(t==null)throw oe(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw oe(G.NOT_INSTALLED);const n=ul(t),a=dl(n),o=Fs(t),s=fl(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw oe(G.NOT_AVAILABLE_IN_LEGACY_MODE);return hl(t,s,a,e)}if(s==="global")return xs(a,e,o),a;if(s==="parent"){let i=ml(n,t,e.__useComponent);return i==null&&(process.env.NODE_ENV!=="production"&&(he($.NOT_FOUND_PARENT_SCOPE),void 0),i=a),i}const r=n;let l=r.__getInstance(t);if(l==null){const i=le({},e);"__i18n"in o&&(i.__i18n=o.__i18n),a&&(i.__root=a),l=hn(i),r.__composerExtend&&(l[pn]=r.__composerExtend(l)),pl(r,t,l),r.__setInstance(t,l)}return l}function cl(e,t,n){const a=c.effectScope();{const o=__VUE_I18N_LEGACY_API__&&t?a.run(()=>gn(e)):a.run(()=>hn(e));if(o==null)throw oe(G.UNEXPECTED_ERROR);return[a,o]}}function ul(e){{const t=c.inject(e.isCE?ll:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw oe(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}}function fl(e,t){return Ct(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function dl(e){return e.mode==="composition"?e.global:e.global.__composer}function ml(e,t,n=!1){let a=null;const o=t.root;let s=_l(t,n);for(;s!=null;){const r=e;if(e.mode==="composition")a=r.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=r.__getInstance(s);l!=null&&(a=l.__composer,n&&a&&!a[Ds]&&(a=null))}if(a!=null||o===s)break;s=s.parent}return a}function _l(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pl(e,t,n){let a=null;c.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=$t();const o=n;o[Qe]&&o[Qe](a),a.on("*",vt)}},t),c.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",vt),o[gt]&&o[gt](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=o[pn];s&&(s(),delete o[pn])},t)}function hl(e,t,n,a={}){const o=t==="local",s=c.shallowRef(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw oe(G.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const r=H(a.inheritLocale)?a.inheritLocale:!M(a.locale),l=c.ref(!o||r?n.locale.value:M(a.locale)?a.locale:it),i=c.ref(!o||r?n.fallbackLocale.value:M(a.fallbackLocale)||q(a.fallbackLocale)||W(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),u=c.ref(Ft(l.value,a)),p=c.ref(W(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),h=c.ref(W(a.numberFormats)?a.numberFormats:{[l.value]:{}}),d=o?n.missingWarn:H(a.missingWarn)||xe(a.missingWarn)?a.missingWarn:!0,N=o?n.fallbackWarn:H(a.fallbackWarn)||xe(a.fallbackWarn)?a.fallbackWarn:!0,A=o?n.fallbackRoot:H(a.fallbackRoot)?a.fallbackRoot:!0,I=!!a.fallbackFormat,S=Z(a.missing)?a.missing:null,m=Z(a.postTranslation)?a.postTranslation:null,g=o?n.warnHtmlMessage:H(a.warnHtmlMessage)?a.warnHtmlMessage:!0,E=!!a.escapeParameter,b=o?n.modifiers:W(a.modifiers)?a.modifiers:{},k=a.pluralRules||o&&n.pluralRules;function v(){return[l.value,i.value,u.value,p.value,h.value]}const O=c.computed({get:()=>s.value?s.value.locale.value:l.value,set:f=>{s.value&&(s.value.locale.value=f),l.value=f}}),T=c.computed({get:()=>s.value?s.value.fallbackLocale.value:i.value,set:f=>{s.value&&(s.value.fallbackLocale.value=f),i.value=f}}),w=c.computed(()=>s.value?s.value.messages.value:u.value),P=c.computed(()=>p.value),x=c.computed(()=>h.value);function y(){return s.value?s.value.getPostTranslationHandler():m}function D(f){s.value&&s.value.setPostTranslationHandler(f)}function J(){return s.value?s.value.getMissingHandler():S}function K(f){s.value&&s.value.setMissingHandler(f)}function te(f){return v(),f()}function ce(...f){return s.value?te(()=>Reflect.apply(s.value.t,null,[...f])):te(()=>"")}function Ce(...f){return s.value?Reflect.apply(s.value.rt,null,[...f]):""}function Ne(...f){return s.value?te(()=>Reflect.apply(s.value.d,null,[...f])):te(()=>"")}function dt(...f){return s.value?te(()=>Reflect.apply(s.value.n,null,[...f])):te(()=>"")}function be(f){return s.value?s.value.tm(f):{}}function Xe(f,L){return s.value?s.value.te(f,L):!1}function tt(f){return s.value?s.value.getLocaleMessage(f):{}}function nt(f,L){s.value&&(s.value.setLocaleMessage(f,L),u.value[f]=L)}function Me(f,L){s.value&&s.value.mergeLocaleMessage(f,L)}function ze(f){return s.value?s.value.getDateTimeFormat(f):{}}function mt(f,L){s.value&&(s.value.setDateTimeFormat(f,L),p.value[f]=L)}function De(f,L){s.value&&s.value.mergeDateTimeFormat(f,L)}function U(f){return s.value?s.value.getNumberFormat(f):{}}function Q(f,L){s.value&&(s.value.setNumberFormat(f,L),h.value[f]=L)}function ue(f,L){s.value&&s.value.mergeNumberFormat(f,L)}const fe={get id(){return s.value?s.value.id:-1},locale:O,fallbackLocale:T,messages:w,datetimeFormats:P,numberFormats:x,get inheritLocale(){return s.value?s.value.inheritLocale:r},set inheritLocale(f){s.value&&(s.value.inheritLocale=f)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(u.value)},get modifiers(){return s.value?s.value.modifiers:b},get pluralRules(){return s.value?s.value.pluralRules:k},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:d},set missingWarn(f){s.value&&(s.value.missingWarn=f)},get fallbackWarn(){return s.value?s.value.fallbackWarn:N},set fallbackWarn(f){s.value&&(s.value.missingWarn=f)},get fallbackRoot(){return s.value?s.value.fallbackRoot:A},set fallbackRoot(f){s.value&&(s.value.fallbackRoot=f)},get fallbackFormat(){return s.value?s.value.fallbackFormat:I},set fallbackFormat(f){s.value&&(s.value.fallbackFormat=f)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:g},set warnHtmlMessage(f){s.value&&(s.value.warnHtmlMessage=f)},get escapeParameter(){return s.value?s.value.escapeParameter:E},set escapeParameter(f){s.value&&(s.value.escapeParameter=f)},t:ce,getPostTranslationHandler:y,setPostTranslationHandler:D,getMissingHandler:J,setMissingHandler:K,rt:Ce,d:Ne,n:dt,tm:be,te:Xe,getLocaleMessage:tt,setLocaleMessage:nt,mergeLocaleMessage:Me,getDateTimeFormat:ze,setDateTimeFormat:mt,mergeDateTimeFormat:De,getNumberFormat:U,setNumberFormat:Q,mergeNumberFormat:ue};function _(f){f.locale.value=l.value,f.fallbackLocale.value=i.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=E,f.fallbackFormat=I,f.fallbackRoot=A,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=g}return c.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw oe(G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=s.value=e.proxy.$i18n.__composer;t==="global"?(l.value=f.locale.value,i.value=f.fallbackLocale.value,u.value=f.messages.value,p.value=f.datetimeFormats.value,h.value=f.numberFormats.value):o&&_(f)}),fe}const gl=["locale","fallbackLocale","availableLocales"],ea=["t","rt","d","n","tm","te"];function bl(e,t){const n=Object.create(null);return gl.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw oe(G.UNEXPECTED_ERROR);const r=c.isRef(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,ea.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw oe(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,ea.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Fr(),__INTLIFY_JIT_COMPILATION__?ls(Tr):ls(Er),dr(Xo),mr(ss),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=we();e.__INTLIFY__=!0,tr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ta=({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 vl({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:o,offsetTop:s}=e;let r,l;n==="center"?l=s+(e.clientHeight-t.clientHeight)/2:l=s,a==="center"?r=o+(e.clientWidth-t.clientWidth)/2:r=o,ta({wrap:t,left:r,top:l})}}const na=(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 He=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(He||{}),sa=(e=>(e.I18N_LOCALES="I18N_LOCALES",e.PANEL_MAXIMUM="PANEL_MAXIMUM",e.TAB_ACTIVE="TAB_ACTIVE",e.TAB_CLOSE="TAB_CLOSE",e.TAB_CLOSE_ALL="TAB_CLOSE_ALL",e.TAB_CLOSE_RIGHT="TAB_CLOSE_RIGHT",e.TAB_CLOSE_LEFT="TAB_CLOSE_LEFT",e.TAB_REFRESH="TAB_REFRESH",e.TAB_REFRESH_ALL="TAB_REFRESH_ALL",e))(sa||{});class Ut{constructor(){Ka(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 El=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"})),Tl=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":El,"./lang/zh-CN.ts":Tl});function t(s,r){for(const l in s)if(s[l].default){const i=l.substring(l.lastIndexOf("/")+1,l.lastIndexOf("."));r[i]?r[i]={...s[i],...s[l].default}:r[i]=s[l].default}}const n=()=>{const s={};return t(e,s),s},a=c.inject("locales");return{getI18n:()=>{const s={...n(),...a.messages};return xt({useScope:"local",locale:a.locale,messages:s})}}};function yn(e){if(!Ln(e))throw new Error("Parameter was not an error")}function Ln(e){return Nl(e)==="[object Error]"||e instanceof Error}function Nl(e){return Object.prototype.toString.call(e)}function Ol(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 Te extends Error{constructor(t,n){const a=[...arguments],{options:o,shortMessage:s}=Ol(a);let r=s;if(o.cause&&(r=`${r}: ${o.cause.message}`),super(r),this.message=r,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const l=o.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return yn(t),t._cause&&Ln(t._cause)?t._cause:null}static fullStack(t){yn(t);const n=Te.cause(t);return n?`${t.stack}
|
|
21
|
-
caused by: ${Te.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=Te.cause(t);return a&&Object.assign(n,Te.info(a)),t._info&&Object.assign(n,t._info),n}cause(){return Te.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",Et=32,oa=0xffffffffffff,yl=10,Ll=16,Tt=Object.freeze({source:"ulid"});function kl(e){const t=e||Il(),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 Te({info:{code:"PRNG_DETECT",...Tt}},"Failed to find a reliable PRNG")}function Il(){return Al()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Sl(e,t){let n="";for(;e>0;e--)n=wl(t)+n;return n}function Cl(e,t){if(isNaN(e))throw new Te({info:{code:"ENC_TIME_NAN",...Tt}},`Time must be a number: ${e}`);if(e>oa)throw new Te({info:{code:"ENC_TIME_SIZE_EXCEED",...Tt}},`Cannot encode a time larger than ${oa}: ${e}`);if(e<0)throw new Te({info:{code:"ENC_TIME_NEG",...Tt}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Te({info:{code:"ENC_TIME_TYPE",...Tt}},`Time must be an integer: ${e}`);let n,a="";for(let o=t;o>0;o--)n=e%Et,a=aa.charAt(n)+a,e=(e-n)/Et;return a}function Al(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function wl(e){let t=Math.floor(e()*Et);return t===Et&&(t=Et-1),aa.charAt(t)}function ra(e,t){const n=t||kl(),a=isNaN(e)?Date.now():e;return Cl(a,yl)+Sl(Ll,n)}var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kn={exports:{}};kn.exports,function(e){var t=function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function r(i,u){if(!s[i]){s[i]={};for(var p=0;p<i.length;p++)s[i][i.charAt(p)]=p}return s[i][u]}var l={compressToBase64:function(i){if(i==null)return"";var u=l._compress(i,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(i){return i==null?"":i==""?null:l._decompress(i.length,32,function(u){return r(a,i.charAt(u))})},compressToUTF16:function(i){return i==null?"":l._compress(i,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(i){return i==null?"":i==""?null:l._decompress(i.length,16384,function(u){return i.charCodeAt(u)-32})},compressToUint8Array:function(i){for(var u=l.compress(i),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(i){if(i==null)return l.decompress(i);for(var u=new Array(i.length/2),p=0,h=u.length;p<h;p++)u[p]=i[p*2]*256+i[p*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(i){return i==null?"":l._compress(i,6,function(u){return o.charAt(u)})},decompressFromEncodedURIComponent:function(i){return i==null?"":i==""?null:(i=i.replace(/ /g,"+"),l._decompress(i.length,32,function(u){return r(o,i.charAt(u))}))},compress:function(i){return l._compress(i,16,function(u){return n(u)})},_compress:function(i,u,p){if(i==null)return"";var h,d,N={},A={},I="",S="",m="",g=2,E=3,b=2,k=[],v=0,O=0,T;for(T=0;T<i.length;T+=1)if(I=i.charAt(T),Object.prototype.hasOwnProperty.call(N,I)||(N[I]=E++,A[I]=!0),S=m+I,Object.prototype.hasOwnProperty.call(N,S))m=S;else{if(Object.prototype.hasOwnProperty.call(A,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)v=v<<1,O==u-1?(O=0,k.push(p(v)),v=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1}else{for(d=1,h=0;h<b;h++)v=v<<1|d,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete A[m]}else for(d=N[m],h=0;h<b;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),N[S]=E++,m=String(I)}if(m!==""){if(Object.prototype.hasOwnProperty.call(A,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)v=v<<1,O==u-1?(O=0,k.push(p(v)),v=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1}else{for(d=1,h=0;h<b;h++)v=v<<1|d,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete A[m]}else for(d=N[m],h=0;h<b;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,h=0;h<b;h++)v=v<<1|d&1,O==u-1?(O=0,k.push(p(v)),v=0):O++,d=d>>1;for(;;)if(v=v<<1,O==u-1){k.push(p(v));break}else O++;return k.join("")},decompress:function(i){return i==null?"":i==""?null:l._decompress(i.length,32768,function(u){return i.charCodeAt(u)})},_decompress:function(i,u,p){var h=[],d=4,N=4,A=3,I="",S=[],m,g,E,b,k,v,O,T={val:p(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(E=0,k=Math.pow(2,2),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;switch(E){case 0:for(E=0,k=Math.pow(2,8),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;O=n(E);break;case 1:for(E=0,k=Math.pow(2,16),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;O=n(E);break;case 2:return""}for(h[3]=O,g=O,S.push(O);;){if(T.index>i)return"";for(E=0,k=Math.pow(2,A),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;switch(O=E){case 0:for(E=0,k=Math.pow(2,8),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;h[N++]=n(E),O=N-1,d--;break;case 1:for(E=0,k=Math.pow(2,16),v=1;v!=k;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=p(T.index++)),E|=(b>0?1:0)*v,v<<=1;h[N++]=n(E),O=N-1,d--;break;case 2:return S.join("")}if(d==0&&(d=Math.pow(2,A),A++),h[O])I=h[O];else if(O===N)I=g+g.charAt(0);else return null;S.push(I),h[N++]=g+I.charAt(0),d--,g=I,d==0&&(d=Math.pow(2,A),A++)}}};return l}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(kn);var la=kn.exports;const Rl=new TextEncoder,Ml=new TextDecoder("utf-8",{ignoreBOM:!0}),ia={encode:e=>Rl.encode(e),decode:e=>Ml.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})(),Dl=(()=>{const e={};for(let t=0;t<256;t++){const n=ca[t],a=n[0],o=a.toUpperCase(),s=n[1],r=s.toUpperCase();e[n]=t,e[`${a}${r}`]=t,e[`${o}${s}`]=t,e[`${o}${r}`]=t}return e})(),In={encode:e=>{let t="";for(let n=0,a=e.length;n<a;n++)t+=ca[e[n]];return t},encodeStr:e=>In.encode(ia.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let a=0;a<t;a++)n[a]=Dl[e.slice(a*2,a*2+2)];return n},decodeStr:e=>ia.decode(In.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function Nt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Fl(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ua(e,...t){if(!Fl(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 xl=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Bt=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Ul(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Wt=(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 Vl(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=Vl(e)),!Ul(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Bl{clone(){return this._cloneInto()}}function Wl(e){const t=(a,o)=>e(o).update(Cn(a)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=a=>e(a),t}class Hl extends Bl{constructor(t,n,a={},o,s,r){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,Nt(t),Nt(n),Nt(o),n<0||n>o)throw new Error("outputLen bigger than keyLen");if(a.key!==void 0&&(a.key.length<1||a.key.length>o))throw new Error(`key must be up 1..${o} byte long or undefined`);if(a.salt!==void 0&&a.salt.length!==s)throw new Error(`salt must be ${s} byte long or undefined`);if(a.personalization!==void 0&&a.personalization.length!==r)throw new Error(`personalization must be ${r} byte long or undefined`);this.buffer32=Bt(this.buffer=new Uint8Array(t))}update(t){Sn(this);const{blockLen:n,buffer:a,buffer32:o}=this;t=Cn(t);const s=t.length,r=t.byteOffset,l=t.buffer;for(let i=0;i<s;){this.pos===n&&(this.compress(o,0,!1),this.pos=0);const u=Math.min(n-this.pos,s-i),p=r+i;if(u===n&&!(p%4)&&i+u<s){const h=new Uint32Array(l,p,Math.floor((s-i)/4));for(let d=0;i+n<s;d+=o.length,i+=n)this.length+=n,this.compress(h,d,!1);continue}a.set(t.subarray(i,i+u),this.pos),this.pos+=u,this.length+=u,i+=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 o=Bt(t);this.get().forEach((s,r)=>o[r]=s)}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:o,destroyed:s,outputLen:r,pos:l}=this;return t||(t=new this.constructor({dkLen:r})),t.set(...this.get()),t.length=a,t.finished=o,t.destroyed=s,t.outputLen=r,t.buffer.set(n),t.pos=l,t}}const Re=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function je(e,t,n,a,o){return e=e+t+o|0,a=Wt(a^e,16),n=n+a|0,t=Wt(t^n,12),{a:e,b:t,c:n,d:a}}function Ge(e,t,n,a,o){return e=e+t+o|0,a=Wt(a^e,8),n=n+a|0,t=Wt(t^n,7),{a:e,b:t,c:n,d:a}}function _a(e,t,n,a,o,s,r,l,i,u,p,h,d,N,A,I,S,m,g,E){let b=0;for(let k=0;k<a;k++)({a:o,b:i,c:d,d:S}=je(o,i,d,S,n[t+e[b++]])),{a:o,b:i,c:d,d:S}=Ge(o,i,d,S,n[t+e[b++]]),{a:s,b:u,c:N,d:m}=je(s,u,N,m,n[t+e[b++]]),{a:s,b:u,c:N,d:m}=Ge(s,u,N,m,n[t+e[b++]]),{a:r,b:p,c:A,d:g}=je(r,p,A,g,n[t+e[b++]]),{a:r,b:p,c:A,d:g}=Ge(r,p,A,g,n[t+e[b++]]),{a:l,b:h,c:I,d:E}=je(l,h,I,E,n[t+e[b++]]),{a:l,b:h,c:I,d:E}=Ge(l,h,I,E,n[t+e[b++]]),{a:o,b:u,c:A,d:E}=je(o,u,A,E,n[t+e[b++]]),{a:o,b:u,c:A,d:E}=Ge(o,u,A,E,n[t+e[b++]]),{a:s,b:p,c:I,d:S}=je(s,p,I,S,n[t+e[b++]]),{a:s,b:p,c:I,d:S}=Ge(s,p,I,S,n[t+e[b++]]),{a:r,b:h,c:d,d:m}=je(r,h,d,m,n[t+e[b++]]),{a:r,b:h,c:d,d:m}=Ge(r,h,d,m,n[t+e[b++]]),{a:l,b:i,c:N,d:g}=je(l,i,N,g,n[t+e[b++]]),{a:l,b:i,c:N,d:g}=Ge(l,i,N,g,n[t+e[b++]]);return{v0:o,v1:s,v2:r,v3:l,v4:i,v5:u,v6:p,v7:h,v8:d,v9:N,v10:A,v11:I,v12:S,v13:m,v14:g,v15:E}}const pa=(()=>{const e=Array.from({length:16},(a,o)=>o),t=a=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(o=>a[o]),n=[];for(let a=0,o=e;a<7;a++,o=t(o))n.push(...o);return Uint8Array.from(n)})();class An extends Hl{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,Nt(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=Bt(a),this.flags=n|16}else if(t.context!==void 0){const a=new An({dkLen:32},32).update(t.context).digest();this.IV=Bt(a),this.flags=n|64}else this.IV=Re.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=xl(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,a,o=0){const{state:s,pos:r}=this,{h:l,l:i}=ma(BigInt(t),!0),{v0:u,v1:p,v2:h,v3:d,v4:N,v5:A,v6:I,v7:S,v8:m,v9:g,v10:E,v11:b,v12:k,v13:v,v14:O,v15:T}=_a(pa,o,a,7,s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],Re[0],Re[1],Re[2],Re[3],l,i,r,n);s[0]=u^m,s[1]=p^g,s[2]=h^E,s[3]=d^b,s[4]=N^k,s[5]=A^v,s[6]=I^O,s[7]=S^T}compress(t,n=0,a=!1){let o=this.flags;if(this.chunkPos||(o|=1),(this.chunkPos===15||a)&&(o|=2),a||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,o,t,n),this.chunkPos+=1,this.chunkPos===16||a){let s=this.state;this.state=this.IV.slice();for(let r,l=this.chunksDone+1;(a||!(l&1))&&(r=this.stack.pop());l>>=1)this.buffer32.set(r,0),this.buffer32.set(s,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),s=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(s)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:a,state:o,chunkPos:s,posOut:r,chunkOut:l,stack:i,chunksDone:u}=this;return t.state.set(o.slice()),t.stack=i.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=a,t.chunkPos=s,t.chunksDone=u,t.posOut=r,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:o,bufferOut32:s}=this,{h:r,l}=ma(BigInt(this.chunkOut++)),{v0:i,v1:u,v2:p,v3:h,v4:d,v5:N,v6:A,v7:I,v8:S,v9:m,v10:g,v11:E,v12:b,v13:k,v14:v,v15:O}=_a(pa,0,o,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Re[0],Re[1],Re[2],Re[3],l,r,n,a);s[0]=i^S,s[1]=u^m,s[2]=p^g,s[3]=h^E,s[4]=d^b,s[5]=N^k,s[6]=A^v,s[7]=I^O,s[8]=t[0]^S,s[9]=t[1]^m,s[10]=t[2]^g,s[11]=t[3]^E,s[12]=t[4]^b,s[13]=t[5]^k,s[14]=t[6]^v,s[15]=t[7]^O,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 o=0,s=t.length;o<s;){this.posOut>=n&&this.b2CompressOut();const r=Math.min(n-this.posOut,s-o);t.set(a.subarray(this.posOut,this.posOut+r),o),this.posOut+=r,o+=r}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return Nt(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 jl=Wl(e=>new An(e)),ha=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return la.compressToEncodedURIComponent(t)},Gl=e=>{const n=la.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 s in n)s.startsWith("__")||a.push({key:s,value:n[s]});a.sort((s,r)=>{let l=0;return s.key>r.key?l=1:s.key<r.key&&(l=-1),l});const o=jl(`${e}|${t}|${JSON.stringify(a)}`);return In.encode(o)};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 o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const r=e[s];r!=null&&(a&&a(o,s,r,n)||(Array.isArray(r)&&Array.isArray(o[s])?o[s]=[...r,...o[s]]:wn(r)&&wn(o[s])?o[s]=Pn(r,o[s],(n?`${n}.`:"")+s.toString(),a):o[s]=r))}return o}function Yl(e){return(...t)=>t.reduce((n,a)=>Pn(n,a,"",e),{})}const ke=Yl(),Rn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),a={};for(const o of n){const s=o.split("=");s[1]!==null&&s[1]!==void 0&&s[1]!==""&&(a[s[0]]=s[1])}return{path:t[0],query:a}}},j=c.ref([]),Ht=[],ie=c.ref([]),qe=new Map,jt=new Set,Ot=c.ref(!0),ba="stacktab-active-tab",yt=()=>{const e=ve.useRouter(),t=()=>j.value.length,n=w=>{Ht.splice(0);for(const x of w){const y=ra(),D=ha(ke(x,{id:y})),J=Rn(x.path),K=ke(x,{closable:!0,refreshable:!0,iframe:!1}),te=ga(y,J.path,J.query),ce={id:te,tabId:y,path:J.path,query:ke(J.query,{__tab:D})},Ce=new Ut;Ce.push(ce);const Ne={id:y,title:K.title,closable:K.closable,refreshable:K.refreshable,iframe:K.iframe,active:!1,pages:Ce};Ht.push(Ne),j.value.push(Ne),ie.value.push(te)}const P=window.sessionStorage.getItem(ba);if(P!=null){const x=ke({pages:new Ut},JSON.parse(P));let y=!1;for(const D of j.value)if(D.id===x.id){y=!0;break}y||j.value.push(x)}},a=w=>{for(const P of j.value)if(P.id===w)return!0;return!1},o=w=>{j.value.push(w)},s=w=>{for(const P of j.value)if(P.id===w)return P;return null},r=(w,P)=>{let x;const y=Gl(w.query.__tab),D=ga(y.id,w.path,w.query.valueOf()),J=w.query.__src;if(qe.has(D))x=qe.get(D);else{x=c.defineComponent({name:D,components:{DynamicComponent:P},setup(){return c.onActivated(()=>{g(),P.props=null}),c.onUnmounted(()=>{}),()=>c.createVNode("div",{class:"cache-page-wrapper",id:y.id},[c.createVNode(c.resolveComponent("dynamic-component"),{tId:y.id,pId:D},null)])}}),qe.set(D,x);let K=null;for(const ce of c.unref(j))ce.active=!1,ce.id===y.id&&(K=ce);const te={id:D,tabId:y.id,path:w.path,query:w.query};if(K===null){const ce=new Ut;ce.push(te),K={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent(J),active:!0,pages:ce},j.value.push(K)}else K.active=!0,(K.pages.isEmpty()||K.pages.peek().id!==te.id)&&K.pages.push(te);v(K)}return b(D),x},l=w=>{let P="";for(let x=j.value.length-1;x>=0;x--)if(w===c.unref(j)[x].id){if(!c.unref(j)[x].closable)break;for(const y of c.unref(j)[x].pages.list())S(y.id),m(y.id);c.unref(j)[x].pages.clear(),j.value.length>1&&(x===0?P=c.unref(j)[1].id:P=c.unref(j)[x-1].id),c.unref(j).splice(x,1);break}return k(P),P!==w&&g(),P},i=()=>{const w=c.unref(j);for(let P=w.length-1;P>=0;P--)if(w[P].closable){for(const x of w[P].pages.list())S(x.id),m(x.id);c.unref(j)[P].pages.clear(),c.unref(j).splice(P,1)}for(const P of w)if(P.active){g();return}k(w[w.length-1].id)},u=w=>{const P=c.unref(j);let x;for(let y=P.length-1;y>=0;y--)if(P[y].id===w)x=P[y];else if(P[y].closable&&P[y].id!==w){for(const D of P[y].pages.list())S(D.id),m(D.id);c.unref(j)[y].pages.clear(),c.unref(j).splice(y,1)}x.active?g():k(w)},p=w=>{let P=-1;const x=c.unref(j);for(let y=0;y<x.length;y++)if(x[y].id===w){P=y-1;break}for(let y=P;y>=0;y--)if(x[y].closable){for(const D of x[y].pages.list())S(D.id),m(D.id);c.unref(j)[y].pages.clear(),c.unref(j).splice(y,1)}for(const y of x)if(y.active){g();return}k(x[0].id)},h=w=>{const P=c.unref(j);let x=P.length;for(let y=0;y<P.length;y++)if(P[y].id===w){x=y+1;break}for(let y=P.length-1;y>=x;y--)if(P[y].closable){for(const D of P[y].pages.list())S(D.id),m(D.id);c.unref(j)[y].pages.clear(),c.unref(j).splice(y,1)}for(const y of P)if(y.active){g();return}k(P[P.length-1].id)},d=w=>{var P;for(const x of c.unref(j))if(x.id===w){const y=(P=x.pages.peek())==null?void 0:P.id;for(let D=ie.value.length-1;D>=0;D--)if(ie.value[D]===y){ie.value.splice(D,1),x.active&&(Ot.value=!1);break}break}},N=()=>{const w=new Set;j.value.forEach(P=>{w.add(P.pages.peek().id)});for(let P=ie.value.length-1;P>=0;P--){const x=ie.value[P];w.has(x)&&ie.value.splice(P,1)}Ot.value=!1},A=(w,P)=>{qe.set(w,P)},I=w=>qe.get(w),S=w=>{qe.delete(w)},m=w=>{jt.add(w)},g=()=>{for(let w=ie.value.length-1;w>=0;w--)jt.has(ie.value[w])&&c.unref(ie).splice(w,1);jt.clear()},E=w=>{for(let P=ie.value.length-1;P>=0;P--)w===ie.value[P]&&c.unref(ie).splice(P,1)},b=w=>{new Set(ie.value).has(w)||ie.value.push(w)},k=(w,P=!0)=>{for(let x=j.value.length-1;x>=0;x--){const y=j.value[x];if(y.id===w){if(y.active)break;if(y.active=!0,Ot.value=!1,v(y),P){const D=y.pages.peek();e.push({path:D.path,query:D.query})}}else j.value[x].active=!1}},v=w=>{window.sessionStorage.setItem(ba,JSON.stringify(w))},O=()=>{T(),c.unref(j).push(...Ht),k(Ht[0].id)},T=()=>{c.unref(j).splice(0),qe.clear(),jt.clear(),c.unref(ie).splice(0),Ot.value=!0};return{tabs:j,caches:ie,pageShown:Ot,initial:n,size:t,active:k,destroy:T,reset:O,addCache:b,removeCache:E,getTab:s,addTab:o,removeTab:l,removeAllTabs:i,removeLeftTabs:p,removeRightTabs:h,removeOtherTabs:u,hasTab:a,addPage:r,addComponent:A,getComponent:I,removeComponent:S,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:N}},Xl={class:"stack-tab__contextmenu-item"},Ye=c.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("div",Xl,[c.createElementVNode("div",{class:c.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),c.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=c.withModifiers(()=>{},["prevent"]))},c.toDisplayString(t.title),33)]))}}),zl={key:0,class:"divider div-transparent"},Kl=((e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n})(c.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=On().getI18n(),a=c.ref(),o=c.reactive({left:t.left,top:t.top}),{removeTab:s,removeAllTabs:r,removeLeftTabs:l,removeRightTabs:i,refreshTab:u,refreshAllTabs:p,removeOtherTabs:h}=yt();return c.onMounted(()=>{const d=a.value?a.value.clientWidth:0,N=window.innerWidth;o.left+d>N&&(o.left=N-d-5)}),(d,N)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"contextmenu",ref:a,class:"stack-tab__contextmenu",style:c.normalizeStyle({left:`${o.left}px`,top:`${o.top}px`,"z-index":c.unref(na)(".stack-tab,.stack-tab *")})},[c.createVNode(Ye,{icon:"stack-tab__icon-reload svg-mask",title:c.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=A=>c.unref(u)(d.tabItem.id))},null,8,["title"]),c.createVNode(Ye,{icon:"stack-tab__icon-reload-all svg-mask",title:c.unref(n)("VueStackTab.reloadAll"),onClick:c.unref(p)},null,8,["title","onClick"]),c.createVNode(Ye,{icon:"stack-tab__icon-close svg-mask",title:c.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=A=>c.unref(s)(d.tabItem.id))},null,8,["title","disabled"]),c.createVNode(Ye,{icon:"stack-tab__icon-close-lefts svg-mask",title:c.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=A=>c.unref(l)(d.tabItem.id))},null,8,["title","disabled"]),c.createVNode(Ye,{icon:"stack-tab__icon-close-rights svg-mask",title:c.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=A=>c.unref(i)(d.tabItem.id))},null,8,["title","disabled"]),c.createVNode(Ye,{icon:"stack-tab__icon-close-others svg-mask",title:c.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=A=>c.unref(h)(d.tabItem.id))},null,8,["title"]),c.createVNode(Ye,{icon:"stack-tab__icon-close-all svg-mask",title:c.unref(n)("VueStackTab.closeAll"),onClick:c.unref(r)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(c.openBlock(),c.createElementBlock("div",zl)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(d.contextMenu,(A,I)=>(c.openBlock(),c.createBlock(Ye,{key:I,icon:A.icon,title:A.title,disabled:A.disabled(d.tabItem)?"disabled":null,onClick:S=>!A.disabled&&A.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-51bc75d3"]]),Zl=()=>{const e=c.reactive({item:{},index:-1,left:0,top:0,max:0}),t=c.ref(!1);c.onMounted(()=>{document.addEventListener("click",a)}),c.onUnmounted(()=>{document.removeEventListener("click",a)});const n=async(o,s,r,l)=>{t.value=!1,await c.nextTick(()=>{const{clientY:i,clientX:u}=o;t.value=!0,Object.assign(e,{item:s,index:r,top:i,left:u,max:l})})},a=o=>{o.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Jl={class:"stack-tab__item-title"},Ql=["title"],ql=["title"],$l=c.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:a}=On().getI18n(),o=c.ref(),s=e;c.watch(()=>s.item.active,u=>{u&&i()});const r=c.computed(()=>s.item.title||a("undefined")),l=()=>{n("close",s.item)},i=()=>{n("active",s.item,o)};return(u,p)=>(c.openBlock(),c.createElementBlock("li",{ref_key:"curtab",ref:o,class:c.normalizeClass(["stack-tab__item",{"is-active":u.item.active,"is-icon":u.item.closable}]),onClick:i},[c.createElementVNode("div",Jl,[c.createElementVNode("div",{class:"stack-tab__item-title-content",title:r.value},c.toDisplayString(r.value),9,Ql)]),u.item.closable?(c.openBlock(),c.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:c.unref(a)("VueStackTab.close"),onClick:c.withModifiers(l,["stop"])},null,8,ql)):c.createCommentVNode("",!0)],2))}});var $e=[],ei=function(){return $e.some(function(e){return e.activeTargets.length>0})},ti=function(){return $e.some(function(e){return e.skippedTargets.length>0})},va="ResizeObserver loop completed with undelivered notifications.",ni=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:va}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=va),window.dispatchEvent(e)},Lt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Lt||(Lt={}));var et=function(e){return Object.freeze(e)},si=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,et(this)}return e}(),Ea=function(){function e(t,n,a,o){return this.x=t,this.y=n,this.width=a,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,et(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,a=t.y,o=t.top,s=t.right,r=t.bottom,l=t.left,i=t.width,u=t.height;return{x:n,y:a,top:o,right:s,bottom:r,left:l,width:i,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},Ta=function(e){if(Mn(e)){var t=e.getBBox(),n=t.width,a=t.height;return!n&&!a}var o=e,s=o.offsetWidth,r=o.offsetHeight;return!(s||r||e.getClientRects().length)},Na=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)},ai=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},kt=typeof window<"u"?window:{},Gt=new WeakMap,Oa=/auto|scroll/,oi=/^tb|vertical/,ri=/msie|trident/i.test(kt.navigator&&kt.navigator.userAgent),Ie=function(e){return parseFloat(e||"0")},ft=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new si((n?t:e)||0,(n?e:t)||0)},ya=et({devicePixelContentBoxSize:ft(),borderBoxSize:ft(),contentBoxSize:ft(),contentRect:new Ea(0,0,0,0)}),La=function(e,t){if(t===void 0&&(t=!1),Gt.has(e)&&!t)return Gt.get(e);if(Ta(e))return Gt.set(e,ya),ya;var n=getComputedStyle(e),a=Mn(e)&&e.ownerSVGElement&&e.getBBox(),o=!ri&&n.boxSizing==="border-box",s=oi.test(n.writingMode||""),r=!a&&Oa.test(n.overflowY||""),l=!a&&Oa.test(n.overflowX||""),i=a?0:Ie(n.paddingTop),u=a?0:Ie(n.paddingRight),p=a?0:Ie(n.paddingBottom),h=a?0:Ie(n.paddingLeft),d=a?0:Ie(n.borderTopWidth),N=a?0:Ie(n.borderRightWidth),A=a?0:Ie(n.borderBottomWidth),I=a?0:Ie(n.borderLeftWidth),S=h+u,m=i+p,g=I+N,E=d+A,b=l?e.offsetHeight-E-e.clientHeight:0,k=r?e.offsetWidth-g-e.clientWidth:0,v=o?S+g:0,O=o?m+E:0,T=a?a.width:Ie(n.width)-v-k,w=a?a.height:Ie(n.height)-O-b,P=T+S+k+g,x=w+m+b+E,y=et({devicePixelContentBoxSize:ft(Math.round(T*devicePixelRatio),Math.round(w*devicePixelRatio),s),borderBoxSize:ft(P,x,s),contentBoxSize:ft(T,w,s),contentRect:new Ea(h,i,T,w)});return Gt.set(e,y),y},ka=function(e,t,n){var a=La(e,n),o=a.borderBoxSize,s=a.contentBoxSize,r=a.devicePixelContentBoxSize;switch(t){case Lt.DEVICE_PIXEL_CONTENT_BOX:return r;case Lt.BORDER_BOX:return o;default:return s}},li=function(){function e(t){var n=La(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=et([n.borderBoxSize]),this.contentBoxSize=et([n.contentBoxSize]),this.devicePixelContentBoxSize=et([n.devicePixelContentBoxSize])}return e}(),Ia=function(e){if(Ta(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ii=function(){var e=1/0,t=[];$e.forEach(function(r){if(r.activeTargets.length!==0){var l=[];r.activeTargets.forEach(function(u){var p=new li(u.target),h=Ia(u.target);l.push(p),u.lastReportedSize=ka(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){r.callback.call(r.observer,l,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var n=0,a=t;n<a.length;n++){var o=a[n];o()}return e},Sa=function(e){$e.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Ia(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},ci=function(){var e=0;for(Sa(e);ei();)e=ii(),Sa(e);return ti()&&ni(),e>0},Dn,Ca=[],ui=function(){return Ca.splice(0).forEach(function(e){return e()})},fi=function(e){if(!Dn){var t=0,n=document.createTextNode(""),a={characterData:!0};new MutationObserver(function(){return ui()}).observe(n,a),Dn=function(){n.textContent="".concat(t?t--:t++)}}Ca.push(e),Dn()},di=function(e){fi(function(){requestAnimationFrame(e)})},Yt=0,mi=function(){return!!Yt},_i=250,pi={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,hi=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=_i),!Fn){Fn=!0;var a=wa(t);di(function(){var o=!1;try{o=ci()}finally{if(Fn=!1,t=a-wa(),!mi())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,pi)};document.body?n():kt.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 kt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Aa.forEach(function(n){return kt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xn=new hi,Pa=function(e){!Yt&&e>0&&xn.start(),Yt+=e,!Yt&&xn.stop()},gi=function(e){return!Mn(e)&&!ai(e)&&getComputedStyle(e).display==="inline"},bi=function(){function e(t,n){this.target=t,this.observedBox=n||Lt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ka(this.target,this.observedBox,!0);return gi(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),vi=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Xt=new WeakMap,Ra=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},zt=function(){function e(){}return e.connect=function(t,n){var a=new vi(t,n);Xt.set(t,a)},e.observe=function(t,n,a){var o=Xt.get(t),s=o.observationTargets.length===0;Ra(o.observationTargets,n)<0&&(s&&$e.push(o),o.observationTargets.push(new bi(n,a&&a.box)),Pa(1),xn.schedule())},e.unobserve=function(t,n){var a=Xt.get(t),o=Ra(a.observationTargets,n),s=a.observationTargets.length===1;o>=0&&(s&&$e.splice($e.indexOf(a),1),a.observationTargets.splice(o,1),Pa(-1))},e.disconnect=function(t){var n=this,a=Xt.get(t);a.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.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.");zt.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(!Na(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zt.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(!Na(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zt.unobserve(this,t)},e.prototype.disconnect=function(){zt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Ei=["disabled","title"],Ti={key:1,class:"stack-tab__button"},Un=c.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("div",{class:c.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?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(c.openBlock(),c.createElementBlock("div",Ti,[c.renderSlot(t.$slots,"icon")])):c.createCommentVNode("",!0)],10,Ei))}}),Ni=c.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=c.ref(null),a=c.ref(null),o=c.ref(null),s=c.ref(!1),r=c.ref(!1),l=c.ref(!1),i=c.ref(!0),u=c.ref(),p=e,h=c.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=c.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});c.watch(h,y=>{N(y)});const N=y=>{r.value=y.scrollLeft<=10,l.value=y.clientWidth+y.scrollLeft-y.scrollWidth>=-10,i.value=y.scrollWidth!==y.clientWidth},A=c.computed(()=>h.scrollWidth>h.clientWidth),I=c.computed(()=>{if(!A.value)return 0;const{clientWidth:y,scrollWidth:D}=h;return y/D*y}),S=c.computed(()=>{if(!A.value)return 0;const{clientWidth:y,scrollWidth:D,scrollLeft:J}=h;return(y-I.value)*(J/(D-y))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:y,scrollWidth:D,scrollLeft:J}=n.value;Object.assign(h,{clientWidth:y,scrollWidth:D,scrollLeft:J})},g=new Ma(()=>{var D;m();const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");y&&(x(y)||P(y))}),E=new Ma(()=>{var y;if(!A.value){const D=(y=n.value)==null?void 0:y.querySelector(".stack-tab__item.is-active");D&&(x(D)||P(D))}m()}),b=(y,D=!0)=>{ta({wrap:n.value,left:y,smooth:D})},k=y=>{b(n.value.scrollLeft+y)},v=y=>{const D=y.deltaY<0;b(n.value.scrollLeft+(D?-p.space:p.space))},O=y=>{var D;Object.assign(d,{startPageX:y.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:S.value,thumbLeft:S.value}),s.value=!0,document.addEventListener("mousemove",T),document.addEventListener("mouseup",w)},T=y=>{const{clientWidth:D,scrollWidth:J}=h;let K=d.startThumbLeft+y.pageX-d.startPageX;const te=D-I.value;K<0?K=0:K>te&&(K=te),d.thumbLeft=K,b(K*(J-D)/(D-I.value),!1),y.preventDefault()},w=y=>{s.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",w),y.preventDefault()};c.onMounted(()=>{var D;g.observe(u.value);const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");E.observe(y)}),c.onUnmounted(()=>{g.disconnect(),E.disconnect()});const P=y=>{vl({el:y,wrap:n,block:"end",inline:"center"})},x=y=>{if(!A.value)return!0;const D=y.offsetLeft,J=n.value.scrollLeft;return!(D<J||D+y.clientWidth>J+n.value.clientWidth)};return t({scrollIntoView:P,isInView:x}),(y,D)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[i.value?(c.openBlock(),c.createBlock(Un,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:r.value,onClick:D[0]||(D[0]=J=>!r.value&&k(-1*y.space))},null,8,["disabled"])):c.createCommentVNode("",!0),c.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:c.withModifiers(v,["prevent"])},[c.createElementVNode("div",{ref_key:"container",ref:n,class:c.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!r.value&&l.value,"stack-tab__shadow-inset-right":!l.value&&r.value,"stack-tab__shadow-inset-all":!r.value&&!l.value}]),onScrollPassive:m},[c.renderSlot(y.$slots,"default")],34),c.withDirectives(c.createElementVNode("div",{ref_key:"bar",ref:a,class:c.normalizeClass(["stack-tab__scrollbar",{"is-dragging":s.value}])},[c.createElementVNode("div",{ref_key:"thumb",ref:o,class:c.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":s.value}]),style:c.normalizeStyle({width:`${I.value}px`,transform:`translateX(${S.value}px)`}),onMousedown:c.withModifiers(O,["prevent"])},null,38)],2),[[c.vShow,A.value]])],544),i.value?(c.openBlock(),c.createBlock(Un,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:l.value,onClick:D[1]||(D[1]=J=>!l.value&&k(y.space))},null,8,["disabled"])):c.createCommentVNode("",!0)],64))}}),Oi={class:"stack-tab__header"},yi=c.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:He.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=c.inject("maximum"),o=t,s=c.ref(),{shown:r,contextMenuData:l,showContextMenu:i}=Zl(),u=e,{removeTab:p,active:h,tabs:d}=yt(),N=c.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),A=c.computed(()=>u.tabScrollMode===He.BOTH||u.tabScrollMode===He.BUTTON),I=u.tabScrollMode===He.BOTH||u.tabScrollMode===He.WHEEL,S=g=>{if(g.closable){const E=p(g.id);o("active",E)}r.value=!1},m=(g,E)=>{s.value&&(s.value.isInView(E.value)||s.value.scrollIntoView(E.value),h(g.id),o("active",g.id))};return(g,E)=>(c.openBlock(),c.createElementBlock("div",Oi,[c.renderSlot(g.$slots,"leftButton"),c.createVNode(Ni,{ref_key:"scroll",ref:s,space:g.space,"is-scroll-wheel":c.unref(I),"is-scroll-button":A.value},{default:c.withCtx(()=>[c.createVNode(c.TransitionGroup,c.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(d),(b,k)=>(c.openBlock(),c.createBlock($l,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:c.withModifiers(v=>c.unref(i)(v,b,k,c.unref(d).length),["prevent"]),onMouseup:c.withModifiers(v=>S(b),["middle","prevent"]),onClose:S,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),c.renderSlot(g.$slots,"rightButton"),c.createVNode(Un,{"icon-class":c.unref(a)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:c.unref(n)("VueStackTab.maximum"),onClick:E[0]||(E[0]=b=>a.value=!c.unref(a))},null,8,["icon-class","title"]),c.createVNode(c.Transition,{name:"stack-tab-zoom",appear:""},{default:c.withCtx(()=>[c.unref(r)?(c.openBlock(),c.createBlock(Kl,{key:"tabMenuTrans",left:c.unref(l).left,top:c.unref(l).top,"tab-item":c.unref(l).item,max:c.unref(l).max,index:c.unref(l).index},null,8,["left","top","tab-item","max","index"])):c.createCommentVNode("",!0)]),_:1})]))}});var Li=typeof global=="object"&&global&&global.Object===Object&&global,ki=typeof self=="object"&&self&&self.Object===Object&&self,Da=Li||ki||Function("return this")(),Kt=Da.Symbol,Fa=Object.prototype,Ii=Fa.hasOwnProperty,Si=Fa.toString,It=Kt?Kt.toStringTag:void 0;function Ci(e){var t=Ii.call(e,It),n=e[It];try{e[It]=void 0;var a=!0}catch{}var o=Si.call(e);return a&&(t?e[It]=n:delete e[It]),o}var Ai=Object.prototype,wi=Ai.toString;function Pi(e){return wi.call(e)}var Ri="[object Null]",Mi="[object Undefined]",xa=Kt?Kt.toStringTag:void 0;function Di(e){return e==null?e===void 0?Mi:Ri:xa&&xa in Object(e)?Ci(e):Pi(e)}function Fi(e){return e!=null&&typeof e=="object"}var xi="[object Symbol]";function Ui(e){return typeof e=="symbol"||Fi(e)&&Di(e)==xi}var Vi=/\s/;function Bi(e){for(var t=e.length;t--&&Vi.test(e.charAt(t)););return t}var Wi=/^\s+/;function Hi(e){return e&&e.slice(0,Bi(e)+1).replace(Wi,"")}function Zt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ua=NaN,ji=/^[-+]0x[0-9a-f]+$/i,Gi=/^0b[01]+$/i,Yi=/^0o[0-7]+$/i,Xi=parseInt;function Va(e){if(typeof e=="number")return e;if(Ui(e))return Ua;if(Zt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Hi(e);var n=Gi.test(e);return n||Yi.test(e)?Xi(e.slice(2),n?2:8):ji.test(e)?Ua:+e}var Vn=function(){return Da.Date.now()},zi="Expected a function",Ki=Math.max,Zi=Math.min;function Ji(e,t,n){var a,o,s,r,l,i,u=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(zi);t=Va(t)||0,Zt(n)&&(p=!!n.leading,h="maxWait"in n,s=h?Ki(Va(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d);function N(v){var O=a,T=o;return a=o=void 0,u=v,r=e.apply(T,O),r}function A(v){return u=v,l=setTimeout(m,t),p?N(v):r}function I(v){var O=v-i,T=v-u,w=t-O;return h?Zi(w,s-T):w}function S(v){var O=v-i,T=v-u;return i===void 0||O>=t||O<0||h&&T>=s}function m(){var v=Vn();if(S(v))return g(v);l=setTimeout(m,I(v))}function g(v){return l=void 0,d&&a?N(v):(a=o=void 0,r)}function E(){l!==void 0&&clearTimeout(l),u=0,a=i=o=l=void 0}function b(){return l===void 0?r:g(Vn())}function k(){var v=Vn(),O=S(v);if(a=arguments,o=this,i=v,O){if(l===void 0)return A(i);if(h)return clearTimeout(l),l=setTimeout(m,t),N(i)}return l===void 0&&(l=setTimeout(m,t)),r}return k.cancel=E,k.flush=b,k}var Qi="Expected a function";function qi(e,t,n){var a=!0,o=!0;if(typeof e!="function")throw new TypeError(Qi);return Zt(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),Ji(e,t,{leading:a,maxWait:t,trailing:o})}let Ba;const Wa=()=>{const e=ve.useRouter(),{active:t,hasTab:n,pageShown:a,reset:o}=yt();return{openNewTab:qi(async l=>{if(!a.value)return;const i=ke(l,{refreshable:!0,closable:!0,iframe:!1});if(n(i.id)){t(i.id);return}i.id||(i.id=ra());const u=await ha(i);let p=ke({__tab:u},l.query),h;if(l.iframe){const d=encodeURIComponent(l.path);h=Ba,p.__src=d}else{const d=Rn(l.path);h=d.path,p=ke(d.query,p)}return e.push({path:h,query:p}),i.id},500),setIFramePath:l=>{Ba=l},active:t,reset:o}},$i={class:"stack-tab__container"},ec=["src"],tc=c.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:He.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:o,addPage:s,destroy:r,initial:l}=yt(),i=t,u=e;c.provide("locales",{...u.i18n});const p=c.ref(!1);c.provide("maximum",p);const{setIFramePath:h}=Wa();h(u.iframePath),c.onBeforeMount(()=>{l(u.defaultTabs)});const d=(I,S)=>s(I,S),N=I=>{i("onActive",I)};c.onUnmounted(()=>{r()});const A=ve.useRouter();return c.watch(()=>A.currentRoute.value.fullPath,()=>{a.value=!0}),(I,S)=>{const m=c.resolveComponent("router-view");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:c.normalizeStyle({width:I.width,height:I.height,"z-index":p.value?c.unref(na)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[c.createVNode(yi,{space:I.space,onActive:N,"tab-transition":I.tabTransition,max:I.max},{leftButton:c.withCtx(()=>[c.renderSlot(I.$slots,"leftButton")]),rightButton:c.withCtx(()=>[c.renderSlot(I.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),c.createElementVNode("div",$i,[c.createVNode(m,null,{default:c.withCtx(({Component:g,route:E})=>[c.createVNode(c.Transition,{name:I.pageTransition,appear:"",onAfterLeave:S[0]||(S[0]=b=>a.value=!0)},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.KeepAlive,{include:c.unref(o)},[c.unref(a)?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(d(E,g)),{key:E.fullPath})):c.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),c.createVNode(c.TransitionGroup,{name:I.pageTransition,appear:""},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(n).filter(g=>g.iframe),g=>c.withDirectives((c.openBlock(),c.createElementBlock("iframe",{key:g.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(g.url??"")?"about:blank":g.url,frameborder:"0"},null,8,ec)),[[c.vShow,g.active&&c.unref(a)]])),128))]),_:1},8,["name"])])],6)}}}),Bn=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ha=typeof TextEncoder=="function"?new TextEncoder:void 0,St=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,a)=>t[n]=a),t})(St);const Se=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const nc=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ja=typeof btoa=="function"?e=>btoa(e):Bn?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,a,o,s="";const r=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|a<<8|o,s+=St[t>>18&63]+St[t>>12&63]+St[t>>6&63]+St[t&63]}return r?s.slice(0,r-3)+"===".substring(r):s},sc=Bn?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,o=e.length;a<o;a+=4096)n.push(Se.apply(null,e.subarray(a,a+4096)));return ja(n.join(""))},ac=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Se(192|t>>>6)+Se(128|t&63):Se(224|t>>>12&15)+Se(128|t>>>6&63)+Se(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Se(240|t>>>18&7)+Se(128|t>>>12&63)+Se(128|t>>>6&63)+Se(128|t&63)}},oc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rc=e=>e.replace(oc,ac),Ga=Bn?e=>Buffer.from(e,"utf8").toString("base64"):Ha?e=>sc(Ha.encode(e)):e=>ja(rc(e)),lc=(e,t=!1)=>t?nc(Ga(e)):Ga(e),ic=e=>{const a=`<?xml version="1.0" encoding="UTF-8"?>
|
|
20
|
+
*/const Mo="9.10.1";function Do(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(we().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(we().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(we().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(we().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(we().__INTLIFY_PROD_DEVTOOLS__=!1)}const wr=me.__EXTEND_POINT__,Re=Qt(wr),$={FALLBACK_TO_ROOT:wr,NOT_SUPPORTED_PRESERVE:Re(),NOT_SUPPORTED_FORMATTER:Re(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Re(),NOT_SUPPORTED_GET_CHOICE_INDEX:Re(),COMPONENT_NAME_LEGACY_COMPATIBLE:Re(),NOT_FOUND_PARENT_SCOPE:Re(),IGNORE_OBJ_FLATTEN:Re(),NOTICE_DROP_ALLOW_COMPOSITION:Re(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Re()},Fo={[$.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[$.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[$.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[$.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[$.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[$.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[$.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[$.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[$.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[$.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _e(e,...t){return Jt(Fo[e],...t)}const Pr=oe.__EXTEND_POINT__,pe=Qt(Pr),G={UNEXPECTED_RETURN_TYPE:Pr,INVALID_ARGUMENT:pe(),MUST_BE_CALL_SETUP_TOP:pe(),NOT_INSTALLED:pe(),NOT_AVAILABLE_IN_LEGACY_MODE:pe(),REQUIRED_VALUE:pe(),INVALID_VALUE:pe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pe(),NOT_INSTALLED_WITH_PROVIDE:pe(),UNEXPECTED_ERROR:pe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pe(),BRIDGE_SUPPORT_VUE_2_ONLY:pe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pe(),__EXTEND_POINT__:pe()};function ae(e,...t){return st(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"},fn=Oe("__translateVNode"),dn=Oe("__datetimeParts"),mn=Oe("__numberParts"),Qe=Oe("__enableEmitter"),ht=Oe("__disableEmitter"),Rr=Oe("__setPluralRules"),Mr=Oe("__injectWithOption"),_n=Oe("__dispose");function gt(e){if(!Y(e))return e;for(const t in e)if(St(e,t))if(!t.includes("."))Y(e[t])&>(e[t]);else{const n=t.split("."),s=n.length-1;let a=e,r=!1;for(let o=0;o<s;o++){if(n[o]in a||(a[n[o]]={}),!Y(a[n[o]])){process.env.NODE_ENV!=="production"&&(_e($.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),r=!0;break}a=a[n[o]]}r||(a[n[s]]=e[t],delete e[t]),Y(a[n[s]])&>(a[n[s]])}return e}function Mt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,o=W(n)?n:q(s)?{}:{[e]:{}};if(q(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:l,resource:c}=i;l?(o[l]=o[l]||{},At(c,o[l])):At(c,o)}else M(i)&&At(JSON.parse(i),o)}),a==null&&r)for(const i in o)St(o,i)&>(o[i]);return o}function Dr(e){return e.type}function Fr(e,t,n){let s=Y(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Mt(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(Y(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Y(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function xr(e){return f.createVNode(f.Text,null,e,0)}const Ur="__INTLIFY_META__",Vr=()=>[],Uo=()=>!1;let Br=0;function Wr(e){return(t,n,s,a)=>e(n,s,f.getCurrentInstance()||void 0,a)}const Vo=()=>{const e=f.getCurrentInstance();let t=null;return e&&(t=Dr(e)[Ur])?{[Ur]:t}:null};function pn(e={},t){const{__root:n,__injectWithOption:s}=e,a=n===void 0,r=e.flatJson,o=ve?f.ref:f.shallowRef,i=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&i&&Yn(_e($.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=j(e.inheritLocale)?e.inheritLocale:!0;const c=o(n&&l?n.locale.value:M(e.locale)?e.locale:it),h=o(n&&l?n.fallbackLocale.value:M(e.fallbackLocale)||q(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=o(Mt(c.value,e)),d=o(W(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),O=o(W(e.numberFormats)?e.numberFormats:{[c.value]:{}});let w=n?n.missingWarn:j(e.missingWarn)||xe(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:j(e.fallbackWarn)||xe(e.fallbackWarn)?e.fallbackWarn:!0,S=n?n.fallbackRoot:j(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=Z(e.missing)?e.missing:null,v=Z(e.missing)?Wr(e.missing):null,b=Z(e.postTranslation)?e.postTranslation:null,I=n?n.warnHtmlMessage:j(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const y=n?n.modifiers:W(e.modifiers)?e.modifiers:{};let A=e.pluralRules||n&&n.pluralRules,T;T=(()=>{a&&fr(null);const C={version:Mo,locale:c.value,fallbackLocale:h.value,messages:p.value,modifiers:y,pluralRules:A,missing:v===null?void 0:v,missingWarn:w,fallbackWarn:k,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:I,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=d.value,C.numberFormats=O.value,C.__datetimeFormatters=W(T)?T.__datetimeFormatters:void 0,C.__numberFormatters=W(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=W(T)?T.__v_emitter:void 0);const R=ho(C);return a&&fr(R),R})(),pt(T,c.value,h.value);function x(){return[c.value,h.value,p.value,d.value,O.value]}const N=f.computed({get:()=>c.value,set:C=>{c.value=C,T.locale=c.value}}),D=f.computed({get:()=>h.value,set:C=>{h.value=C,T.fallbackLocale=h.value,pt(T,c.value,C)}}),J=f.computed(()=>p.value),K=f.computed(()=>d.value),te=f.computed(()=>O.value);function ce(){return Z(b)?b:null}function Ce(C){b=C,T.postTranslation=C}function Ne(){return g}function ft(C){C!==null&&(v=Wr(C)),g=C,T.missing=v}function dt(C,R){return C!=="translate"||!R.resolvedMessage}const ge=(C,R,z,ne,ze,Zt)=>{x();let mt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(T.fallbackContext=n?po():void 0),mt=C(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(T.fallbackContext=void 0)}if(z!=="translate exists"&&se(mt)&&mt===wt||z==="translate exists"&&!mt){const[rt,pc]=R();if(process.env.NODE_ENV!=="production"&&n&&M(rt)&&dt(z,pc)&&(S&&(Rt(k,rt)||mr(w,rt))&&(_e($.FALLBACK_TO_ROOT,{key:rt,type:z}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:zs}=T;zs&&S&&zs.emit("fallback",{type:z,key:rt,to:"global",groupId:`${z}:${rt}`})}return n&&S?ne(n):ze(rt)}else{if(Zt(mt))return mt;throw ae(G.UNEXPECTED_RETURN_TYPE)}};function Ge(...C){return ge(R=>Reflect.apply(Er,null,[R,...C]),()=>on(...C),"translate",R=>Reflect.apply(R.t,R,[...C]),R=>R,R=>M(R))}function tt(...C){const[R,z,ne]=C;if(ne&&!Y(ne))throw ae(G.INVALID_ARGUMENT);return Ge(R,z,ie({resolvedMessage:!0},ne||{}))}function De(...C){return ge(R=>Reflect.apply(yr,null,[R,...C]),()=>ln(...C),"datetime format",R=>Reflect.apply(R.d,R,[...C]),()=>Pt,R=>M(R))}function Ye(...C){return ge(R=>Reflect.apply(kr,null,[R,...C]),()=>cn(...C),"number format",R=>Reflect.apply(R.n,R,[...C]),()=>Pt,R=>M(R))}function nt(C){return C.map(R=>M(R)||se(R)||j(R)?xr(String(R)):R)}const U={normalize:nt,interpolate:C=>C,type:"vnode"};function Q(...C){return ge(R=>{let z;const ne=R;try{ne.processor=U,z=Reflect.apply(Er,null,[ne,...C])}finally{ne.processor=null}return z},()=>on(...C),"translate",R=>R[fn](...C),R=>[xr(R)],R=>q(R))}function ue(...C){return ge(R=>Reflect.apply(kr,null,[R,...C]),()=>cn(...C),"number format",R=>R[mn](...C),Vr,R=>M(R)||q(R))}function fe(...C){return ge(R=>Reflect.apply(yr,null,[R,...C]),()=>ln(...C),"datetime format",R=>R[dn](...C),Vr,R=>M(R)||q(R))}function _(C){A=C,T.pluralRules=A}function u(C,R){return ge(()=>{if(!C)return!1;const z=M(R)?R:c.value,ne=B(z),ze=T.messageResolver(ne,C);return i?ze!=null:Be(ze)||be(ze)||M(ze)},()=>[C],"translate exists",z=>Reflect.apply(z.te,z,[C,R]),Uo,z=>j(z))}function L(C){let R=null;const z=nr(T,h.value,c.value);for(let ne=0;ne<z.length;ne++){const ze=p.value[z[ne]]||{},Zt=T.messageResolver(ze,C);if(Zt!=null){R=Zt;break}}return R}function F(C){const R=L(C);return R??(n?n.tm(C)||{}:{})}function B(C){return p.value[C]||{}}function X(C,R){if(r){const z={[C]:R};for(const ne in z)St(z,ne)&>(z[ne]);R=z[C]}p.value[C]=R,T.messages=p.value}function Ae(C,R){p.value[C]=p.value[C]||{};const z={[C]:R};if(r)for(const ne in z)St(z,ne)&>(z[ne]);R=z[C],At(R,p.value[C]),T.messages=p.value}function Fe(C){return d.value[C]||{}}function uc(C,R){d.value[C]=R,T.datetimeFormats=d.value,Ir(T,C,R)}function fc(C,R){d.value[C]=ie(d.value[C]||{},R),T.datetimeFormats=d.value,Ir(T,C,R)}function dc(C){return O.value[C]||{}}function mc(C,R){O.value[C]=R,T.numberFormats=O.value,Cr(T,C,R)}function _c(C,R){O.value[C]=ie(O.value[C]||{},R),T.numberFormats=O.value,Cr(T,C,R)}Br++,n&&ve&&(f.watch(n.locale,C=>{l&&(c.value=C,T.locale=C,pt(T,c.value,h.value))}),f.watch(n.fallbackLocale,C=>{l&&(h.value=C,T.fallbackLocale=C,pt(T,c.value,h.value))}));const re={id:Br,locale:N,fallbackLocale:D,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&n&&(c.value=n.locale.value,h.value=n.fallbackLocale.value,pt(T,c.value,h.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:J,get modifiers(){return y},get pluralRules(){return A||{}},get isGlobal(){return a},get missingWarn(){return w},set missingWarn(C){w=C,T.missingWarn=w},get fallbackWarn(){return k},set fallbackWarn(C){k=C,T.fallbackWarn=k},get fallbackRoot(){return S},set fallbackRoot(C){S=C},get fallbackFormat(){return m},set fallbackFormat(C){m=C,T.fallbackFormat=m},get warnHtmlMessage(){return I},set warnHtmlMessage(C){I=C,T.warnHtmlMessage=C},get escapeParameter(){return E},set escapeParameter(C){E=C,T.escapeParameter=C},t:Ge,getLocaleMessage:B,setLocaleMessage:X,mergeLocaleMessage:Ae,getPostTranslationHandler:ce,setPostTranslationHandler:Ce,getMissingHandler:Ne,setMissingHandler:ft,[Rr]:_};return re.datetimeFormats=K,re.numberFormats=te,re.rt=tt,re.te=u,re.tm=F,re.d=De,re.n=Ye,re.getDateTimeFormat=Fe,re.setDateTimeFormat=uc,re.mergeDateTimeFormat=fc,re.getNumberFormat=dc,re.setNumberFormat=mc,re.mergeNumberFormat=_c,re[Mr]=s,re[fn]=Q,re[dn]=fe,re[mn]=ue,process.env.NODE_ENV!=="production"&&(re[Qe]=C=>{T.__v_emitter=C},re[ht]=()=>{T.__v_emitter=void 0}),re}function Bo(e){const t=M(e.locale)?e.locale:it,n=M(e.fallbackLocale)||q(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Z(e.missing)?e.missing:void 0,a=j(e.silentTranslationWarn)||xe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=j(e.silentFallbackWarn)||xe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=j(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,l=W(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,h=Z(e.postTranslation)?e.postTranslation:void 0,p=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,O=j(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(_e($.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(_e($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let w=e.messages;if(W(e.sharedMessages)){const E=e.sharedMessages;w=Object.keys(E).reduce((A,T)=>{const P=A[T]||(A[T]={});return ie(P,E[T]),A},w||{})}const{__i18n:k,__root:S,__injectWithOption:m}=e,g=e.datetimeFormats,v=e.numberFormats,b=e.flatJson,I=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:b,datetimeFormats:g,numberFormats:v,missing:s,missingWarn:a,fallbackWarn:r,fallbackRoot:o,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:h,warnHtmlMessage:p,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:O,translateExistCompatible:I,__i18n:k,__root:S,__injectWithOption:m}}function hn(e={},t){{const n=pn(Bo(e)),{__extender:s}=e,a={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"&&(_e($.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&(_e($.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return j(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=j(r)?!r:r},get silentFallbackWarn(){return j(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=j(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"&&(_e($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&(_e($.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,i,l]=r,c={};let h=null,p=null;if(!M(o))throw ae(G.INVALID_ARGUMENT);const d=o;return M(i)?c.locale=i:q(i)?h=i:W(i)&&(p=i),q(l)?h=l:W(l)&&(p=l),Reflect.apply(n.t,n,[d,h||p||{},c])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,i,l]=r,c={plural:1};let h=null,p=null;if(!M(o))throw ae(G.INVALID_ARGUMENT);const d=o;return M(i)?c.locale=i:se(i)?c.plural=i:q(i)?h=i:W(i)&&(p=i),M(l)?c.locale=l:q(l)?h=l:W(l)&&(p=l),Reflect.apply(n.t,n,[d,h||p||{},c])},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"&&(_e($.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return a.__extender=s,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=r=>{const o=n;o[Qe]&&o[Qe](r)},a.__disableEmitter=()=>{const r=n;r[ht]&&r[ht]()}),a}}const gn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Wo({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>[...s,...a.type===f.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},{})}function jr(e){return f.Fragment}const bn=f.defineComponent({name:"i18n-t",props:ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>se(e)||!isNaN(e)}},gn),setup(e,t){const{slots:n,attrs:s}=t,a=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(p=>p!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const i=Wo(t,r),l=a[fn](e.keypath,i,o),c=ie({},s),h=M(e.tag)||Y(e.tag)?e.tag:jr();return f.h(h,c,l)}}});function jo(e){return q(e)&&!M(e[0])}function Hr(e,t,n,s){const{slots:a,attrs:r}=t;return()=>{const o={part:!0};let i={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:Y(e.format)&&(M(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((d,O)=>n.includes(O)?ie({},d,{[O]:e.format[O]}):d,{}));const l=s(e.value,o,i);let c=[o.key];q(l)?c=l.map((d,O)=>{const w=a[d.type],k=w?w({[d.type]:d.value,index:O,parts:l}):[d.value];return jo(k)&&(k[0].key=`${d.type}-${O}`),k}):M(l)&&(c=[l]);const h=ie({},r),p=M(e.tag)||Y(e.tag)?e.tag:jr();return f.h(p,h,c)}}const Gr=f.defineComponent({name:"i18n-n",props:ie({value:{type:Number,required:!0},format:{type:[String,Object]}},gn),setup(e,t){const n=e.i18n||Dt({useScope:"parent",__useComponent:!0});return Hr(e,t,Sr,(...s)=>n[mn](...s))}}),Yr=f.defineComponent({name:"i18n-d",props:ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gn),setup(e,t){const n=e.i18n||Dt({useScope:"parent",__useComponent:!0});return Hr(e,t,Lr,(...s)=>n[dn](...s))}});function Ho(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Go(e){const t=o=>{const{instance:i,modifiers:l,value:c}=o;if(!i||!i.$)throw ae(G.UNEXPECTED_ERROR);const h=Ho(e,i.$);process.env.NODE_ENV!=="production"&&l.preserve&&(_e($.NOT_SUPPORTED_PRESERVE),void 0);const p=Xr(c);return[Reflect.apply(h.t,h,[...zr(p)]),h]};return{created:(o,i)=>{const[l,c]=t(i);ve&&e.global===c&&(o.__i18nWatcher=f.watch(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{ve&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const l=o.__composer,c=Xr(i);o.textContent=Reflect.apply(l.t,l,[...zr(c)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Xr(e){if(M(e))return{path:e};if(W(e)){if(!("path"in e))throw ae(G.REQUIRED_VALUE,"path");return e}else throw ae(G.INVALID_VALUE)}function zr(e){const{path:t,locale:n,args:s,choice:a,plural:r}=e,o={},i=s||{};return M(n)&&(o.locale=n),se(a)&&(o.plural=a),se(r)&&(o.plural=r),[t,i,o]}function Yo(e,t,...n){const s=W(n[0])?n[0]:{},a=!!s.useI18nComponentName,r=j(s.globalInstall)?s.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&a&&(_e($.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:bn.name}),void 0),r&&([a?"i18n":bn.name,"I18nT"].forEach(o=>e.component(o,bn)),[Gr.name,"I18nN"].forEach(o=>e.component(o,Gr)),[Yr.name,"I18nD"].forEach(o=>e.component(o,Yr))),e.directive("t",Go(t))}const En={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Xo={"vue-i18n-resource-inspector":"Search for scopes ..."},zo={"vue-i18n-timeline":16764185},Kr="vue-i18n: composer properties";let vn;async function Ko(e,t){return new Promise((n,s)=>{try{Ro({id:"vue-devtools-plugin-vue-i18n",label:En["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:[Kr],app:e},a=>{vn=a,a.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Zo(o,i,t)}),a.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&i&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Jr(i,o.vnode.el.__VUE_I18N__):Jr(i,o.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:En["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Xo["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ei(o,t)});const r=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ni(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[i]=await a.getComponentInstances(o.app);r.set(o.app,i)}a.highlightElement(r.get(o.app))}else{const i=ti(o.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&si(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:En["vue-i18n-timeline"],color:zo["vue-i18n-timeline"]}),n(!0)})}catch{s(!1)}})}function Zr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Zo(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const a={label:`i18n (${Zr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Jr(e,t){const n=Kr;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:Tn(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 Tn(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];Z(s)&&"source"in s?t[n]=$o(s):Be(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:Y(s)?t[n]=Tn(s):t[n]=s}),t}const Jo={"<":"<",">":">",'"':""","&":"&"};function Qo(e){return e.replace(/[<>"&]/g,qo)}function qo(e){return Jo[e]||e}function $o(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Qo(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[s,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Zr(s)} Scope`})}}function ti(e,t){let n=null;if(e!=="global"){for(const[s,a]of t.__instances.entries())if(a.id.toString()===e){n=s;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(s=>s.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",s=[{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]=s;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:Tn(e.messages.value)}];t[a]=r;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function bt(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 si(e,t){const n=Qr(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&M(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(M(e.state.value)||q(e.state.value)||Y(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&j(e.state.value)&&(n.inheritLocale=e.state.value)}}function ai(e,t,n){return{beforeCreate(){const s=f.getCurrentInstance();if(!s)throw ae(G.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=qr(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=hn(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=qr(e,a);else{this.$i18n=hn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Fr(t,a,a),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(s,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const a=this.__v_emitter=qt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",bt)}},unmounted(){const s=f.getCurrentInstance();if(!s)throw ae(G.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",bt),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__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,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(s),delete this.$i18n}}}function qr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rr](t.pluralizationRules||e.pluralizationRules);const n=Mt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const oi=Oe("global-vue-i18n");function ii(e={},t){const n=__VUE_I18N_LEGACY_API__&&j(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=j(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,i]=li(e,n),l=Oe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&a&&(_e($.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function c(d){return r.get(d)||null}function h(d,O){r.set(d,O)}function p(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(O,...w){if(process.env.NODE_ENV!=="production"&&(O.__VUE_I18N__=d),O.__VUE_I18N_SYMBOL__=l,O.provide(O.__VUE_I18N_SYMBOL__,d),W(w[0])){const m=w[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let k=null;!n&&s&&(k=gi(O,d.global)),__VUE_I18N_FULL_INSTALL__&&Yo(O,d,...w),__VUE_I18N_LEGACY_API__&&n&&O.mixin(ai(i,i.__composer,d));const S=O.unmount;if(O.unmount=()=>{k&&k(),d.dispose(),S()},process.env.NODE_ENV!=="production"){if(!await Ko(O,d))throw ae(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=qt();if(n){const v=i;v.__enableEmitter&&v.__enableEmitter(g)}else{const v=i;v[Qe]&&v[Qe](g)}g.on("*",bt)}},get global(){return i},dispose(){o.stop()},__instances:r,__getInstance:c,__setInstance:h,__deleteInstance:p};return d}}function Dt(e={}){const t=f.getCurrentInstance();if(t==null)throw ae(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ae(G.NOT_INSTALLED);const n=ci(t),s=fi(n),a=Dr(t),r=ui(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ae(G.NOT_AVAILABLE_IN_LEGACY_MODE);return pi(t,r,s,e)}if(r==="global")return Fr(s,e,a),s;if(r==="parent"){let l=di(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&(_e($.NOT_FOUND_PARENT_SCOPE),void 0),l=s),l}const o=n;let i=o.__getInstance(t);if(i==null){const l=ie({},e);"__i18n"in a&&(l.__i18n=a.__i18n),s&&(l.__root=s),i=pn(l),o.__composerExtend&&(i[_n]=o.__composerExtend(i)),_i(o,t,i),o.__setInstance(t,i)}return i}function li(e,t,n){const s=f.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?s.run(()=>hn(e)):s.run(()=>pn(e));if(a==null)throw ae(G.UNEXPECTED_ERROR);return[s,a]}}function ci(e){{const t=f.inject(e.isCE?oi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ae(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}}function ui(e,t){return kt(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 s=null;const a=t.root;let r=mi(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(r);i!=null&&(s=i.__composer,n&&s&&!s[Mr]&&(s=null))}if(s!=null||a===r)break;r=r.parent}return s}function mi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _i(e,t,n){let s=null;f.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=qt();const a=n;a[Qe]&&a[Qe](s),s.on("*",bt)}},t),f.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",bt),a[ht]&&a[ht](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[_n];r&&(r(),delete a[_n])},t)}function pi(e,t,n,s={}){const a=t==="local",r=f.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ae(G.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=j(s.inheritLocale)?s.inheritLocale:!M(s.locale),i=f.ref(!a||o?n.locale.value:M(s.locale)?s.locale:it),l=f.ref(!a||o?n.fallbackLocale.value:M(s.fallbackLocale)||q(s.fallbackLocale)||W(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:i.value),c=f.ref(Mt(i.value,s)),h=f.ref(W(s.datetimeFormats)?s.datetimeFormats:{[i.value]:{}}),p=f.ref(W(s.numberFormats)?s.numberFormats:{[i.value]:{}}),d=a?n.missingWarn:j(s.missingWarn)||xe(s.missingWarn)?s.missingWarn:!0,O=a?n.fallbackWarn:j(s.fallbackWarn)||xe(s.fallbackWarn)?s.fallbackWarn:!0,w=a?n.fallbackRoot:j(s.fallbackRoot)?s.fallbackRoot:!0,k=!!s.fallbackFormat,S=Z(s.missing)?s.missing:null,m=Z(s.postTranslation)?s.postTranslation:null,g=a?n.warnHtmlMessage:j(s.warnHtmlMessage)?s.warnHtmlMessage:!0,v=!!s.escapeParameter,b=a?n.modifiers:W(s.modifiers)?s.modifiers:{},I=s.pluralRules||a&&n.pluralRules;function E(){return[i.value,l.value,c.value,h.value,p.value]}const y=f.computed({get:()=>r.value?r.value.locale.value:i.value,set:u=>{r.value&&(r.value.locale.value=u),i.value=u}}),A=f.computed({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:u=>{r.value&&(r.value.fallbackLocale.value=u),l.value=u}}),T=f.computed(()=>r.value?r.value.messages.value:c.value),P=f.computed(()=>h.value),x=f.computed(()=>p.value);function N(){return r.value?r.value.getPostTranslationHandler():m}function D(u){r.value&&r.value.setPostTranslationHandler(u)}function J(){return r.value?r.value.getMissingHandler():S}function K(u){r.value&&r.value.setMissingHandler(u)}function te(u){return E(),u()}function ce(...u){return r.value?te(()=>Reflect.apply(r.value.t,null,[...u])):te(()=>"")}function Ce(...u){return r.value?Reflect.apply(r.value.rt,null,[...u]):""}function Ne(...u){return r.value?te(()=>Reflect.apply(r.value.d,null,[...u])):te(()=>"")}function ft(...u){return r.value?te(()=>Reflect.apply(r.value.n,null,[...u])):te(()=>"")}function dt(u){return r.value?r.value.tm(u):{}}function ge(u,L){return r.value?r.value.te(u,L):!1}function Ge(u){return r.value?r.value.getLocaleMessage(u):{}}function tt(u,L){r.value&&(r.value.setLocaleMessage(u,L),c.value[u]=L)}function De(u,L){r.value&&r.value.mergeLocaleMessage(u,L)}function Ye(u){return r.value?r.value.getDateTimeFormat(u):{}}function nt(u,L){r.value&&(r.value.setDateTimeFormat(u,L),h.value[u]=L)}function Xe(u,L){r.value&&r.value.mergeDateTimeFormat(u,L)}function U(u){return r.value?r.value.getNumberFormat(u):{}}function Q(u,L){r.value&&(r.value.setNumberFormat(u,L),p.value[u]=L)}function ue(u,L){r.value&&r.value.mergeNumberFormat(u,L)}const fe={get id(){return r.value?r.value.id:-1},locale:y,fallbackLocale:A,messages:T,datetimeFormats:P,numberFormats:x,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(u){r.value&&(r.value.inheritLocale=u)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(c.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:I},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackWarn(){return r.value?r.value.fallbackWarn:O},set fallbackWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(u){r.value&&(r.value.fallbackRoot=u)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(u){r.value&&(r.value.fallbackFormat=u)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:g},set warnHtmlMessage(u){r.value&&(r.value.warnHtmlMessage=u)},get escapeParameter(){return r.value?r.value.escapeParameter:v},set escapeParameter(u){r.value&&(r.value.escapeParameter=u)},t:ce,getPostTranslationHandler:N,setPostTranslationHandler:D,getMissingHandler:J,setMissingHandler:K,rt:Ce,d:Ne,n:ft,tm:dt,te:ge,getLocaleMessage:Ge,setLocaleMessage:tt,mergeLocaleMessage:De,getDateTimeFormat:Ye,setDateTimeFormat:nt,mergeDateTimeFormat:Xe,getNumberFormat:U,setNumberFormat:Q,mergeNumberFormat:ue};function _(u){u.locale.value=i.value,u.fallbackLocale.value=l.value,Object.keys(c.value).forEach(L=>{u.mergeLocaleMessage(L,c.value[L])}),Object.keys(h.value).forEach(L=>{u.mergeDateTimeFormat(L,h.value[L])}),Object.keys(p.value).forEach(L=>{u.mergeNumberFormat(L,p.value[L])}),u.escapeParameter=v,u.fallbackFormat=k,u.fallbackRoot=w,u.fallbackWarn=O,u.missingWarn=d,u.warnHtmlMessage=g}return f.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ae(G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=r.value=e.proxy.$i18n.__composer;t==="global"?(i.value=u.locale.value,l.value=u.fallbackLocale.value,c.value=u.messages.value,h.value=u.datetimeFormats.value,p.value=u.numberFormats.value):a&&_(u)}),fe}const hi=["locale","fallbackLocale","availableLocales"],$r=["t","rt","d","n","tm","te"];function gi(e,t){const n=Object.create(null);return hi.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw ae(G.UNEXPECTED_ERROR);const o=f.isRef(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,$r.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw ae(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,$r.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(Do(),__INTLIFY_JIT_COMPILATION__?or(vo):or(Eo),uo(Ga),fo(nr),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=we();e.__INTLIFY__=!0,$a(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const es=({wrap:e,left:t=0,top:n=0,smooth:s=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:s?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function bi({el:e,wrap:t,block:n="start",inline:s="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:s});else{const{offsetLeft:a,offsetTop:r}=e;let o,i;n==="center"?i=r+(e.clientHeight-t.clientHeight)/2:i=r,s==="center"?o=a+(e.clientWidth-t.clientWidth)/2:o=a,es({wrap:t,left:o,top:i})}}const Ei=(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 We=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(We||{}),ts=(e=>(e.I18N_LOCALES="I18N_LOCALES",e.PANEL_MAXIMUM="PANEL_MAXIMUM",e.TAB_ACTIVE="TAB_ACTIVE",e.TAB_CLOSE="TAB_CLOSE",e.TAB_CLOSE_ALL="TAB_CLOSE_ALL",e.TAB_CLOSE_RIGHT="TAB_CLOSE_RIGHT",e.TAB_CLOSE_LEFT="TAB_CLOSE_LEFT",e.TAB_REFRESH="TAB_REFRESH",e.TAB_REFRESH_ALL="TAB_REFRESH_ALL",e))(ts||{});class Ft{constructor(){Ks(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,s)=>{t=`${t}${s===0?"":", "}${n}`}),t}}const vi=()=>{const e=f.reactive({item:{},index:-1,left:0,top:0,max:0}),t=f.ref(!1);f.onMounted(()=>{document.addEventListener("click",s)}),f.onUnmounted(()=>{document.removeEventListener("click",s)});const n=async(a,r,o,i)=>{t.value=!1,await f.nextTick(()=>{const{clientY:l,clientX:c}=a;t.value=!0,Object.assign(e,{item:r,index:o,top:l,left:c,max:i})})},s=a=>{a.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Ti=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"})),Ni=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),ns=()=>{const e=Object.assign({"./lang/en.ts":Ti,"./lang/zh-CN.ts":Ni});function t(r,o){for(const i in r)if(r[i].default){const l=i.substring(i.lastIndexOf("/")+1,i.lastIndexOf("."));o[l]?o[l]={...r[l],...r[i].default}:o[l]=r[i].default}}const n=()=>{const r={};return t(e,r),r},s=f.inject("locales");return{getI18n:()=>{const r={...n(),...s.messages};return Dt({useScope:"local",locale:s.locale,messages:r})}}};function Nn(e){if(!On(e))throw new Error("Parameter was not an error")}function On(e){return Oi(e)==="[object Error]"||e instanceof Error}function Oi(e){return Object.prototype.toString.call(e)}function yi(e){let t,n="";if(e.length===0)t={};else if(On(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 Te extends Error{constructor(t,n){const s=[...arguments],{options:a,shortMessage:r}=yi(s);let o=r;if(a.cause&&(o=`${o}: ${a.cause.message}`),super(o),this.message=o,a.name&&typeof a.name=="string"?this.name=a.name:this.name="Layerr",a.cause&&Object.defineProperty(this,"_cause",{value:a.cause}),Object.defineProperty(this,"_info",{value:{}}),a.info&&typeof a.info=="object"&&Object.assign(this._info,a.info),Error.captureStackTrace){const i=a.constructorOpt||this.constructor;Error.captureStackTrace(this,i)}}static cause(t){return Nn(t),t._cause&&On(t._cause)?t._cause:null}static fullStack(t){Nn(t);const n=Te.cause(t);return n?`${t.stack}
|
|
21
|
+
caused by: ${Te.fullStack(n)}`:t.stack}static info(t){Nn(t);const n={},s=Te.cause(t);return s&&Object.assign(n,Te.info(s)),t._info&&Object.assign(n,t._info),n}cause(){return Te.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const rs="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Et=32,ss=0xffffffffffff,Li=10,Ii=16,vt=Object.freeze({source:"ulid"});function ki(e){const t=e||Si(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const s=new Uint8Array(1);return n.getRandomValues(s),s[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new Te({info:{code:"PRNG_DETECT",...vt}},"Failed to find a reliable PRNG")}function Si(){return wi()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Ci(e,t){let n="";for(;e>0;e--)n=Pi(t)+n;return n}function Ai(e,t){if(isNaN(e))throw new Te({info:{code:"ENC_TIME_NAN",...vt}},`Time must be a number: ${e}`);if(e>ss)throw new Te({info:{code:"ENC_TIME_SIZE_EXCEED",...vt}},`Cannot encode a time larger than ${ss}: ${e}`);if(e<0)throw new Te({info:{code:"ENC_TIME_NEG",...vt}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Te({info:{code:"ENC_TIME_TYPE",...vt}},`Time must be an integer: ${e}`);let n,s="";for(let a=t;a>0;a--)n=e%Et,s=rs.charAt(n)+s,e=(e-n)/Et;return s}function wi(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Pi(e){let t=Math.floor(e()*Et);return t===Et&&(t=Et-1),rs.charAt(t)}function as(e,t){const n=t||ki(),s=isNaN(e)?Date.now():e;return Ai(s,Li)+Ci(Ii,n)}var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yn={exports:{}};yn.exports,function(e){var t=function(){var n=String.fromCharCode,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(l,c){if(!r[l]){r[l]={};for(var h=0;h<l.length;h++)r[l][l.charAt(h)]=h}return r[l][c]}var i={compressToBase64:function(l){if(l==null)return"";var c=i._compress(l,6,function(h){return s.charAt(h)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:i._decompress(l.length,32,function(c){return o(s,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":i._compress(l,15,function(c){return n(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:i._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=i.compress(l),h=new Uint8Array(c.length*2),p=0,d=c.length;p<d;p++){var O=c.charCodeAt(p);h[p*2]=O>>>8,h[p*2+1]=O%256}return h},decompressFromUint8Array:function(l){if(l==null)return i.decompress(l);for(var c=new Array(l.length/2),h=0,p=c.length;h<p;h++)c[h]=l[h*2]*256+l[h*2+1];var d=[];return c.forEach(function(O){d.push(n(O))}),i.decompress(d.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":i._compress(l,6,function(c){return a.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),i._decompress(l.length,32,function(c){return o(a,l.charAt(c))}))},compress:function(l){return i._compress(l,16,function(c){return n(c)})},_compress:function(l,c,h){if(l==null)return"";var p,d,O={},w={},k="",S="",m="",g=2,v=3,b=2,I=[],E=0,y=0,A;for(A=0;A<l.length;A+=1)if(k=l.charAt(A),Object.prototype.hasOwnProperty.call(O,k)||(O[k]=v++,w[k]=!0),S=m+k,Object.prototype.hasOwnProperty.call(O,S))m=S;else{if(Object.prototype.hasOwnProperty.call(w,m)){if(m.charCodeAt(0)<256){for(p=0;p<b;p++)E=E<<1,y==c-1?(y=0,I.push(h(E)),E=0):y++;for(d=m.charCodeAt(0),p=0;p<8;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1}else{for(d=1,p=0;p<b;p++)E=E<<1|d,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=0;for(d=m.charCodeAt(0),p=0;p<16;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete w[m]}else for(d=O[m],p=0;p<b;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),O[S]=v++,m=String(k)}if(m!==""){if(Object.prototype.hasOwnProperty.call(w,m)){if(m.charCodeAt(0)<256){for(p=0;p<b;p++)E=E<<1,y==c-1?(y=0,I.push(h(E)),E=0):y++;for(d=m.charCodeAt(0),p=0;p<8;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1}else{for(d=1,p=0;p<b;p++)E=E<<1|d,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=0;for(d=m.charCodeAt(0),p=0;p<16;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete w[m]}else for(d=O[m],p=0;p<b;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,p=0;p<b;p++)E=E<<1|d&1,y==c-1?(y=0,I.push(h(E)),E=0):y++,d=d>>1;for(;;)if(E=E<<1,y==c-1){I.push(h(E));break}else y++;return I.join("")},decompress:function(l){return l==null?"":l==""?null:i._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,h){var p=[],d=4,O=4,w=3,k="",S=[],m,g,v,b,I,E,y,A={val:h(0),position:c,index:1};for(m=0;m<3;m+=1)p[m]=m;for(v=0,I=Math.pow(2,2),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;switch(v){case 0:for(v=0,I=Math.pow(2,8),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;y=n(v);break;case 1:for(v=0,I=Math.pow(2,16),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;y=n(v);break;case 2:return""}for(p[3]=y,g=y,S.push(y);;){if(A.index>l)return"";for(v=0,I=Math.pow(2,w),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;switch(y=v){case 0:for(v=0,I=Math.pow(2,8),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;p[O++]=n(v),y=O-1,d--;break;case 1:for(v=0,I=Math.pow(2,16),E=1;E!=I;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=h(A.index++)),v|=(b>0?1:0)*E,E<<=1;p[O++]=n(v),y=O-1,d--;break;case 2:return S.join("")}if(d==0&&(d=Math.pow(2,w),w++),p[y])k=p[y];else if(y===O)k=g+g.charAt(0);else return null;S.push(k),p[O++]=g+k.charAt(0),d--,g=k,d==0&&(d=Math.pow(2,w),w++)}}};return i}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(yn);var os=yn.exports;const Mi=new TextEncoder,Di=new TextDecoder("utf-8",{ignoreBOM:!0}),is={encode:e=>Mi.encode(e),decode:e=>Di.decode(e)},ls=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let s=0;s<256;s++)n[s]=`${t[s>>>4&15]}${t[s&15]}`;return n})(),Fi=(()=>{const e={};for(let t=0;t<256;t++){const n=ls[t],s=n[0],a=s.toUpperCase(),r=n[1],o=r.toUpperCase();e[n]=t,e[`${s}${o}`]=t,e[`${a}${r}`]=t,e[`${a}${o}`]=t}return e})(),Ln={encode:e=>{let t="";for(let n=0,s=e.length;n<s;n++)t+=ls[e[n]];return t},encodeStr:e=>Ln.encode(is.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let s=0;s<t;s++)n[s]=Fi[e.slice(s*2,s*2+2)];return n},decodeStr:e=>is.decode(Ln.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function Tt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function xi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function cs(e,...t){if(!xi(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 In(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 us(e,t){cs(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const xt=BigInt(2**32-1),fs=BigInt(32);function ds(e,t=!1){return t?{h:Number(e&xt),l:Number(e>>fs&xt)}:{h:Number(e>>fs&xt)|0,l:Number(e&xt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ui=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Ut=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Vi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Vt=(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 Bi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function kn(e){if(typeof e=="string"&&(e=Bi(e)),!Vi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Wi{clone(){return this._cloneInto()}}function ji(e){const t=(s,a)=>e(a).update(kn(s)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=s=>e(s),t}class Hi extends Wi{constructor(t,n,s={},a,r,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,Tt(t),Tt(n),Tt(a),n<0||n>a)throw new Error("outputLen bigger than keyLen");if(s.key!==void 0&&(s.key.length<1||s.key.length>a))throw new Error(`key must be up 1..${a} byte long or undefined`);if(s.salt!==void 0&&s.salt.length!==r)throw new Error(`salt must be ${r} byte long or undefined`);if(s.personalization!==void 0&&s.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=Ut(this.buffer=new Uint8Array(t))}update(t){In(this);const{blockLen:n,buffer:s,buffer32:a}=this;t=kn(t);const r=t.length,o=t.byteOffset,i=t.buffer;for(let l=0;l<r;){this.pos===n&&(this.compress(a,0,!1),this.pos=0);const c=Math.min(n-this.pos,r-l),h=o+l;if(c===n&&!(h%4)&&l+c<r){const p=new Uint32Array(i,h,Math.floor((r-l)/4));for(let d=0;l+n<r;d+=a.length,l+=n)this.length+=n,this.compress(p,d,!1);continue}s.set(t.subarray(l,l+c),this.pos),this.pos+=c,this.length+=c,l+=c}return this}digestInto(t){In(this),us(t,this);const{pos:n,buffer32:s}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(s,0,!0);const a=Ut(t);this.get().forEach((r,o)=>a[o]=r)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const s=t.slice(0,n);return this.destroy(),s}_cloneInto(t){const{buffer:n,length:s,finished:a,destroyed:r,outputLen:o,pos:i}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=s,t.finished=a,t.destroyed=r,t.outputLen=o,t.buffer.set(n),t.pos=i,t}}const Me=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function je(e,t,n,s,a){return e=e+t+a|0,s=Vt(s^e,16),n=n+s|0,t=Vt(t^n,12),{a:e,b:t,c:n,d:s}}function He(e,t,n,s,a){return e=e+t+a|0,s=Vt(s^e,8),n=n+s|0,t=Vt(t^n,7),{a:e,b:t,c:n,d:s}}function ms(e,t,n,s,a,r,o,i,l,c,h,p,d,O,w,k,S,m,g,v){let b=0;for(let I=0;I<s;I++)({a,b:l,c:d,d:S}=je(a,l,d,S,n[t+e[b++]])),{a,b:l,c:d,d:S}=He(a,l,d,S,n[t+e[b++]]),{a:r,b:c,c:O,d:m}=je(r,c,O,m,n[t+e[b++]]),{a:r,b:c,c:O,d:m}=He(r,c,O,m,n[t+e[b++]]),{a:o,b:h,c:w,d:g}=je(o,h,w,g,n[t+e[b++]]),{a:o,b:h,c:w,d:g}=He(o,h,w,g,n[t+e[b++]]),{a:i,b:p,c:k,d:v}=je(i,p,k,v,n[t+e[b++]]),{a:i,b:p,c:k,d:v}=He(i,p,k,v,n[t+e[b++]]),{a,b:c,c:w,d:v}=je(a,c,w,v,n[t+e[b++]]),{a,b:c,c:w,d:v}=He(a,c,w,v,n[t+e[b++]]),{a:r,b:h,c:k,d:S}=je(r,h,k,S,n[t+e[b++]]),{a:r,b:h,c:k,d:S}=He(r,h,k,S,n[t+e[b++]]),{a:o,b:p,c:d,d:m}=je(o,p,d,m,n[t+e[b++]]),{a:o,b:p,c:d,d:m}=He(o,p,d,m,n[t+e[b++]]),{a:i,b:l,c:O,d:g}=je(i,l,O,g,n[t+e[b++]]),{a:i,b:l,c:O,d:g}=He(i,l,O,g,n[t+e[b++]]);return{v0:a,v1:r,v2:o,v3:i,v4:l,v5:c,v6:h,v7:p,v8:d,v9:O,v10:w,v11:k,v12:S,v13:m,v14:g,v15:v}}const _s=(()=>{const e=Array.from({length:16},(s,a)=>a),t=s=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(a=>s[a]),n=[];for(let s=0,a=e;s<7;s++,a=t(a))n.push(...a);return Uint8Array.from(n)})();class Sn extends Hi{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,Tt(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 s=kn(t.key).slice();if(s.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=Ut(s),this.flags=n|16}else if(t.context!==void 0){const s=new Sn({dkLen:32},32).update(t.context).digest();this.IV=Ut(s),this.flags=n|64}else this.IV=Me.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Ui(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,s,a=0){const{state:r,pos:o}=this,{h:i,l}=ds(BigInt(t),!0),{v0:c,v1:h,v2:p,v3:d,v4:O,v5:w,v6:k,v7:S,v8:m,v9:g,v10:v,v11:b,v12:I,v13:E,v14:y,v15:A}=ms(_s,a,s,7,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],Me[0],Me[1],Me[2],Me[3],i,l,o,n);r[0]=c^m,r[1]=h^g,r[2]=p^v,r[3]=d^b,r[4]=O^I,r[5]=w^E,r[6]=k^y,r[7]=S^A}compress(t,n=0,s=!1){let a=this.flags;if(this.chunkPos||(a|=1),(this.chunkPos===15||s)&&(a|=2),s||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,a,t,n),this.chunkPos+=1,this.chunkPos===16||s){let r=this.state;this.state=this.IV.slice();for(let o,i=this.chunksDone+1;(s||!(i&1))&&(o=this.stack.pop());i>>=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:s,state:a,chunkPos:r,posOut:o,chunkOut:i,stack:l,chunksDone:c}=this;return t.state.set(a.slice()),t.stack=l.map(h=>Uint32Array.from(h)),t.IV.set(n),t.flags=s,t.chunkPos=r,t.chunksDone=c,t.posOut=o,t.chunkOut=i,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:s,buffer32:a,bufferOut32:r}=this,{h:o,l:i}=ds(BigInt(this.chunkOut++)),{v0:l,v1:c,v2:h,v3:p,v4:d,v5:O,v6:w,v7:k,v8:S,v9:m,v10:g,v11:v,v12:b,v13:I,v14:E,v15:y}=ms(_s,0,a,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Me[0],Me[1],Me[2],Me[3],i,o,n,s);r[0]=l^S,r[1]=c^m,r[2]=h^g,r[3]=p^v,r[4]=d^b,r[5]=O^I,r[6]=w^E,r[7]=k^y,r[8]=t[0]^S,r[9]=t[1]^m,r[10]=t[2]^g,r[11]=t[3]^v,r[12]=t[4]^b,r[13]=t[5]^I,r[14]=t[6]^E,r[15]=t[7]^y,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){In(this,!1),cs(t),this.finish();const{blockLen:n,bufferOut:s}=this;for(let a=0,r=t.length;a<r;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,r-a);t.set(s.subarray(this.posOut,this.posOut+o),a),this.posOut+=o,a+=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 Tt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(us(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 Gi=ji(e=>new Sn(e)),ps=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return os.compressToEncodedURIComponent(t)},Yi=e=>{const n=os.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},hs=(e,t,n)=>{const s=[];for(const r in n)r.startsWith("__")||s.push({key:r,value:n[r]});s.sort((r,o)=>{let i=0;return r.key>o.key?i=1:r.key<o.key&&(i=-1),i});const a=Gi(`${e}|${t}|${JSON.stringify(s)}`);return Ln.encode(a)};function Cn(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 An(e,t,n=".",s){if(!Cn(t))return An(e,{},n,s);const a=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(s&&s(a,r,o,n)||(Array.isArray(o)&&Array.isArray(a[r])?a[r]=[...o,...a[r]]:Cn(o)&&Cn(a[r])?a[r]=An(o,a[r],(n?`${n}.`:"")+r.toString(),s):a[r]=o))}return a}function Xi(e){return(...t)=>t.reduce((n,s)=>An(n,s,"",e),{})}const Ie=Xi(),wn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),s={};for(const a of n){const r=a.split("=");r[1]!==null&&r[1]!==void 0&&r[1]!==""&&(s[r[0]]=r[1])}return{path:t[0],query:s}}},H=f.ref([]),Bt=[],le=f.ref([]),qe=new Map,Wt=new Set,Nt=f.ref(!0),gs="stacktab-active-tab",jt=()=>{const e=Ee.useRouter(),t=()=>H.value.length,n=T=>{Bt.splice(0);for(const x of T){const N=as(),D=ps(Ie(x,{id:N})),J=wn(x.path),K=Ie(x,{closable:!0,refreshable:!0,iframe:!1}),te=hs(N,J.path,J.query),ce={id:te,tabId:N,path:J.path,query:Ie(J.query,{__tab:D})},Ce=new Ft;Ce.push(ce);const Ne={id:N,title:K.title,closable:K.closable,refreshable:K.refreshable,iframe:K.iframe,active:!1,pages:Ce};Bt.push(Ne),H.value.push(Ne),le.value.push(te)}const P=window.sessionStorage.getItem(gs);if(P!=null){const x=Ie({pages:new Ft},JSON.parse(P));let N=!1;for(const D of H.value)if(D.id===x.id){N=!0;break}N||H.value.push(x)}},s=T=>{for(const P of H.value)if(P.id===T)return!0;return!1},a=T=>{H.value.push(T)},r=T=>{for(const P of H.value)if(P.id===T)return P;return null},o=(T,P)=>{let x;const N=Yi(T.query.__tab),D=hs(N.id,T.path,T.query.valueOf()),J=T.query.__src;if(qe.has(D))x=qe.get(D);else{x=f.defineComponent({name:D,components:{DynamicComponent:P},setup(){return f.onActivated(()=>{g(),P.props=null}),f.onUnmounted(()=>{}),()=>f.createVNode("div",{class:"cache-page-wrapper",id:N.id},[f.createVNode(f.resolveComponent("dynamic-component"),{tId:N.id,pId:D},null)])}}),qe.set(D,x);let K=null;for(const ce of f.unref(H))ce.active=!1,ce.id===N.id&&(K=ce);const te={id:D,tabId:N.id,path:T.path,query:T.query};if(K===null){const ce=new Ft;ce.push(te),K={id:N.id,title:N.title,closable:N.closable,refreshable:N.refreshable,iframe:N.iframe,url:decodeURIComponent(J),active:!0,pages:ce},H.value.push(K)}else K.active=!0,(K.pages.isEmpty()||K.pages.peek().id!==te.id)&&K.pages.push(te);E(K)}return b(D),x},i=T=>{let P="";for(let x=H.value.length-1;x>=0;x--)if(T===f.unref(H)[x].id){if(!f.unref(H)[x].closable)break;for(const N of f.unref(H)[x].pages.list())S(N.id),m(N.id);f.unref(H)[x].pages.clear(),H.value.length>1&&(x===0?P=f.unref(H)[1].id:P=f.unref(H)[x-1].id),f.unref(H).splice(x,1);break}return I(P),P!==T&&g(),P},l=()=>{const T=f.unref(H);for(let P=T.length-1;P>=0;P--)if(T[P].closable){for(const x of T[P].pages.list())S(x.id),m(x.id);f.unref(H)[P].pages.clear(),f.unref(H).splice(P,1)}for(const P of T)if(P.active){g();return}I(T[T.length-1].id)},c=T=>{const P=f.unref(H);let x;for(let N=P.length-1;N>=0;N--)if(P[N].id===T)x=P[N];else if(P[N].closable&&P[N].id!==T){for(const D of P[N].pages.list())S(D.id),m(D.id);f.unref(H)[N].pages.clear(),f.unref(H).splice(N,1)}x.active?g():I(T)},h=T=>{let P=-1;const x=f.unref(H);for(let N=0;N<x.length;N++)if(x[N].id===T){P=N-1;break}for(let N=P;N>=0;N--)if(x[N].closable){for(const D of x[N].pages.list())S(D.id),m(D.id);f.unref(H)[N].pages.clear(),f.unref(H).splice(N,1)}for(const N of x)if(N.active){g();return}I(x[0].id)},p=T=>{const P=f.unref(H);let x=P.length;for(let N=0;N<P.length;N++)if(P[N].id===T){x=N+1;break}for(let N=P.length-1;N>=x;N--)if(P[N].closable){for(const D of P[N].pages.list())S(D.id),m(D.id);f.unref(H)[N].pages.clear(),f.unref(H).splice(N,1)}for(const N of P)if(N.active){g();return}I(P[P.length-1].id)},d=T=>{var P;for(const x of f.unref(H))if(x.id===T){const N=(P=x.pages.peek())==null?void 0:P.id;for(let D=le.value.length-1;D>=0;D--)if(le.value[D]===N){le.value.splice(D,1),x.active&&(Nt.value=!1);break}break}},O=()=>{const T=new Set;H.value.forEach(P=>{T.add(P.pages.peek().id)});for(let P=le.value.length-1;P>=0;P--){const x=le.value[P];T.has(x)&&le.value.splice(P,1)}Nt.value=!1},w=(T,P)=>{qe.set(T,P)},k=T=>qe.get(T),S=T=>{qe.delete(T)},m=T=>{Wt.add(T)},g=()=>{for(let T=le.value.length-1;T>=0;T--)Wt.has(le.value[T])&&f.unref(le).splice(T,1);Wt.clear()},v=T=>{for(let P=le.value.length-1;P>=0;P--)T===le.value[P]&&f.unref(le).splice(P,1)},b=T=>{new Set(le.value).has(T)||le.value.push(T)},I=(T,P=!0)=>{for(let x=H.value.length-1;x>=0;x--){const N=H.value[x];if(N.id===T){if(N.active)break;if(N.active=!0,Nt.value=!1,E(N),P){const D=N.pages.peek();e.push({path:D.path,query:D.query})}}else H.value[x].active=!1}},E=T=>{window.sessionStorage.setItem(gs,JSON.stringify(T))},y=()=>{A(),f.unref(H).push(...Bt),I(Bt[0].id)},A=()=>{f.unref(H).splice(0),qe.clear(),Wt.clear(),f.unref(le).splice(0),Nt.value=!0};return{tabs:H,caches:le,pageShown:Nt,initial:n,size:t,active:I,destroy:A,reset:y,addCache:b,removeCache:v,getTab:r,addTab:a,removeTab:i,removeAllTabs:l,removeLeftTabs:h,removeRightTabs:p,removeOtherTabs:c,hasTab:s,addPage:o,addComponent:w,getComponent:k,removeComponent:S,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:O}},zi={class:"stack-tab__item-title"},Ki=["title"],Zi=["title"],Ji=f.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:s}=ns().getI18n(),a=f.ref(),r=e;f.watch(()=>r.item.active,c=>{c&&l()});const o=f.computed(()=>r.item.title||s("undefined")),i=()=>{n("close",r.item)},l=()=>{n("active",r.item,a)};return(c,h)=>(f.openBlock(),f.createElementBlock("li",{ref_key:"curtab",ref:a,class:f.normalizeClass(["stack-tab__item",{"is-active":c.item.active,"is-icon":c.item.closable}]),onClick:l},[f.createElementVNode("div",zi,[f.createElementVNode("div",{class:"stack-tab__item-title-content",title:o.value},f.toDisplayString(o.value),9,Ki)]),c.item.closable?(f.openBlock(),f.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:f.unref(s)("VueStackTab.close"),onClick:f.withModifiers(i,["stop"])},null,8,Zi)):f.createCommentVNode("",!0)],2))}});var $e=[],Qi=function(){return $e.some(function(e){return e.activeTargets.length>0})},qi=function(){return $e.some(function(e){return e.skippedTargets.length>0})},bs="ResizeObserver loop completed with undelivered notifications.",$i=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:bs}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=bs),window.dispatchEvent(e)},Ot;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ot||(Ot={}));var et=function(e){return Object.freeze(e)},el=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,et(this)}return e}(),Es=function(){function e(t,n,s,a){return this.x=t,this.y=n,this.width=s,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,et(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,s=t.y,a=t.top,r=t.right,o=t.bottom,i=t.left,l=t.width,c=t.height;return{x:n,y:s,top:a,right:r,bottom:o,left:i,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Pn=function(e){return e instanceof SVGElement&&"getBBox"in e},vs=function(e){if(Pn(e)){var t=e.getBBox(),n=t.width,s=t.height;return!n&&!s}var a=e,r=a.offsetWidth,o=a.offsetHeight;return!(r||o||e.getClientRects().length)},Ts=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)},tl=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},yt=typeof window<"u"?window:{},Ht=new WeakMap,Ns=/auto|scroll/,nl=/^tb|vertical/,rl=/msie|trident/i.test(yt.navigator&&yt.navigator.userAgent),ke=function(e){return parseFloat(e||"0")},ut=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new el((n?t:e)||0,(n?e:t)||0)},Os=et({devicePixelContentBoxSize:ut(),borderBoxSize:ut(),contentBoxSize:ut(),contentRect:new Es(0,0,0,0)}),ys=function(e,t){if(t===void 0&&(t=!1),Ht.has(e)&&!t)return Ht.get(e);if(vs(e))return Ht.set(e,Os),Os;var n=getComputedStyle(e),s=Pn(e)&&e.ownerSVGElement&&e.getBBox(),a=!rl&&n.boxSizing==="border-box",r=nl.test(n.writingMode||""),o=!s&&Ns.test(n.overflowY||""),i=!s&&Ns.test(n.overflowX||""),l=s?0:ke(n.paddingTop),c=s?0:ke(n.paddingRight),h=s?0:ke(n.paddingBottom),p=s?0:ke(n.paddingLeft),d=s?0:ke(n.borderTopWidth),O=s?0:ke(n.borderRightWidth),w=s?0:ke(n.borderBottomWidth),k=s?0:ke(n.borderLeftWidth),S=p+c,m=l+h,g=k+O,v=d+w,b=i?e.offsetHeight-v-e.clientHeight:0,I=o?e.offsetWidth-g-e.clientWidth:0,E=a?S+g:0,y=a?m+v:0,A=s?s.width:ke(n.width)-E-I,T=s?s.height:ke(n.height)-y-b,P=A+S+I+g,x=T+m+b+v,N=et({devicePixelContentBoxSize:ut(Math.round(A*devicePixelRatio),Math.round(T*devicePixelRatio),r),borderBoxSize:ut(P,x,r),contentBoxSize:ut(A,T,r),contentRect:new Es(p,l,A,T)});return Ht.set(e,N),N},Ls=function(e,t,n){var s=ys(e,n),a=s.borderBoxSize,r=s.contentBoxSize,o=s.devicePixelContentBoxSize;switch(t){case Ot.DEVICE_PIXEL_CONTENT_BOX:return o;case Ot.BORDER_BOX:return a;default:return r}},sl=function(){function e(t){var n=ys(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=et([n.borderBoxSize]),this.contentBoxSize=et([n.contentBoxSize]),this.devicePixelContentBoxSize=et([n.devicePixelContentBoxSize])}return e}(),Is=function(e){if(vs(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},al=function(){var e=1/0,t=[];$e.forEach(function(o){if(o.activeTargets.length!==0){var i=[];o.activeTargets.forEach(function(c){var h=new sl(c.target),p=Is(c.target);i.push(h),c.lastReportedSize=Ls(c.target,c.observedBox),p<e&&(e=p)}),t.push(function(){o.callback.call(o.observer,i,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,s=t;n<s.length;n++){var a=s[n];a()}return e},ks=function(e){$e.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(a){a.isActive()&&(Is(a.target)>e?n.activeTargets.push(a):n.skippedTargets.push(a))})})},ol=function(){var e=0;for(ks(e);Qi();)e=al(),ks(e);return qi()&&$i(),e>0},Rn,Ss=[],il=function(){return Ss.splice(0).forEach(function(e){return e()})},ll=function(e){if(!Rn){var t=0,n=document.createTextNode(""),s={characterData:!0};new MutationObserver(function(){return il()}).observe(n,s),Rn=function(){n.textContent="".concat(t?t--:t++)}}Ss.push(e),Rn()},cl=function(e){ll(function(){requestAnimationFrame(e)})},Gt=0,ul=function(){return!!Gt},fl=250,dl={attributes:!0,characterData:!0,childList:!0,subtree:!0},Cs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],As=function(e){return e===void 0&&(e=0),Date.now()+e},Mn=!1,ml=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=fl),!Mn){Mn=!0;var s=As(t);cl(function(){var a=!1;try{a=ol()}finally{if(Mn=!1,t=s-As(),!ul())return;a?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,dl)};document.body?n():yt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Cs.forEach(function(n){return yt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Cs.forEach(function(n){return yt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Dn=new ml,ws=function(e){!Gt&&e>0&&Dn.start(),Gt+=e,!Gt&&Dn.stop()},_l=function(e){return!Pn(e)&&!tl(e)&&getComputedStyle(e).display==="inline"},pl=function(){function e(t,n){this.target=t,this.observedBox=n||Ot.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ls(this.target,this.observedBox,!0);return _l(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),hl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yt=new WeakMap,Ps=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 s=new hl(t,n);Yt.set(t,s)},e.observe=function(t,n,s){var a=Yt.get(t),r=a.observationTargets.length===0;Ps(a.observationTargets,n)<0&&(r&&$e.push(a),a.observationTargets.push(new pl(n,s&&s.box)),ws(1),Dn.schedule())},e.unobserve=function(t,n){var s=Yt.get(t),a=Ps(s.observationTargets,n),r=s.observationTargets.length===1;a>=0&&(r&&$e.splice($e.indexOf(s),1),s.observationTargets.splice(a,1),ws(-1))},e.disconnect=function(t){var n=this,s=Yt.get(t);s.observationTargets.slice().forEach(function(a){return n.unobserve(t,a.target)}),s.activeTargets.splice(0,s.activeTargets.length)},e}(),Rs=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(!Ts(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(!Ts(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 gl=["disabled","title"],bl={key:1,class:"stack-tab__button"},Fn=f.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock("div",{class:f.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?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(f.openBlock(),f.createElementBlock("div",bl,[f.renderSlot(t.$slots,"icon")])):f.createCommentVNode("",!0)],10,gl))}}),El=f.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=f.ref(null),s=f.ref(null),a=f.ref(null),r=f.ref(!1),o=f.ref(!1),i=f.ref(!1),l=f.ref(!0),c=f.ref(),h=e,p=f.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=f.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});f.watch(p,N=>{O(N)});const O=N=>{o.value=N.scrollLeft<=10,i.value=N.clientWidth+N.scrollLeft-N.scrollWidth>=-10,l.value=N.scrollWidth!==N.clientWidth},w=f.computed(()=>p.scrollWidth>p.clientWidth),k=f.computed(()=>{if(!w.value)return 0;const{clientWidth:N,scrollWidth:D}=p;return N/D*N}),S=f.computed(()=>{if(!w.value)return 0;const{clientWidth:N,scrollWidth:D,scrollLeft:J}=p;return(N-k.value)*(J/(D-N))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:N,scrollWidth:D,scrollLeft:J}=n.value;Object.assign(p,{clientWidth:N,scrollWidth:D,scrollLeft:J})},g=new Rs(()=>{var D;m();const N=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");N&&(x(N)||P(N))}),v=new Rs(()=>{var N;if(!w.value){const D=(N=n.value)==null?void 0:N.querySelector(".stack-tab__item.is-active");D&&(x(D)||P(D))}m()}),b=(N,D=!0)=>{es({wrap:n.value,left:N,smooth:D})},I=N=>{b(n.value.scrollLeft+N)},E=N=>{const D=N.deltaY<0;b(n.value.scrollLeft+(D?-h.space:h.space))},y=N=>{var D;Object.assign(d,{startPageX:N.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:S.value,thumbLeft:S.value}),r.value=!0,document.addEventListener("mousemove",A),document.addEventListener("mouseup",T)},A=N=>{const{clientWidth:D,scrollWidth:J}=p;let K=d.startThumbLeft+N.pageX-d.startPageX;const te=D-k.value;K<0?K=0:K>te&&(K=te),d.thumbLeft=K,b(K*(J-D)/(D-k.value),!1),N.preventDefault()},T=N=>{r.value=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",T),N.preventDefault()};f.onMounted(()=>{var D;g.observe(c.value);const N=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");v.observe(N)}),f.onUnmounted(()=>{g.disconnect(),v.disconnect()});const P=N=>{bi({el:N,wrap:n,block:"end",inline:"center"})},x=N=>{if(!w.value)return!0;const D=N.offsetLeft,J=n.value.scrollLeft;return!(D<J||D+N.clientWidth>J+n.value.clientWidth)};return t({scrollIntoView:P,isInView:x}),(N,D)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[l.value?(f.openBlock(),f.createBlock(Fn,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:D[0]||(D[0]=J=>!o.value&&I(-1*N.space))},null,8,["disabled"])):f.createCommentVNode("",!0),f.createElementVNode("div",{ref_key:"headerScroll",ref:c,class:"stack-tab__scroll",onWheel:f.withModifiers(E,["prevent"])},[f.createElementVNode("div",{ref_key:"container",ref:n,class:f.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!o.value&&i.value,"stack-tab__shadow-inset-right":!i.value&&o.value,"stack-tab__shadow-inset-all":!o.value&&!i.value}]),onScrollPassive:m},[f.renderSlot(N.$slots,"default")],34),f.withDirectives(f.createElementVNode("div",{ref_key:"bar",ref:s,class:f.normalizeClass(["stack-tab__scrollbar",{"is-dragging":r.value}])},[f.createElementVNode("div",{ref_key:"thumb",ref:a,class:f.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":r.value}]),style:f.normalizeStyle({width:`${k.value}px`,transform:`translateX(${S.value}px)`}),onMousedown:f.withModifiers(y,["prevent"])},null,38)],2),[[f.vShow,w.value]])],544),l.value?(f.openBlock(),f.createBlock(Fn,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:i.value,onClick:D[1]||(D[1]=J=>!i.value&&I(N.space))},null,8,["disabled"])):f.createCommentVNode("",!0)],64))}}),vl={class:"stack-tab__header"},Ms=f.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:We.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}=ns().getI18n(),s=f.inject("maximum"),a=t,r=f.ref(),{shown:o,contextMenuData:i,showContextMenu:l}=vi(),c=e,{removeTab:h,active:p,tabs:d}=jt(),O=f.computed(()=>typeof c.tabTransition=="string"?{name:c.tabTransition}:c.tabTransition),w=f.computed(()=>c.tabScrollMode===We.BOTH||c.tabScrollMode===We.BUTTON),k=c.tabScrollMode===We.BOTH||c.tabScrollMode===We.WHEEL,S=g=>{if(g.closable){const v=h(g.id);a("active",v)}o.value=!1},m=(g,v)=>{r.value&&(r.value.isInView(v.value)||r.value.scrollIntoView(v.value),p(g.id),a("active",g.id))};return(g,v)=>(f.openBlock(),f.createElementBlock("div",vl,[f.renderSlot(g.$slots,"leftButton"),f.createVNode(El,{ref_key:"scroll",ref:r,space:g.space,"is-scroll-wheel":f.unref(k),"is-scroll-button":w.value},{default:f.withCtx(()=>[f.createVNode(f.TransitionGroup,f.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},O.value,{appear:""}),{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(d),(b,I)=>(f.openBlock(),f.createBlock(Ji,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:f.withModifiers(E=>f.unref(l)(E,b,I,f.unref(d).length),["prevent"]),onMouseup:f.withModifiers(E=>S(b),["middle","prevent"]),onClose:S,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),f.renderSlot(g.$slots,"rightButton"),f.createVNode(Fn,{"icon-class":f.unref(s)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:f.unref(n)("VueStackTab.maximum"),onClick:v[0]||(v[0]=b=>s.value=!f.unref(s))},null,8,["icon-class","title"]),f.createVNode(f.Transition,{name:"stack-tab-zoom",appear:""},{default:f.withCtx(()=>[f.unref(o)?(f.openBlock(),f.createBlock(Ms,{key:"tabMenuTrans",left:f.unref(i).left,top:f.unref(i).top,"tab-item":f.unref(i).item,max:f.unref(i).max,index:f.unref(i).index},null,8,["left","top","tab-item","max","index"])):f.createCommentVNode("",!0)]),_:1})]))}});var Tl=typeof global=="object"&&global&&global.Object===Object&&global,Nl=typeof self=="object"&&self&&self.Object===Object&&self,Ds=Tl||Nl||Function("return this")(),zt=Ds.Symbol,Fs=Object.prototype,Ol=Fs.hasOwnProperty,yl=Fs.toString,Lt=zt?zt.toStringTag:void 0;function Ll(e){var t=Ol.call(e,Lt),n=e[Lt];try{e[Lt]=void 0;var s=!0}catch{}var a=yl.call(e);return s&&(t?e[Lt]=n:delete e[Lt]),a}var Il=Object.prototype,kl=Il.toString;function Sl(e){return kl.call(e)}var Cl="[object Null]",Al="[object Undefined]",xs=zt?zt.toStringTag:void 0;function wl(e){return e==null?e===void 0?Al:Cl:xs&&xs in Object(e)?Ll(e):Sl(e)}function Pl(e){return e!=null&&typeof e=="object"}var Rl="[object Symbol]";function Ml(e){return typeof e=="symbol"||Pl(e)&&wl(e)==Rl}var Dl=/\s/;function Fl(e){for(var t=e.length;t--&&Dl.test(e.charAt(t)););return t}var xl=/^\s+/;function Ul(e){return e&&e.slice(0,Fl(e)+1).replace(xl,"")}function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Us=NaN,Vl=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,Wl=/^0o[0-7]+$/i,jl=parseInt;function Vs(e){if(typeof e=="number")return e;if(Ml(e))return Us;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=Ul(e);var n=Bl.test(e);return n||Wl.test(e)?jl(e.slice(2),n?2:8):Vl.test(e)?Us:+e}var xn=function(){return Ds.Date.now()},Hl="Expected a function",Gl=Math.max,Yl=Math.min;function Xl(e,t,n){var s,a,r,o,i,l,c=0,h=!1,p=!1,d=!0;if(typeof e!="function")throw new TypeError(Hl);t=Vs(t)||0,Kt(n)&&(h=!!n.leading,p="maxWait"in n,r=p?Gl(Vs(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d);function O(E){var y=s,A=a;return s=a=void 0,c=E,o=e.apply(A,y),o}function w(E){return c=E,i=setTimeout(m,t),h?O(E):o}function k(E){var y=E-l,A=E-c,T=t-y;return p?Yl(T,r-A):T}function S(E){var y=E-l,A=E-c;return l===void 0||y>=t||y<0||p&&A>=r}function m(){var E=xn();if(S(E))return g(E);i=setTimeout(m,k(E))}function g(E){return i=void 0,d&&s?O(E):(s=a=void 0,o)}function v(){i!==void 0&&clearTimeout(i),c=0,s=l=a=i=void 0}function b(){return i===void 0?o:g(xn())}function I(){var E=xn(),y=S(E);if(s=arguments,a=this,l=E,y){if(i===void 0)return w(l);if(p)return clearTimeout(i),i=setTimeout(m,t),O(l)}return i===void 0&&(i=setTimeout(m,t)),o}return I.cancel=v,I.flush=b,I}var zl="Expected a function";function Kl(e,t,n){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(zl);return Kt(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),Xl(e,t,{leading:s,maxWait:t,trailing:a})}let Bs;const Ws=()=>{const e=Ee.useRouter(),{active:t,hasTab:n,pageShown:s,reset:a}=jt();return{openNewTab:Kl(async i=>{if(!s.value)return;const l=Ie(i,{refreshable:!0,closable:!0,iframe:!1});if(n(l.id)){t(l.id);return}l.id||(l.id=as());const c=await ps(l);let h=Ie({__tab:c},i.query),p;if(i.iframe){const d=encodeURIComponent(i.path);p=Bs,h.__src=d}else{const d=wn(i.path);p=d.path,h=Ie(d.query,h)}return e.push({path:p,query:h}),l.id},500),setIFramePath:i=>{Bs=i},active:t,reset:a}},Zl={class:"stack-tab__container"},Jl=["src"],Ql=f.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:We.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:s,caches:a,addPage:r,destroy:o,initial:i}=jt(),l=t,c=e;f.provide("locales",{...c.i18n});const h=f.ref(!1);f.provide("maximum",h);const{setIFramePath:p}=Ws();p(c.iframePath),f.onBeforeMount(()=>{i(c.defaultTabs)});const d=(k,S)=>r(k,S),O=k=>{l("onActive",k)};f.onUnmounted(()=>{o()});const w=Ee.useRouter();return f.watch(()=>w.currentRoute.value.fullPath,()=>{s.value=!0}),(k,S)=>{const m=f.resolveComponent("router-view");return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["stack-tab",{"stack-tab__maximum":h.value}]),style:f.normalizeStyle({width:k.width,height:k.height,"z-index":h.value?f.unref(Ei)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[f.createVNode(Ms,{space:k.space,onActive:O,"tab-transition":k.tabTransition,max:k.max},{leftButton:f.withCtx(()=>[f.renderSlot(k.$slots,"leftButton")]),rightButton:f.withCtx(()=>[f.renderSlot(k.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),f.createElementVNode("div",Zl,[f.createVNode(m,null,{default:f.withCtx(({Component:g,route:v})=>[f.createVNode(f.Transition,{name:k.pageTransition,appear:"",onAfterLeave:S[0]||(S[0]=b=>s.value=!0)},{default:f.withCtx(()=>[(f.openBlock(),f.createBlock(f.KeepAlive,{include:f.unref(a)},[f.unref(s)?(f.openBlock(),f.createBlock(f.resolveDynamicComponent(d(v,g)),{key:v.fullPath})):f.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),f.createVNode(f.TransitionGroup,{name:k.pageTransition,appear:""},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(n).filter(g=>g.iframe),g=>f.withDirectives((f.openBlock(),f.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)),[[f.vShow,g.active&&f.unref(s)]])),128))]),_:1},8,["name"])])],6)}}}),Un=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const js=typeof TextEncoder=="function"?new TextEncoder:void 0,It=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,s)=>t[n]=s),t})(It);const Se=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const ql=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Hs=typeof btoa=="function"?e=>btoa(e):Un?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,s,a,r="";const o=e.length%3;for(let i=0;i<e.length;){if((n=e.charCodeAt(i++))>255||(s=e.charCodeAt(i++))>255||(a=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=n<<16|s<<8|a,r+=It[t>>18&63]+It[t>>12&63]+It[t>>6&63]+It[t&63]}return o?r.slice(0,o-3)+"===".substring(o):r},$l=Un?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let s=0,a=e.length;s<a;s+=4096)n.push(Se.apply(null,e.subarray(s,s+4096)));return Hs(n.join(""))},ec=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Se(192|t>>>6)+Se(128|t&63):Se(224|t>>>12&15)+Se(128|t>>>6&63)+Se(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Se(240|t>>>18&7)+Se(128|t>>>12&63)+Se(128|t>>>6&63)+Se(128|t&63)}},tc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nc=e=>e.replace(tc,ec),Gs=Un?e=>Buffer.from(e,"utf8").toString("base64"):js?e=>$l(js.encode(e)):e=>Hs(nc(e)),rc=(e,t=!1)=>t?ql(Gs(e)):Gs(e),sc=e=>{const s=`<?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: ${Te.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=Te.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
|
-
`,r="data:image/svg+xml;base64,"+lc(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(${r});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ya=()=>{const{attrs:e}=c.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:a,removeComponent:o,getComponent:s}=yt(),r=ve.useRoute(),l=ve.useRouter();let i="",u="";return i=e.tId,u=r.query.__tab,{forward:d=>{t.value=!1;const N=ke({__tab:u},d.query);l.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const A=n(i);if(!A)return;const I=A.pages;let S=0;if(typeof d=="number")S=Math.abs(d);else{let E=1,b=!1;const k=I.list(),v=Rn(d);N=ke(v.query,N);for(let O=I.size()-2;O>=0;O--){if(k[O].path===v.path){b=!0;break}E+=1}b&&(S=E)}if(S===0||I.size()<=S)return;for(let E=0;E<S;E++){const b=I.pop();o(b.id),a(b.id)}const m=I==null?void 0:I.peek(),g=s(m.id);if(g!=null){const E=g.components.DynamicComponent;E.props=ke(N,E.props)}l.push({path:m.path,query:m.query})}}},cc=c.defineComponent({__name:"iframe",setup(e){return Ya(),(t,n)=>(c.openBlock(),c.createElementBlock("div"))}});var Xa={exports:{}};(function(e,t){(function(a,o){e.exports=o(c)})(Pl,n=>(()=>{var a={878:(l,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.default=(u,p)=>{const h=u.__vccOpts||u;for(const[d,N]of p)h[d]=N;return h}},976:l=>{l.exports=n}},o={};function s(l){var i=o[l];if(i!==void 0)return i.exports;var u=o[l]={exports:{}};return a[l](u,u.exports,s),u.exports}s.d=(l,i)=>{for(var u in i)s.o(i,u)&&!s.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:i[u]})},s.o=(l,i)=>Object.prototype.hasOwnProperty.call(l,i),s.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var r={};return(()=>{s.r(r),s.d(r,{Component:()=>Me,LoadingPlugin:()=>mt,default:()=>De,useLoading:()=>ze});var l=s(976);function i(U){var Q;typeof U.remove<"u"?U.remove():(Q=U.parentNode)==null||Q.removeChild(U)}function u(U,Q,ue){let fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=(0,l.h)(U,Q,fe),f=document.createElement("div");return f.classList.add("vld-container"),ue.appendChild(f),(0,l.render)(_,f),_.component}function p(){return typeof window<"u"}const h=p()?window.HTMLElement:Object,d=["aria-busy"],N={class:"vl-icon"};function A(U,Q,ue,fe,_,f){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:U.transition},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{tabindex:"0",class:(0,l.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":U.isFullPage}]),"aria-busy":U.isActive,"aria-label":"Loading",style:(0,l.normalizeStyle)({zIndex:U.zIndex})},[(0,l.createElementVNode)("div",{class:"vl-background",onClick:Q[0]||(Q[0]=(0,l.withModifiers)(function(){return U.cancel&&U.cancel(...arguments)},["prevent"])),style:(0,l.normalizeStyle)(U.bgStyle)},null,4),(0,l.createElementVNode)("div",N,[(0,l.renderSlot)(U.$slots,"before"),(0,l.renderSlot)(U.$slots,"default",{},()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(U.loader),{color:U.color,width:U.width,height:U.height},null,8,["color","width","height"]))]),(0,l.renderSlot)(U.$slots,"after")])],14,d),[[l.vShow,U.isActive]])]),_:3},8,["name"])}const I={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(U){if(!this.isActive||U.target===this.$el||this.$el.contains(U.target))return;let Q=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||Q&&Q.contains(U.target))&&(U.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},S=["width","height","stroke"],g=[(0,l.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)];function E(U,Q,ue,fe,_,f){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:U.width,height:U.height,stroke:U.color},g,8,S)}const b=(0,l.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var k=s(878);const O=(0,k.default)(b,[["render",E]]),T=["fill","width","height"],P=[(0,l.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)];function x(U,Q,ue,fe,_,f){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:U.color,width:U.width,height:U.height},P,8,T)}const y=(0,l.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),J=(0,k.default)(y,[["render",x]]),K=["height","width","fill"],ce=[(0,l.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)];function Ce(U,Q,ue,fe,_,f){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:U.height,width:U.width,fill:U.color},ce,8,K)}const Ne=(0,l.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),Xe={Spinner:O,Dots:J,Bars:(0,k.default)(Ne,[["render",Ce]])},tt=(0,l.defineComponent)({name:"VueLoading",mixins:[I],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,h],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:Xe,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){!this.canCancel||!this.isActive||(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{const U=this.$el.parentElement;(0,l.render)(null,U),i(U)},150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(U){U.keyCode===27&&this.cancel()}},watch:{active(U){this.isActive=U},isActive:{handler(U){U?this.disableScroll():this.enableScroll()},immediate:!0}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),Me=(0,k.default)(tt,[["render",A]]);function ze(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{show(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q;const f={...U,...ue,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let L=f.container;f.container||(L=document.body,f.isFullPage=!0);const F={...Q,...fe};return{hide:u(Me,f,L,F).ctx.hide}}}}const mt=function(U){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const fe=ze(Q,ue);U.config.globalProperties.$loading=fe,U.provide("$loading",fe)},De=Me})(),r})())})(Xa);var uc=Xa.exports;const fc=()=>{const e=uc.useLoading(),{attrs:t}=c.getCurrentInstance();let n=null;c.onUnmounted(()=>{o()});const a=()=>{const s=document.querySelector(`#${t.tId}`);n===null&&(n=e.show({canCancel:!1,isFullPage:!1,height:85,width:85,loader:"spinner",color:"#007bff",container:s}))},o=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:a,closeTabLoading:o}},dc=il({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),mc={install(e){ic("0.1.0"),e.component("VueStackTabs",tc).use(dc)}};ee.EventType=sa,ee.IFrame=cc,ee.Stack=Ut,ee.TabScrollMode=He,ee.default=mc,ee.useStackTab=Wa,ee.useTabLoading=fc,ee.useTabRouter=Ya,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
46
|
+
`,o="data:image/svg+xml;base64,"+rc(s),i="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+",i+`background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ys=()=>{const{attrs:e}=f.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:s,removeComponent:a,getComponent:r}=jt(),o=Ee.useRoute(),i=Ee.useRouter();let l="",c="";return l=e.tId,c=o.query.__tab,{forward:d=>{t.value=!1;const O=Ie({__tab:c},d.query);i.push({path:d.path,query:O})},backward:(d,O)=>{t.value=!1;const w=n(l);if(!w)return;const k=w.pages;let S=0;if(typeof d=="number")S=Math.abs(d);else{let v=1,b=!1;const I=k.list(),E=wn(d);O=Ie(E.query,O);for(let y=k.size()-2;y>=0;y--){if(I[y].path===E.path){b=!0;break}v+=1}b&&(S=v)}if(S===0||k.size()<=S)return;for(let v=0;v<S;v++){const b=k.pop();a(b.id),s(b.id)}const m=k==null?void 0:k.peek(),g=r(m.id);if(g!=null){const v=g.components.DynamicComponent;v.props=Ie(O,v.props)}i.push({path:m.path,query:m.query})}}},ac=f.defineComponent({__name:"iframe",setup(e){return Ys(),(t,n)=>(f.openBlock(),f.createElementBlock("div"))}});var Xs={exports:{}};(function(e,t){(function(s,a){e.exports=a(f)})(Ri,n=>(()=>{var s={878:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.default=(c,h)=>{const p=c.__vccOpts||c;for(const[d,O]of h)p[d]=O;return p}},976:i=>{i.exports=n}},a={};function r(i){var l=a[i];if(l!==void 0)return l.exports;var c=a[i]={exports:{}};return s[i](c,c.exports,r),c.exports}r.d=(i,l)=>{for(var c in l)r.o(l,c)&&!r.o(i,c)&&Object.defineProperty(i,c,{enumerable:!0,get:l[c]})},r.o=(i,l)=>Object.prototype.hasOwnProperty.call(i,l),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{Component:()=>De,LoadingPlugin:()=>nt,default:()=>Xe,useLoading:()=>Ye});var i=r(976);function l(U){var Q;typeof U.remove<"u"?U.remove():(Q=U.parentNode)==null||Q.removeChild(U)}function c(U,Q,ue){let fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=(0,i.h)(U,Q,fe),u=document.createElement("div");return u.classList.add("vld-container"),ue.appendChild(u),(0,i.render)(_,u),_.component}function h(){return typeof window<"u"}const p=h()?window.HTMLElement:Object,d=["aria-busy"],O={class:"vl-icon"};function w(U,Q,ue,fe,_,u){return(0,i.openBlock)(),(0,i.createBlock)(i.Transition,{name:U.transition},{default:(0,i.withCtx)(()=>[(0,i.withDirectives)((0,i.createElementVNode)("div",{tabindex:"0",class:(0,i.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":U.isFullPage}]),"aria-busy":U.isActive,"aria-label":"Loading",style:(0,i.normalizeStyle)({zIndex:U.zIndex})},[(0,i.createElementVNode)("div",{class:"vl-background",onClick:Q[0]||(Q[0]=(0,i.withModifiers)(function(){return U.cancel&&U.cancel(...arguments)},["prevent"])),style:(0,i.normalizeStyle)(U.bgStyle)},null,4),(0,i.createElementVNode)("div",O,[(0,i.renderSlot)(U.$slots,"before"),(0,i.renderSlot)(U.$slots,"default",{},()=>[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(U.loader),{color:U.color,width:U.width,height:U.height},null,8,["color","width","height"]))]),(0,i.renderSlot)(U.$slots,"after")])],14,d),[[i.vShow,U.isActive]])]),_:3},8,["name"])}const k={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(U){if(!this.isActive||U.target===this.$el||this.$el.contains(U.target))return;let Q=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||Q&&Q.contains(U.target))&&(U.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},S=["width","height","stroke"],g=[(0,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)];function v(U,Q,ue,fe,_,u){return(0,i.openBlock)(),(0,i.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:U.width,height:U.height,stroke:U.color},g,8,S)}const b=(0,i.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var I=r(878);const y=(0,I.default)(b,[["render",v]]),A=["fill","width","height"],P=[(0,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)];function x(U,Q,ue,fe,_,u){return(0,i.openBlock)(),(0,i.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:U.color,width:U.width,height:U.height},P,8,A)}const N=(0,i.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),J=(0,I.default)(N,[["render",x]]),K=["height","width","fill"],ce=[(0,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)];function Ce(U,Q,ue,fe,_,u){return(0,i.openBlock)(),(0,i.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:U.height,width:U.width,fill:U.color},ce,8,K)}const Ne=(0,i.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),ge={Spinner:y,Dots:J,Bars:(0,I.default)(Ne,[["render",Ce]])},Ge=(0,i.defineComponent)({name:"VueLoading",mixins:[k],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,p],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:ge,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){!this.canCancel||!this.isActive||(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{const U=this.$el.parentElement;(0,i.render)(null,U),l(U)},150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(U){U.keyCode===27&&this.cancel()}},watch:{active(U){this.isActive=U},isActive:{handler(U){U?this.disableScroll():this.enableScroll()},immediate:!0}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),De=(0,I.default)(Ge,[["render",w]]);function Ye(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{show(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q;const u={...U,...ue,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let L=u.container;u.container||(L=document.body,u.isFullPage=!0);const F={...Q,...fe};return{hide:c(De,u,L,F).ctx.hide}}}}const nt=function(U){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const fe=Ye(Q,ue);U.config.globalProperties.$loading=fe,U.provide("$loading",fe)},Xe=De})(),o})())})(Xs);var oc=Xs.exports;const ic=()=>{const e=oc.useLoading(),{attrs:t}=f.getCurrentInstance();let n=null;f.onUnmounted(()=>{a()});const s=()=>{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}))},a=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:s,closeTabLoading:a}},lc=ii({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),cc={install(e){sc("0.1.2"),e.component("VueStackTabs",Ql).use(lc)}};ee.EventType=ts,ee.IFrame=ac,ee.Stack=Ft,ee.TabScrollMode=We,ee.default=cc,ee.useStackTab=Ws,ee.useTabLoading=ic,ee.useTabRouter=Ys,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|