vue-stack-tabs 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Pa = Object.defineProperty;
2
2
  var Da = (e, t, n) => t in e ? Pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var dr = (e, t, n) => (Da(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as Te, h as vs, getCurrentInstance as it, effectScope as Ma, inject as fn, onMounted as dn, onUnmounted as Ot, shallowRef as Ts, ref as Q, computed as de, onBeforeMount as Ns, watch as nn, Fragment as It, isRef as Fa, createVNode as se, Text as xa, openBlock as Z, createElementBlock as ue, createCommentVNode as $e, createElementVNode as we, unref as x, onActivated as Ua, resolveComponent as Os, normalizeClass as ze, withModifiers as Et, toDisplayString as Is, reactive as rn, normalizeStyle as jn, renderList as Yn, createBlock as Ke, nextTick as Ls, renderSlot as vt, withDirectives as ys, vShow as ks, withCtx as Ce, TransitionGroup as As, mergeProps as Va, Transition as Ss, provide as _r, KeepAlive as $a, Suspense as Wa, resolveDynamicComponent as Ba, createTextVNode as Ga } from "vue";
4
+ import { defineComponent as Ne, h as vs, getCurrentInstance as it, effectScope as Ma, inject as fn, onMounted as dn, onUnmounted as Ot, shallowRef as Ts, ref as Q, computed as de, onBeforeMount as Ns, watch as nn, Fragment as It, isRef as Fa, createVNode as se, Text as xa, openBlock as Z, createElementBlock as ue, createCommentVNode as $e, createElementVNode as we, unref as x, onActivated as Ua, resolveComponent as Os, normalizeClass as ze, withModifiers as Et, toDisplayString as Is, reactive as rn, normalizeStyle as jn, renderList as Yn, createBlock as Ke, nextTick as Ls, renderSlot as vt, withDirectives as ys, vShow as ks, withCtx as Ce, TransitionGroup as As, mergeProps as Va, Transition as Ss, provide as _r, KeepAlive as $a, Suspense as Wa, resolveDynamicComponent as Ba, createTextVNode as Ga } from "vue";
5
5
  import { useRouter as Xn, useRoute as Ha } from "vue-router";
6
6
  /*!
7
7
  * shared v9.10.1
@@ -9,11 +9,11 @@ import { useRouter as Xn, useRoute as Ha } from "vue-router";
9
9
  * Released under the MIT License.
10
10
  */
11
11
  const Le = typeof window < "u";
12
- let ve, lt;
12
+ let Te, lt;
13
13
  if (process.env.NODE_ENV !== "production") {
14
14
  const e = Le && window.performance;
15
15
  e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
16
- e.clearMeasures && (ve = (t) => {
16
+ e.clearMeasures && (Te = (t) => {
17
17
  e.mark(t);
18
18
  }, lt = (t, n, r) => {
19
19
  e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
@@ -1753,7 +1753,7 @@ function Ys(e, t, n, r, a, s) {
1753
1753
  }
1754
1754
  m = o[f] || {};
1755
1755
  let g = null, E, p;
1756
- if (process.env.NODE_ENV !== "production" && Le && (g = window.performance.now(), E = "intlify-message-resolve-start", p = "intlify-message-resolve-end", ve && ve(E)), (v = l(m, t)) === null && (v = m[t]), process.env.NODE_ENV !== "production" && Le) {
1756
+ if (process.env.NODE_ENV !== "production" && Le && (g = window.performance.now(), E = "intlify-message-resolve-start", p = "intlify-message-resolve-end", Te && Te(E)), (v = l(m, t)) === null && (v = m[t]), process.env.NODE_ENV !== "production" && Le) {
1757
1757
  const b = window.performance.now(), T = e.__v_emitter;
1758
1758
  T && g && v && T.emit("message-resolve", {
1759
1759
  type: "message-resolve",
@@ -1761,7 +1761,7 @@ function Ys(e, t, n, r, a, s) {
1761
1761
  message: v,
1762
1762
  time: b - g,
1763
1763
  groupId: `${L}:${t}`
1764
- }), E && p && ve && lt && (ve(p), lt("intlify message resolve", E, p));
1764
+ }), E && p && Te && lt && (Te(p), lt("intlify message resolve", E, p));
1765
1765
  }
1766
1766
  if (D(v) || Ze(v) || Oe(v))
1767
1767
  break;
@@ -1788,7 +1788,7 @@ function Xs(e, t, n, r, a, s) {
1788
1788
  return f.locale = n, f.key = t, f;
1789
1789
  }
1790
1790
  let l = null, c, _;
1791
- process.env.NODE_ENV !== "production" && Le && (l = window.performance.now(), c = "intlify-message-compilation-start", _ = "intlify-message-compilation-end", ve && ve(c));
1791
+ process.env.NODE_ENV !== "production" && Le && (l = window.performance.now(), c = "intlify-message-compilation-start", _ = "intlify-message-compilation-end", Te && Te(c));
1792
1792
  const m = o(r, Ei(e, n, a, r, i, s));
1793
1793
  if (process.env.NODE_ENV !== "production" && Le) {
1794
1794
  const f = window.performance.now(), v = e.__v_emitter;
@@ -1797,13 +1797,13 @@ function Xs(e, t, n, r, a, s) {
1797
1797
  message: r,
1798
1798
  time: f - l,
1799
1799
  groupId: `translate:${t}`
1800
- }), c && _ && ve && lt && (ve(_), lt("intlify message compilation", c, _));
1800
+ }), c && _ && Te && lt && (Te(_), lt("intlify message compilation", c, _));
1801
1801
  }
1802
1802
  return m.locale = n, m.key = t, m.source = r, m;
1803
1803
  }
1804
1804
  function bi(e, t, n) {
1805
1805
  let r = null, a, s;
1806
- process.env.NODE_ENV !== "production" && Le && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ve && ve(a));
1806
+ process.env.NODE_ENV !== "production" && Le && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", Te && Te(a));
1807
1807
  const o = t(n);
1808
1808
  if (process.env.NODE_ENV !== "production" && Le) {
1809
1809
  const i = window.performance.now(), l = e.__v_emitter;
@@ -1812,7 +1812,7 @@ function bi(e, t, n) {
1812
1812
  value: o,
1813
1813
  time: i - r,
1814
1814
  groupId: `translate:${t.key}`
1815
- }), a && s && ve && lt && (ve(s), lt("intlify message evaluation", a, s));
1815
+ }), a && s && Te && lt && (Te(s), lt("intlify message evaluation", a, s));
1816
1816
  }
1817
1817
  return o;
1818
1818
  }
@@ -2921,7 +2921,7 @@ function xi({ slots: e }, t) {
2921
2921
  function sa(e) {
2922
2922
  return It;
2923
2923
  }
2924
- const Ui = /* @__PURE__ */ Te({
2924
+ const Ui = /* @__PURE__ */ Ne({
2925
2925
  /* eslint-disable */
2926
2926
  name: "i18n-t",
2927
2927
  props: fe({
@@ -2969,7 +2969,7 @@ function aa(e, t, n, r) {
2969
2969
  return vs(m, _, c);
2970
2970
  };
2971
2971
  }
2972
- const $i = /* @__PURE__ */ Te({
2972
+ const $i = /* @__PURE__ */ Ne({
2973
2973
  /* eslint-disable */
2974
2974
  name: "i18n-n",
2975
2975
  props: fe({
@@ -2993,7 +2993,7 @@ const $i = /* @__PURE__ */ Te({
2993
2993
  n[Fn](...r)
2994
2994
  ));
2995
2995
  }
2996
- }), Gr = $i, Wi = /* @__PURE__ */ Te({
2996
+ }), Gr = $i, Wi = /* @__PURE__ */ Ne({
2997
2997
  /* eslint-disable */
2998
2998
  name: "i18n-d",
2999
2999
  props: fe({
@@ -4647,20 +4647,20 @@ const zl = Xl(), Kl = {
4647
4647
  e.provide("tabEmitter", zl);
4648
4648
  }
4649
4649
  }, Gt = () => fn("tabEmitter");
4650
- var Ne = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(Ne || {});
4650
+ var ve = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(ve || {});
4651
4651
  const ql = {
4652
4652
  key: 0,
4653
4653
  class: "stack-tab-loading-mask"
4654
4654
  }, Zl = /* @__PURE__ */ we("div", { class: "stack-tab-loading--spin turn" }, null, -1), Jl = [
4655
4655
  Zl
4656
- ], Ql = /* @__PURE__ */ Te({
4656
+ ], Ql = /* @__PURE__ */ Ne({
4657
4657
  __name: "PageLoading",
4658
4658
  props: {
4659
4659
  tId: {}
4660
4660
  },
4661
4661
  setup(e) {
4662
4662
  const t = e, n = Gt(), r = Q(!1);
4663
- return n.on(Ne.PAGE_LOADING, ({ tId: a, value: s }) => {
4663
+ return n.on(ve.PAGE_LOADING, ({ tId: a, value: s }) => {
4664
4664
  a === t.tId && (r.value = s);
4665
4665
  }), (a, s) => r.value ? (Z(), ue("div", ql, Jl)) : $e("", !0);
4666
4666
  }
@@ -4743,14 +4743,14 @@ const Ht = () => {
4743
4743
  active: !0,
4744
4744
  pages: he
4745
4745
  }, o(ne).then(() => {
4746
- t.emit(Ne.TAB_ACTIVE, {
4746
+ t.emit(ve.TAB_ACTIVE, {
4747
4747
  id: P.id,
4748
4748
  isRoute: !1
4749
4749
  });
4750
4750
  });
4751
4751
  } else
4752
4752
  ne.active = !0, (ne.pages.isEmpty() || ne.pages.peek().id !== Ee.id) && ne.pages.push(Ee);
4753
- return C(ne), rt.has(V) ? F = rt.get(V) : (F = /* @__PURE__ */ Te({
4753
+ return C(ne), rt.has(V) ? F = rt.get(V) : (F = /* @__PURE__ */ Ne({
4754
4754
  name: V,
4755
4755
  components: {
4756
4756
  DynamicComponent: S
@@ -4781,7 +4781,7 @@ const Ht = () => {
4781
4781
  x(B)[F].pages.clear(), B.value.length > 1 && x(B)[F].active && (F === 0 ? S = x(B)[F + 1].id : S = x(B)[F - 1].id), x(B).splice(F, 1);
4782
4782
  break;
4783
4783
  }
4784
- return S !== "" && t.emit(Ne.TAB_ACTIVE, {
4784
+ return S !== "" && t.emit(ve.TAB_ACTIVE, {
4785
4785
  id: S
4786
4786
  }), p(), S;
4787
4787
  }, _ = () => {
@@ -4797,7 +4797,7 @@ const Ht = () => {
4797
4797
  p();
4798
4798
  return;
4799
4799
  }
4800
- t.emit(Ne.TAB_ACTIVE, {
4800
+ t.emit(ve.TAB_ACTIVE, {
4801
4801
  id: N[N.length - 1].id
4802
4802
  });
4803
4803
  }, m = (N) => {
@@ -4811,7 +4811,7 @@ const Ht = () => {
4811
4811
  g(V.id), E(V.id);
4812
4812
  x(B)[P].pages.clear(), x(B).splice(P, 1);
4813
4813
  }
4814
- F.active ? p() : t.emit(Ne.TAB_ACTIVE, {
4814
+ F.active ? p() : t.emit(ve.TAB_ACTIVE, {
4815
4815
  id: N
4816
4816
  });
4817
4817
  }, f = (N) => {
@@ -4833,7 +4833,7 @@ const Ht = () => {
4833
4833
  p();
4834
4834
  return;
4835
4835
  }
4836
- t.emit(Ne.TAB_ACTIVE, {
4836
+ t.emit(ve.TAB_ACTIVE, {
4837
4837
  id: F[0].id
4838
4838
  });
4839
4839
  }, v = (N) => {
@@ -4855,7 +4855,7 @@ const Ht = () => {
4855
4855
  p();
4856
4856
  return;
4857
4857
  }
4858
- t.emit(Ne.TAB_ACTIVE, {
4858
+ t.emit(ve.TAB_ACTIVE, {
4859
4859
  id: S[S.length - 1].id
4860
4860
  });
4861
4861
  }, A = (N) => {
@@ -4915,7 +4915,7 @@ const Ht = () => {
4915
4915
  }), C = (N) => {
4916
4916
  window.sessionStorage.setItem(rs, JSON.stringify(N));
4917
4917
  }, w = () => {
4918
- Y(), x(B).push(...zt), t.emit(Ne.TAB_ACTIVE, {
4918
+ Y(), x(B).push(...zt), t.emit(ve.TAB_ACTIVE, {
4919
4919
  id: zt[0].id
4920
4920
  });
4921
4921
  }, Y = () => {
@@ -4953,7 +4953,7 @@ const Ht = () => {
4953
4953
  refreshTab: A,
4954
4954
  refreshAllTabs: I
4955
4955
  };
4956
- }, ec = { class: "stack-tab__contextmenu-item" }, Xe = /* @__PURE__ */ Te({
4956
+ }, ec = { class: "stack-tab__contextmenu-item" }, Xe = /* @__PURE__ */ Ne({
4957
4957
  __name: "ContextMenuItem",
4958
4958
  props: {
4959
4959
  icon: {},
@@ -4974,7 +4974,7 @@ const Ht = () => {
4974
4974
  }), tc = {
4975
4975
  key: 0,
4976
4976
  class: "divider div-transparent"
4977
- }, nc = /* @__PURE__ */ Te({
4977
+ }, nc = /* @__PURE__ */ Ne({
4978
4978
  __name: "index",
4979
4979
  props: {
4980
4980
  index: {},
@@ -5089,7 +5089,7 @@ const Ht = () => {
5089
5089
  contextMenuData: e,
5090
5090
  showContextMenu: n
5091
5091
  };
5092
- }, oc = { class: "stack-tab__item-title" }, ic = ["title"], lc = ["title"], cc = /* @__PURE__ */ Te({
5092
+ }, oc = { class: "stack-tab__item-title" }, ic = ["title"], lc = ["title"], cc = /* @__PURE__ */ Ne({
5093
5093
  __name: "TabHeaderItem",
5094
5094
  props: {
5095
5095
  item: {}
@@ -5097,7 +5097,7 @@ const Ht = () => {
5097
5097
  emits: ["close", "active"],
5098
5098
  setup(e, { emit: t }) {
5099
5099
  const n = t, r = Gt(), { t: a } = rr().getI18n(), s = Q(), o = e;
5100
- r.on(Ne.TAB_ACTIVE, ({ id: _, isRoute: m }) => {
5100
+ r.on(ve.TAB_ACTIVE, ({ id: _, isRoute: m }) => {
5101
5101
  o.item.id === _ && c(m);
5102
5102
  });
5103
5103
  const i = de(() => o.item.title || a("undefined")), l = () => {
@@ -5415,7 +5415,7 @@ var ot = function(e) {
5415
5415
  const Cc = ["disabled", "title"], wc = {
5416
5416
  key: 1,
5417
5417
  class: "stack-tab__button"
5418
- }, Hn = /* @__PURE__ */ Te({
5418
+ }, Hn = /* @__PURE__ */ Ne({
5419
5419
  __name: "TabHeaderButton",
5420
5420
  props: {
5421
5421
  disabled: { type: Boolean, default: !1 },
@@ -5441,7 +5441,7 @@ const Cc = ["disabled", "title"], wc = {
5441
5441
  ])) : $e("", !0)
5442
5442
  ], 10, Cc));
5443
5443
  }
5444
- }), Rc = /* @__PURE__ */ Te({
5444
+ }), Rc = /* @__PURE__ */ Ne({
5445
5445
  __name: "TabHeaderScroll",
5446
5446
  props: {
5447
5447
  space: { default: 300 },
@@ -5582,7 +5582,7 @@ const Cc = ["disabled", "title"], wc = {
5582
5582
  }, null, 8, ["disabled"])) : $e("", !0)
5583
5583
  ], 64));
5584
5584
  }
5585
- }), Pc = { class: "stack-tab__header" }, Dc = /* @__PURE__ */ Te({
5585
+ }), Pc = { class: "stack-tab__header" }, Dc = /* @__PURE__ */ Ne({
5586
5586
  __name: "index",
5587
5587
  props: {
5588
5588
  space: {},
@@ -5794,7 +5794,7 @@ const cu = () => {
5794
5794
  }
5795
5795
  const f = Ve(c, { refreshable: !0, closable: !0, iframe: !1 });
5796
5796
  if (n(f.id)) {
5797
- o.emit("tabActive", { id: f.id }), _(f.id);
5797
+ o.emit(ve.TAB_ACTIVE, { id: f.id }), _(f.id);
5798
5798
  return;
5799
5799
  }
5800
5800
  if (f.id || (f.id = da()), !s()) {
@@ -5822,7 +5822,7 @@ const cu = () => {
5822
5822
  }), 500), setIFramePath: (c) => {
5823
5823
  gs = c;
5824
5824
  }, active: t, reset: a };
5825
- }, uu = { class: "stack-tab__container" }, fu = ["src"], du = /* @__PURE__ */ Te({
5825
+ }, uu = { class: "stack-tab__container" }, fu = ["src"], du = /* @__PURE__ */ Ne({
5826
5826
  __name: "StackTabs",
5827
5827
  props: {
5828
5828
  defaultTabs: { default: () => [] },
@@ -6021,7 +6021,7 @@ const mu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
6021
6021
  });
6022
6022
  }
6023
6023
  };
6024
- }, ku = /* @__PURE__ */ Te({
6024
+ }, ku = /* @__PURE__ */ Ne({
6025
6025
  __name: "iframe",
6026
6026
  setup(e) {
6027
6027
  return Nu(), (t, n) => (Z(), ue("div"));
@@ -6032,9 +6032,9 @@ const mu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
6032
6032
  r();
6033
6033
  });
6034
6034
  const n = () => {
6035
- e.emit(Ne.PAGE_LOADING, { tId: t.tId, value: !0 });
6035
+ e.emit(ve.PAGE_LOADING, { tId: t.tId, value: !0 });
6036
6036
  }, r = () => {
6037
- e.emit(Ne.PAGE_LOADING, { tId: t.tId, value: !1 });
6037
+ e.emit(ve.PAGE_LOADING, { tId: t.tId, value: !1 });
6038
6038
  };
6039
6039
  return { openTabLoading: n, closeTabLoading: r };
6040
6040
  }, Ou = ol({
@@ -6043,7 +6043,7 @@ const mu = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
6043
6043
  fallbackLocale: "en-US"
6044
6044
  }), Su = {
6045
6045
  install(e) {
6046
- Tu("0.1.17"), e.component("VueStackTabs", du).use(Kl).use(Ou);
6046
+ Tu("0.1.18"), e.component("VueStackTabs", du).use(Kl).use(Ou);
6047
6047
  }
6048
6048
  };
6049
6049
  export {
@@ -8,14 +8,14 @@
8
8
  * (c) 2024 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
10
  */function la(e,t,n){return{line:e,column:t,offset:n}}function sn(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const ca=/\{([0-9a-zA-Z]+)\}/g;function ua(e,...t){return t.length===1&&fa(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ca,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Zn=Object.assign,Jn=e=>typeof e=="string",fa=e=>e!==null&&typeof e=="object";function Qn(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const U={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},da={[U.EXPECTED_TOKEN]:"Expected token: '{0}'",[U.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[U.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[U.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[U.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[U.EMPTY_PLACEHOLDER]:"Empty placeholder",[U.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[U.INVALID_LINKED_FORMAT]:"Invalid linked format",[U.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[U.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[U.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[U.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[U.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function tt(e,t,n={}){const{domain:r,messages:a,args:s}=n,o=ua((a||da)[e]||"",...s||[]),i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function ma(e){throw e}const _a=/<\/?[\w\s="/.':;#-\/]+>/,ha=e=>_a.test(e),Se=" ",pa="\r",ce=`
11
- `,ga="\u2028",ba="\u2029";function Ea(e){const t=e;let n=0,r=1,a=1,s=0;const o=O=>t[O]===pa&&t[O+1]===ce,i=O=>t[O]===ce,c=O=>t[O]===ba,u=O=>t[O]===ga,_=O=>o(O)||i(O)||c(O)||u(O),h=()=>n,d=()=>r,N=()=>a,S=()=>s,L=O=>o(O)||c(O)||u(O)?ce:t[O],y=()=>L(n),m=()=>L(n+s);function b(){return s=0,_(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function T(){return o(n+s)&&s++,s++,t[n+s]}function g(){n=0,r=1,a=1,s=0}function k(O=0){s=O}function E(){const O=n+s;for(;O!==n;)b();s=0}return{index:h,line:d,column:N,peekOffset:S,charAt:L,currentChar:y,currentPeek:m,next:b,peek:T,reset:g,resetPeek:k,skipToPeek:E}}const Me=void 0,Ta=".",er="'",Na="tokenizer";function Oa(e,t={}){const n=t.location!==!1,r=Ea(e),a=()=>r.index(),s=()=>la(r.line(),r.column(),r.index()),o=s(),i=a(),c={currentType:14,offset:i,startLoc:o,endLoc:o,lastType:14,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:_}=t;function h(p,f,I,...F){const $=u();if(f.column+=I,f.offset+=I,_){const X=n?sn($.startLoc,f):null,ke=tt(p,X,{domain:Na,args:F});_(ke)}}function d(p,f,I){p.endLoc=s(),p.currentType=f;const F={type:f};return n&&(F.loc=sn(p.startLoc,p.endLoc)),I!=null&&(F.value=I),F}const N=p=>d(p,14);function S(p,f){return p.currentChar()===f?(p.next(),f):(h(U.EXPECTED_TOKEN,s(),0,f),"")}function L(p){let f="";for(;p.currentPeek()===Se||p.currentPeek()===ce;)f+=p.currentPeek(),p.peek();return f}function y(p){const f=L(p);return p.skipToPeek(),f}function m(p){if(p===Me)return!1;const f=p.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function b(p){if(p===Me)return!1;const f=p.charCodeAt(0);return f>=48&&f<=57}function T(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=m(p.currentPeek());return p.resetPeek(),F}function g(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=p.currentPeek()==="-"?p.peek():p.currentPeek(),$=b(F);return p.resetPeek(),$}function k(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=p.currentPeek()===er;return p.resetPeek(),F}function E(p,f){const{currentType:I}=f;if(I!==8)return!1;L(p);const F=p.currentPeek()===".";return p.resetPeek(),F}function O(p,f){const{currentType:I}=f;if(I!==9)return!1;L(p);const F=m(p.currentPeek());return p.resetPeek(),F}function w(p,f){const{currentType:I}=f;if(!(I===8||I===12))return!1;L(p);const F=p.currentPeek()===":";return p.resetPeek(),F}function R(p,f){const{currentType:I}=f;if(I!==10)return!1;const F=()=>{const X=p.currentPeek();return X==="{"?m(p.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===Se||!X?!1:X===ce?(p.peek(),F()):m(X)},$=F();return p.resetPeek(),$}function Y(p){L(p);const f=p.currentPeek()==="|";return p.resetPeek(),f}function oe(p){const f=L(p),I=p.currentPeek()==="%"&&p.peek()==="{";return p.resetPeek(),{isModulo:I,hasSpace:f.length>0}}function v(p,f=!0){const I=($=!1,X="",ke=!1)=>{const Pe=p.currentPeek();return Pe==="{"?X==="%"?!1:$:Pe==="@"||!Pe?X==="%"?!0:$:Pe==="%"?(p.peek(),I($,"%",!0)):Pe==="|"?X==="%"||ke?!0:!(X===Se||X===ce):Pe===Se?(p.peek(),I(!0,Se,ke)):Pe===ce?(p.peek(),I(!0,ce,ke)):!0},F=I();return f&&p.resetPeek(),F}function C(p,f){const I=p.currentChar();return I===Me?Me:f(I)?(p.next(),I):null}function x(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36})}function D(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57})}function V(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ee(p){let f="",I="";for(;f=D(p);)I+=f;return I}function te(p){y(p);const f=p.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,s(),0,f),p.next(),"%"}function pe(p){let f="";for(;;){const I=p.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(v(p))f+=I,p.next();else break;else if(I===Se||I===ce)if(v(p))f+=I,p.next();else{if(Y(p))break;f+=I,p.next()}else f+=I,p.next()}return f}function me(p){y(p);let f="",I="";for(;f=x(p);)I+=f;return p.currentChar()===Me&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I}function We(p){y(p);let f="";return p.currentChar()==="-"?(p.next(),f+=`-${ee(p)}`):f+=ee(p),p.currentChar()===Me&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),f}function _e(p){y(p),S(p,"'");let f="",I="";const F=X=>X!==er&&X!==ce;for(;f=C(p,F);)f==="\\"?I+=lt(p):I+=f;const $=p.currentChar();return $===ce||$===Me?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),$===ce&&(p.next(),S(p,"'")),I):(S(p,"'"),I)}function lt(p){const f=p.currentChar();switch(f){case"\\":case"'":return p.next(),`\\${f}`;case"u":return ct(p,f,4);case"U":return ct(p,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function ct(p,f,I){S(p,f);let F="";for(let $=0;$<I;$++){const X=V(p);if(!X){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${F}${p.currentChar()}`);break}F+=X}return`\\${f}${F}`}function kt(p){y(p);let f="",I="";const F=$=>$!=="{"&&$!=="}"&&$!==Se&&$!==ce;for(;f=C(p,F);)I+=f;return I}function At(p){let f="",I="";for(;f=x(p);)I+=f;return I}function St(p){const f=(I=!1,F)=>{const $=p.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Se?F:$===ce||$===Ta?(F+=$,p.next(),f(I,F)):(F+=$,p.next(),f(!0,F))};return f(!1,"")}function ut(p){y(p);const f=S(p,"|");return y(p),f}function Je(p,f){let I=null;switch(p.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),p.next(),I=d(f,2,"{"),y(p),f.braceNest++,I;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,s(),0),p.next(),I=d(f,3,"}"),f.braceNest--,f.braceNest>0&&y(p),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),I;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I=Ge(p,f)||N(f),f.braceNest=0,I;default:let $=!0,X=!0,ke=!0;if(Y(p))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,I;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,Qe(p,f);if($=T(p,f))return I=d(f,5,me(p)),y(p),I;if(X=g(p,f))return I=d(f,6,We(p)),y(p),I;if(ke=k(p,f))return I=d(f,7,_e(p)),y(p),I;if(!$&&!X&&!ke)return I=d(f,13,kt(p)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,I.value),y(p),I;break}return I}function Ge(p,f){const{currentType:I}=f;let F=null;const $=p.currentChar();switch((I===8||I===9||I===12||I===10)&&($===ce||$===Se)&&h(U.INVALID_LINKED_FORMAT,s(),0),$){case"@":return p.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return y(p),p.next(),d(f,9,".");case":":return y(p),p.next(),d(f,10,":");default:return Y(p)?(F=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,F):E(p,f)||w(p,f)?(y(p),Ge(p,f)):O(p,f)?(y(p),d(f,12,At(p))):R(p,f)?(y(p),$==="{"?Je(p,f)||F:d(f,11,St(p))):(I===8&&h(U.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,Qe(p,f))}}function Qe(p,f){let I={type:14};if(f.braceNest>0)return Je(p,f)||N(f);if(f.inLinked)return Ge(p,f)||N(f);switch(p.currentChar()){case"{":return Je(p,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,s(),0),p.next(),d(f,3,"}");case"@":return Ge(p,f)||N(f);default:if(Y(p))return I=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,I;const{isModulo:$,hasSpace:X}=oe(p);if($)return X?d(f,0,pe(p)):d(f,4,te(p));if(v(p))return d(f,0,pe(p));break}return I}function Ct(){const{currentType:p,offset:f,startLoc:I,endLoc:F}=c;return c.lastType=p,c.lastOffset=f,c.lastStartLoc=I,c.lastEndLoc=F,c.offset=a(),c.startLoc=s(),r.currentChar()===Me?d(c,14):Qe(r,c)}return{nextToken:Ct,currentOffset:a,currentPosition:s,context:u}}const va="parser",Ia=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function La(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ya(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,T,g,...k){const E=m.currentPosition();if(E.offset+=g,E.column+=g,n){const O=t?sn(T,E):null,w=tt(b,O,{domain:va,args:k});n(w)}}function a(m,b,T){const g={type:m};return t&&(g.start=b,g.end=b,g.loc={start:T,end:T}),g}function s(m,b,T,g){g&&(m.type=g),t&&(m.end=b,m.loc&&(m.loc.end=T))}function o(m,b){const T=m.context(),g=a(3,T.offset,T.startLoc);return g.value=b,s(g,m.currentOffset(),m.currentPosition()),g}function i(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(5,g,k);return E.index=parseInt(b,10),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function c(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(4,g,k);return E.key=b,m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function u(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(9,g,k);return E.value=b.replace(Ia,La),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function _(m){const b=m.nextToken(),T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(8,g,k);return b.type!==12?(r(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",s(E,g,k),{nextConsumeToken:b,node:E}):(b.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,ve(b)),E.value=b.value||"",s(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,b){const T=m.context(),g=a(7,T.offset,T.startLoc);return g.value=b,s(g,m.currentOffset(),m.currentPosition()),g}function d(m){const b=m.context(),T=a(6,b.offset,b.startLoc);let g=m.nextToken();if(g.type===9){const k=_(m);T.modifier=k.node,g=k.nextConsumeToken||m.nextToken()}switch(g.type!==10&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),g=m.nextToken(),g.type===2&&(g=m.nextToken()),g.type){case 11:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=h(m,g.value||"");break;case 5:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=c(m,g.value||"");break;case 6:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=i(m,g.value||"");break;case 7:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=u(m,g.value||"");break;default:r(m,U.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const k=m.context(),E=a(7,k.offset,k.startLoc);return E.value="",s(E,k.offset,k.startLoc),T.key=E,s(T,k.offset,k.startLoc),{nextConsumeToken:g,node:T}}return s(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const b=m.context(),T=b.currentType===1?m.currentOffset():b.offset,g=b.currentType===1?b.endLoc:b.startLoc,k=a(2,T,g);k.items=[];let E=null;do{const R=E||m.nextToken();switch(E=null,R.type){case 0:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(o(m,R.value||""));break;case 6:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(i(m,R.value||""));break;case 5:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(c(m,R.value||""));break;case 7:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(u(m,R.value||""));break;case 8:const Y=d(m);k.items.push(Y.node),E=Y.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const O=b.currentType===1?b.lastOffset:m.currentOffset(),w=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(k,O,w),k}function S(m,b,T,g){const k=m.context();let E=g.items.length===0;const O=a(1,b,T);O.cases=[],O.cases.push(g);do{const w=N(m);E||(E=w.items.length===0),O.cases.push(w)}while(k.currentType!==14);return E&&r(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),s(O,m.currentOffset(),m.currentPosition()),O}function L(m){const b=m.context(),{offset:T,startLoc:g}=b,k=N(m);return b.currentType===14?k:S(m,T,g,k)}function y(m){const b=Oa(m,Zn({},e)),T=b.context(),g=a(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=m),g.body=L(b),e.onCacheKey&&(g.cacheKey=e.onCacheKey(m)),T.currentType!==14&&r(b,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),s(g,b.currentOffset(),b.currentPosition()),g}return{parse:y}}function ve(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 ka(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function tr(e,t){for(let n=0;n<e.length;n++)an(e[n],t)}function an(e,t){switch(e.type){case 1:tr(e.cases,t),t.helper("plural");break;case 2:tr(e.items,t);break;case 6:an(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 Aa(e,t={}){const n=ka(e);n.helper("normalize"),e.body&&an(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Sa(e){const t=e.body;return t.type===2?nr(t):t.cases.forEach(n=>nr(n)),e}function nr(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Qn(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ca="minifier";function nt(e){switch(e.t=e.type,e.type){case 0:const t=e;nt(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let _=0;_<r.length;_++)nt(r[_]);n.c=r,delete n.cases;break;case 2:const a=e,s=a.items;for(let _=0;_<s.length;_++)nt(s[_]);a.i=s,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;nt(i.key),i.k=i.key,delete i.key,i.modifier&&(nt(i.modifier),i.m=i.modifier,delete i.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw tt(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ca,args:[e.type]})}delete e.type}const wa="parser";function Ra(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:s}=t,o=t.location!==!1,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:s,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const c=()=>i;function u(y,m){i.code+=y}function _(y,m=!0){const b=m?a:"";u(s?b+" ".repeat(y):b)}function h(y=!0){const m=++i.indentLevel;y&&_(m)}function d(y=!0){const m=--i.indentLevel;y&&_(m)}function N(){_(i.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function Pa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),rt(e,t.key),t.modifier?(e.push(", "),rt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Da(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(rt(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Ma(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s<a&&(rt(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Fa(e,t){t.body?rt(e,t.body):e.push("null")}function rt(e,t){const{helper:n}=e;switch(t.type){case 0:Fa(e,t);break;case 1:Ma(e,t);break;case 2:Da(e,t);break;case 6:Pa(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 tt(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:wa,args:[t.type]})}}const xa=(e,t={})=>{const n=Jn(t.mode)?t.mode:"normal",r=Jn(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
11
+ `,ga="\u2028",ba="\u2029";function Ea(e){const t=e;let n=0,r=1,a=1,s=0;const o=O=>t[O]===pa&&t[O+1]===ce,i=O=>t[O]===ce,c=O=>t[O]===ba,u=O=>t[O]===ga,_=O=>o(O)||i(O)||c(O)||u(O),h=()=>n,d=()=>r,N=()=>a,S=()=>s,L=O=>o(O)||c(O)||u(O)?ce:t[O],y=()=>L(n),m=()=>L(n+s);function b(){return s=0,_(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function T(){return o(n+s)&&s++,s++,t[n+s]}function g(){n=0,r=1,a=1,s=0}function k(O=0){s=O}function E(){const O=n+s;for(;O!==n;)b();s=0}return{index:h,line:d,column:N,peekOffset:S,charAt:L,currentChar:y,currentPeek:m,next:b,peek:T,reset:g,resetPeek:k,skipToPeek:E}}const Me=void 0,Ta=".",er="'",Na="tokenizer";function Oa(e,t={}){const n=t.location!==!1,r=Ea(e),a=()=>r.index(),s=()=>la(r.line(),r.column(),r.index()),o=s(),i=a(),c={currentType:14,offset:i,startLoc:o,endLoc:o,lastType:14,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:_}=t;function h(p,f,I,...F){const $=u();if(f.column+=I,f.offset+=I,_){const X=n?sn($.startLoc,f):null,ke=tt(p,X,{domain:Na,args:F});_(ke)}}function d(p,f,I){p.endLoc=s(),p.currentType=f;const F={type:f};return n&&(F.loc=sn(p.startLoc,p.endLoc)),I!=null&&(F.value=I),F}const N=p=>d(p,14);function S(p,f){return p.currentChar()===f?(p.next(),f):(h(U.EXPECTED_TOKEN,s(),0,f),"")}function L(p){let f="";for(;p.currentPeek()===Se||p.currentPeek()===ce;)f+=p.currentPeek(),p.peek();return f}function y(p){const f=L(p);return p.skipToPeek(),f}function m(p){if(p===Me)return!1;const f=p.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function b(p){if(p===Me)return!1;const f=p.charCodeAt(0);return f>=48&&f<=57}function T(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=m(p.currentPeek());return p.resetPeek(),F}function g(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=p.currentPeek()==="-"?p.peek():p.currentPeek(),$=b(F);return p.resetPeek(),$}function k(p,f){const{currentType:I}=f;if(I!==2)return!1;L(p);const F=p.currentPeek()===er;return p.resetPeek(),F}function E(p,f){const{currentType:I}=f;if(I!==8)return!1;L(p);const F=p.currentPeek()===".";return p.resetPeek(),F}function O(p,f){const{currentType:I}=f;if(I!==9)return!1;L(p);const F=m(p.currentPeek());return p.resetPeek(),F}function w(p,f){const{currentType:I}=f;if(!(I===8||I===12))return!1;L(p);const F=p.currentPeek()===":";return p.resetPeek(),F}function R(p,f){const{currentType:I}=f;if(I!==10)return!1;const F=()=>{const X=p.currentPeek();return X==="{"?m(p.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===Se||!X?!1:X===ce?(p.peek(),F()):m(X)},$=F();return p.resetPeek(),$}function Y(p){L(p);const f=p.currentPeek()==="|";return p.resetPeek(),f}function oe(p){const f=L(p),I=p.currentPeek()==="%"&&p.peek()==="{";return p.resetPeek(),{isModulo:I,hasSpace:f.length>0}}function v(p,f=!0){const I=($=!1,X="",ke=!1)=>{const Pe=p.currentPeek();return Pe==="{"?X==="%"?!1:$:Pe==="@"||!Pe?X==="%"?!0:$:Pe==="%"?(p.peek(),I($,"%",!0)):Pe==="|"?X==="%"||ke?!0:!(X===Se||X===ce):Pe===Se?(p.peek(),I(!0,Se,ke)):Pe===ce?(p.peek(),I(!0,ce,ke)):!0},F=I();return f&&p.resetPeek(),F}function C(p,f){const I=p.currentChar();return I===Me?Me:f(I)?(p.next(),I):null}function x(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36})}function D(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57})}function V(p){return C(p,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ee(p){let f="",I="";for(;f=D(p);)I+=f;return I}function te(p){y(p);const f=p.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,s(),0,f),p.next(),"%"}function ge(p){let f="";for(;;){const I=p.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(v(p))f+=I,p.next();else break;else if(I===Se||I===ce)if(v(p))f+=I,p.next();else{if(Y(p))break;f+=I,p.next()}else f+=I,p.next()}return f}function me(p){y(p);let f="",I="";for(;f=x(p);)I+=f;return p.currentChar()===Me&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I}function We(p){y(p);let f="";return p.currentChar()==="-"?(p.next(),f+=`-${ee(p)}`):f+=ee(p),p.currentChar()===Me&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),f}function _e(p){y(p),S(p,"'");let f="",I="";const F=X=>X!==er&&X!==ce;for(;f=C(p,F);)f==="\\"?I+=lt(p):I+=f;const $=p.currentChar();return $===ce||$===Me?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),$===ce&&(p.next(),S(p,"'")),I):(S(p,"'"),I)}function lt(p){const f=p.currentChar();switch(f){case"\\":case"'":return p.next(),`\\${f}`;case"u":return ct(p,f,4);case"U":return ct(p,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function ct(p,f,I){S(p,f);let F="";for(let $=0;$<I;$++){const X=V(p);if(!X){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${F}${p.currentChar()}`);break}F+=X}return`\\${f}${F}`}function kt(p){y(p);let f="",I="";const F=$=>$!=="{"&&$!=="}"&&$!==Se&&$!==ce;for(;f=C(p,F);)I+=f;return I}function At(p){let f="",I="";for(;f=x(p);)I+=f;return I}function St(p){const f=(I=!1,F)=>{const $=p.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Se?F:$===ce||$===Ta?(F+=$,p.next(),f(I,F)):(F+=$,p.next(),f(!0,F))};return f(!1,"")}function ut(p){y(p);const f=S(p,"|");return y(p),f}function Je(p,f){let I=null;switch(p.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),p.next(),I=d(f,2,"{"),y(p),f.braceNest++,I;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,s(),0),p.next(),I=d(f,3,"}"),f.braceNest--,f.braceNest>0&&y(p),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),I;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I=Ge(p,f)||N(f),f.braceNest=0,I;default:let $=!0,X=!0,ke=!0;if(Y(p))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,s(),0),I=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,I;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,Qe(p,f);if($=T(p,f))return I=d(f,5,me(p)),y(p),I;if(X=g(p,f))return I=d(f,6,We(p)),y(p),I;if(ke=k(p,f))return I=d(f,7,_e(p)),y(p),I;if(!$&&!X&&!ke)return I=d(f,13,kt(p)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,I.value),y(p),I;break}return I}function Ge(p,f){const{currentType:I}=f;let F=null;const $=p.currentChar();switch((I===8||I===9||I===12||I===10)&&($===ce||$===Se)&&h(U.INVALID_LINKED_FORMAT,s(),0),$){case"@":return p.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return y(p),p.next(),d(f,9,".");case":":return y(p),p.next(),d(f,10,":");default:return Y(p)?(F=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,F):E(p,f)||w(p,f)?(y(p),Ge(p,f)):O(p,f)?(y(p),d(f,12,At(p))):R(p,f)?(y(p),$==="{"?Je(p,f)||F:d(f,11,St(p))):(I===8&&h(U.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,Qe(p,f))}}function Qe(p,f){let I={type:14};if(f.braceNest>0)return Je(p,f)||N(f);if(f.inLinked)return Ge(p,f)||N(f);switch(p.currentChar()){case"{":return Je(p,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,s(),0),p.next(),d(f,3,"}");case"@":return Ge(p,f)||N(f);default:if(Y(p))return I=d(f,1,ut(p)),f.braceNest=0,f.inLinked=!1,I;const{isModulo:$,hasSpace:X}=oe(p);if($)return X?d(f,0,ge(p)):d(f,4,te(p));if(v(p))return d(f,0,ge(p));break}return I}function Ct(){const{currentType:p,offset:f,startLoc:I,endLoc:F}=c;return c.lastType=p,c.lastOffset=f,c.lastStartLoc=I,c.lastEndLoc=F,c.offset=a(),c.startLoc=s(),r.currentChar()===Me?d(c,14):Qe(r,c)}return{nextToken:Ct,currentOffset:a,currentPosition:s,context:u}}const va="parser",Ia=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function La(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ya(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,T,g,...k){const E=m.currentPosition();if(E.offset+=g,E.column+=g,n){const O=t?sn(T,E):null,w=tt(b,O,{domain:va,args:k});n(w)}}function a(m,b,T){const g={type:m};return t&&(g.start=b,g.end=b,g.loc={start:T,end:T}),g}function s(m,b,T,g){g&&(m.type=g),t&&(m.end=b,m.loc&&(m.loc.end=T))}function o(m,b){const T=m.context(),g=a(3,T.offset,T.startLoc);return g.value=b,s(g,m.currentOffset(),m.currentPosition()),g}function i(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(5,g,k);return E.index=parseInt(b,10),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function c(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(4,g,k);return E.key=b,m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function u(m,b){const T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(9,g,k);return E.value=b.replace(Ia,La),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function _(m){const b=m.nextToken(),T=m.context(),{lastOffset:g,lastStartLoc:k}=T,E=a(8,g,k);return b.type!==12?(r(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",s(E,g,k),{nextConsumeToken:b,node:E}):(b.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,ve(b)),E.value=b.value||"",s(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,b){const T=m.context(),g=a(7,T.offset,T.startLoc);return g.value=b,s(g,m.currentOffset(),m.currentPosition()),g}function d(m){const b=m.context(),T=a(6,b.offset,b.startLoc);let g=m.nextToken();if(g.type===9){const k=_(m);T.modifier=k.node,g=k.nextConsumeToken||m.nextToken()}switch(g.type!==10&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),g=m.nextToken(),g.type===2&&(g=m.nextToken()),g.type){case 11:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=h(m,g.value||"");break;case 5:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=c(m,g.value||"");break;case 6:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=i(m,g.value||"");break;case 7:g.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(g)),T.key=u(m,g.value||"");break;default:r(m,U.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const k=m.context(),E=a(7,k.offset,k.startLoc);return E.value="",s(E,k.offset,k.startLoc),T.key=E,s(T,k.offset,k.startLoc),{nextConsumeToken:g,node:T}}return s(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const b=m.context(),T=b.currentType===1?m.currentOffset():b.offset,g=b.currentType===1?b.endLoc:b.startLoc,k=a(2,T,g);k.items=[];let E=null;do{const R=E||m.nextToken();switch(E=null,R.type){case 0:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(o(m,R.value||""));break;case 6:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(i(m,R.value||""));break;case 5:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(c(m,R.value||""));break;case 7:R.value==null&&r(m,U.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ve(R)),k.items.push(u(m,R.value||""));break;case 8:const Y=d(m);k.items.push(Y.node),E=Y.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const O=b.currentType===1?b.lastOffset:m.currentOffset(),w=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(k,O,w),k}function S(m,b,T,g){const k=m.context();let E=g.items.length===0;const O=a(1,b,T);O.cases=[],O.cases.push(g);do{const w=N(m);E||(E=w.items.length===0),O.cases.push(w)}while(k.currentType!==14);return E&&r(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),s(O,m.currentOffset(),m.currentPosition()),O}function L(m){const b=m.context(),{offset:T,startLoc:g}=b,k=N(m);return b.currentType===14?k:S(m,T,g,k)}function y(m){const b=Oa(m,Zn({},e)),T=b.context(),g=a(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=m),g.body=L(b),e.onCacheKey&&(g.cacheKey=e.onCacheKey(m)),T.currentType!==14&&r(b,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),s(g,b.currentOffset(),b.currentPosition()),g}return{parse:y}}function ve(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 ka(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function tr(e,t){for(let n=0;n<e.length;n++)an(e[n],t)}function an(e,t){switch(e.type){case 1:tr(e.cases,t),t.helper("plural");break;case 2:tr(e.items,t);break;case 6:an(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 Aa(e,t={}){const n=ka(e);n.helper("normalize"),e.body&&an(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Sa(e){const t=e.body;return t.type===2?nr(t):t.cases.forEach(n=>nr(n)),e}function nr(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Qn(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ca="minifier";function nt(e){switch(e.t=e.type,e.type){case 0:const t=e;nt(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let _=0;_<r.length;_++)nt(r[_]);n.c=r,delete n.cases;break;case 2:const a=e,s=a.items;for(let _=0;_<s.length;_++)nt(s[_]);a.i=s,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;nt(i.key),i.k=i.key,delete i.key,i.modifier&&(nt(i.modifier),i.m=i.modifier,delete i.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw tt(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ca,args:[e.type]})}delete e.type}const wa="parser";function Ra(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:s}=t,o=t.location!==!1,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:s,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const c=()=>i;function u(y,m){i.code+=y}function _(y,m=!0){const b=m?a:"";u(s?b+" ".repeat(y):b)}function h(y=!0){const m=++i.indentLevel;y&&_(m)}function d(y=!0){const m=--i.indentLevel;y&&_(m)}function N(){_(i.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function Pa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),rt(e,t.key),t.modifier?(e.push(", "),rt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Da(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(rt(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Ma(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s<a&&(rt(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Fa(e,t){t.body?rt(e,t.body):e.push("null")}function rt(e,t){const{helper:n}=e;switch(t.type){case 0:Fa(e,t);break;case 1:Ma(e,t);break;case 2:Da(e,t);break;case 6:Pa(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 tt(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:wa,args:[t.type]})}}const xa=(e,t={})=>{const n=Jn(t.mode)?t.mode:"normal",r=Jn(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
12
  `,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=Ra(e,{mode:n,filename:r,sourceMap:a,breakLineCode:s,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),i.length>0&&(c.push(`const { ${Qn(i.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),rt(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:_}=c.context();return{ast:e,code:u,map:_?_.toJSON():void 0}};function Ua(e,t={}){const n=Zn({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,i=ya(n).parse(e);return r?(s&&Sa(i),a&&nt(i),{ast:i,code:""}):(Aa(i,n),xa(i,n))}/*!
13
13
  * core-base v9.10.1
14
14
  * (c) 2024 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function Va(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ae().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Fe=[];Fe[0]={w:[0],i:[3,0],"[":[4],o:[7]},Fe[1]={w:[1],".":[2],"[":[4],o:[7]},Fe[2]={w:[2],i:[3,0],0:[3,0]},Fe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Fe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Fe[5]={"'":[4,0],o:8,l:[5,0]},Fe[6]={'"':[4,0],o:8,l:[6,0]};const $a=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ba(e){return $a.test(e)}function Wa(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 Ga(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 Ha(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ba(t)?Wa(t):"*"+t}function ja(e){const t=[];let n=-1,r=0,a=0,s,o,i,c,u,_,h;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--,r=4,d[0]();else{if(a=0,o===void 0||(o=Ha(o),o===!1))return!1;d[1]()}};function N(){const S=e[n+1];if(r===5&&S==="'"||r===6&&S==='"')return n++,i="\\"+S,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&N())){if(c=Ga(s),h=Fe[r],u=h[c]||h.l||8,u===8||(r=u[0],u[1]!==void 0&&(_=d[u[1]],_&&(i=s,_()===!1))))return;if(r===7)return t}}const rr=new Map;function Ya(e,t){return j(e)?e[t]:null}function Xa(e,t){if(!j(e))return null;let n=rr.get(t);if(n||(n=ja(t),n&&rr.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const o=a[n[s]];if(o===void 0||K(a))return null;a=o,s++}return a}const za=e=>e,Ka=e=>"",qa="text",Za=e=>e.length===0?"":aa(e),Ja=sa;function sr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Qa(e){const t=re(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(re(e.named.count)||re(e.named.n))?re(e.named.count)?e.named.count:re(e.named.n)?e.named.n:t:t}function eo(e,t){t.count||(t.count=e),t.n||(t.n=e)}function to(e={}){const t=e.locale,n=Qa(e),r=j(e.pluralRules)&&M(t)&&K(e.pluralRules[t])?e.pluralRules[t]:sr,a=j(e.pluralRules)&&M(t)&&K(e.pluralRules[t])?sr:void 0,s=m=>m[r(n,m.length,a)],o=e.list||[],i=m=>o[m],c=e.named||{};re(e.pluralIndex)&&eo(n,c);const u=m=>c[m];function _(m){const b=K(e.messages)?e.messages(m):j(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):Ka)}const h=m=>e.modifiers?e.modifiers[m]:za,d=B(e.processor)&&K(e.processor.normalize)?e.processor.normalize:Za,N=B(e.processor)&&K(e.processor.interpolate)?e.processor.interpolate:Ja,S=B(e.processor)&&M(e.processor.type)?e.processor.type:qa,y={list:i,named:u,plural:s,linked:(m,...b)=>{const[T,g]=b;let k="text",E="";b.length===1?j(T)?(E=T.modifier||E,k=T.type||k):M(T)&&(E=T||E):b.length===2&&(M(T)&&(E=T||E),M(g)&&(k=g||k));const O=_(m)(y),w=k==="vnode"&&q(O)&&E?O[0]:O;return E?h(E)(w,k):w},message:_,type:S,interpolate:N,normalize:d,values:ie({},o,c)};return y}let dt=null;function no(e){dt=e}function ro(e,t,n){dt&&dt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const so=ao("function:translate");function ao(e){return t=>dt&&dt.emit(e,t)}const ue={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},oo={[ue.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ue.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ue.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ue.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ue.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ue.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ue.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 Ye(e,...t){return tn(oo[e],...t)}const ar=U.__EXTEND_POINT__,Xe=nn(ar),ae={INVALID_ARGUMENT:ar,INVALID_DATE_ARGUMENT:Xe(),INVALID_ISO_DATE_ARGUMENT:Xe(),NOT_SUPPORT_NON_STRING_MESSAGE:Xe(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Xe(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Xe(),NOT_SUPPORT_LOCALE_TYPE:Xe(),__EXTEND_POINT__:Xe()};function Ie(e){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:io}:void 0)}const io={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function on(e,t){return t.locale!=null?or(t.locale):or(e.locale)}let ln;function or(e){if(M(e))return e;if(K(e)){if(e.resolvedOnce&&ln!=null)return ln;if(e.constructor.name==="Function"){const t=e();if(ra(t))throw Ie(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ln=t}else throw Ie(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ie(ae.NOT_SUPPORT_LOCALE_TYPE)}function lo(e,t,n){return[...new Set([n,...q(t)?t:j(t)?Object.keys(t):M(t)?[t]:[n]])]}function ir(e,t,n){const r=M(n)?n:st,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;q(o);)o=lr(s,o,t);const i=q(t)||!B(t)?t:t.default?t.default:null;o=M(i)?[i]:i,q(o)&&lr(s,o,!1),a.__localeChainCache.set(r,s)}return s}function lr(e,t,n){let r=!0;for(let a=0;a<t.length&&W(r);a++){const s=t[a];M(s)&&(r=co(e,t[a],n))}return r}function co(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=uo(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function uo(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(q(n)||B(n))&&n[a]&&(r=n[a])}return r}const fo="9.10.1",Mt=-1,st="en-US",Ft="",cr=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mo(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?cr(e):t==="vnode"&&j(e)&&"__v_isVNode"in e?cr(e.children):e}}let ur;function fr(e){ur=e}let dr;function _o(e){dr=e}let mr;function ho(e){mr=e}let _r=null;const po=e=>{_r=e},go=()=>_r;let hr=null;const pr=e=>{hr=e},bo=()=>hr;let gr=0;function Eo(e={}){const t=K(e.onWarn)?e.onWarn:ia,n=M(e.version)?e.version:fo,r=M(e.locale)||K(e.locale)?e.locale:st,a=K(r)?st:r,s=q(e.fallbackLocale)||B(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=B(e.messages)?e.messages:{[a]:{}},i=B(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},c=B(e.numberFormats)?e.numberFormats:{[a]:{}},u=ie({},e.modifiers||{},mo()),_=e.pluralRules||{},h=K(e.missing)?e.missing:null,d=W(e.missingWarn)||De(e.missingWarn)?e.missingWarn:!0,N=W(e.fallbackWarn)||De(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,L=!!e.unresolving,y=K(e.postTranslation)?e.postTranslation:null,m=B(e.processor)?e.processor:null,b=W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=K(e.messageCompiler)?e.messageCompiler:ur;process.env.NODE_ENV!=="production"&&K(e.messageCompiler)&&qn(Ye(ue.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=K(e.messageResolver)?e.messageResolver:dr||Ya,E=K(e.localeFallbacker)?e.localeFallbacker:mr||lo,O=j(e.fallbackContext)?e.fallbackContext:void 0,w=e,R=j(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,Y=j(w.__numberFormatters)?w.__numberFormatters:new Map,oe=j(w.__meta)?w.__meta:{};gr++;const v={version:n,cid:gr,locale:r,fallbackLocale:s,messages:o,modifiers:u,pluralRules:_,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:S,unresolving:L,postTranslation:y,processor:m,warnHtmlMessage:b,escapeParameter:T,messageCompiler:g,messageResolver:k,localeFallbacker:E,fallbackContext:O,onWarn:t,__meta:oe};return v.datetimeFormats=i,v.numberFormats=c,v.__datetimeFormatters=R,v.__numberFormatters=Y,process.env.NODE_ENV!=="production"&&(v.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ro(v,n,oe),v}function xt(e,t){return e instanceof RegExp?e.test(t):e}function br(e,t){return e instanceof RegExp?e.test(t):e}function cn(e,t,n,r,a){const{missing:s,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(s!==null){const i=s(e,n,t,a);return M(i)?i:t}else return process.env.NODE_ENV!=="production"&&br(r,t)&&o(Ye(ue.NOT_FOUND_KEY,{key:t,locale:n})),t}function mt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function un(e){return n=>To(n,e)}function To(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,a=r.c||r.cases;return e.plural(a.reduce((s,o)=>[...s,Er(e,o)],[]))}else return Er(e,n)}function Er(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((a,s)=>[...a,fn(e,s)],[]);return e.normalize(r)}}function fn(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const s=t;return e.interpolate(e.named(s.k||s.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const i=t,c=i.m||i.modifier;return e.linked(fn(e,i.k||i.key),c?fn(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const _=t;return _.v||_.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const No="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Tr(e,t){t&&ha(e)&&(tn(No,{source:e}),void 0)}const Nr=e=>e;let at=Object.create(null);const xe=e=>j(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Or(e,t={}){let n=!1;const r=t.onError||ma;return t.onError=a=>{n=!0,r(a)},{...Ua(e,t),detectError:n}}const Oo=(e,t)=>{if(!M(e))throw Ie(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=W(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Tr(e,n);const a=(t.onCacheKey||Nr)(e),s=at[a];if(s)return s;const{code:o,detectError:i}=Or(e,t),c=new Function(`return ${o}`)();return i?c:at[a]=c}};function vo(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=W(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Tr(e,n);const a=(t.onCacheKey||Nr)(e),s=at[a];if(s)return s;const{ast:o,detectError:i}=Or(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=un(o);return i?c:at[a]=c}else{if(process.env.NODE_ENV!=="production"&&!xe(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const r=at[n];return r||(at[n]=un(e))}else return un(e)}}const vr=()=>"",ge=e=>K(e);function Ir(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:i}=e,[c,u]=dn(...t),_=W(u.missingWarn)?u.missingWarn:e.missingWarn,h=W(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=W(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,S=M(u.default)||W(u.default)?W(u.default)?s?c:()=>c:u.default:n?s?c:()=>c:"",L=n||S!=="",y=on(e,u);d&&Io(u);let[m,b,T]=N?[c,y,i[y]||{}]:Lr(e,c,y,o,h,_),g=m,k=c;if(!N&&!(M(g)||xe(g)||ge(g))&&L&&(g=S,k=g),!N&&(!(M(g)||xe(g)||ge(g))||!M(b)))return a?Mt:c;if(process.env.NODE_ENV!=="production"&&M(g)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const O=()=>{E=!0},w=ge(g)?g:yr(e,c,b,g,k,O);if(E)return g;const R=Ao(e,b,T,u),Y=to(R),oe=Lo(e,w,Y),v=r?r(oe,c):oe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const C={timestamp:Date.now(),key:M(c)?c:ge(g)?g.key:"",locale:b||(ge(g)?g.locale:""),format:M(g)?g:ge(g)?g.source:"",message:v};C.meta=ie({},e.__meta,go()||{}),so(C)}return v}function Io(e){q(e.list)?e.list=e.list.map(t=>M(t)?jn(t):t):j(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=jn(e.named[t]))})}function Lr(e,t,n,r,a,s){const{messages:o,onWarn:i,messageResolver:c,localeFallbacker:u}=e,_=u(e,r,n);let h={},d,N=null,S=n,L=null;const y="translate";for(let m=0;m<_.length;m++){if(d=L=_[m],process.env.NODE_ENV!=="production"&&n!==d&&xt(a,t)&&i(Ye(ue.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:y,key:t,from:S,to:L,groupId:`${y}:${t}`})}h=o[d]||{};let b=null,T,g;if(process.env.NODE_ENV!=="production"&&Ee&&(b=window.performance.now(),T="intlify-message-resolve-start",g="intlify-message-resolve-end",he&&he(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&Ee){const E=window.performance.now(),O=e.__v_emitter;O&&b&&N&&O.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-b,groupId:`${y}:${t}`}),T&&g&&he&&je&&(he(g),je("intlify message resolve",T,g))}if(M(N)||xe(N)||ge(N))break;const k=cn(e,t,d,s,y);k!==t&&(N=k),S=L}return[N,d,h]}function yr(e,t,n,r,a,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ge(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>r;return d.locale=n,d.key=t,d}let c=null,u,_;process.env.NODE_ENV!=="production"&&Ee&&(c=window.performance.now(),u="intlify-message-compilation-start",_="intlify-message-compilation-end",he&&he(u));const h=o(r,yo(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&Ee){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:r,time:d-c,groupId:`translate:${t}`}),u&&_&&he&&je&&(he(_),je("intlify message compilation",u,_))}return h.locale=n,h.key=t,h.source=r,h}function Lo(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&Ee&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",he&&he(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&Ee){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),a&&s&&he&&je&&(he(s),je("intlify message evaluation",a,s))}return o}function dn(...e){const[t,n,r]=e,a={};if(!M(t)&&!re(t)&&!ge(t)&&!xe(t))throw Ie(ae.INVALID_ARGUMENT);const s=re(t)?String(t):(ge(t),t);return re(n)?a.plural=n:M(n)?a.default=n:B(n)&&!wt(n)?a.named=n:q(n)&&(a.list=n),re(r)?a.plural=r:M(r)?a.default=r:B(r)&&ie(a,r),[s,a]}function yo(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=ko(r),c=`Message compilation error: ${o.message}`,u=o.location&&i&&oa(i,o.location.start.offset,o.location.end.offset),_=e.__v_emitter;_&&i&&_.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>Qs(t,n,o)}}function ko(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ao(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:o,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:_}=e,d={locale:t,modifiers:a,pluralRules:s,messages:N=>{let S=o(n,N);if(S==null&&_){const[,,L]=Lr(_,N,t,i,c,u);S=o(L,N)}if(M(S)||xe(S)){let L=!1;const m=yr(e,N,t,S,N,()=>{L=!0});return L?vr:m}else return ge(S)?S:vr}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),re(r.plural)&&(d.pluralIndex=r.plural),d}const kr=typeof Intl<"u",Ar={dateTimeFormat:kr&&typeof Intl.DateTimeFormat<"u",numberFormat:kr&&typeof Intl.NumberFormat<"u"};function Sr(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Ar.dateTimeFormat)return s(Ye(ue.CANNOT_FORMAT_DATE)),Ft;const[c,u,_,h]=mn(...t),d=W(_.missingWarn)?_.missingWarn:e.missingWarn,N=W(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,S=!!_.part,L=on(e,_),y=o(e,a,L);if(!M(c)||c==="")return new Intl.DateTimeFormat(L,h).format(u);let m={},b,T=null,g=L,k=null;const E="datetime format";for(let R=0;R<y.length;R++){if(b=k=y[R],process.env.NODE_ENV!=="production"&&L!==b&&xt(N,c)&&s(Ye(ue.FALLBACK_TO_DATE_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&L!==b){const Y=e.__v_emitter;Y&&Y.emit("fallback",{type:E,key:c,from:g,to:k,groupId:`${E}:${c}`})}if(m=n[b]||{},T=m[c],B(T))break;cn(e,c,b,d,E),g=k}if(!B(T)||!M(b))return r?Mt:c;let O=`${b}__${c}`;wt(h)||(O=`${O}__${JSON.stringify(h)}`);let w=i.get(O);return w||(w=new Intl.DateTimeFormat(b,ie({},T,h)),i.set(O,w)),S?w.formatToParts(u):w.format(u)}const Cr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function mn(...e){const[t,n,r,a]=e,s={};let o={},i;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ie(ae.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(u);try{i.toISOString()}catch{throw Ie(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(ta(t)){if(isNaN(t.getTime()))throw Ie(ae.INVALID_DATE_ARGUMENT);i=t}else if(re(t))i=t;else throw Ie(ae.INVALID_ARGUMENT);return M(n)?s.key=n:B(n)&&Object.keys(n).forEach(c=>{Cr.includes(c)?o[c]=n[c]:s[c]=n[c]}),M(r)?s.locale=r:B(r)&&(o=r),B(a)&&(o=a),[s.key||"",i,s,o]}function wr(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Rr(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Ar.numberFormat)return s(Ye(ue.CANNOT_FORMAT_NUMBER)),Ft;const[c,u,_,h]=_n(...t),d=W(_.missingWarn)?_.missingWarn:e.missingWarn,N=W(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,S=!!_.part,L=on(e,_),y=o(e,a,L);if(!M(c)||c==="")return new Intl.NumberFormat(L,h).format(u);let m={},b,T=null,g=L,k=null;const E="number format";for(let R=0;R<y.length;R++){if(b=k=y[R],process.env.NODE_ENV!=="production"&&L!==b&&xt(N,c)&&s(Ye(ue.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&L!==b){const Y=e.__v_emitter;Y&&Y.emit("fallback",{type:E,key:c,from:g,to:k,groupId:`${E}:${c}`})}if(m=n[b]||{},T=m[c],B(T))break;cn(e,c,b,d,E),g=k}if(!B(T)||!M(b))return r?Mt:c;let O=`${b}__${c}`;wt(h)||(O=`${O}__${JSON.stringify(h)}`);let w=i.get(O);return w||(w=new Intl.NumberFormat(b,ie({},T,h)),i.set(O,w)),S?w.formatToParts(u):w.format(u)}const Pr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function _n(...e){const[t,n,r,a]=e,s={};let o={};if(!re(t))throw Ie(ae.INVALID_ARGUMENT);const i=t;return M(n)?s.key=n:B(n)&&Object.keys(n).forEach(c=>{Pr.includes(c)?o[c]=n[c]:s[c]=n[c]}),M(r)?s.locale=r:B(r)&&(o=r),B(a)&&(o=a),[s.key||"",i,s,o]}function Dr(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Va();function So(){return Mr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Mr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Co=typeof Proxy=="function",wo="devtools-plugin:setup",Ro="plugin:settings:set";let ot,hn;function Po(){var e;return ot!==void 0||(typeof window<"u"&&window.performance?(ot=!0,hn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ot=!0,hn=globalThis.perf_hooks.performance):ot=!1),ot}function Do(){return Po()?hn.now():Date.now()}class Mo{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(a),i=JSON.parse(o);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}s=o},now(){return Do()}},n&&n.on(Ro,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...c)=>{this.onQueue.push({method:i,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...c)=>(this.targetQueue.push({method:i,args:c,resolve:()=>{}}),this.fallbacks[i](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:i,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Fo(e,t){const n=e,r=Mr(),a=So(),s=Co&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(wo,e,t);else{const o=s?new Mo(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
16
+ */function Va(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ae().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Fe=[];Fe[0]={w:[0],i:[3,0],"[":[4],o:[7]},Fe[1]={w:[1],".":[2],"[":[4],o:[7]},Fe[2]={w:[2],i:[3,0],0:[3,0]},Fe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Fe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Fe[5]={"'":[4,0],o:8,l:[5,0]},Fe[6]={'"':[4,0],o:8,l:[6,0]};const $a=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ba(e){return $a.test(e)}function Wa(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 Ga(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 Ha(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ba(t)?Wa(t):"*"+t}function ja(e){const t=[];let n=-1,r=0,a=0,s,o,i,c,u,_,h;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--,r=4,d[0]();else{if(a=0,o===void 0||(o=Ha(o),o===!1))return!1;d[1]()}};function N(){const S=e[n+1];if(r===5&&S==="'"||r===6&&S==='"')return n++,i="\\"+S,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&N())){if(c=Ga(s),h=Fe[r],u=h[c]||h.l||8,u===8||(r=u[0],u[1]!==void 0&&(_=d[u[1]],_&&(i=s,_()===!1))))return;if(r===7)return t}}const rr=new Map;function Ya(e,t){return j(e)?e[t]:null}function Xa(e,t){if(!j(e))return null;let n=rr.get(t);if(n||(n=ja(t),n&&rr.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const o=a[n[s]];if(o===void 0||K(a))return null;a=o,s++}return a}const za=e=>e,Ka=e=>"",qa="text",Za=e=>e.length===0?"":aa(e),Ja=sa;function sr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Qa(e){const t=re(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(re(e.named.count)||re(e.named.n))?re(e.named.count)?e.named.count:re(e.named.n)?e.named.n:t:t}function eo(e,t){t.count||(t.count=e),t.n||(t.n=e)}function to(e={}){const t=e.locale,n=Qa(e),r=j(e.pluralRules)&&M(t)&&K(e.pluralRules[t])?e.pluralRules[t]:sr,a=j(e.pluralRules)&&M(t)&&K(e.pluralRules[t])?sr:void 0,s=m=>m[r(n,m.length,a)],o=e.list||[],i=m=>o[m],c=e.named||{};re(e.pluralIndex)&&eo(n,c);const u=m=>c[m];function _(m){const b=K(e.messages)?e.messages(m):j(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):Ka)}const h=m=>e.modifiers?e.modifiers[m]:za,d=B(e.processor)&&K(e.processor.normalize)?e.processor.normalize:Za,N=B(e.processor)&&K(e.processor.interpolate)?e.processor.interpolate:Ja,S=B(e.processor)&&M(e.processor.type)?e.processor.type:qa,y={list:i,named:u,plural:s,linked:(m,...b)=>{const[T,g]=b;let k="text",E="";b.length===1?j(T)?(E=T.modifier||E,k=T.type||k):M(T)&&(E=T||E):b.length===2&&(M(T)&&(E=T||E),M(g)&&(k=g||k));const O=_(m)(y),w=k==="vnode"&&q(O)&&E?O[0]:O;return E?h(E)(w,k):w},message:_,type:S,interpolate:N,normalize:d,values:ie({},o,c)};return y}let dt=null;function no(e){dt=e}function ro(e,t,n){dt&&dt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const so=ao("function:translate");function ao(e){return t=>dt&&dt.emit(e,t)}const ue={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},oo={[ue.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ue.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ue.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ue.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ue.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ue.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ue.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 Ye(e,...t){return tn(oo[e],...t)}const ar=U.__EXTEND_POINT__,Xe=nn(ar),ae={INVALID_ARGUMENT:ar,INVALID_DATE_ARGUMENT:Xe(),INVALID_ISO_DATE_ARGUMENT:Xe(),NOT_SUPPORT_NON_STRING_MESSAGE:Xe(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Xe(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Xe(),NOT_SUPPORT_LOCALE_TYPE:Xe(),__EXTEND_POINT__:Xe()};function Ie(e){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:io}:void 0)}const io={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function on(e,t){return t.locale!=null?or(t.locale):or(e.locale)}let ln;function or(e){if(M(e))return e;if(K(e)){if(e.resolvedOnce&&ln!=null)return ln;if(e.constructor.name==="Function"){const t=e();if(ra(t))throw Ie(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ln=t}else throw Ie(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ie(ae.NOT_SUPPORT_LOCALE_TYPE)}function lo(e,t,n){return[...new Set([n,...q(t)?t:j(t)?Object.keys(t):M(t)?[t]:[n]])]}function ir(e,t,n){const r=M(n)?n:st,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;q(o);)o=lr(s,o,t);const i=q(t)||!B(t)?t:t.default?t.default:null;o=M(i)?[i]:i,q(o)&&lr(s,o,!1),a.__localeChainCache.set(r,s)}return s}function lr(e,t,n){let r=!0;for(let a=0;a<t.length&&W(r);a++){const s=t[a];M(s)&&(r=co(e,t[a],n))}return r}function co(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=uo(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function uo(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(q(n)||B(n))&&n[a]&&(r=n[a])}return r}const fo="9.10.1",Mt=-1,st="en-US",Ft="",cr=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mo(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?cr(e):t==="vnode"&&j(e)&&"__v_isVNode"in e?cr(e.children):e}}let ur;function fr(e){ur=e}let dr;function _o(e){dr=e}let mr;function ho(e){mr=e}let _r=null;const po=e=>{_r=e},go=()=>_r;let hr=null;const pr=e=>{hr=e},bo=()=>hr;let gr=0;function Eo(e={}){const t=K(e.onWarn)?e.onWarn:ia,n=M(e.version)?e.version:fo,r=M(e.locale)||K(e.locale)?e.locale:st,a=K(r)?st:r,s=q(e.fallbackLocale)||B(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=B(e.messages)?e.messages:{[a]:{}},i=B(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},c=B(e.numberFormats)?e.numberFormats:{[a]:{}},u=ie({},e.modifiers||{},mo()),_=e.pluralRules||{},h=K(e.missing)?e.missing:null,d=W(e.missingWarn)||De(e.missingWarn)?e.missingWarn:!0,N=W(e.fallbackWarn)||De(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,L=!!e.unresolving,y=K(e.postTranslation)?e.postTranslation:null,m=B(e.processor)?e.processor:null,b=W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=K(e.messageCompiler)?e.messageCompiler:ur;process.env.NODE_ENV!=="production"&&K(e.messageCompiler)&&qn(Ye(ue.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=K(e.messageResolver)?e.messageResolver:dr||Ya,E=K(e.localeFallbacker)?e.localeFallbacker:mr||lo,O=j(e.fallbackContext)?e.fallbackContext:void 0,w=e,R=j(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,Y=j(w.__numberFormatters)?w.__numberFormatters:new Map,oe=j(w.__meta)?w.__meta:{};gr++;const v={version:n,cid:gr,locale:r,fallbackLocale:s,messages:o,modifiers:u,pluralRules:_,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:S,unresolving:L,postTranslation:y,processor:m,warnHtmlMessage:b,escapeParameter:T,messageCompiler:g,messageResolver:k,localeFallbacker:E,fallbackContext:O,onWarn:t,__meta:oe};return v.datetimeFormats=i,v.numberFormats=c,v.__datetimeFormatters=R,v.__numberFormatters=Y,process.env.NODE_ENV!=="production"&&(v.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ro(v,n,oe),v}function xt(e,t){return e instanceof RegExp?e.test(t):e}function br(e,t){return e instanceof RegExp?e.test(t):e}function cn(e,t,n,r,a){const{missing:s,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(s!==null){const i=s(e,n,t,a);return M(i)?i:t}else return process.env.NODE_ENV!=="production"&&br(r,t)&&o(Ye(ue.NOT_FOUND_KEY,{key:t,locale:n})),t}function mt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function un(e){return n=>To(n,e)}function To(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,a=r.c||r.cases;return e.plural(a.reduce((s,o)=>[...s,Er(e,o)],[]))}else return Er(e,n)}function Er(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((a,s)=>[...a,fn(e,s)],[]);return e.normalize(r)}}function fn(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const a=t;return a.v||a.value;case 4:const s=t;return e.interpolate(e.named(s.k||s.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const i=t,c=i.m||i.modifier;return e.linked(fn(e,i.k||i.key),c?fn(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const _=t;return _.v||_.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const No="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Tr(e,t){t&&ha(e)&&(tn(No,{source:e}),void 0)}const Nr=e=>e;let at=Object.create(null);const xe=e=>j(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Or(e,t={}){let n=!1;const r=t.onError||ma;return t.onError=a=>{n=!0,r(a)},{...Ua(e,t),detectError:n}}const Oo=(e,t)=>{if(!M(e))throw Ie(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=W(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Tr(e,n);const a=(t.onCacheKey||Nr)(e),s=at[a];if(s)return s;const{code:o,detectError:i}=Or(e,t),c=new Function(`return ${o}`)();return i?c:at[a]=c}};function vo(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=W(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Tr(e,n);const a=(t.onCacheKey||Nr)(e),s=at[a];if(s)return s;const{ast:o,detectError:i}=Or(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=un(o);return i?c:at[a]=c}else{if(process.env.NODE_ENV!=="production"&&!xe(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const r=at[n];return r||(at[n]=un(e))}else return un(e)}}const vr=()=>"",be=e=>K(e);function Ir(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:i}=e,[c,u]=dn(...t),_=W(u.missingWarn)?u.missingWarn:e.missingWarn,h=W(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=W(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,S=M(u.default)||W(u.default)?W(u.default)?s?c:()=>c:u.default:n?s?c:()=>c:"",L=n||S!=="",y=on(e,u);d&&Io(u);let[m,b,T]=N?[c,y,i[y]||{}]:Lr(e,c,y,o,h,_),g=m,k=c;if(!N&&!(M(g)||xe(g)||be(g))&&L&&(g=S,k=g),!N&&(!(M(g)||xe(g)||be(g))||!M(b)))return a?Mt:c;if(process.env.NODE_ENV!=="production"&&M(g)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const O=()=>{E=!0},w=be(g)?g:yr(e,c,b,g,k,O);if(E)return g;const R=Ao(e,b,T,u),Y=to(R),oe=Lo(e,w,Y),v=r?r(oe,c):oe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const C={timestamp:Date.now(),key:M(c)?c:be(g)?g.key:"",locale:b||(be(g)?g.locale:""),format:M(g)?g:be(g)?g.source:"",message:v};C.meta=ie({},e.__meta,go()||{}),so(C)}return v}function Io(e){q(e.list)?e.list=e.list.map(t=>M(t)?jn(t):t):j(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=jn(e.named[t]))})}function Lr(e,t,n,r,a,s){const{messages:o,onWarn:i,messageResolver:c,localeFallbacker:u}=e,_=u(e,r,n);let h={},d,N=null,S=n,L=null;const y="translate";for(let m=0;m<_.length;m++){if(d=L=_[m],process.env.NODE_ENV!=="production"&&n!==d&&xt(a,t)&&i(Ye(ue.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:y,key:t,from:S,to:L,groupId:`${y}:${t}`})}h=o[d]||{};let b=null,T,g;if(process.env.NODE_ENV!=="production"&&Ee&&(b=window.performance.now(),T="intlify-message-resolve-start",g="intlify-message-resolve-end",he&&he(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&Ee){const E=window.performance.now(),O=e.__v_emitter;O&&b&&N&&O.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-b,groupId:`${y}:${t}`}),T&&g&&he&&je&&(he(g),je("intlify message resolve",T,g))}if(M(N)||xe(N)||be(N))break;const k=cn(e,t,d,s,y);k!==t&&(N=k),S=L}return[N,d,h]}function yr(e,t,n,r,a,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(be(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>r;return d.locale=n,d.key=t,d}let c=null,u,_;process.env.NODE_ENV!=="production"&&Ee&&(c=window.performance.now(),u="intlify-message-compilation-start",_="intlify-message-compilation-end",he&&he(u));const h=o(r,yo(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&Ee){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:r,time:d-c,groupId:`translate:${t}`}),u&&_&&he&&je&&(he(_),je("intlify message compilation",u,_))}return h.locale=n,h.key=t,h.source=r,h}function Lo(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&Ee&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",he&&he(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&Ee){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),a&&s&&he&&je&&(he(s),je("intlify message evaluation",a,s))}return o}function dn(...e){const[t,n,r]=e,a={};if(!M(t)&&!re(t)&&!be(t)&&!xe(t))throw Ie(ae.INVALID_ARGUMENT);const s=re(t)?String(t):(be(t),t);return re(n)?a.plural=n:M(n)?a.default=n:B(n)&&!wt(n)?a.named=n:q(n)&&(a.list=n),re(r)?a.plural=r:M(r)?a.default=r:B(r)&&ie(a,r),[s,a]}function yo(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=ko(r),c=`Message compilation error: ${o.message}`,u=o.location&&i&&oa(i,o.location.start.offset,o.location.end.offset),_=e.__v_emitter;_&&i&&_.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>Qs(t,n,o)}}function ko(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ao(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:o,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:_}=e,d={locale:t,modifiers:a,pluralRules:s,messages:N=>{let S=o(n,N);if(S==null&&_){const[,,L]=Lr(_,N,t,i,c,u);S=o(L,N)}if(M(S)||xe(S)){let L=!1;const m=yr(e,N,t,S,N,()=>{L=!0});return L?vr:m}else return be(S)?S:vr}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),re(r.plural)&&(d.pluralIndex=r.plural),d}const kr=typeof Intl<"u",Ar={dateTimeFormat:kr&&typeof Intl.DateTimeFormat<"u",numberFormat:kr&&typeof Intl.NumberFormat<"u"};function Sr(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Ar.dateTimeFormat)return s(Ye(ue.CANNOT_FORMAT_DATE)),Ft;const[c,u,_,h]=mn(...t),d=W(_.missingWarn)?_.missingWarn:e.missingWarn,N=W(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,S=!!_.part,L=on(e,_),y=o(e,a,L);if(!M(c)||c==="")return new Intl.DateTimeFormat(L,h).format(u);let m={},b,T=null,g=L,k=null;const E="datetime format";for(let R=0;R<y.length;R++){if(b=k=y[R],process.env.NODE_ENV!=="production"&&L!==b&&xt(N,c)&&s(Ye(ue.FALLBACK_TO_DATE_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&L!==b){const Y=e.__v_emitter;Y&&Y.emit("fallback",{type:E,key:c,from:g,to:k,groupId:`${E}:${c}`})}if(m=n[b]||{},T=m[c],B(T))break;cn(e,c,b,d,E),g=k}if(!B(T)||!M(b))return r?Mt:c;let O=`${b}__${c}`;wt(h)||(O=`${O}__${JSON.stringify(h)}`);let w=i.get(O);return w||(w=new Intl.DateTimeFormat(b,ie({},T,h)),i.set(O,w)),S?w.formatToParts(u):w.format(u)}const Cr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function mn(...e){const[t,n,r,a]=e,s={};let o={},i;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ie(ae.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(u);try{i.toISOString()}catch{throw Ie(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(ta(t)){if(isNaN(t.getTime()))throw Ie(ae.INVALID_DATE_ARGUMENT);i=t}else if(re(t))i=t;else throw Ie(ae.INVALID_ARGUMENT);return M(n)?s.key=n:B(n)&&Object.keys(n).forEach(c=>{Cr.includes(c)?o[c]=n[c]:s[c]=n[c]}),M(r)?s.locale=r:B(r)&&(o=r),B(a)&&(o=a),[s.key||"",i,s,o]}function wr(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Rr(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Ar.numberFormat)return s(Ye(ue.CANNOT_FORMAT_NUMBER)),Ft;const[c,u,_,h]=_n(...t),d=W(_.missingWarn)?_.missingWarn:e.missingWarn,N=W(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,S=!!_.part,L=on(e,_),y=o(e,a,L);if(!M(c)||c==="")return new Intl.NumberFormat(L,h).format(u);let m={},b,T=null,g=L,k=null;const E="number format";for(let R=0;R<y.length;R++){if(b=k=y[R],process.env.NODE_ENV!=="production"&&L!==b&&xt(N,c)&&s(Ye(ue.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&L!==b){const Y=e.__v_emitter;Y&&Y.emit("fallback",{type:E,key:c,from:g,to:k,groupId:`${E}:${c}`})}if(m=n[b]||{},T=m[c],B(T))break;cn(e,c,b,d,E),g=k}if(!B(T)||!M(b))return r?Mt:c;let O=`${b}__${c}`;wt(h)||(O=`${O}__${JSON.stringify(h)}`);let w=i.get(O);return w||(w=new Intl.NumberFormat(b,ie({},T,h)),i.set(O,w)),S?w.formatToParts(u):w.format(u)}const Pr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function _n(...e){const[t,n,r,a]=e,s={};let o={};if(!re(t))throw Ie(ae.INVALID_ARGUMENT);const i=t;return M(n)?s.key=n:B(n)&&Object.keys(n).forEach(c=>{Pr.includes(c)?o[c]=n[c]:s[c]=n[c]}),M(r)?s.locale=r:B(r)&&(o=r),B(a)&&(o=a),[s.key||"",i,s,o]}function Dr(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Va();function So(){return Mr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Mr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Co=typeof Proxy=="function",wo="devtools-plugin:setup",Ro="plugin:settings:set";let ot,hn;function Po(){var e;return ot!==void 0||(typeof window<"u"&&window.performance?(ot=!0,hn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ot=!0,hn=globalThis.perf_hooks.performance):ot=!1),ot}function Do(){return Po()?hn.now():Date.now()}class Mo{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const i=t.settings[o];r[o]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(a),i=JSON.parse(o);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}s=o},now(){return Do()}},n&&n.on(Ro,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...c)=>{this.onQueue.push({method:i,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...c)=>(this.targetQueue.push({method:i,args:c,resolve:()=>{}}),this.fallbacks[i](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:i,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Fo(e,t){const n=e,r=Mr(),a=So(),s=Co&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(wo,e,t);else{const o=s?new Mo(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
17
17
  * vue-i18n v9.10.1
18
18
  * (c) 2024 kazuya kawaguchi
19
19
  * Released under the MIT License.
20
- */const xo="9.10.1";function Uo(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ae().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ae().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ae().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fr=ue.__EXTEND_POINT__,Ce=nn(Fr),Z={FALLBACK_TO_ROOT:Fr,NOT_SUPPORTED_PRESERVE:Ce(),NOT_SUPPORTED_FORMATTER:Ce(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ce(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ce(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ce(),NOT_FOUND_PARENT_SCOPE:Ce(),IGNORE_OBJ_FLATTEN:Ce(),NOTICE_DROP_ALLOW_COMPOSITION:Ce(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ce()},Vo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function fe(e,...t){return tn(Vo[e],...t)}const xr=ae.__EXTEND_POINT__,de=nn(xr),H={UNEXPECTED_RETURN_TYPE:xr,INVALID_ARGUMENT:de(),MUST_BE_CALL_SETUP_TOP:de(),NOT_INSTALLED:de(),NOT_AVAILABLE_IN_LEGACY_MODE:de(),REQUIRED_VALUE:de(),INVALID_VALUE:de(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:de(),NOT_INSTALLED_WITH_PROVIDE:de(),UNEXPECTED_ERROR:de(),NOT_COMPATIBLE_LEGACY_VUE_I18N:de(),BRIDGE_SUPPORT_VUE_2_ONLY:de(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:de(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:de(),__EXTEND_POINT__:de()};function se(e,...t){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:$o,args:t}:void 0)}const $o={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},pn=Oe("__translateVNode"),gn=Oe("__datetimeParts"),bn=Oe("__numberParts"),ze=Oe("__enableEmitter"),_t=Oe("__disableEmitter"),Ur=Oe("__setPluralRules"),Vr=Oe("__injectWithOption"),En=Oe("__dispose");function ht(e){if(!j(e))return e;for(const t in e)if(Rt(e,t))if(!t.includes("."))j(e[t])&&ht(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let o=0;o<r;o++){if(n[o]in a||(a[n[o]]={}),!j(a[n[o]])){process.env.NODE_ENV!=="production"&&(fe(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),s=!0;break}a=a[n[o]]}s||(a[n[r]]=e[t],delete e[t]),j(a[n[r]])&&ht(a[n[r]])}return e}function Ut(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,o=B(n)?n:q(r)?{}:{[e]:{}};if(q(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:u}=i;c?(o[c]=o[c]||{},Dt(u,o[c])):Dt(u,o)}else M(i)&&Dt(JSON.parse(i),o)}),a==null&&s)for(const i in o)Rt(o,i)&&ht(o[i]);return o}function $r(e){return e.type}function Br(e,t,n){let r=j(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ut(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(j(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(j(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Wr(e){return l.createVNode(l.Text,null,e,0)}const Gr="__INTLIFY_META__",Hr=()=>[],Bo=()=>!1;let jr=0;function Yr(e){return(t,n,r,a)=>e(n,r,l.getCurrentInstance()||void 0,a)}const Wo=()=>{const e=l.getCurrentInstance();let t=null;return e&&(t=$r(e)[Gr])?{[Gr]:t}:null};function Tn(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,s=e.flatJson,o=Ee?l.ref:l.shallowRef,i=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&i&&qn(fe(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=W(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:st),_=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||q(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ut(u.value,e)),d=o(B(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o(B(e.numberFormats)?e.numberFormats:{[u.value]:{}});let S=n?n.missingWarn:W(e.missingWarn)||De(e.missingWarn)?e.missingWarn:!0,L=n?n.fallbackWarn:W(e.fallbackWarn)||De(e.fallbackWarn)?e.fallbackWarn:!0,y=n?n.fallbackRoot:W(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,b=K(e.missing)?e.missing:null,T=K(e.missing)?Yr(e.missing):null,g=K(e.postTranslation)?e.postTranslation:null,k=n?n.warnHtmlMessage:W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const O=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,R;R=(()=>{a&&pr(null);const A={version:xo,locale:u.value,fallbackLocale:_.value,messages:h.value,modifiers:O,pluralRules:w,missing:T===null?void 0:T,missingWarn:S,fallbackWarn:L,fallbackFormat:m,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:k,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=B(R)?R.__datetimeFormatters:void 0,A.__numberFormatters=B(R)?R.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=B(R)?R.__v_emitter:void 0);const P=Eo(A);return a&&pr(P),P})(),mt(R,u.value,_.value);function oe(){return[u.value,_.value,h.value,d.value,N.value]}const v=l.computed({get:()=>u.value,set:A=>{u.value=A,R.locale=u.value}}),C=l.computed({get:()=>_.value,set:A=>{_.value=A,R.fallbackLocale=_.value,mt(R,u.value,A)}}),x=l.computed(()=>h.value),D=l.computed(()=>d.value),V=l.computed(()=>N.value);function ee(){return K(g)?g:null}function te(A){g=A,R.postTranslation=A}function pe(){return b}function me(A){A!==null&&(T=Yr(A)),b=A,R.missing=T}function We(A,P){return A!=="translate"||!P.resolvedMessage}const _e=(A,P,z,Q,He,en)=>{oe();let ft;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(R.fallbackContext=n?bo():void 0),ft=A(R)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(R.fallbackContext=void 0)}if(z!=="translate exists"&&re(ft)&&ft===Mt||z==="translate exists"&&!ft){const[et,Ic]=P();if(process.env.NODE_ENV!=="production"&&n&&M(et)&&We(z,Ic)&&(y&&(xt(L,et)||br(S,et))&&(fe(Z.FALLBACK_TO_ROOT,{key:et,type:z}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:qs}=R;qs&&y&&qs.emit("fallback",{type:z,key:et,to:"global",groupId:`${z}:${et}`})}return n&&y?Q(n):He(et)}else{if(en(ft))return ft;throw se(H.UNEXPECTED_RETURN_TYPE)}};function lt(...A){return _e(P=>Reflect.apply(Ir,null,[P,...A]),()=>dn(...A),"translate",P=>Reflect.apply(P.t,P,[...A]),P=>P,P=>M(P))}function ct(...A){const[P,z,Q]=A;if(Q&&!j(Q))throw se(H.INVALID_ARGUMENT);return lt(P,z,ie({resolvedMessage:!0},Q||{}))}function kt(...A){return _e(P=>Reflect.apply(Sr,null,[P,...A]),()=>mn(...A),"datetime format",P=>Reflect.apply(P.d,P,[...A]),()=>Ft,P=>M(P))}function At(...A){return _e(P=>Reflect.apply(Rr,null,[P,...A]),()=>_n(...A),"number format",P=>Reflect.apply(P.n,P,[...A]),()=>Ft,P=>M(P))}function St(A){return A.map(P=>M(P)||re(P)||W(P)?Wr(String(P)):P)}const Je={normalize:St,interpolate:A=>A,type:"vnode"};function Ge(...A){return _e(P=>{let z;const Q=P;try{Q.processor=Je,z=Reflect.apply(Ir,null,[Q,...A])}finally{Q.processor=null}return z},()=>dn(...A),"translate",P=>P[pn](...A),P=>[Wr(P)],P=>q(P))}function Qe(...A){return _e(P=>Reflect.apply(Rr,null,[P,...A]),()=>_n(...A),"number format",P=>P[bn](...A),Hr,P=>M(P)||q(P))}function Ct(...A){return _e(P=>Reflect.apply(Sr,null,[P,...A]),()=>mn(...A),"datetime format",P=>P[gn](...A),Hr,P=>M(P)||q(P))}function p(A){w=A,R.pluralRules=w}function f(A,P){return _e(()=>{if(!A)return!1;const z=M(P)?P:u.value,Q=$(z),He=R.messageResolver(Q,A);return i?He!=null:xe(He)||ge(He)||M(He)},()=>[A],"translate exists",z=>Reflect.apply(z.te,z,[A,P]),Bo,z=>W(z))}function I(A){let P=null;const z=ir(R,_.value,u.value);for(let Q=0;Q<z.length;Q++){const He=h.value[z[Q]]||{},en=R.messageResolver(He,A);if(en!=null){P=en;break}}return P}function F(A){const P=I(A);return P??(n?n.tm(A)||{}:{})}function $(A){return h.value[A]||{}}function X(A,P){if(s){const z={[A]:P};for(const Q in z)Rt(z,Q)&&ht(z[Q]);P=z[A]}h.value[A]=P,R.messages=h.value}function ke(A,P){h.value[A]=h.value[A]||{};const z={[A]:P};if(s)for(const Q in z)Rt(z,Q)&&ht(z[Q]);P=z[A],Dt(P,h.value[A]),R.messages=h.value}function Pe(A){return d.value[A]||{}}function Ec(A,P){d.value[A]=P,R.datetimeFormats=d.value,wr(R,A,P)}function Tc(A,P){d.value[A]=ie(d.value[A]||{},P),R.datetimeFormats=d.value,wr(R,A,P)}function Nc(A){return N.value[A]||{}}function Oc(A,P){N.value[A]=P,R.numberFormats=N.value,Dr(R,A,P)}function vc(A,P){N.value[A]=ie(N.value[A]||{},P),R.numberFormats=N.value,Dr(R,A,P)}jr++,n&&Ee&&(l.watch(n.locale,A=>{c&&(u.value=A,R.locale=A,mt(R,u.value,_.value))}),l.watch(n.fallbackLocale,A=>{c&&(_.value=A,R.fallbackLocale=A,mt(R,u.value,_.value))}));const ne={id:jr,locale:v,fallbackLocale:C,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,_.value=n.fallbackLocale.value,mt(R,u.value,_.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:x,get modifiers(){return O},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return S},set missingWarn(A){S=A,R.missingWarn=S},get fallbackWarn(){return L},set fallbackWarn(A){L=A,R.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(A){y=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,R.fallbackFormat=m},get warnHtmlMessage(){return k},set warnHtmlMessage(A){k=A,R.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,R.escapeParameter=A},t:lt,getLocaleMessage:$,setLocaleMessage:X,mergeLocaleMessage:ke,getPostTranslationHandler:ee,setPostTranslationHandler:te,getMissingHandler:pe,setMissingHandler:me,[Ur]:p};return ne.datetimeFormats=D,ne.numberFormats=V,ne.rt=ct,ne.te=f,ne.tm=F,ne.d=kt,ne.n=At,ne.getDateTimeFormat=Pe,ne.setDateTimeFormat=Ec,ne.mergeDateTimeFormat=Tc,ne.getNumberFormat=Nc,ne.setNumberFormat=Oc,ne.mergeNumberFormat=vc,ne[Vr]=r,ne[pn]=Ge,ne[gn]=Ct,ne[bn]=Qe,process.env.NODE_ENV!=="production"&&(ne[ze]=A=>{R.__v_emitter=A},ne[_t]=()=>{R.__v_emitter=void 0}),ne}function Go(e){const t=M(e.locale)?e.locale:st,n=M(e.fallbackLocale)||q(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=K(e.missing)?e.missing:void 0,a=W(e.silentTranslationWarn)||De(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=W(e.silentFallbackWarn)||De(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=W(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,c=B(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,_=K(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=W(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let S=e.messages;if(B(e.sharedMessages)){const E=e.sharedMessages;S=Object.keys(E).reduce((w,R)=>{const Y=w[R]||(w[R]={});return ie(Y,E[R]),w},S||{})}const{__i18n:L,__root:y,__injectWithOption:m}=e,b=e.datetimeFormats,T=e.numberFormats,g=e.flatJson,k=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:S,flatJson:g,datetimeFormats:b,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:o,fallbackFormat:i,modifiers:c,pluralRules:u,postTranslation:_,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:k,__i18n:L,__root:y,__injectWithOption:m}}function Nn(e={},t){{const n=Tn(Go(e)),{__extender:r}=e,a={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"&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return W(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=W(s)?!s:s},get silentFallbackWarn(){return W(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=W(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"&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,i,c]=s,u={};let _=null,h=null;if(!M(o))throw se(H.INVALID_ARGUMENT);const d=o;return M(i)?u.locale=i:q(i)?_=i:B(i)&&(h=i),q(c)?_=c:B(c)&&(h=c),Reflect.apply(n.t,n,[d,_||h||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,i,c]=s,u={plural:1};let _=null,h=null;if(!M(o))throw se(H.INVALID_ARGUMENT);const d=o;return M(i)?u.locale=i:re(i)?u.plural=i:q(i)?_=i:B(i)&&(h=i),M(c)?u.locale=c:q(c)?_=c:B(c)&&(h=c),Reflect.apply(n.t,n,[d,_||h||{},u])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return a.__extender=r,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=s=>{const o=n;o[ze]&&o[ze](s)},a.__disableEmitter=()=>{const s=n;s[_t]&&s[_t]()}),a}}const On={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ho({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===l.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function Xr(e){return l.Fragment}const vn=l.defineComponent({name:"i18n-t",props:ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>re(e)||!isNaN(e)}},On),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Vt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const i=Ho(t,s),c=a[pn](e.keypath,i,o),u=ie({},r),_=M(e.tag)||j(e.tag)?e.tag:Xr();return l.h(_,u,c)}}});function jo(e){return q(e)&&!M(e[0])}function zr(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const o={part:!0};let i={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:j(e.format)&&(M(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((d,N)=>n.includes(N)?ie({},d,{[N]:e.format[N]}):d,{}));const c=r(e.value,o,i);let u=[o.key];q(c)?u=c.map((d,N)=>{const S=a[d.type],L=S?S({[d.type]:d.value,index:N,parts:c}):[d.value];return jo(L)&&(L[0].key=`${d.type}-${N}`),L}):M(c)&&(u=[c]);const _=ie({},s),h=M(e.tag)||j(e.tag)?e.tag:Xr();return l.h(h,_,u)}}const Kr=l.defineComponent({name:"i18n-n",props:ie({value:{type:Number,required:!0},format:{type:[String,Object]}},On),setup(e,t){const n=e.i18n||Vt({useScope:"parent",__useComponent:!0});return zr(e,t,Pr,(...r)=>n[bn](...r))}}),qr=l.defineComponent({name:"i18n-d",props:ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},On),setup(e,t){const n=e.i18n||Vt({useScope:"parent",__useComponent:!0});return zr(e,t,Cr,(...r)=>n[gn](...r))}});function Yo(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Xo(e){const t=o=>{const{instance:i,modifiers:c,value:u}=o;if(!i||!i.$)throw se(H.UNEXPECTED_ERROR);const _=Yo(e,i.$);process.env.NODE_ENV!=="production"&&c.preserve&&(fe(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=Zr(u);return[Reflect.apply(_.t,_,[...Jr(h)]),_]};return{created:(o,i)=>{const[c,u]=t(i);Ee&&e.global===u&&(o.__i18nWatcher=l.watch(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{Ee&&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 c=o.__composer,u=Zr(i);o.textContent=Reflect.apply(c.t,c,[...Jr(u)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Zr(e){if(M(e))return{path:e};if(B(e)){if(!("path"in e))throw se(H.REQUIRED_VALUE,"path");return e}else throw se(H.INVALID_VALUE)}function Jr(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,o={},i=r||{};return M(n)&&(o.locale=n),re(a)&&(o.plural=a),re(s)&&(o.plural=s),[t,i,o]}function zo(e,t,...n){const r=B(n[0])?n[0]:{},a=!!r.useI18nComponentName,s=W(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&a&&(fe(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:vn.name}),void 0),s&&([a?"i18n":vn.name,"I18nT"].forEach(o=>e.component(o,vn)),[Kr.name,"I18nN"].forEach(o=>e.component(o,Kr)),[qr.name,"I18nD"].forEach(o=>e.component(o,qr))),e.directive("t",Xo(t))}const In={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Ko={"vue-i18n-resource-inspector":"Search for scopes ..."},qo={"vue-i18n-timeline":16764185},Qr="vue-i18n: composer properties";let Ln;async function Zo(e,t){return new Promise((n,r)=>{try{Fo({id:"vue-devtools-plugin-vue-i18n",label:In["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Qr],app:e},a=>{Ln=a,a.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Jo(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&&ts(i,o.vnode.el.__VUE_I18N__):ts(i,o.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:In["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ko["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ri(o,t)});const s=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ai(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[i]=await a.getComponentInstances(o.app);s.set(o.app,i)}a.highlightElement(s.get(o.app))}else{const i=si(o.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ii(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:In["vue-i18n-timeline"],color:qo["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function es(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Jo(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${es(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function ts(e,t){const n=Qr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:yn(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 yn(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];K(r)&&"source"in r?t[n]=ni(r):xe(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:j(r)?t[n]=yn(r):t[n]=r}),t}const Qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function ei(e){return e.replace(/[<>"&]/g,ti)}function ti(e){return Qo[e]||e}function ni(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${ei(e.source)}")`:"(?)"}`}}}function ri(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${es(r)} Scope`})}}function si(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function ns(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ai(e,t){const n=ns(e.nodeId,t);return n&&(e.state=oi(n)),null}function oi(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:yn(e.messages.value)}];t[a]=s;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function pt(e,t){if(Ln){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ln.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 ii(e,t){const n=ns(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&M(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(M(e.state.value)||q(e.state.value)||j(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&W(e.state.value)&&(n.inheritLocale=e.state.value)}}function li(e,t,n){return{beforeCreate(){const r=l.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=rs(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Nn(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=rs(e,a);else{this.$i18n=Nn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Br(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=rn();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",pt)}},unmounted(){const r=l.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",pt),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(r),delete this.$i18n}}}function rs(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[Ur](t.pluralizationRules||e.pluralizationRules);const n=Ut(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const ci=Oe("global-vue-i18n");function ui(e={},t){const n=__VUE_I18N_LEGACY_API__&&W(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=W(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,i]=fi(e,n),c=Oe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&a&&(fe(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return s.get(d)||null}function _(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 a},async install(N,...S){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),B(S[0])){const m=S[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let L=null;!n&&r&&(L=Ti(N,d.global)),__VUE_I18N_FULL_INSTALL__&&zo(N,d,...S),__VUE_I18N_LEGACY_API__&&n&&N.mixin(li(i,i.__composer,d));const y=N.unmount;if(N.unmount=()=>{L&&L(),d.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Zo(N,d))throw se(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const b=rn();if(n){const T=i;T.__enableEmitter&&T.__enableEmitter(b)}else{const T=i;T[ze]&&T[ze](b)}b.on("*",pt)}},get global(){return i},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:_,__deleteInstance:h};return d}}function Vt(e={}){const t=l.getCurrentInstance();if(t==null)throw se(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(H.NOT_INSTALLED);const n=di(t),r=_i(n),a=$r(t),s=mi(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw se(H.NOT_AVAILABLE_IN_LEGACY_MODE);return bi(t,s,r,e)}if(s==="global")return Br(r,e,a),r;if(s==="parent"){let c=hi(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(fe(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=r),c}const o=n;let i=o.__getInstance(t);if(i==null){const c=ie({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),i=Tn(c),o.__composerExtend&&(i[En]=o.__composerExtend(i)),gi(o,t,i),o.__setInstance(t,i)}return i}function fi(e,t,n){const r=l.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Nn(e)):r.run(()=>Tn(e));if(a==null)throw se(H.UNEXPECTED_ERROR);return[r,a]}}function di(e){{const t=l.inject(e.isCE?ci:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function mi(e,t){return wt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function _i(e){return e.mode==="composition"?e.global:e.global.__composer}function hi(e,t,n=!1){let r=null;const a=t.root;let s=pi(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(s);i!=null&&(r=i.__composer,n&&r&&!r[Vr]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function pi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gi(e,t,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=rn();const a=n;a[ze]&&a[ze](r),r.on("*",pt)}},t),l.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",pt),a[_t]&&a[_t](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=a[En];s&&(s(),delete a[En])},t)}function bi(e,t,n,r={}){const a=t==="local",s=l.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw se(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=W(r.inheritLocale)?r.inheritLocale:!M(r.locale),i=l.ref(!a||o?n.locale.value:M(r.locale)?r.locale:st),c=l.ref(!a||o?n.fallbackLocale.value:M(r.fallbackLocale)||q(r.fallbackLocale)||B(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:i.value),u=l.ref(Ut(i.value,r)),_=l.ref(B(r.datetimeFormats)?r.datetimeFormats:{[i.value]:{}}),h=l.ref(B(r.numberFormats)?r.numberFormats:{[i.value]:{}}),d=a?n.missingWarn:W(r.missingWarn)||De(r.missingWarn)?r.missingWarn:!0,N=a?n.fallbackWarn:W(r.fallbackWarn)||De(r.fallbackWarn)?r.fallbackWarn:!0,S=a?n.fallbackRoot:W(r.fallbackRoot)?r.fallbackRoot:!0,L=!!r.fallbackFormat,y=K(r.missing)?r.missing:null,m=K(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:W(r.warnHtmlMessage)?r.warnHtmlMessage:!0,T=!!r.escapeParameter,g=a?n.modifiers:B(r.modifiers)?r.modifiers:{},k=r.pluralRules||a&&n.pluralRules;function E(){return[i.value,c.value,u.value,_.value,h.value]}const O=l.computed({get:()=>s.value?s.value.locale.value:i.value,set:f=>{s.value&&(s.value.locale.value=f),i.value=f}}),w=l.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:f=>{s.value&&(s.value.fallbackLocale.value=f),c.value=f}}),R=l.computed(()=>s.value?s.value.messages.value:u.value),Y=l.computed(()=>_.value),oe=l.computed(()=>h.value);function v(){return s.value?s.value.getPostTranslationHandler():m}function C(f){s.value&&s.value.setPostTranslationHandler(f)}function x(){return s.value?s.value.getMissingHandler():y}function D(f){s.value&&s.value.setMissingHandler(f)}function V(f){return E(),f()}function ee(...f){return s.value?V(()=>Reflect.apply(s.value.t,null,[...f])):V(()=>"")}function te(...f){return s.value?Reflect.apply(s.value.rt,null,[...f]):""}function pe(...f){return s.value?V(()=>Reflect.apply(s.value.d,null,[...f])):V(()=>"")}function me(...f){return s.value?V(()=>Reflect.apply(s.value.n,null,[...f])):V(()=>"")}function We(f){return s.value?s.value.tm(f):{}}function _e(f,I){return s.value?s.value.te(f,I):!1}function lt(f){return s.value?s.value.getLocaleMessage(f):{}}function ct(f,I){s.value&&(s.value.setLocaleMessage(f,I),u.value[f]=I)}function kt(f,I){s.value&&s.value.mergeLocaleMessage(f,I)}function At(f){return s.value?s.value.getDateTimeFormat(f):{}}function St(f,I){s.value&&(s.value.setDateTimeFormat(f,I),_.value[f]=I)}function ut(f,I){s.value&&s.value.mergeDateTimeFormat(f,I)}function Je(f){return s.value?s.value.getNumberFormat(f):{}}function Ge(f,I){s.value&&(s.value.setNumberFormat(f,I),h.value[f]=I)}function Qe(f,I){s.value&&s.value.mergeNumberFormat(f,I)}const Ct={get id(){return s.value?s.value.id:-1},locale:O,fallbackLocale:w,messages:R,datetimeFormats:Y,numberFormats:oe,get inheritLocale(){return s.value?s.value.inheritLocale:o},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:g},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:S},set fallbackRoot(f){s.value&&(s.value.fallbackRoot=f)},get fallbackFormat(){return s.value?s.value.fallbackFormat:L},set fallbackFormat(f){s.value&&(s.value.fallbackFormat=f)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:b},set warnHtmlMessage(f){s.value&&(s.value.warnHtmlMessage=f)},get escapeParameter(){return s.value?s.value.escapeParameter:T},set escapeParameter(f){s.value&&(s.value.escapeParameter=f)},t:ee,getPostTranslationHandler:v,setPostTranslationHandler:C,getMissingHandler:x,setMissingHandler:D,rt:te,d:pe,n:me,tm:We,te:_e,getLocaleMessage:lt,setLocaleMessage:ct,mergeLocaleMessage:kt,getDateTimeFormat:At,setDateTimeFormat:St,mergeDateTimeFormat:ut,getNumberFormat:Je,setNumberFormat:Ge,mergeNumberFormat:Qe};function p(f){f.locale.value=i.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(I=>{f.mergeLocaleMessage(I,u.value[I])}),Object.keys(_.value).forEach(I=>{f.mergeDateTimeFormat(I,_.value[I])}),Object.keys(h.value).forEach(I=>{f.mergeNumberFormat(I,h.value[I])}),f.escapeParameter=T,f.fallbackFormat=L,f.fallbackRoot=S,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=b}return l.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw se(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=s.value=e.proxy.$i18n.__composer;t==="global"?(i.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,_.value=f.datetimeFormats.value,h.value=f.numberFormats.value):a&&p(f)}),Ct}const Ei=["locale","fallbackLocale","availableLocales"],ss=["t","rt","d","n","tm","te"];function Ti(e,t){const n=Object.create(null);return Ei.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw se(H.UNEXPECTED_ERROR);const o=l.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,ss.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw se(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,ss.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(Uo(),__INTLIFY_JIT_COMPILATION__?fr(vo):fr(Oo),_o(Xa),ho(ir),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ae();e.__INTLIFY__=!0,no(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const as=({wrap:e,left:t=0,top:n=0,smooth:r=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:r?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function Ni({el:e,wrap:t,block:n="start",inline:r="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:r});else{const{offsetLeft:a,offsetTop:s}=e;let o,i;n==="center"?i=s+(e.clientHeight-t.clientHeight)/2:i=s,r==="center"?o=a+(e.clientWidth-t.clientWidth)/2:o=a,as({wrap:t,left:o,top:i})}}const os=(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 Ue=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Ue||{});class $t{constructor(t){Zs(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}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,r)=>{t=`${t}${r===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}const Oi=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"})),vi=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),kn=()=>{const e=Object.assign({"./lang/en.ts":Oi,"./lang/zh-CN.ts":vi});function t(s,o){for(const i in s)if(s[i].default){const c=i.substring(i.lastIndexOf("/")+1,i.lastIndexOf("."));o[c]?o[c]={...s[c],...s[i].default}:o[c]=s[i].default}}const n=()=>{const s={};return t(e,s),s},r=l.inject("locales");return{getI18n:()=>{const s={...n(),...r.messages};return Vt({useScope:"local",locale:r.locale,messages:s})}}};function An(e){if(!Sn(e))throw new Error("Parameter was not an error")}function Sn(e){return Ii(e)==="[object Error]"||e instanceof Error}function Ii(e){return Object.prototype.toString.call(e)}function Li(e){let t,n="";if(e.length===0)t={};else if(Sn(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 r=[...arguments],{options:a,shortMessage:s}=Li(r);let o=s;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 An(t),t._cause&&Sn(t._cause)?t._cause:null}static fullStack(t){An(t);const n=Te.cause(t);return n?`${t.stack}
21
- caused by: ${Te.fullStack(n)}`:t.stack}static info(t){An(t);const n={},r=Te.cause(t);return r&&Object.assign(n,Te.info(r)),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 is="0123456789ABCDEFGHJKMNPQRSTVWXYZ",gt=32,ls=0xffffffffffff,yi=10,ki=16,bt=Object.freeze({source:"ulid"});function Ai(e){const t=e||Si(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return n.getRandomValues(r),r[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new Te({info:{code:"PRNG_DETECT",...bt}},"Failed to find a reliable PRNG")}function Si(){return Ri()?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 wi(e,t){if(isNaN(e))throw new Te({info:{code:"ENC_TIME_NAN",...bt}},`Time must be a number: ${e}`);if(e>ls)throw new Te({info:{code:"ENC_TIME_SIZE_EXCEED",...bt}},`Cannot encode a time larger than ${ls}: ${e}`);if(e<0)throw new Te({info:{code:"ENC_TIME_NEG",...bt}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Te({info:{code:"ENC_TIME_TYPE",...bt}},`Time must be an integer: ${e}`);let n,r="";for(let a=t;a>0;a--)n=e%gt,r=is.charAt(n)+r,e=(e-n)/gt;return r}function Ri(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Pi(e){let t=Math.floor(e()*gt);return t===gt&&(t=gt-1),is.charAt(t)}function cs(e,t){const n=t||Ai(),r=isNaN(e)?Date.now():e;return wi(r,yi)+Ci(ki,n)}var Cn={exports:{}};Cn.exports,function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,u){if(!s[c]){s[c]={};for(var _=0;_<c.length;_++)s[c][c.charAt(_)]=_}return s[c][u]}var i={compressToBase64:function(c){if(c==null)return"";var u=i._compress(c,6,function(_){return r.charAt(_)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:i._decompress(c.length,32,function(u){return o(r,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":i._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:i._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=i.compress(c),_=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);_[h*2]=N>>>8,_[h*2+1]=N%256}return _},decompressFromUint8Array:function(c){if(c==null)return i.decompress(c);for(var u=new Array(c.length/2),_=0,h=u.length;_<h;_++)u[_]=c[_*2]*256+c[_*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),i.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":i._compress(c,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),i._decompress(c.length,32,function(u){return o(a,c.charAt(u))}))},compress:function(c){return i._compress(c,16,function(u){return n(u)})},_compress:function(c,u,_){if(c==null)return"";var h,d,N={},S={},L="",y="",m="",b=2,T=3,g=2,k=[],E=0,O=0,w;for(w=0;w<c.length;w+=1)if(L=c.charAt(w),Object.prototype.hasOwnProperty.call(N,L)||(N[L]=T++,S[L]=!0),y=m+L,Object.prototype.hasOwnProperty.call(N,y))m=y;else{if(Object.prototype.hasOwnProperty.call(S,m)){if(m.charCodeAt(0)<256){for(h=0;h<g;h++)E=E<<1,O==u-1?(O=0,k.push(_(E)),E=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}else{for(d=1,h=0;h<g;h++)E=E<<1|d,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}b--,b==0&&(b=Math.pow(2,g),g++),delete S[m]}else for(d=N[m],h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;b--,b==0&&(b=Math.pow(2,g),g++),N[y]=T++,m=String(L)}if(m!==""){if(Object.prototype.hasOwnProperty.call(S,m)){if(m.charCodeAt(0)<256){for(h=0;h<g;h++)E=E<<1,O==u-1?(O=0,k.push(_(E)),E=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}else{for(d=1,h=0;h<g;h++)E=E<<1|d,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}b--,b==0&&(b=Math.pow(2,g),g++),delete S[m]}else for(d=N[m],h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;b--,b==0&&(b=Math.pow(2,g),g++)}for(d=2,h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;for(;;)if(E=E<<1,O==u-1){k.push(_(E));break}else O++;return k.join("")},decompress:function(c){return c==null?"":c==""?null:i._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,_){var h=[],d=4,N=4,S=3,L="",y=[],m,b,T,g,k,E,O,w={val:_(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,k=Math.pow(2,2),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,k=Math.pow(2,8),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;O=n(T);break;case 1:for(T=0,k=Math.pow(2,16),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;O=n(T);break;case 2:return""}for(h[3]=O,b=O,y.push(O);;){if(w.index>c)return"";for(T=0,k=Math.pow(2,S),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;switch(O=T){case 0:for(T=0,k=Math.pow(2,8),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;h[N++]=n(T),O=N-1,d--;break;case 1:for(T=0,k=Math.pow(2,16),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;h[N++]=n(T),O=N-1,d--;break;case 2:return y.join("")}if(d==0&&(d=Math.pow(2,S),S++),h[O])L=h[O];else if(O===N)L=b+b.charAt(0);else return null;y.push(L),h[N++]=b+L.charAt(0),d--,b=L,d==0&&(d=Math.pow(2,S),S++)}}};return i}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Cn);var us=Cn.exports;const Di=new TextEncoder,Mi=new TextDecoder("utf-8",{ignoreBOM:!0}),fs={encode:e=>Di.encode(e),decode:e=>Mi.decode(e)},ds=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let r=0;r<256;r++)n[r]=`${t[r>>>4&15]}${t[r&15]}`;return n})(),Fi=(()=>{const e={};for(let t=0;t<256;t++){const n=ds[t],r=n[0],a=r.toUpperCase(),s=n[1],o=s.toUpperCase();e[n]=t,e[`${r}${o}`]=t,e[`${a}${s}`]=t,e[`${a}${o}`]=t}return e})(),wn={encode:e=>{let t="";for(let n=0,r=e.length;n<r;n++)t+=ds[e[n]];return t},encodeStr:e=>wn.encode(fs.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=Fi[e.slice(r*2,r*2+2)];return n},decodeStr:e=>fs.decode(wn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function Et(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 ms(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 Rn(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 _s(e,t){ms(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Bt=BigInt(2**32-1),hs=BigInt(32);function ps(e,t=!1){return t?{h:Number(e&Bt),l:Number(e>>hs&Bt)}:{h:Number(e>>hs&Bt)|0,l:Number(e&Bt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ui=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Wt=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 Gt=(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 $i(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Pn(e){if(typeof e=="string"&&(e=$i(e)),!Vi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Bi{clone(){return this._cloneInto()}}function Wi(e){const t=(r,a)=>e(a).update(Pn(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}class Gi extends Bi{constructor(t,n,r={},a,s,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,Et(t),Et(n),Et(a),n<0||n>a)throw new Error("outputLen bigger than keyLen");if(r.key!==void 0&&(r.key.length<1||r.key.length>a))throw new Error(`key must be up 1..${a} byte long or undefined`);if(r.salt!==void 0&&r.salt.length!==s)throw new Error(`salt must be ${s} byte long or undefined`);if(r.personalization!==void 0&&r.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=Wt(this.buffer=new Uint8Array(t))}update(t){Rn(this);const{blockLen:n,buffer:r,buffer32:a}=this;t=Pn(t);const s=t.length,o=t.byteOffset,i=t.buffer;for(let c=0;c<s;){this.pos===n&&(this.compress(a,0,!1),this.pos=0);const u=Math.min(n-this.pos,s-c),_=o+c;if(u===n&&!(_%4)&&c+u<s){const h=new Uint32Array(i,_,Math.floor((s-c)/4));for(let d=0;c+n<s;d+=a.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}r.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Rn(this),_s(t,this);const{pos:n,buffer32:r}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(r,0,!0);const a=Wt(t);this.get().forEach((s,o)=>a[o]=s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){const{buffer:n,length:r,finished:a,destroyed:s,outputLen:o,pos:i}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=r,t.finished=a,t.destroyed=s,t.outputLen=o,t.buffer.set(n),t.pos=i,t}}const we=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Ve(e,t,n,r,a){return e=e+t+a|0,r=Gt(r^e,16),n=n+r|0,t=Gt(t^n,12),{a:e,b:t,c:n,d:r}}function $e(e,t,n,r,a){return e=e+t+a|0,r=Gt(r^e,8),n=n+r|0,t=Gt(t^n,7),{a:e,b:t,c:n,d:r}}function gs(e,t,n,r,a,s,o,i,c,u,_,h,d,N,S,L,y,m,b,T){let g=0;for(let k=0;k<r;k++)({a,b:c,c:d,d:y}=Ve(a,c,d,y,n[t+e[g++]])),{a,b:c,c:d,d:y}=$e(a,c,d,y,n[t+e[g++]]),{a:s,b:u,c:N,d:m}=Ve(s,u,N,m,n[t+e[g++]]),{a:s,b:u,c:N,d:m}=$e(s,u,N,m,n[t+e[g++]]),{a:o,b:_,c:S,d:b}=Ve(o,_,S,b,n[t+e[g++]]),{a:o,b:_,c:S,d:b}=$e(o,_,S,b,n[t+e[g++]]),{a:i,b:h,c:L,d:T}=Ve(i,h,L,T,n[t+e[g++]]),{a:i,b:h,c:L,d:T}=$e(i,h,L,T,n[t+e[g++]]),{a,b:u,c:S,d:T}=Ve(a,u,S,T,n[t+e[g++]]),{a,b:u,c:S,d:T}=$e(a,u,S,T,n[t+e[g++]]),{a:s,b:_,c:L,d:y}=Ve(s,_,L,y,n[t+e[g++]]),{a:s,b:_,c:L,d:y}=$e(s,_,L,y,n[t+e[g++]]),{a:o,b:h,c:d,d:m}=Ve(o,h,d,m,n[t+e[g++]]),{a:o,b:h,c:d,d:m}=$e(o,h,d,m,n[t+e[g++]]),{a:i,b:c,c:N,d:b}=Ve(i,c,N,b,n[t+e[g++]]),{a:i,b:c,c:N,d:b}=$e(i,c,N,b,n[t+e[g++]]);return{v0:a,v1:s,v2:o,v3:i,v4:c,v5:u,v6:_,v7:h,v8:d,v9:N,v10:S,v11:L,v12:y,v13:m,v14:b,v15:T}}const bs=(()=>{const e=Array.from({length:16},(r,a)=>a),t=r=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(a=>r[a]),n=[];for(let r=0,a=e;r<7;r++,a=t(a))n.push(...a);return Uint8Array.from(n)})();class Dn extends Gi{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,Et(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 r=Pn(t.key).slice();if(r.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=Wt(r),this.flags=n|16}else if(t.context!==void 0){const r=new Dn({dkLen:32},32).update(t.context).digest();this.IV=Wt(r),this.flags=n|64}else this.IV=we.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Ui(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,r,a=0){const{state:s,pos:o}=this,{h:i,l:c}=ps(BigInt(t),!0),{v0:u,v1:_,v2:h,v3:d,v4:N,v5:S,v6:L,v7:y,v8:m,v9:b,v10:T,v11:g,v12:k,v13:E,v14:O,v15:w}=gs(bs,a,r,7,s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],we[0],we[1],we[2],we[3],i,c,o,n);s[0]=u^m,s[1]=_^b,s[2]=h^T,s[3]=d^g,s[4]=N^k,s[5]=S^E,s[6]=L^O,s[7]=y^w}compress(t,n=0,r=!1){let a=this.flags;if(this.chunkPos||(a|=1),(this.chunkPos===15||r)&&(a|=2),r||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,a,t,n),this.chunkPos+=1,this.chunkPos===16||r){let s=this.state;this.state=this.IV.slice();for(let o,i=this.chunksDone+1;(r||!(i&1))&&(o=this.stack.pop());i>>=1)this.buffer32.set(o,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:r,state:a,chunkPos:s,posOut:o,chunkOut:i,stack:c,chunksDone:u}=this;return t.state.set(a.slice()),t.stack=c.map(_=>Uint32Array.from(_)),t.IV.set(n),t.flags=r,t.chunkPos=s,t.chunksDone=u,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:r,buffer32:a,bufferOut32:s}=this,{h:o,l:i}=ps(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:_,v3:h,v4:d,v5:N,v6:S,v7:L,v8:y,v9:m,v10:b,v11:T,v12:g,v13:k,v14:E,v15:O}=gs(bs,0,a,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],we[0],we[1],we[2],we[3],i,o,n,r);s[0]=c^y,s[1]=u^m,s[2]=_^b,s[3]=h^T,s[4]=d^g,s[5]=N^k,s[6]=S^E,s[7]=L^O,s[8]=t[0]^y,s[9]=t[1]^m,s[10]=t[2]^b,s[11]=t[3]^T,s[12]=t[4]^g,s[13]=t[5]^k,s[14]=t[6]^E,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){Rn(this,!1),ms(t),this.finish();const{blockLen:n,bufferOut:r}=this;for(let a=0,s=t.length;a<s;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,s-a);t.set(r.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 Et(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(_s(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 Hi=Wi(e=>new Dn(e)),Es=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return us.compressToEncodedURIComponent(t)},ji=e=>{const n=us.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},Ts=(e,t,n)=>{const r=[];for(const s in n)s.startsWith("__")||r.push({key:s,value:n[s]});r.sort((s,o)=>{let i=0;return s.key>o.key?i=1:s.key<o.key&&(i=-1),i});const a=Hi(`${e}|${t}|${JSON.stringify(r)}`);return wn.encode(a)};function Mn(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 Fn(e,t,n=".",r){if(!Mn(t))return Fn(e,{},n,r);const a=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const o=e[s];o!=null&&(r&&r(a,s,o,n)||(Array.isArray(o)&&Array.isArray(a[s])?a[s]=[...o,...a[s]]:Mn(o)&&Mn(a[s])?a[s]=Fn(o,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=o))}return a}function Yi(e){return(...t)=>t.reduce((n,r)=>Fn(n,r,"",e),{})}const Re=Yi(),xn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),r={};for(const a of n){const s=a.split("=");s[1]!==null&&s[1]!==void 0&&s[1]!==""&&(r[s[0]]=s[1])}return{path:t[0],query:r}}};function Xi(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(a){a(n)}),(r=e.get("*"))&&r.slice().map(function(a){a(t,n)})}}}const zi=Xi(),Ki={install(e){e.provide("tabEmitter",zi)}},Tt=()=>l.inject("tabEmitter");var be=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(be||{});const qi={key:0,class:"stack-tab-loading-mask"},Zi=[l.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Ji=l.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=Tt(),r=l.ref(!1);return n.on(be.PAGE_LOADING,({tId:a,value:s})=>{a===t.tId&&(r.value=s)}),(a,s)=>r.value?(l.openBlock(),l.createElementBlock("div",qi,Zi)):l.createCommentVNode("",!0)}}),G=l.ref([]),Ht=[],le=l.ref([]),Ke=new Map,jt=new Set,Nt=l.ref(!0),Ns="stacktab-active-tab";let Yt=0;const Ot=()=>{const e=Ne.useRouter(),t=Tt(),n=()=>G.value.length,r=v=>{Ht.splice(0);for(const x of v){const D=Re(x,{id:cs()}),V=Es(D),ee=xn(D.path),te=Re(D,{closable:!0,refreshable:!0,iframe:!1}),pe=Ts(D.id,ee.path,ee.query),me={id:pe,tabId:D.id,path:ee.path,query:Re(ee.query,{__tab:V})},We=new $t;We.push(me);const _e={id:D.id,title:te.title,closable:te.closable,refreshable:te.refreshable,iframe:te.iframe,active:!1,pages:We};Ht.push(_e),G.value.push(_e),le.value.push(pe)}const C=window.sessionStorage.getItem(Ns);if(C!=null){const x=JSON.parse(C,(V,ee)=>V==="pages"?new $t(ee):ee);let D=!1;for(const V of G.value)if(V.id===x.id){D=!0;break}D||G.value.push(x)}},a=v=>{for(const C of G.value)if(C.id===v)return!0;return!1},s=()=>Yt<=0||Yt>0&&Yt>G.value.length,o=v=>new Promise(C=>{G.value.push(v),C(!0)}),i=v=>{for(const C of G.value)if(C.id===v)return C;return null},c=(v,C)=>{let x;const D=ji(v.query.__tab),V=Ts(D.id,v.path,v.query.valueOf()),ee=v.query.__src;let te=null;for(const me of l.unref(G))me.active=!1,me.id===D.id&&(te=me);const pe={id:V,tabId:D.id,path:v.path,query:v.query};if(te===null){const me=new $t;me.push(pe),te={id:D.id,title:D.title,closable:D.closable,refreshable:D.refreshable,iframe:D.iframe,url:decodeURIComponent(ee),active:!0,pages:me},o(te).then(()=>{t.emit(be.TAB_ACTIVE,{id:D.id,isRoute:!1})})}else te.active=!0,(te.pages.isEmpty()||te.pages.peek().id!==pe.id)&&te.pages.push(pe);return w(te),Ke.has(V)?x=Ke.get(V):(x=l.defineComponent({name:V,components:{DynamicComponent:C},setup(){return l.onActivated(()=>{g(),C.props=null}),l.onUnmounted(()=>{}),()=>l.createVNode("div",{class:"cache-page-wrapper",id:"W-"+D.id},[l.createVNode(l.resolveComponent("dynamic-component"),{tId:D.id,pId:V},null),l.createVNode(Ji,{tId:D.id},null)])}}),Ke.set(V,x)),E(V),x},u=v=>{let C="";for(let x=G.value.length-1;x>=0;x--)if(v===l.unref(G)[x].id){if(!l.unref(G)[x].closable)return v;for(const D of l.unref(G)[x].pages.list())b(D.id),T(D.id);l.unref(G)[x].pages.clear(),G.value.length>1&&l.unref(G)[x].active&&(x===0?C=l.unref(G)[x+1].id:C=l.unref(G)[x-1].id),l.unref(G).splice(x,1);break}return C!==""&&t.emit(be.TAB_ACTIVE,{id:C}),g(),C},_=()=>{const v=l.unref(G);for(let C=v.length-1;C>=0;C--)if(v[C].closable){for(const x of v[C].pages.list())b(x.id),T(x.id);l.unref(G)[C].pages.clear(),l.unref(G).splice(C,1)}for(const C of v)if(C.active){g();return}t.emit(be.TAB_ACTIVE,{id:v[v.length-1].id})},h=v=>{const C=l.unref(G);let x;for(let D=C.length-1;D>=0;D--)if(C[D].id===v)x=C[D];else if(C[D].closable&&C[D].id!==v){for(const V of C[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}x.active?g():t.emit(be.TAB_ACTIVE,{id:v})},d=v=>{let C=-1;const x=l.unref(G);for(let D=0;D<x.length;D++)if(x[D].id===v){C=D-1;break}for(let D=C;D>=0;D--)if(x[D].closable){for(const V of x[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}for(const D of x)if(D.active){g();return}t.emit(be.TAB_ACTIVE,{id:x[0].id})},N=v=>{const C=l.unref(G);let x=C.length;for(let D=0;D<C.length;D++)if(C[D].id===v){x=D+1;break}for(let D=C.length-1;D>=x;D--)if(C[D].closable){for(const V of C[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}for(const D of C)if(D.active){g();return}t.emit(be.TAB_ACTIVE,{id:C[C.length-1].id})},S=v=>{var C;for(const x of l.unref(G))if(x.id===v){const D=(C=x.pages.peek())==null?void 0:C.id;for(let V=le.value.length-1;V>=0;V--)if(le.value[V]===D){le.value.splice(V,1),x.active&&(Nt.value=!1);break}break}},L=()=>{const v=new Set;G.value.forEach(C=>{v.add(C.pages.peek().id)});for(let C=le.value.length-1;C>=0;C--){const x=le.value[C];v.has(x)&&le.value.splice(C,1)}Nt.value=!1},y=(v,C)=>{Ke.set(v,C)},m=v=>Ke.get(v),b=v=>{Ke.delete(v)},T=v=>{jt.add(v)},g=()=>{for(let v=le.value.length-1;v>=0;v--)jt.has(le.value[v])&&l.unref(le).splice(v,1);jt.clear()},k=v=>{for(let C=le.value.length-1;C>=0;C--)v===le.value[C]&&l.unref(le).splice(C,1)},E=v=>{new Set(le.value).has(v)||le.value.push(v)},O=(v,C=!0)=>new Promise(x=>{for(let D=G.value.length-1;D>=0;D--){const V=G.value[D];if(V.id===v){if(V.active)break;if(V.active=!0,Nt.value=!1,w(V),C){const ee=V.pages.peek();e.push({path:ee.path,query:ee.query})}}else G.value[D].active=!1}x(!0)}),w=v=>{window.sessionStorage.setItem(Ns,JSON.stringify(v))},R=()=>{Y(),l.unref(G).push(...Ht),t.emit(be.TAB_ACTIVE,{id:Ht[0].id})},Y=()=>{l.unref(G).splice(0),Ke.clear(),jt.clear(),l.unref(le).splice(0),Nt.value=!0};return{tabs:G,caches:le,pageShown:Nt,setMaxSize:v=>{Yt=v},canAddTab:s,initial:r,size:n,active:O,destroy:Y,reset:R,addCache:E,removeCache:k,getTab:i,addTab:o,removeTab:u,removeAllTabs:_,removeLeftTabs:d,removeRightTabs:N,removeOtherTabs:h,hasTab:a,addPage:c,addComponent:y,getComponent:m,removeComponent:b,markDeletableCache:T,removeDeletableCache:g,refreshTab:S,refreshAllTabs:L}},Qi={class:"stack-tab__contextmenu-item"},Be=l.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Qi,[l.createElementVNode("div",{class:l.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),l.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=l.withModifiers(()=>{},["prevent"]))},l.toDisplayString(t.title),33)]))}}),el={key:0,class:"divider div-transparent"},tl=((e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n})(l.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=kn().getI18n(),r=l.ref(),a=l.reactive({left:t.left,top:t.top}),{removeTab:s,removeAllTabs:o,removeLeftTabs:i,removeRightTabs:c,refreshTab:u,refreshAllTabs:_,removeOtherTabs:h}=Ot();return l.onMounted(()=>{const d=r.value?r.value.clientWidth:0,N=window.innerWidth;a.left+d>N&&(a.left=N-d-5)}),(d,N)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"contextmenu",ref:r,class:"stack-tab__contextmenu",style:l.normalizeStyle({left:`${a.left}px`,top:`${a.top}px`,"z-index":l.unref(os)(".stack-tab,.stack-tab *")})},[l.createVNode(Be,{icon:"stack-tab__icon-reload svg-mask",title:l.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=S=>l.unref(u)(d.tabItem.id))},null,8,["title"]),l.createVNode(Be,{icon:"stack-tab__icon-reload-all svg-mask",title:l.unref(n)("VueStackTab.reloadAll"),onClick:l.unref(_)},null,8,["title","onClick"]),l.createVNode(Be,{icon:"stack-tab__icon-close svg-mask",title:l.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=S=>l.unref(s)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-lefts svg-mask",title:l.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=S=>l.unref(i)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-rights svg-mask",title:l.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=S=>l.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-others svg-mask",title:l.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=S=>l.unref(h)(d.tabItem.id))},null,8,["title"]),l.createVNode(Be,{icon:"stack-tab__icon-close-all svg-mask",title:l.unref(n)("VueStackTab.closeAll"),onClick:l.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(l.openBlock(),l.createElementBlock("div",el)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.contextMenu,(S,L)=>(l.openBlock(),l.createBlock(Be,{key:L,icon:S.icon,title:S.title,disabled:S.disabled(d.tabItem)?"disabled":null,onClick:y=>!S.disabled&&S.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-e8e2187c"]]),nl=()=>{const e=l.reactive({item:{},index:-1,left:0,top:0,max:0}),t=l.ref(!1);l.onMounted(()=>{document.addEventListener("click",r)}),l.onUnmounted(()=>{document.removeEventListener("click",r)});const n=async(a,s,o,i)=>{t.value=!1,await l.nextTick(()=>{const{clientY:c,clientX:u}=a;t.value=!0,Object.assign(e,{item:s,index:o,top:c,left:u,max:i})})},r=a=>{a.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},rl={class:"stack-tab__item-title"},sl=["title"],al=["title"],ol=l.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,r=Tt(),{t:a}=kn().getI18n(),s=l.ref(),o=e;r.on(be.TAB_ACTIVE,({id:_,isRoute:h})=>{o.item.id===_&&u(h)});const i=l.computed(()=>o.item.title||a("undefined")),c=()=>{n("close",o.item)},u=(_=!0)=>{n("active",o.item,s,_)};return(_,h)=>(l.openBlock(),l.createElementBlock("li",{ref_key:"curtab",ref:s,class:l.normalizeClass(["stack-tab__item",{"is-active":_.item.active,"is-icon":_.item.closable}]),onClick:u},[l.createElementVNode("div",rl,[l.createElementVNode("div",{class:"stack-tab__item-title-content",title:i.value},l.toDisplayString(i.value),9,sl)]),_.item.closable?(l.openBlock(),l.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:l.unref(a)("VueStackTab.close"),onClick:l.withModifiers(c,["stop"])},null,8,al)):l.createCommentVNode("",!0)],2))}});var qe=[],il=function(){return qe.some(function(e){return e.activeTargets.length>0})},ll=function(){return qe.some(function(e){return e.skippedTargets.length>0})},Os="ResizeObserver loop completed with undelivered notifications.",cl=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Os}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Os),window.dispatchEvent(e)},vt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(vt||(vt={}));var Ze=function(e){return Object.freeze(e)},ul=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ze(this)}return e}(),vs=function(){function e(t,n,r,a){return this.x=t,this.y=n,this.width=r,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,a=t.top,s=t.right,o=t.bottom,i=t.left,c=t.width,u=t.height;return{x:n,y:r,top:a,right:s,bottom:o,left:i,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Un=function(e){return e instanceof SVGElement&&"getBBox"in e},Is=function(e){if(Un(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var a=e,s=a.offsetWidth,o=a.offsetHeight;return!(s||o||e.getClientRects().length)},Ls=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)},fl=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},It=typeof window<"u"?window:{},Xt=new WeakMap,ys=/auto|scroll/,dl=/^tb|vertical/,ml=/msie|trident/i.test(It.navigator&&It.navigator.userAgent),Le=function(e){return parseFloat(e||"0")},it=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ul((n?t:e)||0,(n?e:t)||0)},ks=Ze({devicePixelContentBoxSize:it(),borderBoxSize:it(),contentBoxSize:it(),contentRect:new vs(0,0,0,0)}),As=function(e,t){if(t===void 0&&(t=!1),Xt.has(e)&&!t)return Xt.get(e);if(Is(e))return Xt.set(e,ks),ks;var n=getComputedStyle(e),r=Un(e)&&e.ownerSVGElement&&e.getBBox(),a=!ml&&n.boxSizing==="border-box",s=dl.test(n.writingMode||""),o=!r&&ys.test(n.overflowY||""),i=!r&&ys.test(n.overflowX||""),c=r?0:Le(n.paddingTop),u=r?0:Le(n.paddingRight),_=r?0:Le(n.paddingBottom),h=r?0:Le(n.paddingLeft),d=r?0:Le(n.borderTopWidth),N=r?0:Le(n.borderRightWidth),S=r?0:Le(n.borderBottomWidth),L=r?0:Le(n.borderLeftWidth),y=h+u,m=c+_,b=L+N,T=d+S,g=i?e.offsetHeight-T-e.clientHeight:0,k=o?e.offsetWidth-b-e.clientWidth:0,E=a?y+b:0,O=a?m+T:0,w=r?r.width:Le(n.width)-E-k,R=r?r.height:Le(n.height)-O-g,Y=w+y+k+b,oe=R+m+g+T,v=Ze({devicePixelContentBoxSize:it(Math.round(w*devicePixelRatio),Math.round(R*devicePixelRatio),s),borderBoxSize:it(Y,oe,s),contentBoxSize:it(w,R,s),contentRect:new vs(h,c,w,R)});return Xt.set(e,v),v},Ss=function(e,t,n){var r=As(e,n),a=r.borderBoxSize,s=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case vt.DEVICE_PIXEL_CONTENT_BOX:return o;case vt.BORDER_BOX:return a;default:return s}},_l=function(){function e(t){var n=As(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ze([n.borderBoxSize]),this.contentBoxSize=Ze([n.contentBoxSize]),this.devicePixelContentBoxSize=Ze([n.devicePixelContentBoxSize])}return e}(),Cs=function(e){if(Is(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},hl=function(){var e=1/0,t=[];qe.forEach(function(o){if(o.activeTargets.length!==0){var i=[];o.activeTargets.forEach(function(u){var _=new _l(u.target),h=Cs(u.target);i.push(_),u.lastReportedSize=Ss(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,i,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var a=r[n];a()}return e},ws=function(e){qe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(a){a.isActive()&&(Cs(a.target)>e?n.activeTargets.push(a):n.skippedTargets.push(a))})})},pl=function(){var e=0;for(ws(e);il();)e=hl(),ws(e);return ll()&&cl(),e>0},Vn,Rs=[],gl=function(){return Rs.splice(0).forEach(function(e){return e()})},bl=function(e){if(!Vn){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return gl()}).observe(n,r),Vn=function(){n.textContent="".concat(t?t--:t++)}}Rs.push(e),Vn()},El=function(e){bl(function(){requestAnimationFrame(e)})},zt=0,Tl=function(){return!!zt},Nl=250,Ol={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ps=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ds=function(e){return e===void 0&&(e=0),Date.now()+e},$n=!1,vl=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=Nl),!$n){$n=!0;var r=Ds(t);El(function(){var a=!1;try{a=pl()}finally{if($n=!1,t=r-Ds(),!Tl())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,Ol)};document.body?n():It.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ps.forEach(function(n){return It.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ps.forEach(function(n){return It.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Bn=new vl,Ms=function(e){!zt&&e>0&&Bn.start(),zt+=e,!zt&&Bn.stop()},Il=function(e){return!Un(e)&&!fl(e)&&getComputedStyle(e).display==="inline"},Ll=function(){function e(t,n){this.target=t,this.observedBox=n||vt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ss(this.target,this.observedBox,!0);return Il(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),yl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Kt=new WeakMap,Fs=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},qt=function(){function e(){}return e.connect=function(t,n){var r=new yl(t,n);Kt.set(t,r)},e.observe=function(t,n,r){var a=Kt.get(t),s=a.observationTargets.length===0;Fs(a.observationTargets,n)<0&&(s&&qe.push(a),a.observationTargets.push(new Ll(n,r&&r.box)),Ms(1),Bn.schedule())},e.unobserve=function(t,n){var r=Kt.get(t),a=Fs(r.observationTargets,n),s=r.observationTargets.length===1;a>=0&&(s&&qe.splice(qe.indexOf(r),1),r.observationTargets.splice(a,1),Ms(-1))},e.disconnect=function(t){var n=this,r=Kt.get(t);r.observationTargets.slice().forEach(function(a){return n.unobserve(t,a.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),xs=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.");qt.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(!Ls(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");qt.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(!Ls(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");qt.unobserve(this,t)},e.prototype.disconnect=function(){qt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const kl=["disabled","title"],Al={key:1,class:"stack-tab__button"},Zt=l.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.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?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(l.openBlock(),l.createElementBlock("div",Al,[l.renderSlot(t.$slots,"icon")])):l.createCommentVNode("",!0)],10,kl))}}),Sl=l.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=l.ref(null),r=l.ref(null),a=l.ref(null),s=l.ref(!1),o=l.ref(!1),i=l.ref(!1),c=l.ref(!0),u=l.ref(),_=e,h=l.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=l.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});l.watch(h,v=>{N(v)});const N=v=>{o.value=v.scrollLeft<=10,i.value=v.clientWidth+v.scrollLeft-v.scrollWidth>=-10,c.value=v.scrollWidth!==v.clientWidth},S=l.computed(()=>h.scrollWidth>h.clientWidth),L=l.computed(()=>{if(!S.value)return 0;const{clientWidth:v,scrollWidth:C}=h;return v/C*v}),y=l.computed(()=>{if(!S.value)return 0;const{clientWidth:v,scrollWidth:C,scrollLeft:x}=h;return(v-L.value)*(x/(C-v))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:v,scrollWidth:C,scrollLeft:x}=n.value;Object.assign(h,{clientWidth:v,scrollWidth:C,scrollLeft:x})},b=new xs(()=>{var C;m();const v=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");v&&(oe(v)||Y(v))}),T=new xs(()=>{var v;if(!S.value){const C=(v=n.value)==null?void 0:v.querySelector(".stack-tab__item.is-active");C&&(oe(C)||Y(C))}m()}),g=(v,C=!0)=>{as({wrap:n.value,left:v,smooth:C})},k=v=>{g(n.value.scrollLeft+v)},E=v=>{const C=v.deltaY<0;g(n.value.scrollLeft+(C?-_.space:_.space))},O=v=>{var C;Object.assign(d,{startPageX:v.pageX,startScrollLeft:(C=n.value)==null?void 0:C.scrollLeft,startThumbLeft:y.value,thumbLeft:y.value}),s.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",R)},w=v=>{const{clientWidth:C,scrollWidth:x}=h;let D=d.startThumbLeft+v.pageX-d.startPageX;const V=C-L.value;D<0?D=0:D>V&&(D=V),d.thumbLeft=D,g(D*(x-C)/(C-L.value),!1),v.preventDefault()},R=v=>{s.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",R),v.preventDefault()};l.onMounted(()=>{var C;b.observe(u.value);const v=(C=n.value)==null?void 0:C.querySelector(".stack-tab__nav");T.observe(v)}),l.onUnmounted(()=>{b.disconnect(),T.disconnect()});const Y=v=>{Ni({el:v,wrap:n,block:"end",inline:"center"})},oe=v=>{if(!S.value)return!0;const C=v.offsetLeft,x=n.value.scrollLeft;return!(C<x||C+v.clientWidth>x+n.value.clientWidth)};return t({scrollIntoView:Y,isInView:oe}),(v,C)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[c.value?(l.openBlock(),l.createBlock(Zt,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:C[0]||(C[0]=x=>!o.value&&k(-1*v.space))},null,8,["disabled"])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:l.withModifiers(E,["prevent"])},[l.createElementVNode("div",{ref_key:"container",ref:n,class:l.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},[l.renderSlot(v.$slots,"default")],34),l.withDirectives(l.createElementVNode("div",{ref_key:"bar",ref:r,class:l.normalizeClass(["stack-tab__scrollbar",{"is-dragging":s.value}])},[l.createElementVNode("div",{ref_key:"thumb",ref:a,class:l.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":s.value}]),style:l.normalizeStyle({width:`${L.value}px`,transform:`translateX(${y.value}px)`}),onMousedown:l.withModifiers(O,["prevent"])},null,38)],2),[[l.vShow,S.value]])],544),c.value?(l.openBlock(),l.createBlock(Zt,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:i.value,onClick:C[1]||(C[1]=x=>!i.value&&k(v.space))},null,8,["disabled"])):l.createCommentVNode("",!0)],64))}}),Cl={class:"stack-tab__header"},wl=l.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Ue.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}=kn().getI18n(),r=l.inject("maximum"),a=t,s=l.ref(),{shown:o,contextMenuData:i,showContextMenu:c}=nl(),u=e,{removeTab:_,active:h,tabs:d}=Ot(),N=l.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),S=l.computed(()=>u.tabScrollMode===Ue.BOTH||u.tabScrollMode===Ue.BUTTON),L=u.tabScrollMode===Ue.BOTH||u.tabScrollMode===Ue.WHEEL,y=b=>{if(b.closable){const T=_(b.id);a("active",T)}o.value=!1},m=(b,T,g)=>{s.value&&(l.nextTick(()=>{s.value.isInView(T.value)||s.value.scrollIntoView(T.value)}),h(b.id,g),a("active",b.id))};return(b,T)=>(l.openBlock(),l.createElementBlock("div",Cl,[l.renderSlot(b.$slots,"leftButton"),l.createVNode(Sl,{ref_key:"scroll",ref:s,space:b.space,"is-scroll-wheel":l.unref(L),"is-scroll-button":S.value},{default:l.withCtx(()=>[l.createVNode(l.TransitionGroup,l.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(d),(g,k)=>(l.openBlock(),l.createBlock(ol,{key:g.id,contextmenu:b.contextmenu,item:g,onContextmenu:l.withModifiers(E=>l.unref(c)(E,g,k,l.unref(d).length),["prevent"]),onMouseup:l.withModifiers(E=>y(g),["middle","prevent"]),onClose:y,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),l.renderSlot(b.$slots,"rightButton"),l.createVNode(Zt,{"icon-class":l.unref(r)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:l.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=g=>r.value=!l.unref(r))},null,8,["icon-class","title"]),l.createVNode(l.Transition,{name:"stack-tab-zoom",appear:""},{default:l.withCtx(()=>[l.unref(o)?(l.openBlock(),l.createBlock(tl,{key:"tabMenuTrans",left:l.unref(i).left,top:l.unref(i).top,"tab-item":l.unref(i).item,max:l.unref(i).max,index:l.unref(i).index},null,8,["left","top","tab-item","max","index"])):l.createCommentVNode("",!0)]),_:1})]))}});var Rl=typeof global=="object"&&global&&global.Object===Object&&global,Pl=typeof self=="object"&&self&&self.Object===Object&&self,Us=Rl||Pl||Function("return this")(),Jt=Us.Symbol,Vs=Object.prototype,Dl=Vs.hasOwnProperty,Ml=Vs.toString,Lt=Jt?Jt.toStringTag:void 0;function Fl(e){var t=Dl.call(e,Lt),n=e[Lt];try{e[Lt]=void 0;var r=!0}catch{}var a=Ml.call(e);return r&&(t?e[Lt]=n:delete e[Lt]),a}var xl=Object.prototype,Ul=xl.toString;function Vl(e){return Ul.call(e)}var $l="[object Null]",Bl="[object Undefined]",$s=Jt?Jt.toStringTag:void 0;function Wl(e){return e==null?e===void 0?Bl:$l:$s&&$s in Object(e)?Fl(e):Vl(e)}function Gl(e){return e!=null&&typeof e=="object"}var Hl="[object Symbol]";function jl(e){return typeof e=="symbol"||Gl(e)&&Wl(e)==Hl}var Yl=/\s/;function Xl(e){for(var t=e.length;t--&&Yl.test(e.charAt(t)););return t}var zl=/^\s+/;function Kl(e){return e&&e.slice(0,Xl(e)+1).replace(zl,"")}function Qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,ql=/^[-+]0x[0-9a-f]+$/i,Zl=/^0b[01]+$/i,Jl=/^0o[0-7]+$/i,Ql=parseInt;function Ws(e){if(typeof e=="number")return e;if(jl(e))return Bs;if(Qt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kl(e);var n=Zl.test(e);return n||Jl.test(e)?Ql(e.slice(2),n?2:8):ql.test(e)?Bs:+e}var Wn=function(){return Us.Date.now()},ec="Expected a function",tc=Math.max,nc=Math.min;function rc(e,t,n){var r,a,s,o,i,c,u=0,_=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(ec);t=Ws(t)||0,Qt(n)&&(_=!!n.leading,h="maxWait"in n,s=h?tc(Ws(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d);function N(E){var O=r,w=a;return r=a=void 0,u=E,o=e.apply(w,O),o}function S(E){return u=E,i=setTimeout(m,t),_?N(E):o}function L(E){var O=E-c,w=E-u,R=t-O;return h?nc(R,s-w):R}function y(E){var O=E-c,w=E-u;return c===void 0||O>=t||O<0||h&&w>=s}function m(){var E=Wn();if(y(E))return b(E);i=setTimeout(m,L(E))}function b(E){return i=void 0,d&&r?N(E):(r=a=void 0,o)}function T(){i!==void 0&&clearTimeout(i),u=0,r=c=a=i=void 0}function g(){return i===void 0?o:b(Wn())}function k(){var E=Wn(),O=y(E);if(r=arguments,a=this,c=E,O){if(i===void 0)return S(c);if(h)return clearTimeout(i),i=setTimeout(m,t),N(c)}return i===void 0&&(i=setTimeout(m,t)),o}return k.cancel=T,k.flush=g,k}var sc="Expected a function";function ac(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(sc);return Qt(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),rc(e,t,{leading:r,maxWait:t,trailing:a})}let Gs;const Hs=()=>{const e=Ne.useRouter(),{active:t,hasTab:n,pageShown:r,reset:a,canAddTab:s}=Ot(),o=Tt();return{openNewTab:ac(u=>new Promise((_,h)=>{if(!r.value){h();return}const d=Re(u,{refreshable:!0,closable:!0,iframe:!1});if(n(d.id)){o.emit("tabActive",{id:d.id}),_(d.id);return}if(d.id||(d.id=cs()),!s()){h("Max Size");return}const N=Es(d);let S=Re({__tab:N},u.query),L;if(u.iframe){const y=encodeURIComponent(u.path);L=Gs,S.__src=y}else{const y=xn(u.path);L=y.path,S=Re(y.query,S)}e.push({path:L,query:S}),_(d.id)}),500),setIFramePath:u=>{Gs=u},active:t,reset:a}},oc={class:"stack-tab__container"},ic=["src"],js=l.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:Ue.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:r,caches:a,addPage:s,destroy:o,initial:i,setMaxSize:c}=Ot(),u=t,_=e;l.provide("locales",{..._.i18n});const h=l.ref(!1);l.provide("maximum",h);const{setIFramePath:d}=Hs();d(_.iframePath),l.onBeforeMount(()=>{i(_.defaultTabs)});const N=(L,y)=>s(L,y),S=L=>{u("onActive",L)};return c(_.max),l.onUnmounted(()=>{o()}),(L,y)=>{const m=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["stack-tab",{"stack-tab__maximum":h.value}]),style:l.normalizeStyle({width:L.width,height:L.height,"z-index":h.value?l.unref(os)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[l.createVNode(wl,{space:L.space,onActive:S,"tab-transition":L.tabTransition,max:L.max},{leftButton:l.withCtx(()=>[l.renderSlot(L.$slots,"leftButton")]),rightButton:l.withCtx(()=>[l.renderSlot(L.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),l.createElementVNode("div",oc,[l.createVNode(m,null,{default:l.withCtx(({Component:b,route:T})=>[l.createVNode(l.Transition,{name:L.pageTransition,onAfterLeave:y[0]||(y[0]=g=>r.value=!0),mode:"out-in"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.KeepAlive,{include:l.unref(a)},[(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.unref(r)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N(T,b)),{key:T.fullPath})):l.createCommentVNode("",!0)]),fallback:l.withCtx(()=>[l.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),l.createVNode(l.TransitionGroup,{name:L.pageTransition,appear:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n).filter(b=>b.iframe),b=>l.withDirectives((l.openBlock(),l.createElementBlock("iframe",{key:b.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(b.url??"")?"about:blank":b.url,frameborder:"0"},null,8,ic)),[[l.vShow,b.active&&l.unref(r)]])),128))]),_:1},8,["name"])])],6)}}}),Gn=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ys=typeof TextEncoder=="function"?new TextEncoder:void 0,yt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(yt);const ye=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const lc=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Xs=typeof btoa=="function"?e=>btoa(e):Gn?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,a,s="";const o=e.length%3;for(let i=0;i<e.length;){if((n=e.charCodeAt(i++))>255||(r=e.charCodeAt(i++))>255||(a=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,s+=yt[t>>18&63]+yt[t>>12&63]+yt[t>>6&63]+yt[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},cc=Gn?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;r<a;r+=4096)n.push(ye.apply(null,e.subarray(r,r+4096)));return Xs(n.join(""))},uc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ye(192|t>>>6)+ye(128|t&63):ye(224|t>>>12&15)+ye(128|t>>>6&63)+ye(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ye(240|t>>>18&7)+ye(128|t>>>12&63)+ye(128|t>>>6&63)+ye(128|t&63)}},fc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,dc=e=>e.replace(fc,uc),zs=Gn?e=>Buffer.from(e,"utf8").toString("base64"):Ys?e=>cc(Ys.encode(e)):e=>Xs(dc(e)),mc=(e,t=!1)=>t?lc(zs(e)):zs(e),_c=e=>{const r=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><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.4V12.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.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,o="data:image/svg+xml;base64,"+mc(r),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;`)},Ks=()=>{const{attrs:e}=l.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:r,removeComponent:a,getComponent:s}=Ot(),o=Ne.useRoute(),i=Ne.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Re({__tab:u},d.query);i.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const S=n(c);if(!S)return;const L=S.pages;let y=0;if(typeof d=="number")y=Math.abs(d);else{let T=1,g=!1;const k=L.list(),E=xn(d);N=Re(E.query,N);for(let O=L.size()-2;O>=0;O--){if(k[O].path===E.path){g=!0;break}T+=1}g&&(y=T)}if(y===0||L.size()<=y)return;for(let T=0;T<y;T++){const g=L.pop();a(g.id),r(g.id)}const m=L==null?void 0:L.peek(),b=s(m.id);if(b!=null){const T=b.components.DynamicComponent;T.props=Re(N,T.props)}i.push({path:m.path,query:m.query})}}},hc=l.defineComponent({__name:"iframe",setup(e){return Ks(),(t,n)=>(l.openBlock(),l.createElementBlock("div"))}}),pc=()=>{const e=Tt(),{attrs:t}=l.getCurrentInstance();l.onUnmounted(()=>{r()});const n=()=>{e.emit(be.PAGE_LOADING,{tId:t.tId,value:!0})},r=()=>{e.emit(be.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:r}},gc=ui({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),bc={install(e){_c("0.1.17"),e.component("VueStackTabs",js).use(Ki).use(gc)}};J.IFrame=hc,J.Stack=$t,J.StackTab=js,J.TabHeaderButton=Zt,J.TabScrollMode=Ue,J.default=bc,J.useStackTab=Hs,J.useTabLoading=pc,J.useTabRouter=Ks,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ */const xo="9.10.1";function Uo(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ae().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ae().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ae().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fr=ue.__EXTEND_POINT__,Ce=nn(Fr),Z={FALLBACK_TO_ROOT:Fr,NOT_SUPPORTED_PRESERVE:Ce(),NOT_SUPPORTED_FORMATTER:Ce(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ce(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ce(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ce(),NOT_FOUND_PARENT_SCOPE:Ce(),IGNORE_OBJ_FLATTEN:Ce(),NOTICE_DROP_ALLOW_COMPOSITION:Ce(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ce()},Vo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function fe(e,...t){return tn(Vo[e],...t)}const xr=ae.__EXTEND_POINT__,de=nn(xr),H={UNEXPECTED_RETURN_TYPE:xr,INVALID_ARGUMENT:de(),MUST_BE_CALL_SETUP_TOP:de(),NOT_INSTALLED:de(),NOT_AVAILABLE_IN_LEGACY_MODE:de(),REQUIRED_VALUE:de(),INVALID_VALUE:de(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:de(),NOT_INSTALLED_WITH_PROVIDE:de(),UNEXPECTED_ERROR:de(),NOT_COMPATIBLE_LEGACY_VUE_I18N:de(),BRIDGE_SUPPORT_VUE_2_ONLY:de(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:de(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:de(),__EXTEND_POINT__:de()};function se(e,...t){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:$o,args:t}:void 0)}const $o={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},pn=Oe("__translateVNode"),gn=Oe("__datetimeParts"),bn=Oe("__numberParts"),ze=Oe("__enableEmitter"),_t=Oe("__disableEmitter"),Ur=Oe("__setPluralRules"),Vr=Oe("__injectWithOption"),En=Oe("__dispose");function ht(e){if(!j(e))return e;for(const t in e)if(Rt(e,t))if(!t.includes("."))j(e[t])&&ht(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let o=0;o<r;o++){if(n[o]in a||(a[n[o]]={}),!j(a[n[o]])){process.env.NODE_ENV!=="production"&&(fe(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),s=!0;break}a=a[n[o]]}s||(a[n[r]]=e[t],delete e[t]),j(a[n[r]])&&ht(a[n[r]])}return e}function Ut(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,o=B(n)?n:q(r)?{}:{[e]:{}};if(q(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:u}=i;c?(o[c]=o[c]||{},Dt(u,o[c])):Dt(u,o)}else M(i)&&Dt(JSON.parse(i),o)}),a==null&&s)for(const i in o)Rt(o,i)&&ht(o[i]);return o}function $r(e){return e.type}function Br(e,t,n){let r=j(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ut(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(j(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(j(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Wr(e){return l.createVNode(l.Text,null,e,0)}const Gr="__INTLIFY_META__",Hr=()=>[],Bo=()=>!1;let jr=0;function Yr(e){return(t,n,r,a)=>e(n,r,l.getCurrentInstance()||void 0,a)}const Wo=()=>{const e=l.getCurrentInstance();let t=null;return e&&(t=$r(e)[Gr])?{[Gr]:t}:null};function Tn(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,s=e.flatJson,o=Ee?l.ref:l.shallowRef,i=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&i&&qn(fe(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=W(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:st),_=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||q(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ut(u.value,e)),d=o(B(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o(B(e.numberFormats)?e.numberFormats:{[u.value]:{}});let S=n?n.missingWarn:W(e.missingWarn)||De(e.missingWarn)?e.missingWarn:!0,L=n?n.fallbackWarn:W(e.fallbackWarn)||De(e.fallbackWarn)?e.fallbackWarn:!0,y=n?n.fallbackRoot:W(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,b=K(e.missing)?e.missing:null,T=K(e.missing)?Yr(e.missing):null,g=K(e.postTranslation)?e.postTranslation:null,k=n?n.warnHtmlMessage:W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const O=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,R;R=(()=>{a&&pr(null);const A={version:xo,locale:u.value,fallbackLocale:_.value,messages:h.value,modifiers:O,pluralRules:w,missing:T===null?void 0:T,missingWarn:S,fallbackWarn:L,fallbackFormat:m,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:k,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=B(R)?R.__datetimeFormatters:void 0,A.__numberFormatters=B(R)?R.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=B(R)?R.__v_emitter:void 0);const P=Eo(A);return a&&pr(P),P})(),mt(R,u.value,_.value);function oe(){return[u.value,_.value,h.value,d.value,N.value]}const v=l.computed({get:()=>u.value,set:A=>{u.value=A,R.locale=u.value}}),C=l.computed({get:()=>_.value,set:A=>{_.value=A,R.fallbackLocale=_.value,mt(R,u.value,A)}}),x=l.computed(()=>h.value),D=l.computed(()=>d.value),V=l.computed(()=>N.value);function ee(){return K(g)?g:null}function te(A){g=A,R.postTranslation=A}function ge(){return b}function me(A){A!==null&&(T=Yr(A)),b=A,R.missing=T}function We(A,P){return A!=="translate"||!P.resolvedMessage}const _e=(A,P,z,Q,He,en)=>{oe();let ft;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(R.fallbackContext=n?bo():void 0),ft=A(R)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(R.fallbackContext=void 0)}if(z!=="translate exists"&&re(ft)&&ft===Mt||z==="translate exists"&&!ft){const[et,Ic]=P();if(process.env.NODE_ENV!=="production"&&n&&M(et)&&We(z,Ic)&&(y&&(xt(L,et)||br(S,et))&&(fe(Z.FALLBACK_TO_ROOT,{key:et,type:z}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:qs}=R;qs&&y&&qs.emit("fallback",{type:z,key:et,to:"global",groupId:`${z}:${et}`})}return n&&y?Q(n):He(et)}else{if(en(ft))return ft;throw se(H.UNEXPECTED_RETURN_TYPE)}};function lt(...A){return _e(P=>Reflect.apply(Ir,null,[P,...A]),()=>dn(...A),"translate",P=>Reflect.apply(P.t,P,[...A]),P=>P,P=>M(P))}function ct(...A){const[P,z,Q]=A;if(Q&&!j(Q))throw se(H.INVALID_ARGUMENT);return lt(P,z,ie({resolvedMessage:!0},Q||{}))}function kt(...A){return _e(P=>Reflect.apply(Sr,null,[P,...A]),()=>mn(...A),"datetime format",P=>Reflect.apply(P.d,P,[...A]),()=>Ft,P=>M(P))}function At(...A){return _e(P=>Reflect.apply(Rr,null,[P,...A]),()=>_n(...A),"number format",P=>Reflect.apply(P.n,P,[...A]),()=>Ft,P=>M(P))}function St(A){return A.map(P=>M(P)||re(P)||W(P)?Wr(String(P)):P)}const Je={normalize:St,interpolate:A=>A,type:"vnode"};function Ge(...A){return _e(P=>{let z;const Q=P;try{Q.processor=Je,z=Reflect.apply(Ir,null,[Q,...A])}finally{Q.processor=null}return z},()=>dn(...A),"translate",P=>P[pn](...A),P=>[Wr(P)],P=>q(P))}function Qe(...A){return _e(P=>Reflect.apply(Rr,null,[P,...A]),()=>_n(...A),"number format",P=>P[bn](...A),Hr,P=>M(P)||q(P))}function Ct(...A){return _e(P=>Reflect.apply(Sr,null,[P,...A]),()=>mn(...A),"datetime format",P=>P[gn](...A),Hr,P=>M(P)||q(P))}function p(A){w=A,R.pluralRules=w}function f(A,P){return _e(()=>{if(!A)return!1;const z=M(P)?P:u.value,Q=$(z),He=R.messageResolver(Q,A);return i?He!=null:xe(He)||be(He)||M(He)},()=>[A],"translate exists",z=>Reflect.apply(z.te,z,[A,P]),Bo,z=>W(z))}function I(A){let P=null;const z=ir(R,_.value,u.value);for(let Q=0;Q<z.length;Q++){const He=h.value[z[Q]]||{},en=R.messageResolver(He,A);if(en!=null){P=en;break}}return P}function F(A){const P=I(A);return P??(n?n.tm(A)||{}:{})}function $(A){return h.value[A]||{}}function X(A,P){if(s){const z={[A]:P};for(const Q in z)Rt(z,Q)&&ht(z[Q]);P=z[A]}h.value[A]=P,R.messages=h.value}function ke(A,P){h.value[A]=h.value[A]||{};const z={[A]:P};if(s)for(const Q in z)Rt(z,Q)&&ht(z[Q]);P=z[A],Dt(P,h.value[A]),R.messages=h.value}function Pe(A){return d.value[A]||{}}function Ec(A,P){d.value[A]=P,R.datetimeFormats=d.value,wr(R,A,P)}function Tc(A,P){d.value[A]=ie(d.value[A]||{},P),R.datetimeFormats=d.value,wr(R,A,P)}function Nc(A){return N.value[A]||{}}function Oc(A,P){N.value[A]=P,R.numberFormats=N.value,Dr(R,A,P)}function vc(A,P){N.value[A]=ie(N.value[A]||{},P),R.numberFormats=N.value,Dr(R,A,P)}jr++,n&&Ee&&(l.watch(n.locale,A=>{c&&(u.value=A,R.locale=A,mt(R,u.value,_.value))}),l.watch(n.fallbackLocale,A=>{c&&(_.value=A,R.fallbackLocale=A,mt(R,u.value,_.value))}));const ne={id:jr,locale:v,fallbackLocale:C,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,_.value=n.fallbackLocale.value,mt(R,u.value,_.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:x,get modifiers(){return O},get pluralRules(){return w||{}},get isGlobal(){return a},get missingWarn(){return S},set missingWarn(A){S=A,R.missingWarn=S},get fallbackWarn(){return L},set fallbackWarn(A){L=A,R.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(A){y=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,R.fallbackFormat=m},get warnHtmlMessage(){return k},set warnHtmlMessage(A){k=A,R.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,R.escapeParameter=A},t:lt,getLocaleMessage:$,setLocaleMessage:X,mergeLocaleMessage:ke,getPostTranslationHandler:ee,setPostTranslationHandler:te,getMissingHandler:ge,setMissingHandler:me,[Ur]:p};return ne.datetimeFormats=D,ne.numberFormats=V,ne.rt=ct,ne.te=f,ne.tm=F,ne.d=kt,ne.n=At,ne.getDateTimeFormat=Pe,ne.setDateTimeFormat=Ec,ne.mergeDateTimeFormat=Tc,ne.getNumberFormat=Nc,ne.setNumberFormat=Oc,ne.mergeNumberFormat=vc,ne[Vr]=r,ne[pn]=Ge,ne[gn]=Ct,ne[bn]=Qe,process.env.NODE_ENV!=="production"&&(ne[ze]=A=>{R.__v_emitter=A},ne[_t]=()=>{R.__v_emitter=void 0}),ne}function Go(e){const t=M(e.locale)?e.locale:st,n=M(e.fallbackLocale)||q(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=K(e.missing)?e.missing:void 0,a=W(e.silentTranslationWarn)||De(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=W(e.silentFallbackWarn)||De(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=W(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,c=B(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,_=K(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=W(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let S=e.messages;if(B(e.sharedMessages)){const E=e.sharedMessages;S=Object.keys(E).reduce((w,R)=>{const Y=w[R]||(w[R]={});return ie(Y,E[R]),w},S||{})}const{__i18n:L,__root:y,__injectWithOption:m}=e,b=e.datetimeFormats,T=e.numberFormats,g=e.flatJson,k=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:S,flatJson:g,datetimeFormats:b,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:o,fallbackFormat:i,modifiers:c,pluralRules:u,postTranslation:_,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:k,__i18n:L,__root:y,__injectWithOption:m}}function Nn(e={},t){{const n=Tn(Go(e)),{__extender:r}=e,a={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"&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return W(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=W(s)?!s:s},get silentFallbackWarn(){return W(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=W(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"&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,i,c]=s,u={};let _=null,h=null;if(!M(o))throw se(H.INVALID_ARGUMENT);const d=o;return M(i)?u.locale=i:q(i)?_=i:B(i)&&(h=i),q(c)?_=c:B(c)&&(h=c),Reflect.apply(n.t,n,[d,_||h||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,i,c]=s,u={plural:1};let _=null,h=null;if(!M(o))throw se(H.INVALID_ARGUMENT);const d=o;return M(i)?u.locale=i:re(i)?u.plural=i:q(i)?_=i:B(i)&&(h=i),M(c)?u.locale=c:q(c)?_=c:B(c)&&(h=c),Reflect.apply(n.t,n,[d,_||h||{},u])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return process.env.NODE_ENV!=="production"&&(fe(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return a.__extender=r,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=s=>{const o=n;o[ze]&&o[ze](s)},a.__disableEmitter=()=>{const s=n;s[_t]&&s[_t]()}),a}}const On={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ho({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===l.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function Xr(e){return l.Fragment}const vn=l.defineComponent({name:"i18n-t",props:ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>re(e)||!isNaN(e)}},On),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Vt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const i=Ho(t,s),c=a[pn](e.keypath,i,o),u=ie({},r),_=M(e.tag)||j(e.tag)?e.tag:Xr();return l.h(_,u,c)}}});function jo(e){return q(e)&&!M(e[0])}function zr(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const o={part:!0};let i={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:j(e.format)&&(M(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((d,N)=>n.includes(N)?ie({},d,{[N]:e.format[N]}):d,{}));const c=r(e.value,o,i);let u=[o.key];q(c)?u=c.map((d,N)=>{const S=a[d.type],L=S?S({[d.type]:d.value,index:N,parts:c}):[d.value];return jo(L)&&(L[0].key=`${d.type}-${N}`),L}):M(c)&&(u=[c]);const _=ie({},s),h=M(e.tag)||j(e.tag)?e.tag:Xr();return l.h(h,_,u)}}const Kr=l.defineComponent({name:"i18n-n",props:ie({value:{type:Number,required:!0},format:{type:[String,Object]}},On),setup(e,t){const n=e.i18n||Vt({useScope:"parent",__useComponent:!0});return zr(e,t,Pr,(...r)=>n[bn](...r))}}),qr=l.defineComponent({name:"i18n-d",props:ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},On),setup(e,t){const n=e.i18n||Vt({useScope:"parent",__useComponent:!0});return zr(e,t,Cr,(...r)=>n[gn](...r))}});function Yo(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Xo(e){const t=o=>{const{instance:i,modifiers:c,value:u}=o;if(!i||!i.$)throw se(H.UNEXPECTED_ERROR);const _=Yo(e,i.$);process.env.NODE_ENV!=="production"&&c.preserve&&(fe(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=Zr(u);return[Reflect.apply(_.t,_,[...Jr(h)]),_]};return{created:(o,i)=>{const[c,u]=t(i);Ee&&e.global===u&&(o.__i18nWatcher=l.watch(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{Ee&&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 c=o.__composer,u=Zr(i);o.textContent=Reflect.apply(c.t,c,[...Jr(u)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Zr(e){if(M(e))return{path:e};if(B(e)){if(!("path"in e))throw se(H.REQUIRED_VALUE,"path");return e}else throw se(H.INVALID_VALUE)}function Jr(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,o={},i=r||{};return M(n)&&(o.locale=n),re(a)&&(o.plural=a),re(s)&&(o.plural=s),[t,i,o]}function zo(e,t,...n){const r=B(n[0])?n[0]:{},a=!!r.useI18nComponentName,s=W(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&a&&(fe(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:vn.name}),void 0),s&&([a?"i18n":vn.name,"I18nT"].forEach(o=>e.component(o,vn)),[Kr.name,"I18nN"].forEach(o=>e.component(o,Kr)),[qr.name,"I18nD"].forEach(o=>e.component(o,qr))),e.directive("t",Xo(t))}const In={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Ko={"vue-i18n-resource-inspector":"Search for scopes ..."},qo={"vue-i18n-timeline":16764185},Qr="vue-i18n: composer properties";let Ln;async function Zo(e,t){return new Promise((n,r)=>{try{Fo({id:"vue-devtools-plugin-vue-i18n",label:In["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Qr],app:e},a=>{Ln=a,a.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Jo(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&&ts(i,o.vnode.el.__VUE_I18N__):ts(i,o.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:In["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ko["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ri(o,t)});const s=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),ai(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[i]=await a.getComponentInstances(o.app);s.set(o.app,i)}a.highlightElement(s.get(o.app))}else{const i=si(o.nodeId,t);i&&a.highlightElement(i)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ii(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:In["vue-i18n-timeline"],color:qo["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function es(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Jo(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${es(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function ts(e,t){const n=Qr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:yn(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 yn(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];K(r)&&"source"in r?t[n]=ni(r):xe(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:j(r)?t[n]=yn(r):t[n]=r}),t}const Qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function ei(e){return e.replace(/[<>"&]/g,ti)}function ti(e){return Qo[e]||e}function ni(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${ei(e.source)}")`:"(?)"}`}}}function ri(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${es(r)} Scope`})}}function si(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function ns(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ai(e,t){const n=ns(e.nodeId,t);return n&&(e.state=oi(n)),null}function oi(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:yn(e.messages.value)}];t[a]=s;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function pt(e,t){if(Ln){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ln.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 ii(e,t){const n=ns(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&M(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(M(e.state.value)||q(e.state.value)||j(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&W(e.state.value)&&(n.inheritLocale=e.state.value)}}function li(e,t,n){return{beforeCreate(){const r=l.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=rs(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Nn(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=rs(e,a);else{this.$i18n=Nn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Br(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=rn();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",pt)}},unmounted(){const r=l.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",pt),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(r),delete this.$i18n}}}function rs(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[Ur](t.pluralizationRules||e.pluralizationRules);const n=Ut(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const ci=Oe("global-vue-i18n");function ui(e={},t){const n=__VUE_I18N_LEGACY_API__&&W(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=W(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,i]=fi(e,n),c=Oe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&a&&(fe(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return s.get(d)||null}function _(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 a},async install(N,...S){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),B(S[0])){const m=S[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let L=null;!n&&r&&(L=Ti(N,d.global)),__VUE_I18N_FULL_INSTALL__&&zo(N,d,...S),__VUE_I18N_LEGACY_API__&&n&&N.mixin(li(i,i.__composer,d));const y=N.unmount;if(N.unmount=()=>{L&&L(),d.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Zo(N,d))throw se(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const b=rn();if(n){const T=i;T.__enableEmitter&&T.__enableEmitter(b)}else{const T=i;T[ze]&&T[ze](b)}b.on("*",pt)}},get global(){return i},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:_,__deleteInstance:h};return d}}function Vt(e={}){const t=l.getCurrentInstance();if(t==null)throw se(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(H.NOT_INSTALLED);const n=di(t),r=_i(n),a=$r(t),s=mi(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw se(H.NOT_AVAILABLE_IN_LEGACY_MODE);return bi(t,s,r,e)}if(s==="global")return Br(r,e,a),r;if(s==="parent"){let c=hi(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(fe(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=r),c}const o=n;let i=o.__getInstance(t);if(i==null){const c=ie({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),i=Tn(c),o.__composerExtend&&(i[En]=o.__composerExtend(i)),gi(o,t,i),o.__setInstance(t,i)}return i}function fi(e,t,n){const r=l.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Nn(e)):r.run(()=>Tn(e));if(a==null)throw se(H.UNEXPECTED_ERROR);return[r,a]}}function di(e){{const t=l.inject(e.isCE?ci:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function mi(e,t){return wt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function _i(e){return e.mode==="composition"?e.global:e.global.__composer}function hi(e,t,n=!1){let r=null;const a=t.root;let s=pi(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(s);i!=null&&(r=i.__composer,n&&r&&!r[Vr]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function pi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gi(e,t,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=rn();const a=n;a[ze]&&a[ze](r),r.on("*",pt)}},t),l.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",pt),a[_t]&&a[_t](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=a[En];s&&(s(),delete a[En])},t)}function bi(e,t,n,r={}){const a=t==="local",s=l.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw se(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=W(r.inheritLocale)?r.inheritLocale:!M(r.locale),i=l.ref(!a||o?n.locale.value:M(r.locale)?r.locale:st),c=l.ref(!a||o?n.fallbackLocale.value:M(r.fallbackLocale)||q(r.fallbackLocale)||B(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:i.value),u=l.ref(Ut(i.value,r)),_=l.ref(B(r.datetimeFormats)?r.datetimeFormats:{[i.value]:{}}),h=l.ref(B(r.numberFormats)?r.numberFormats:{[i.value]:{}}),d=a?n.missingWarn:W(r.missingWarn)||De(r.missingWarn)?r.missingWarn:!0,N=a?n.fallbackWarn:W(r.fallbackWarn)||De(r.fallbackWarn)?r.fallbackWarn:!0,S=a?n.fallbackRoot:W(r.fallbackRoot)?r.fallbackRoot:!0,L=!!r.fallbackFormat,y=K(r.missing)?r.missing:null,m=K(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:W(r.warnHtmlMessage)?r.warnHtmlMessage:!0,T=!!r.escapeParameter,g=a?n.modifiers:B(r.modifiers)?r.modifiers:{},k=r.pluralRules||a&&n.pluralRules;function E(){return[i.value,c.value,u.value,_.value,h.value]}const O=l.computed({get:()=>s.value?s.value.locale.value:i.value,set:f=>{s.value&&(s.value.locale.value=f),i.value=f}}),w=l.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:f=>{s.value&&(s.value.fallbackLocale.value=f),c.value=f}}),R=l.computed(()=>s.value?s.value.messages.value:u.value),Y=l.computed(()=>_.value),oe=l.computed(()=>h.value);function v(){return s.value?s.value.getPostTranslationHandler():m}function C(f){s.value&&s.value.setPostTranslationHandler(f)}function x(){return s.value?s.value.getMissingHandler():y}function D(f){s.value&&s.value.setMissingHandler(f)}function V(f){return E(),f()}function ee(...f){return s.value?V(()=>Reflect.apply(s.value.t,null,[...f])):V(()=>"")}function te(...f){return s.value?Reflect.apply(s.value.rt,null,[...f]):""}function ge(...f){return s.value?V(()=>Reflect.apply(s.value.d,null,[...f])):V(()=>"")}function me(...f){return s.value?V(()=>Reflect.apply(s.value.n,null,[...f])):V(()=>"")}function We(f){return s.value?s.value.tm(f):{}}function _e(f,I){return s.value?s.value.te(f,I):!1}function lt(f){return s.value?s.value.getLocaleMessage(f):{}}function ct(f,I){s.value&&(s.value.setLocaleMessage(f,I),u.value[f]=I)}function kt(f,I){s.value&&s.value.mergeLocaleMessage(f,I)}function At(f){return s.value?s.value.getDateTimeFormat(f):{}}function St(f,I){s.value&&(s.value.setDateTimeFormat(f,I),_.value[f]=I)}function ut(f,I){s.value&&s.value.mergeDateTimeFormat(f,I)}function Je(f){return s.value?s.value.getNumberFormat(f):{}}function Ge(f,I){s.value&&(s.value.setNumberFormat(f,I),h.value[f]=I)}function Qe(f,I){s.value&&s.value.mergeNumberFormat(f,I)}const Ct={get id(){return s.value?s.value.id:-1},locale:O,fallbackLocale:w,messages:R,datetimeFormats:Y,numberFormats:oe,get inheritLocale(){return s.value?s.value.inheritLocale:o},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:g},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:S},set fallbackRoot(f){s.value&&(s.value.fallbackRoot=f)},get fallbackFormat(){return s.value?s.value.fallbackFormat:L},set fallbackFormat(f){s.value&&(s.value.fallbackFormat=f)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:b},set warnHtmlMessage(f){s.value&&(s.value.warnHtmlMessage=f)},get escapeParameter(){return s.value?s.value.escapeParameter:T},set escapeParameter(f){s.value&&(s.value.escapeParameter=f)},t:ee,getPostTranslationHandler:v,setPostTranslationHandler:C,getMissingHandler:x,setMissingHandler:D,rt:te,d:ge,n:me,tm:We,te:_e,getLocaleMessage:lt,setLocaleMessage:ct,mergeLocaleMessage:kt,getDateTimeFormat:At,setDateTimeFormat:St,mergeDateTimeFormat:ut,getNumberFormat:Je,setNumberFormat:Ge,mergeNumberFormat:Qe};function p(f){f.locale.value=i.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(I=>{f.mergeLocaleMessage(I,u.value[I])}),Object.keys(_.value).forEach(I=>{f.mergeDateTimeFormat(I,_.value[I])}),Object.keys(h.value).forEach(I=>{f.mergeNumberFormat(I,h.value[I])}),f.escapeParameter=T,f.fallbackFormat=L,f.fallbackRoot=S,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=b}return l.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw se(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=s.value=e.proxy.$i18n.__composer;t==="global"?(i.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,_.value=f.datetimeFormats.value,h.value=f.numberFormats.value):a&&p(f)}),Ct}const Ei=["locale","fallbackLocale","availableLocales"],ss=["t","rt","d","n","tm","te"];function Ti(e,t){const n=Object.create(null);return Ei.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw se(H.UNEXPECTED_ERROR);const o=l.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,ss.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw se(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,ss.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(Uo(),__INTLIFY_JIT_COMPILATION__?fr(vo):fr(Oo),_o(Xa),ho(ir),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ae();e.__INTLIFY__=!0,no(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const as=({wrap:e,left:t=0,top:n=0,smooth:r=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:r?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function Ni({el:e,wrap:t,block:n="start",inline:r="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:r});else{const{offsetLeft:a,offsetTop:s}=e;let o,i;n==="center"?i=s+(e.clientHeight-t.clientHeight)/2:i=s,r==="center"?o=a+(e.clientWidth-t.clientWidth)/2:o=a,as({wrap:t,left:o,top:i})}}const os=(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 Ue=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Ue||{});class $t{constructor(t){Zs(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}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,r)=>{t=`${t}${r===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}const Oi=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"})),vi=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),kn=()=>{const e=Object.assign({"./lang/en.ts":Oi,"./lang/zh-CN.ts":vi});function t(s,o){for(const i in s)if(s[i].default){const c=i.substring(i.lastIndexOf("/")+1,i.lastIndexOf("."));o[c]?o[c]={...s[c],...s[i].default}:o[c]=s[i].default}}const n=()=>{const s={};return t(e,s),s},r=l.inject("locales");return{getI18n:()=>{const s={...n(),...r.messages};return Vt({useScope:"local",locale:r.locale,messages:s})}}};function An(e){if(!Sn(e))throw new Error("Parameter was not an error")}function Sn(e){return Ii(e)==="[object Error]"||e instanceof Error}function Ii(e){return Object.prototype.toString.call(e)}function Li(e){let t,n="";if(e.length===0)t={};else if(Sn(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 r=[...arguments],{options:a,shortMessage:s}=Li(r);let o=s;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 An(t),t._cause&&Sn(t._cause)?t._cause:null}static fullStack(t){An(t);const n=Te.cause(t);return n?`${t.stack}
21
+ caused by: ${Te.fullStack(n)}`:t.stack}static info(t){An(t);const n={},r=Te.cause(t);return r&&Object.assign(n,Te.info(r)),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 is="0123456789ABCDEFGHJKMNPQRSTVWXYZ",gt=32,ls=0xffffffffffff,yi=10,ki=16,bt=Object.freeze({source:"ulid"});function Ai(e){const t=e||Si(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return n.getRandomValues(r),r[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new Te({info:{code:"PRNG_DETECT",...bt}},"Failed to find a reliable PRNG")}function Si(){return Ri()?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 wi(e,t){if(isNaN(e))throw new Te({info:{code:"ENC_TIME_NAN",...bt}},`Time must be a number: ${e}`);if(e>ls)throw new Te({info:{code:"ENC_TIME_SIZE_EXCEED",...bt}},`Cannot encode a time larger than ${ls}: ${e}`);if(e<0)throw new Te({info:{code:"ENC_TIME_NEG",...bt}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Te({info:{code:"ENC_TIME_TYPE",...bt}},`Time must be an integer: ${e}`);let n,r="";for(let a=t;a>0;a--)n=e%gt,r=is.charAt(n)+r,e=(e-n)/gt;return r}function Ri(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Pi(e){let t=Math.floor(e()*gt);return t===gt&&(t=gt-1),is.charAt(t)}function cs(e,t){const n=t||Ai(),r=isNaN(e)?Date.now():e;return wi(r,yi)+Ci(ki,n)}var Cn={exports:{}};Cn.exports,function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,u){if(!s[c]){s[c]={};for(var _=0;_<c.length;_++)s[c][c.charAt(_)]=_}return s[c][u]}var i={compressToBase64:function(c){if(c==null)return"";var u=i._compress(c,6,function(_){return r.charAt(_)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:i._decompress(c.length,32,function(u){return o(r,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":i._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:i._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=i.compress(c),_=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);_[h*2]=N>>>8,_[h*2+1]=N%256}return _},decompressFromUint8Array:function(c){if(c==null)return i.decompress(c);for(var u=new Array(c.length/2),_=0,h=u.length;_<h;_++)u[_]=c[_*2]*256+c[_*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),i.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":i._compress(c,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),i._decompress(c.length,32,function(u){return o(a,c.charAt(u))}))},compress:function(c){return i._compress(c,16,function(u){return n(u)})},_compress:function(c,u,_){if(c==null)return"";var h,d,N={},S={},L="",y="",m="",b=2,T=3,g=2,k=[],E=0,O=0,w;for(w=0;w<c.length;w+=1)if(L=c.charAt(w),Object.prototype.hasOwnProperty.call(N,L)||(N[L]=T++,S[L]=!0),y=m+L,Object.prototype.hasOwnProperty.call(N,y))m=y;else{if(Object.prototype.hasOwnProperty.call(S,m)){if(m.charCodeAt(0)<256){for(h=0;h<g;h++)E=E<<1,O==u-1?(O=0,k.push(_(E)),E=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}else{for(d=1,h=0;h<g;h++)E=E<<1|d,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}b--,b==0&&(b=Math.pow(2,g),g++),delete S[m]}else for(d=N[m],h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;b--,b==0&&(b=Math.pow(2,g),g++),N[y]=T++,m=String(L)}if(m!==""){if(Object.prototype.hasOwnProperty.call(S,m)){if(m.charCodeAt(0)<256){for(h=0;h<g;h++)E=E<<1,O==u-1?(O=0,k.push(_(E)),E=0):O++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}else{for(d=1,h=0;h<g;h++)E=E<<1|d,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1}b--,b==0&&(b=Math.pow(2,g),g++),delete S[m]}else for(d=N[m],h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;b--,b==0&&(b=Math.pow(2,g),g++)}for(d=2,h=0;h<g;h++)E=E<<1|d&1,O==u-1?(O=0,k.push(_(E)),E=0):O++,d=d>>1;for(;;)if(E=E<<1,O==u-1){k.push(_(E));break}else O++;return k.join("")},decompress:function(c){return c==null?"":c==""?null:i._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,_){var h=[],d=4,N=4,S=3,L="",y=[],m,b,T,g,k,E,O,w={val:_(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,k=Math.pow(2,2),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,k=Math.pow(2,8),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;O=n(T);break;case 1:for(T=0,k=Math.pow(2,16),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;O=n(T);break;case 2:return""}for(h[3]=O,b=O,y.push(O);;){if(w.index>c)return"";for(T=0,k=Math.pow(2,S),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;switch(O=T){case 0:for(T=0,k=Math.pow(2,8),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;h[N++]=n(T),O=N-1,d--;break;case 1:for(T=0,k=Math.pow(2,16),E=1;E!=k;)g=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=_(w.index++)),T|=(g>0?1:0)*E,E<<=1;h[N++]=n(T),O=N-1,d--;break;case 2:return y.join("")}if(d==0&&(d=Math.pow(2,S),S++),h[O])L=h[O];else if(O===N)L=b+b.charAt(0);else return null;y.push(L),h[N++]=b+L.charAt(0),d--,b=L,d==0&&(d=Math.pow(2,S),S++)}}};return i}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Cn);var us=Cn.exports;const Di=new TextEncoder,Mi=new TextDecoder("utf-8",{ignoreBOM:!0}),fs={encode:e=>Di.encode(e),decode:e=>Mi.decode(e)},ds=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let r=0;r<256;r++)n[r]=`${t[r>>>4&15]}${t[r&15]}`;return n})(),Fi=(()=>{const e={};for(let t=0;t<256;t++){const n=ds[t],r=n[0],a=r.toUpperCase(),s=n[1],o=s.toUpperCase();e[n]=t,e[`${r}${o}`]=t,e[`${a}${s}`]=t,e[`${a}${o}`]=t}return e})(),wn={encode:e=>{let t="";for(let n=0,r=e.length;n<r;n++)t+=ds[e[n]];return t},encodeStr:e=>wn.encode(fs.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=Fi[e.slice(r*2,r*2+2)];return n},decodeStr:e=>fs.decode(wn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function Et(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 ms(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 Rn(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 _s(e,t){ms(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Bt=BigInt(2**32-1),hs=BigInt(32);function ps(e,t=!1){return t?{h:Number(e&Bt),l:Number(e>>hs&Bt)}:{h:Number(e>>hs&Bt)|0,l:Number(e&Bt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ui=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Wt=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 Gt=(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 $i(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Pn(e){if(typeof e=="string"&&(e=$i(e)),!Vi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Bi{clone(){return this._cloneInto()}}function Wi(e){const t=(r,a)=>e(a).update(Pn(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}class Gi extends Bi{constructor(t,n,r={},a,s,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,Et(t),Et(n),Et(a),n<0||n>a)throw new Error("outputLen bigger than keyLen");if(r.key!==void 0&&(r.key.length<1||r.key.length>a))throw new Error(`key must be up 1..${a} byte long or undefined`);if(r.salt!==void 0&&r.salt.length!==s)throw new Error(`salt must be ${s} byte long or undefined`);if(r.personalization!==void 0&&r.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=Wt(this.buffer=new Uint8Array(t))}update(t){Rn(this);const{blockLen:n,buffer:r,buffer32:a}=this;t=Pn(t);const s=t.length,o=t.byteOffset,i=t.buffer;for(let c=0;c<s;){this.pos===n&&(this.compress(a,0,!1),this.pos=0);const u=Math.min(n-this.pos,s-c),_=o+c;if(u===n&&!(_%4)&&c+u<s){const h=new Uint32Array(i,_,Math.floor((s-c)/4));for(let d=0;c+n<s;d+=a.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}r.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Rn(this),_s(t,this);const{pos:n,buffer32:r}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(r,0,!0);const a=Wt(t);this.get().forEach((s,o)=>a[o]=s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){const{buffer:n,length:r,finished:a,destroyed:s,outputLen:o,pos:i}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=r,t.finished=a,t.destroyed=s,t.outputLen=o,t.buffer.set(n),t.pos=i,t}}const we=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Ve(e,t,n,r,a){return e=e+t+a|0,r=Gt(r^e,16),n=n+r|0,t=Gt(t^n,12),{a:e,b:t,c:n,d:r}}function $e(e,t,n,r,a){return e=e+t+a|0,r=Gt(r^e,8),n=n+r|0,t=Gt(t^n,7),{a:e,b:t,c:n,d:r}}function gs(e,t,n,r,a,s,o,i,c,u,_,h,d,N,S,L,y,m,b,T){let g=0;for(let k=0;k<r;k++)({a,b:c,c:d,d:y}=Ve(a,c,d,y,n[t+e[g++]])),{a,b:c,c:d,d:y}=$e(a,c,d,y,n[t+e[g++]]),{a:s,b:u,c:N,d:m}=Ve(s,u,N,m,n[t+e[g++]]),{a:s,b:u,c:N,d:m}=$e(s,u,N,m,n[t+e[g++]]),{a:o,b:_,c:S,d:b}=Ve(o,_,S,b,n[t+e[g++]]),{a:o,b:_,c:S,d:b}=$e(o,_,S,b,n[t+e[g++]]),{a:i,b:h,c:L,d:T}=Ve(i,h,L,T,n[t+e[g++]]),{a:i,b:h,c:L,d:T}=$e(i,h,L,T,n[t+e[g++]]),{a,b:u,c:S,d:T}=Ve(a,u,S,T,n[t+e[g++]]),{a,b:u,c:S,d:T}=$e(a,u,S,T,n[t+e[g++]]),{a:s,b:_,c:L,d:y}=Ve(s,_,L,y,n[t+e[g++]]),{a:s,b:_,c:L,d:y}=$e(s,_,L,y,n[t+e[g++]]),{a:o,b:h,c:d,d:m}=Ve(o,h,d,m,n[t+e[g++]]),{a:o,b:h,c:d,d:m}=$e(o,h,d,m,n[t+e[g++]]),{a:i,b:c,c:N,d:b}=Ve(i,c,N,b,n[t+e[g++]]),{a:i,b:c,c:N,d:b}=$e(i,c,N,b,n[t+e[g++]]);return{v0:a,v1:s,v2:o,v3:i,v4:c,v5:u,v6:_,v7:h,v8:d,v9:N,v10:S,v11:L,v12:y,v13:m,v14:b,v15:T}}const bs=(()=>{const e=Array.from({length:16},(r,a)=>a),t=r=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(a=>r[a]),n=[];for(let r=0,a=e;r<7;r++,a=t(a))n.push(...a);return Uint8Array.from(n)})();class Dn extends Gi{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,Et(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 r=Pn(t.key).slice();if(r.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=Wt(r),this.flags=n|16}else if(t.context!==void 0){const r=new Dn({dkLen:32},32).update(t.context).digest();this.IV=Wt(r),this.flags=n|64}else this.IV=we.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Ui(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,r,a=0){const{state:s,pos:o}=this,{h:i,l:c}=ps(BigInt(t),!0),{v0:u,v1:_,v2:h,v3:d,v4:N,v5:S,v6:L,v7:y,v8:m,v9:b,v10:T,v11:g,v12:k,v13:E,v14:O,v15:w}=gs(bs,a,r,7,s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],we[0],we[1],we[2],we[3],i,c,o,n);s[0]=u^m,s[1]=_^b,s[2]=h^T,s[3]=d^g,s[4]=N^k,s[5]=S^E,s[6]=L^O,s[7]=y^w}compress(t,n=0,r=!1){let a=this.flags;if(this.chunkPos||(a|=1),(this.chunkPos===15||r)&&(a|=2),r||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,a,t,n),this.chunkPos+=1,this.chunkPos===16||r){let s=this.state;this.state=this.IV.slice();for(let o,i=this.chunksDone+1;(r||!(i&1))&&(o=this.stack.pop());i>>=1)this.buffer32.set(o,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:r,state:a,chunkPos:s,posOut:o,chunkOut:i,stack:c,chunksDone:u}=this;return t.state.set(a.slice()),t.stack=c.map(_=>Uint32Array.from(_)),t.IV.set(n),t.flags=r,t.chunkPos=s,t.chunksDone=u,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:r,buffer32:a,bufferOut32:s}=this,{h:o,l:i}=ps(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:_,v3:h,v4:d,v5:N,v6:S,v7:L,v8:y,v9:m,v10:b,v11:T,v12:g,v13:k,v14:E,v15:O}=gs(bs,0,a,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],we[0],we[1],we[2],we[3],i,o,n,r);s[0]=c^y,s[1]=u^m,s[2]=_^b,s[3]=h^T,s[4]=d^g,s[5]=N^k,s[6]=S^E,s[7]=L^O,s[8]=t[0]^y,s[9]=t[1]^m,s[10]=t[2]^b,s[11]=t[3]^T,s[12]=t[4]^g,s[13]=t[5]^k,s[14]=t[6]^E,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){Rn(this,!1),ms(t),this.finish();const{blockLen:n,bufferOut:r}=this;for(let a=0,s=t.length;a<s;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,s-a);t.set(r.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 Et(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(_s(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 Hi=Wi(e=>new Dn(e)),Es=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return us.compressToEncodedURIComponent(t)},ji=e=>{const n=us.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},Ts=(e,t,n)=>{const r=[];for(const s in n)s.startsWith("__")||r.push({key:s,value:n[s]});r.sort((s,o)=>{let i=0;return s.key>o.key?i=1:s.key<o.key&&(i=-1),i});const a=Hi(`${e}|${t}|${JSON.stringify(r)}`);return wn.encode(a)};function Mn(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 Fn(e,t,n=".",r){if(!Mn(t))return Fn(e,{},n,r);const a=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const o=e[s];o!=null&&(r&&r(a,s,o,n)||(Array.isArray(o)&&Array.isArray(a[s])?a[s]=[...o,...a[s]]:Mn(o)&&Mn(a[s])?a[s]=Fn(o,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=o))}return a}function Yi(e){return(...t)=>t.reduce((n,r)=>Fn(n,r,"",e),{})}const Re=Yi(),xn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),r={};for(const a of n){const s=a.split("=");s[1]!==null&&s[1]!==void 0&&s[1]!==""&&(r[s[0]]=s[1])}return{path:t[0],query:r}}};function Xi(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(a){a(n)}),(r=e.get("*"))&&r.slice().map(function(a){a(t,n)})}}}const zi=Xi(),Ki={install(e){e.provide("tabEmitter",zi)}},Tt=()=>l.inject("tabEmitter");var pe=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(pe||{});const qi={key:0,class:"stack-tab-loading-mask"},Zi=[l.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Ji=l.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=Tt(),r=l.ref(!1);return n.on(pe.PAGE_LOADING,({tId:a,value:s})=>{a===t.tId&&(r.value=s)}),(a,s)=>r.value?(l.openBlock(),l.createElementBlock("div",qi,Zi)):l.createCommentVNode("",!0)}}),G=l.ref([]),Ht=[],le=l.ref([]),Ke=new Map,jt=new Set,Nt=l.ref(!0),Ns="stacktab-active-tab";let Yt=0;const Ot=()=>{const e=Ne.useRouter(),t=Tt(),n=()=>G.value.length,r=v=>{Ht.splice(0);for(const x of v){const D=Re(x,{id:cs()}),V=Es(D),ee=xn(D.path),te=Re(D,{closable:!0,refreshable:!0,iframe:!1}),ge=Ts(D.id,ee.path,ee.query),me={id:ge,tabId:D.id,path:ee.path,query:Re(ee.query,{__tab:V})},We=new $t;We.push(me);const _e={id:D.id,title:te.title,closable:te.closable,refreshable:te.refreshable,iframe:te.iframe,active:!1,pages:We};Ht.push(_e),G.value.push(_e),le.value.push(ge)}const C=window.sessionStorage.getItem(Ns);if(C!=null){const x=JSON.parse(C,(V,ee)=>V==="pages"?new $t(ee):ee);let D=!1;for(const V of G.value)if(V.id===x.id){D=!0;break}D||G.value.push(x)}},a=v=>{for(const C of G.value)if(C.id===v)return!0;return!1},s=()=>Yt<=0||Yt>0&&Yt>G.value.length,o=v=>new Promise(C=>{G.value.push(v),C(!0)}),i=v=>{for(const C of G.value)if(C.id===v)return C;return null},c=(v,C)=>{let x;const D=ji(v.query.__tab),V=Ts(D.id,v.path,v.query.valueOf()),ee=v.query.__src;let te=null;for(const me of l.unref(G))me.active=!1,me.id===D.id&&(te=me);const ge={id:V,tabId:D.id,path:v.path,query:v.query};if(te===null){const me=new $t;me.push(ge),te={id:D.id,title:D.title,closable:D.closable,refreshable:D.refreshable,iframe:D.iframe,url:decodeURIComponent(ee),active:!0,pages:me},o(te).then(()=>{t.emit(pe.TAB_ACTIVE,{id:D.id,isRoute:!1})})}else te.active=!0,(te.pages.isEmpty()||te.pages.peek().id!==ge.id)&&te.pages.push(ge);return w(te),Ke.has(V)?x=Ke.get(V):(x=l.defineComponent({name:V,components:{DynamicComponent:C},setup(){return l.onActivated(()=>{g(),C.props=null}),l.onUnmounted(()=>{}),()=>l.createVNode("div",{class:"cache-page-wrapper",id:"W-"+D.id},[l.createVNode(l.resolveComponent("dynamic-component"),{tId:D.id,pId:V},null),l.createVNode(Ji,{tId:D.id},null)])}}),Ke.set(V,x)),E(V),x},u=v=>{let C="";for(let x=G.value.length-1;x>=0;x--)if(v===l.unref(G)[x].id){if(!l.unref(G)[x].closable)return v;for(const D of l.unref(G)[x].pages.list())b(D.id),T(D.id);l.unref(G)[x].pages.clear(),G.value.length>1&&l.unref(G)[x].active&&(x===0?C=l.unref(G)[x+1].id:C=l.unref(G)[x-1].id),l.unref(G).splice(x,1);break}return C!==""&&t.emit(pe.TAB_ACTIVE,{id:C}),g(),C},_=()=>{const v=l.unref(G);for(let C=v.length-1;C>=0;C--)if(v[C].closable){for(const x of v[C].pages.list())b(x.id),T(x.id);l.unref(G)[C].pages.clear(),l.unref(G).splice(C,1)}for(const C of v)if(C.active){g();return}t.emit(pe.TAB_ACTIVE,{id:v[v.length-1].id})},h=v=>{const C=l.unref(G);let x;for(let D=C.length-1;D>=0;D--)if(C[D].id===v)x=C[D];else if(C[D].closable&&C[D].id!==v){for(const V of C[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}x.active?g():t.emit(pe.TAB_ACTIVE,{id:v})},d=v=>{let C=-1;const x=l.unref(G);for(let D=0;D<x.length;D++)if(x[D].id===v){C=D-1;break}for(let D=C;D>=0;D--)if(x[D].closable){for(const V of x[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}for(const D of x)if(D.active){g();return}t.emit(pe.TAB_ACTIVE,{id:x[0].id})},N=v=>{const C=l.unref(G);let x=C.length;for(let D=0;D<C.length;D++)if(C[D].id===v){x=D+1;break}for(let D=C.length-1;D>=x;D--)if(C[D].closable){for(const V of C[D].pages.list())b(V.id),T(V.id);l.unref(G)[D].pages.clear(),l.unref(G).splice(D,1)}for(const D of C)if(D.active){g();return}t.emit(pe.TAB_ACTIVE,{id:C[C.length-1].id})},S=v=>{var C;for(const x of l.unref(G))if(x.id===v){const D=(C=x.pages.peek())==null?void 0:C.id;for(let V=le.value.length-1;V>=0;V--)if(le.value[V]===D){le.value.splice(V,1),x.active&&(Nt.value=!1);break}break}},L=()=>{const v=new Set;G.value.forEach(C=>{v.add(C.pages.peek().id)});for(let C=le.value.length-1;C>=0;C--){const x=le.value[C];v.has(x)&&le.value.splice(C,1)}Nt.value=!1},y=(v,C)=>{Ke.set(v,C)},m=v=>Ke.get(v),b=v=>{Ke.delete(v)},T=v=>{jt.add(v)},g=()=>{for(let v=le.value.length-1;v>=0;v--)jt.has(le.value[v])&&l.unref(le).splice(v,1);jt.clear()},k=v=>{for(let C=le.value.length-1;C>=0;C--)v===le.value[C]&&l.unref(le).splice(C,1)},E=v=>{new Set(le.value).has(v)||le.value.push(v)},O=(v,C=!0)=>new Promise(x=>{for(let D=G.value.length-1;D>=0;D--){const V=G.value[D];if(V.id===v){if(V.active)break;if(V.active=!0,Nt.value=!1,w(V),C){const ee=V.pages.peek();e.push({path:ee.path,query:ee.query})}}else G.value[D].active=!1}x(!0)}),w=v=>{window.sessionStorage.setItem(Ns,JSON.stringify(v))},R=()=>{Y(),l.unref(G).push(...Ht),t.emit(pe.TAB_ACTIVE,{id:Ht[0].id})},Y=()=>{l.unref(G).splice(0),Ke.clear(),jt.clear(),l.unref(le).splice(0),Nt.value=!0};return{tabs:G,caches:le,pageShown:Nt,setMaxSize:v=>{Yt=v},canAddTab:s,initial:r,size:n,active:O,destroy:Y,reset:R,addCache:E,removeCache:k,getTab:i,addTab:o,removeTab:u,removeAllTabs:_,removeLeftTabs:d,removeRightTabs:N,removeOtherTabs:h,hasTab:a,addPage:c,addComponent:y,getComponent:m,removeComponent:b,markDeletableCache:T,removeDeletableCache:g,refreshTab:S,refreshAllTabs:L}},Qi={class:"stack-tab__contextmenu-item"},Be=l.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Qi,[l.createElementVNode("div",{class:l.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),l.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=l.withModifiers(()=>{},["prevent"]))},l.toDisplayString(t.title),33)]))}}),el={key:0,class:"divider div-transparent"},tl=((e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n})(l.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=kn().getI18n(),r=l.ref(),a=l.reactive({left:t.left,top:t.top}),{removeTab:s,removeAllTabs:o,removeLeftTabs:i,removeRightTabs:c,refreshTab:u,refreshAllTabs:_,removeOtherTabs:h}=Ot();return l.onMounted(()=>{const d=r.value?r.value.clientWidth:0,N=window.innerWidth;a.left+d>N&&(a.left=N-d-5)}),(d,N)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"contextmenu",ref:r,class:"stack-tab__contextmenu",style:l.normalizeStyle({left:`${a.left}px`,top:`${a.top}px`,"z-index":l.unref(os)(".stack-tab,.stack-tab *")})},[l.createVNode(Be,{icon:"stack-tab__icon-reload svg-mask",title:l.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=S=>l.unref(u)(d.tabItem.id))},null,8,["title"]),l.createVNode(Be,{icon:"stack-tab__icon-reload-all svg-mask",title:l.unref(n)("VueStackTab.reloadAll"),onClick:l.unref(_)},null,8,["title","onClick"]),l.createVNode(Be,{icon:"stack-tab__icon-close svg-mask",title:l.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=S=>l.unref(s)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-lefts svg-mask",title:l.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=S=>l.unref(i)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-rights svg-mask",title:l.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=S=>l.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),l.createVNode(Be,{icon:"stack-tab__icon-close-others svg-mask",title:l.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=S=>l.unref(h)(d.tabItem.id))},null,8,["title"]),l.createVNode(Be,{icon:"stack-tab__icon-close-all svg-mask",title:l.unref(n)("VueStackTab.closeAll"),onClick:l.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(l.openBlock(),l.createElementBlock("div",el)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.contextMenu,(S,L)=>(l.openBlock(),l.createBlock(Be,{key:L,icon:S.icon,title:S.title,disabled:S.disabled(d.tabItem)?"disabled":null,onClick:y=>!S.disabled&&S.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-e8e2187c"]]),nl=()=>{const e=l.reactive({item:{},index:-1,left:0,top:0,max:0}),t=l.ref(!1);l.onMounted(()=>{document.addEventListener("click",r)}),l.onUnmounted(()=>{document.removeEventListener("click",r)});const n=async(a,s,o,i)=>{t.value=!1,await l.nextTick(()=>{const{clientY:c,clientX:u}=a;t.value=!0,Object.assign(e,{item:s,index:o,top:c,left:u,max:i})})},r=a=>{a.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},rl={class:"stack-tab__item-title"},sl=["title"],al=["title"],ol=l.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,r=Tt(),{t:a}=kn().getI18n(),s=l.ref(),o=e;r.on(pe.TAB_ACTIVE,({id:_,isRoute:h})=>{o.item.id===_&&u(h)});const i=l.computed(()=>o.item.title||a("undefined")),c=()=>{n("close",o.item)},u=(_=!0)=>{n("active",o.item,s,_)};return(_,h)=>(l.openBlock(),l.createElementBlock("li",{ref_key:"curtab",ref:s,class:l.normalizeClass(["stack-tab__item",{"is-active":_.item.active,"is-icon":_.item.closable}]),onClick:u},[l.createElementVNode("div",rl,[l.createElementVNode("div",{class:"stack-tab__item-title-content",title:i.value},l.toDisplayString(i.value),9,sl)]),_.item.closable?(l.openBlock(),l.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:l.unref(a)("VueStackTab.close"),onClick:l.withModifiers(c,["stop"])},null,8,al)):l.createCommentVNode("",!0)],2))}});var qe=[],il=function(){return qe.some(function(e){return e.activeTargets.length>0})},ll=function(){return qe.some(function(e){return e.skippedTargets.length>0})},Os="ResizeObserver loop completed with undelivered notifications.",cl=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Os}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Os),window.dispatchEvent(e)},vt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(vt||(vt={}));var Ze=function(e){return Object.freeze(e)},ul=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ze(this)}return e}(),vs=function(){function e(t,n,r,a){return this.x=t,this.y=n,this.width=r,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,a=t.top,s=t.right,o=t.bottom,i=t.left,c=t.width,u=t.height;return{x:n,y:r,top:a,right:s,bottom:o,left:i,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Un=function(e){return e instanceof SVGElement&&"getBBox"in e},Is=function(e){if(Un(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var a=e,s=a.offsetWidth,o=a.offsetHeight;return!(s||o||e.getClientRects().length)},Ls=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)},fl=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},It=typeof window<"u"?window:{},Xt=new WeakMap,ys=/auto|scroll/,dl=/^tb|vertical/,ml=/msie|trident/i.test(It.navigator&&It.navigator.userAgent),Le=function(e){return parseFloat(e||"0")},it=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ul((n?t:e)||0,(n?e:t)||0)},ks=Ze({devicePixelContentBoxSize:it(),borderBoxSize:it(),contentBoxSize:it(),contentRect:new vs(0,0,0,0)}),As=function(e,t){if(t===void 0&&(t=!1),Xt.has(e)&&!t)return Xt.get(e);if(Is(e))return Xt.set(e,ks),ks;var n=getComputedStyle(e),r=Un(e)&&e.ownerSVGElement&&e.getBBox(),a=!ml&&n.boxSizing==="border-box",s=dl.test(n.writingMode||""),o=!r&&ys.test(n.overflowY||""),i=!r&&ys.test(n.overflowX||""),c=r?0:Le(n.paddingTop),u=r?0:Le(n.paddingRight),_=r?0:Le(n.paddingBottom),h=r?0:Le(n.paddingLeft),d=r?0:Le(n.borderTopWidth),N=r?0:Le(n.borderRightWidth),S=r?0:Le(n.borderBottomWidth),L=r?0:Le(n.borderLeftWidth),y=h+u,m=c+_,b=L+N,T=d+S,g=i?e.offsetHeight-T-e.clientHeight:0,k=o?e.offsetWidth-b-e.clientWidth:0,E=a?y+b:0,O=a?m+T:0,w=r?r.width:Le(n.width)-E-k,R=r?r.height:Le(n.height)-O-g,Y=w+y+k+b,oe=R+m+g+T,v=Ze({devicePixelContentBoxSize:it(Math.round(w*devicePixelRatio),Math.round(R*devicePixelRatio),s),borderBoxSize:it(Y,oe,s),contentBoxSize:it(w,R,s),contentRect:new vs(h,c,w,R)});return Xt.set(e,v),v},Ss=function(e,t,n){var r=As(e,n),a=r.borderBoxSize,s=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case vt.DEVICE_PIXEL_CONTENT_BOX:return o;case vt.BORDER_BOX:return a;default:return s}},_l=function(){function e(t){var n=As(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ze([n.borderBoxSize]),this.contentBoxSize=Ze([n.contentBoxSize]),this.devicePixelContentBoxSize=Ze([n.devicePixelContentBoxSize])}return e}(),Cs=function(e){if(Is(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},hl=function(){var e=1/0,t=[];qe.forEach(function(o){if(o.activeTargets.length!==0){var i=[];o.activeTargets.forEach(function(u){var _=new _l(u.target),h=Cs(u.target);i.push(_),u.lastReportedSize=Ss(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,i,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var a=r[n];a()}return e},ws=function(e){qe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(a){a.isActive()&&(Cs(a.target)>e?n.activeTargets.push(a):n.skippedTargets.push(a))})})},pl=function(){var e=0;for(ws(e);il();)e=hl(),ws(e);return ll()&&cl(),e>0},Vn,Rs=[],gl=function(){return Rs.splice(0).forEach(function(e){return e()})},bl=function(e){if(!Vn){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return gl()}).observe(n,r),Vn=function(){n.textContent="".concat(t?t--:t++)}}Rs.push(e),Vn()},El=function(e){bl(function(){requestAnimationFrame(e)})},zt=0,Tl=function(){return!!zt},Nl=250,Ol={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ps=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ds=function(e){return e===void 0&&(e=0),Date.now()+e},$n=!1,vl=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=Nl),!$n){$n=!0;var r=Ds(t);El(function(){var a=!1;try{a=pl()}finally{if($n=!1,t=r-Ds(),!Tl())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,Ol)};document.body?n():It.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ps.forEach(function(n){return It.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ps.forEach(function(n){return It.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Bn=new vl,Ms=function(e){!zt&&e>0&&Bn.start(),zt+=e,!zt&&Bn.stop()},Il=function(e){return!Un(e)&&!fl(e)&&getComputedStyle(e).display==="inline"},Ll=function(){function e(t,n){this.target=t,this.observedBox=n||vt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ss(this.target,this.observedBox,!0);return Il(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),yl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Kt=new WeakMap,Fs=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},qt=function(){function e(){}return e.connect=function(t,n){var r=new yl(t,n);Kt.set(t,r)},e.observe=function(t,n,r){var a=Kt.get(t),s=a.observationTargets.length===0;Fs(a.observationTargets,n)<0&&(s&&qe.push(a),a.observationTargets.push(new Ll(n,r&&r.box)),Ms(1),Bn.schedule())},e.unobserve=function(t,n){var r=Kt.get(t),a=Fs(r.observationTargets,n),s=r.observationTargets.length===1;a>=0&&(s&&qe.splice(qe.indexOf(r),1),r.observationTargets.splice(a,1),Ms(-1))},e.disconnect=function(t){var n=this,r=Kt.get(t);r.observationTargets.slice().forEach(function(a){return n.unobserve(t,a.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),xs=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.");qt.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(!Ls(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");qt.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(!Ls(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");qt.unobserve(this,t)},e.prototype.disconnect=function(){qt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const kl=["disabled","title"],Al={key:1,class:"stack-tab__button"},Zt=l.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.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?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(l.openBlock(),l.createElementBlock("div",Al,[l.renderSlot(t.$slots,"icon")])):l.createCommentVNode("",!0)],10,kl))}}),Sl=l.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=l.ref(null),r=l.ref(null),a=l.ref(null),s=l.ref(!1),o=l.ref(!1),i=l.ref(!1),c=l.ref(!0),u=l.ref(),_=e,h=l.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=l.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});l.watch(h,v=>{N(v)});const N=v=>{o.value=v.scrollLeft<=10,i.value=v.clientWidth+v.scrollLeft-v.scrollWidth>=-10,c.value=v.scrollWidth!==v.clientWidth},S=l.computed(()=>h.scrollWidth>h.clientWidth),L=l.computed(()=>{if(!S.value)return 0;const{clientWidth:v,scrollWidth:C}=h;return v/C*v}),y=l.computed(()=>{if(!S.value)return 0;const{clientWidth:v,scrollWidth:C,scrollLeft:x}=h;return(v-L.value)*(x/(C-v))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:v,scrollWidth:C,scrollLeft:x}=n.value;Object.assign(h,{clientWidth:v,scrollWidth:C,scrollLeft:x})},b=new xs(()=>{var C;m();const v=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");v&&(oe(v)||Y(v))}),T=new xs(()=>{var v;if(!S.value){const C=(v=n.value)==null?void 0:v.querySelector(".stack-tab__item.is-active");C&&(oe(C)||Y(C))}m()}),g=(v,C=!0)=>{as({wrap:n.value,left:v,smooth:C})},k=v=>{g(n.value.scrollLeft+v)},E=v=>{const C=v.deltaY<0;g(n.value.scrollLeft+(C?-_.space:_.space))},O=v=>{var C;Object.assign(d,{startPageX:v.pageX,startScrollLeft:(C=n.value)==null?void 0:C.scrollLeft,startThumbLeft:y.value,thumbLeft:y.value}),s.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",R)},w=v=>{const{clientWidth:C,scrollWidth:x}=h;let D=d.startThumbLeft+v.pageX-d.startPageX;const V=C-L.value;D<0?D=0:D>V&&(D=V),d.thumbLeft=D,g(D*(x-C)/(C-L.value),!1),v.preventDefault()},R=v=>{s.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",R),v.preventDefault()};l.onMounted(()=>{var C;b.observe(u.value);const v=(C=n.value)==null?void 0:C.querySelector(".stack-tab__nav");T.observe(v)}),l.onUnmounted(()=>{b.disconnect(),T.disconnect()});const Y=v=>{Ni({el:v,wrap:n,block:"end",inline:"center"})},oe=v=>{if(!S.value)return!0;const C=v.offsetLeft,x=n.value.scrollLeft;return!(C<x||C+v.clientWidth>x+n.value.clientWidth)};return t({scrollIntoView:Y,isInView:oe}),(v,C)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[c.value?(l.openBlock(),l.createBlock(Zt,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:C[0]||(C[0]=x=>!o.value&&k(-1*v.space))},null,8,["disabled"])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:l.withModifiers(E,["prevent"])},[l.createElementVNode("div",{ref_key:"container",ref:n,class:l.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},[l.renderSlot(v.$slots,"default")],34),l.withDirectives(l.createElementVNode("div",{ref_key:"bar",ref:r,class:l.normalizeClass(["stack-tab__scrollbar",{"is-dragging":s.value}])},[l.createElementVNode("div",{ref_key:"thumb",ref:a,class:l.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":s.value}]),style:l.normalizeStyle({width:`${L.value}px`,transform:`translateX(${y.value}px)`}),onMousedown:l.withModifiers(O,["prevent"])},null,38)],2),[[l.vShow,S.value]])],544),c.value?(l.openBlock(),l.createBlock(Zt,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:i.value,onClick:C[1]||(C[1]=x=>!i.value&&k(v.space))},null,8,["disabled"])):l.createCommentVNode("",!0)],64))}}),Cl={class:"stack-tab__header"},wl=l.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Ue.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}=kn().getI18n(),r=l.inject("maximum"),a=t,s=l.ref(),{shown:o,contextMenuData:i,showContextMenu:c}=nl(),u=e,{removeTab:_,active:h,tabs:d}=Ot(),N=l.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),S=l.computed(()=>u.tabScrollMode===Ue.BOTH||u.tabScrollMode===Ue.BUTTON),L=u.tabScrollMode===Ue.BOTH||u.tabScrollMode===Ue.WHEEL,y=b=>{if(b.closable){const T=_(b.id);a("active",T)}o.value=!1},m=(b,T,g)=>{s.value&&(l.nextTick(()=>{s.value.isInView(T.value)||s.value.scrollIntoView(T.value)}),h(b.id,g),a("active",b.id))};return(b,T)=>(l.openBlock(),l.createElementBlock("div",Cl,[l.renderSlot(b.$slots,"leftButton"),l.createVNode(Sl,{ref_key:"scroll",ref:s,space:b.space,"is-scroll-wheel":l.unref(L),"is-scroll-button":S.value},{default:l.withCtx(()=>[l.createVNode(l.TransitionGroup,l.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(d),(g,k)=>(l.openBlock(),l.createBlock(ol,{key:g.id,contextmenu:b.contextmenu,item:g,onContextmenu:l.withModifiers(E=>l.unref(c)(E,g,k,l.unref(d).length),["prevent"]),onMouseup:l.withModifiers(E=>y(g),["middle","prevent"]),onClose:y,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),l.renderSlot(b.$slots,"rightButton"),l.createVNode(Zt,{"icon-class":l.unref(r)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:l.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=g=>r.value=!l.unref(r))},null,8,["icon-class","title"]),l.createVNode(l.Transition,{name:"stack-tab-zoom",appear:""},{default:l.withCtx(()=>[l.unref(o)?(l.openBlock(),l.createBlock(tl,{key:"tabMenuTrans",left:l.unref(i).left,top:l.unref(i).top,"tab-item":l.unref(i).item,max:l.unref(i).max,index:l.unref(i).index},null,8,["left","top","tab-item","max","index"])):l.createCommentVNode("",!0)]),_:1})]))}});var Rl=typeof global=="object"&&global&&global.Object===Object&&global,Pl=typeof self=="object"&&self&&self.Object===Object&&self,Us=Rl||Pl||Function("return this")(),Jt=Us.Symbol,Vs=Object.prototype,Dl=Vs.hasOwnProperty,Ml=Vs.toString,Lt=Jt?Jt.toStringTag:void 0;function Fl(e){var t=Dl.call(e,Lt),n=e[Lt];try{e[Lt]=void 0;var r=!0}catch{}var a=Ml.call(e);return r&&(t?e[Lt]=n:delete e[Lt]),a}var xl=Object.prototype,Ul=xl.toString;function Vl(e){return Ul.call(e)}var $l="[object Null]",Bl="[object Undefined]",$s=Jt?Jt.toStringTag:void 0;function Wl(e){return e==null?e===void 0?Bl:$l:$s&&$s in Object(e)?Fl(e):Vl(e)}function Gl(e){return e!=null&&typeof e=="object"}var Hl="[object Symbol]";function jl(e){return typeof e=="symbol"||Gl(e)&&Wl(e)==Hl}var Yl=/\s/;function Xl(e){for(var t=e.length;t--&&Yl.test(e.charAt(t)););return t}var zl=/^\s+/;function Kl(e){return e&&e.slice(0,Xl(e)+1).replace(zl,"")}function Qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,ql=/^[-+]0x[0-9a-f]+$/i,Zl=/^0b[01]+$/i,Jl=/^0o[0-7]+$/i,Ql=parseInt;function Ws(e){if(typeof e=="number")return e;if(jl(e))return Bs;if(Qt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kl(e);var n=Zl.test(e);return n||Jl.test(e)?Ql(e.slice(2),n?2:8):ql.test(e)?Bs:+e}var Wn=function(){return Us.Date.now()},ec="Expected a function",tc=Math.max,nc=Math.min;function rc(e,t,n){var r,a,s,o,i,c,u=0,_=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(ec);t=Ws(t)||0,Qt(n)&&(_=!!n.leading,h="maxWait"in n,s=h?tc(Ws(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d);function N(E){var O=r,w=a;return r=a=void 0,u=E,o=e.apply(w,O),o}function S(E){return u=E,i=setTimeout(m,t),_?N(E):o}function L(E){var O=E-c,w=E-u,R=t-O;return h?nc(R,s-w):R}function y(E){var O=E-c,w=E-u;return c===void 0||O>=t||O<0||h&&w>=s}function m(){var E=Wn();if(y(E))return b(E);i=setTimeout(m,L(E))}function b(E){return i=void 0,d&&r?N(E):(r=a=void 0,o)}function T(){i!==void 0&&clearTimeout(i),u=0,r=c=a=i=void 0}function g(){return i===void 0?o:b(Wn())}function k(){var E=Wn(),O=y(E);if(r=arguments,a=this,c=E,O){if(i===void 0)return S(c);if(h)return clearTimeout(i),i=setTimeout(m,t),N(c)}return i===void 0&&(i=setTimeout(m,t)),o}return k.cancel=T,k.flush=g,k}var sc="Expected a function";function ac(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(sc);return Qt(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),rc(e,t,{leading:r,maxWait:t,trailing:a})}let Gs;const Hs=()=>{const e=Ne.useRouter(),{active:t,hasTab:n,pageShown:r,reset:a,canAddTab:s}=Ot(),o=Tt();return{openNewTab:ac(u=>new Promise((_,h)=>{if(!r.value){h();return}const d=Re(u,{refreshable:!0,closable:!0,iframe:!1});if(n(d.id)){o.emit(pe.TAB_ACTIVE,{id:d.id}),_(d.id);return}if(d.id||(d.id=cs()),!s()){h("Max Size");return}const N=Es(d);let S=Re({__tab:N},u.query),L;if(u.iframe){const y=encodeURIComponent(u.path);L=Gs,S.__src=y}else{const y=xn(u.path);L=y.path,S=Re(y.query,S)}e.push({path:L,query:S}),_(d.id)}),500),setIFramePath:u=>{Gs=u},active:t,reset:a}},oc={class:"stack-tab__container"},ic=["src"],js=l.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:Ue.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:r,caches:a,addPage:s,destroy:o,initial:i,setMaxSize:c}=Ot(),u=t,_=e;l.provide("locales",{..._.i18n});const h=l.ref(!1);l.provide("maximum",h);const{setIFramePath:d}=Hs();d(_.iframePath),l.onBeforeMount(()=>{i(_.defaultTabs)});const N=(L,y)=>s(L,y),S=L=>{u("onActive",L)};return c(_.max),l.onUnmounted(()=>{o()}),(L,y)=>{const m=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["stack-tab",{"stack-tab__maximum":h.value}]),style:l.normalizeStyle({width:L.width,height:L.height,"z-index":h.value?l.unref(os)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[l.createVNode(wl,{space:L.space,onActive:S,"tab-transition":L.tabTransition,max:L.max},{leftButton:l.withCtx(()=>[l.renderSlot(L.$slots,"leftButton")]),rightButton:l.withCtx(()=>[l.renderSlot(L.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),l.createElementVNode("div",oc,[l.createVNode(m,null,{default:l.withCtx(({Component:b,route:T})=>[l.createVNode(l.Transition,{name:L.pageTransition,onAfterLeave:y[0]||(y[0]=g=>r.value=!0),mode:"out-in"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.KeepAlive,{include:l.unref(a)},[(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.unref(r)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(N(T,b)),{key:T.fullPath})):l.createCommentVNode("",!0)]),fallback:l.withCtx(()=>[l.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),l.createVNode(l.TransitionGroup,{name:L.pageTransition,appear:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n).filter(b=>b.iframe),b=>l.withDirectives((l.openBlock(),l.createElementBlock("iframe",{key:b.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(b.url??"")?"about:blank":b.url,frameborder:"0"},null,8,ic)),[[l.vShow,b.active&&l.unref(r)]])),128))]),_:1},8,["name"])])],6)}}}),Gn=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ys=typeof TextEncoder=="function"?new TextEncoder:void 0,yt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(yt);const ye=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const lc=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Xs=typeof btoa=="function"?e=>btoa(e):Gn?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,a,s="";const o=e.length%3;for(let i=0;i<e.length;){if((n=e.charCodeAt(i++))>255||(r=e.charCodeAt(i++))>255||(a=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,s+=yt[t>>18&63]+yt[t>>12&63]+yt[t>>6&63]+yt[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},cc=Gn?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;r<a;r+=4096)n.push(ye.apply(null,e.subarray(r,r+4096)));return Xs(n.join(""))},uc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ye(192|t>>>6)+ye(128|t&63):ye(224|t>>>12&15)+ye(128|t>>>6&63)+ye(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ye(240|t>>>18&7)+ye(128|t>>>12&63)+ye(128|t>>>6&63)+ye(128|t&63)}},fc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,dc=e=>e.replace(fc,uc),zs=Gn?e=>Buffer.from(e,"utf8").toString("base64"):Ys?e=>cc(Ys.encode(e)):e=>Xs(dc(e)),mc=(e,t=!1)=>t?lc(zs(e)):zs(e),_c=e=>{const r=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><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.4V12.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.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,o="data:image/svg+xml;base64,"+mc(r),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;`)},Ks=()=>{const{attrs:e}=l.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:r,removeComponent:a,getComponent:s}=Ot(),o=Ne.useRoute(),i=Ne.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Re({__tab:u},d.query);i.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const S=n(c);if(!S)return;const L=S.pages;let y=0;if(typeof d=="number")y=Math.abs(d);else{let T=1,g=!1;const k=L.list(),E=xn(d);N=Re(E.query,N);for(let O=L.size()-2;O>=0;O--){if(k[O].path===E.path){g=!0;break}T+=1}g&&(y=T)}if(y===0||L.size()<=y)return;for(let T=0;T<y;T++){const g=L.pop();a(g.id),r(g.id)}const m=L==null?void 0:L.peek(),b=s(m.id);if(b!=null){const T=b.components.DynamicComponent;T.props=Re(N,T.props)}i.push({path:m.path,query:m.query})}}},hc=l.defineComponent({__name:"iframe",setup(e){return Ks(),(t,n)=>(l.openBlock(),l.createElementBlock("div"))}}),pc=()=>{const e=Tt(),{attrs:t}=l.getCurrentInstance();l.onUnmounted(()=>{r()});const n=()=>{e.emit(pe.PAGE_LOADING,{tId:t.tId,value:!0})},r=()=>{e.emit(pe.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:r}},gc=ui({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),bc={install(e){_c("0.1.18"),e.component("VueStackTabs",js).use(Ki).use(gc)}};J.IFrame=hc,J.Stack=$t,J.StackTab=js,J.TabHeaderButton=Zt,J.TabScrollMode=Ue,J.default=bc,J.useStackTab=Hs,J.useTabLoading=pc,J.useTabRouter=Ks,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-stack-tabs",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Vue.js component for router tab.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -6,7 +6,7 @@ import { defu } from 'defu'
6
6
  import { encodeTabInfo } from '../utils/TabIdHelper'
7
7
  import { uriDecode } from '../utils/UriHelper'
8
8
  import { ulid } from 'ulidx'
9
- import { useEmitter } from '@/lib/hooks/useTabMitt'
9
+ import { MittType, useEmitter } from './useTabMitt'
10
10
  let iframePath: string
11
11
  export default () => {
12
12
  const router = useRouter()
@@ -29,7 +29,7 @@ export default () => {
29
29
  * In the function of openNewTab, if the tab already 'ACTIVE' then do nothing.
30
30
  */
31
31
  if (hasTab(tabInfo.id!)) {
32
- emitter.emit('tabActive', { id: tabInfo.id! })
32
+ emitter.emit(MittType.TAB_ACTIVE, { id: tabInfo.id! })
33
33
  // active(tabInfo.id!)
34
34
  resolve(tabInfo.id)
35
35
  return