@squirrel-cloud/ui-vue 0.3.9 → 0.3.11

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.
@@ -669,15 +669,15 @@ pe.prototype.parse = function(u, e) {
669
669
  const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
670
670
  if (!h) {
671
671
  const d = this.hostname.split(/\./);
672
- for (let x = 0, _ = d.length; x < _; x++) {
673
- const v = d[x];
674
- if (v && !v.match(yt)) {
675
- let k = "";
676
- for (let w = 0, C = v.length; w < C; w++)
677
- v.charCodeAt(w) > 127 ? k += "x" : k += v[w];
678
- if (!k.match(yt)) {
679
- const w = d.slice(0, x), C = d.slice(x + 1), E = v.match(Tr);
680
- E && (w.push(E[1]), C.unshift(E[2])), C.length && (o = C.join(".") + o), this.hostname = w.join(".");
672
+ for (let g = 0, k = d.length; g < k; g++) {
673
+ const _ = d[g];
674
+ if (_ && !_.match(yt)) {
675
+ let v = "";
676
+ for (let y = 0, w = _.length; y < w; y++)
677
+ _.charCodeAt(y) > 127 ? v += "x" : v += _[y];
678
+ if (!v.match(yt)) {
679
+ const y = d.slice(0, g), w = d.slice(g + 1), E = _.match(Tr);
680
+ E && (y.push(E[1]), w.unshift(E[2])), w.length && (o = w.join(".") + o), this.hostname = y.join(".");
681
681
  break;
682
682
  }
683
683
  }
@@ -1544,22 +1544,22 @@ function wo(u) {
1544
1544
  let f = i.level, p = 0;
1545
1545
  a.length > 0 && a[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (a = a.slice(1));
1546
1546
  for (let h = 0; h < a.length; h++) {
1547
- const d = a[h].url, x = u.md.normalizeLink(d);
1548
- if (!u.md.validateLink(x))
1547
+ const d = a[h].url, g = u.md.normalizeLink(d);
1548
+ if (!u.md.validateLink(g))
1549
1549
  continue;
1550
- let _ = a[h].text;
1551
- a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(_) ? _ = u.md.normalizeLinkText("mailto:" + _).replace(/^mailto:/, "") : _ = u.md.normalizeLinkText(_) : _ = u.md.normalizeLinkText("http://" + _).replace(/^http:\/\//, "");
1552
- const v = a[h].index;
1553
- if (v > p) {
1550
+ let k = a[h].text;
1551
+ a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
1552
+ const _ = a[h].index;
1553
+ if (_ > p) {
1554
1554
  const E = new u.Token("text", "", 0);
1555
- E.content = s.slice(p, v), E.level = f, l.push(E);
1555
+ E.content = s.slice(p, _), E.level = f, l.push(E);
1556
1556
  }
1557
- const k = new u.Token("link_open", "a", 1);
1558
- k.attrs = [["href", x]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
1559
- const w = new u.Token("text", "", 0);
1560
- w.content = _, w.level = f, l.push(w);
1561
- const C = new u.Token("link_close", "a", -1);
1562
- C.level = --f, C.markup = "linkify", C.info = "auto", l.push(C), p = a[h].lastIndex;
1557
+ const v = new u.Token("link_open", "a", 1);
1558
+ v.attrs = [["href", g]], v.level = f++, v.markup = "linkify", v.info = "auto", l.push(v);
1559
+ const y = new u.Token("text", "", 0);
1560
+ y.content = k, y.level = f, l.push(y);
1561
+ const w = new u.Token("link_close", "a", -1);
1562
+ w.level = --f, w.markup = "linkify", w.info = "auto", l.push(w), p = a[h].lastIndex;
1563
1563
  }
1564
1564
  if (p < s.length) {
1565
1565
  const h = new u.Token("text", "", 0);
@@ -1630,33 +1630,33 @@ function Bo(u, e) {
1630
1630
  d = u[t].content.charCodeAt(u[t].content.length - 1);
1631
1631
  break;
1632
1632
  }
1633
- let x = 32;
1633
+ let g = 32;
1634
1634
  if (s < a)
1635
- x = i.charCodeAt(s);
1635
+ g = i.charCodeAt(s);
1636
1636
  else
1637
1637
  for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
1638
1638
  if (u[t].content) {
1639
- x = u[t].content.charCodeAt(0);
1639
+ g = u[t].content.charCodeAt(0);
1640
1640
  break;
1641
1641
  }
1642
- const _ = Ku(d) || Ju(String.fromCharCode(d)), v = Ku(x) || Ju(String.fromCharCode(x)), k = Qu(d), w = Qu(x);
1643
- if (w ? f = !1 : v && (k || _ || (f = !1)), k ? p = !1 : _ && (w || v || (p = !1)), x === 34 && l[0] === '"' && d >= 48 && d <= 57 && (p = f = !1), f && p && (f = _, p = v), !f && !p) {
1642
+ const k = Ku(d) || Ju(String.fromCharCode(d)), _ = Ku(g) || Ju(String.fromCharCode(g)), v = Qu(d), y = Qu(g);
1643
+ if (y ? f = !1 : _ && (v || k || (f = !1)), v ? p = !1 : k && (y || _ || (p = !1)), g === 34 && l[0] === '"' && d >= 48 && d <= 57 && (p = f = !1), f && p && (f = k, p = _), !f && !p) {
1644
1644
  h && (o.content = le(o.content, l.index, Et));
1645
1645
  continue;
1646
1646
  }
1647
1647
  if (p)
1648
1648
  for (t = n.length - 1; t >= 0; t--) {
1649
- let C = n[t];
1649
+ let w = n[t];
1650
1650
  if (n[t].level < c)
1651
1651
  break;
1652
- if (C.single === h && n[t].level === c) {
1653
- C = n[t];
1652
+ if (w.single === h && n[t].level === c) {
1653
+ w = n[t];
1654
1654
  let E, M;
1655
- h ? (E = e.md.options.quotes[2], M = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], M = e.md.options.quotes[1]), o.content = le(o.content, l.index, M), u[C.token].content = le(
1656
- u[C.token].content,
1657
- C.pos,
1655
+ h ? (E = e.md.options.quotes[2], M = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], M = e.md.options.quotes[1]), o.content = le(o.content, l.index, M), u[w.token].content = le(
1656
+ u[w.token].content,
1657
+ w.pos,
1658
1658
  E
1659
- ), s += M.length - 1, C.token === r && (s += E.length - 1), i = o.content, a = i.length, n.length = t;
1659
+ ), s += M.length - 1, w.token === r && (s += E.length - 1), i = o.content, a = i.length, n.length = t;
1660
1660
  continue u;
1661
1661
  }
1662
1662
  }
@@ -1816,17 +1816,17 @@ function Ro(u, e, t, n) {
1816
1816
  if (i !== 124 && i !== 45 && i !== 58 && !V(i) || c === 45 && V(i))
1817
1817
  return !1;
1818
1818
  for (; o < u.eMarks[r]; ) {
1819
- const C = u.src.charCodeAt(o);
1820
- if (C !== 124 && C !== 45 && C !== 58 && !V(C))
1819
+ const w = u.src.charCodeAt(o);
1820
+ if (w !== 124 && w !== 45 && w !== 58 && !V(w))
1821
1821
  return !1;
1822
1822
  o++;
1823
1823
  }
1824
1824
  let s = Le(u, e + 1), a = s.split("|");
1825
1825
  const l = [];
1826
- for (let C = 0; C < a.length; C++) {
1827
- const E = a[C].trim();
1826
+ for (let w = 0; w < a.length; w++) {
1827
+ const E = a[w].trim();
1828
1828
  if (!E) {
1829
- if (C === 0 || C === a.length - 1)
1829
+ if (w === 0 || w === a.length - 1)
1830
1830
  continue;
1831
1831
  return !1;
1832
1832
  }
@@ -1844,32 +1844,32 @@ function Ro(u, e, t, n) {
1844
1844
  return !0;
1845
1845
  const p = u.parentType;
1846
1846
  u.parentType = "table";
1847
- const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), x = [e, 0];
1848
- d.map = x;
1849
- const _ = u.push("thead_open", "thead", 1);
1847
+ const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), g = [e, 0];
1848
+ d.map = g;
1849
+ const k = u.push("thead_open", "thead", 1);
1850
+ k.map = [e, e + 1];
1851
+ const _ = u.push("tr_open", "tr", 1);
1850
1852
  _.map = [e, e + 1];
1851
- const v = u.push("tr_open", "tr", 1);
1852
- v.map = [e, e + 1];
1853
- for (let C = 0; C < a.length; C++) {
1853
+ for (let w = 0; w < a.length; w++) {
1854
1854
  const E = u.push("th_open", "th", 1);
1855
- l[C] && (E.attrs = [["style", "text-align:" + l[C]]]);
1855
+ l[w] && (E.attrs = [["style", "text-align:" + l[w]]]);
1856
1856
  const M = u.push("inline", "", 0);
1857
- M.content = a[C].trim(), M.children = [], u.push("th_close", "th", -1);
1857
+ M.content = a[w].trim(), M.children = [], u.push("th_close", "th", -1);
1858
1858
  }
1859
1859
  u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
1860
- let k, w = 0;
1860
+ let v, y = 0;
1861
1861
  for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
1862
- let C = !1;
1862
+ let w = !1;
1863
1863
  for (let M = 0, $ = h.length; M < $; M++)
1864
1864
  if (h[M](u, r, t, !0)) {
1865
- C = !0;
1865
+ w = !0;
1866
1866
  break;
1867
1867
  }
1868
- if (C || (s = Le(u, r).trim(), !s) || u.sCount[r] - u.blkIndent >= 4 || (a = At(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), w += f - a.length, w > Lo))
1868
+ if (w || (s = Le(u, r).trim(), !s) || u.sCount[r] - u.blkIndent >= 4 || (a = At(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), y += f - a.length, y > Lo))
1869
1869
  break;
1870
1870
  if (r === e + 2) {
1871
1871
  const M = u.push("tbody_open", "tbody", 1);
1872
- M.map = k = [e + 2, 0];
1872
+ M.map = v = [e + 2, 0];
1873
1873
  }
1874
1874
  const E = u.push("tr_open", "tr", 1);
1875
1875
  E.map = [r, r + 1];
@@ -1881,7 +1881,7 @@ function Ro(u, e, t, n) {
1881
1881
  }
1882
1882
  u.push("tr_close", "tr", -1);
1883
1883
  }
1884
- return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), x[1] = r, u.parentType = p, u.line = r, !0;
1884
+ return v && (u.push("tbody_close", "tbody", -1), v[1] = r), u.push("table_close", "table", -1), g[1] = r, u.parentType = p, u.line = r, !0;
1885
1885
  }
1886
1886
  function Io(u, e, t) {
1887
1887
  if (u.sCount[e] - u.blkIndent < 4)
@@ -1941,17 +1941,17 @@ function Po(u, e, t, n) {
1941
1941
  u.parentType = "blockquote";
1942
1942
  let h = !1, d;
1943
1943
  for (d = e; d < t; d++) {
1944
- const w = u.sCount[d] < u.blkIndent;
1944
+ const y = u.sCount[d] < u.blkIndent;
1945
1945
  if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
1946
1946
  break;
1947
- if (u.src.charCodeAt(r++) === 62 && !w) {
1947
+ if (u.src.charCodeAt(r++) === 62 && !y) {
1948
1948
  let E = u.sCount[d] + 1, M, $;
1949
1949
  u.src.charCodeAt(r) === 32 ? (r++, E++, $ = !1, M = !0) : u.src.charCodeAt(r) === 9 ? (M = !0, (u.bsCount[d] + E) % 4 === 3 ? (r++, E++, $ = !1) : $ = !0) : M = !1;
1950
1950
  let Z = E;
1951
1951
  for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
1952
- const y = u.src.charCodeAt(r);
1953
- if (V(y))
1954
- y === 9 ? Z += 4 - (Z + u.bsCount[d] + ($ ? 1 : 0)) % 4 : Z++;
1952
+ const C = u.src.charCodeAt(r);
1953
+ if (V(C))
1954
+ C === 9 ? Z += 4 - (Z + u.bsCount[d] + ($ ? 1 : 0)) % 4 : Z++;
1955
1955
  else
1956
1956
  break;
1957
1957
  r++;
@@ -1961,29 +1961,29 @@ function Po(u, e, t, n) {
1961
1961
  }
1962
1962
  if (h)
1963
1963
  break;
1964
- let C = !1;
1964
+ let w = !1;
1965
1965
  for (let E = 0, M = f.length; E < M; E++)
1966
1966
  if (f[E](u, d, t, !0)) {
1967
- C = !0;
1967
+ w = !0;
1968
1968
  break;
1969
1969
  }
1970
- if (C) {
1970
+ if (w) {
1971
1971
  u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
1972
1972
  break;
1973
1973
  }
1974
1974
  i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] = -1;
1975
1975
  }
1976
- const x = u.blkIndent;
1976
+ const g = u.blkIndent;
1977
1977
  u.blkIndent = 0;
1978
- const _ = u.push("blockquote_open", "blockquote", 1);
1979
- _.markup = ">";
1980
- const v = [e, 0];
1981
- _.map = v, u.md.block.tokenize(u, e, d);
1982
- const k = u.push("blockquote_close", "blockquote", -1);
1983
- k.markup = ">", u.lineMax = c, u.parentType = p, v[1] = u.line;
1984
- for (let w = 0; w < l.length; w++)
1985
- u.bMarks[w + e] = i[w], u.tShift[w + e] = l[w], u.sCount[w + e] = a[w], u.bsCount[w + e] = s[w];
1986
- return u.blkIndent = x, !0;
1978
+ const k = u.push("blockquote_open", "blockquote", 1);
1979
+ k.markup = ">";
1980
+ const _ = [e, 0];
1981
+ k.map = _, u.md.block.tokenize(u, e, d);
1982
+ const v = u.push("blockquote_close", "blockquote", -1);
1983
+ v.markup = ">", u.lineMax = c, u.parentType = p, _[1] = u.line;
1984
+ for (let y = 0; y < l.length; y++)
1985
+ u.bMarks[y + e] = i[y], u.tShift[y + e] = l[y], u.sCount[y + e] = a[y], u.bsCount[y + e] = s[y];
1986
+ return u.blkIndent = g, !0;
1987
1987
  }
1988
1988
  function No(u, e, t, n) {
1989
1989
  const r = u.eMarks[e];
@@ -2065,16 +2065,16 @@ function jo(u, e, t, n) {
2065
2065
  return !1;
2066
2066
  if (n)
2067
2067
  return !0;
2068
- const d = u.src.charCodeAt(h - 1), x = u.tokens.length;
2068
+ const d = u.src.charCodeAt(h - 1), g = u.tokens.length;
2069
2069
  f ? (i = u.push("ordered_list_open", "ol", 1), p !== 1 && (i.attrs = [["start", p]])) : i = u.push("bullet_list_open", "ul", 1);
2070
- const _ = [s, 0];
2071
- i.map = _, i.markup = String.fromCharCode(d);
2072
- let v = !1;
2073
- const k = u.md.block.ruler.getRules("list"), w = u.parentType;
2070
+ const k = [s, 0];
2071
+ i.map = k, i.markup = String.fromCharCode(d);
2072
+ let _ = !1;
2073
+ const v = u.md.block.ruler.getRules("list"), y = u.parentType;
2074
2074
  for (u.parentType = "list"; s < t; ) {
2075
2075
  o = h, r = u.eMarks[s];
2076
- const C = u.sCount[s] + h - (u.bMarks[s] + u.tShift[s]);
2077
- let E = C;
2076
+ const w = u.sCount[s] + h - (u.bMarks[s] + u.tShift[s]);
2077
+ let E = w;
2078
2078
  for (; o < r; ) {
2079
2079
  const W = u.src.charCodeAt(o);
2080
2080
  if (W === 9)
@@ -2087,17 +2087,17 @@ function jo(u, e, t, n) {
2087
2087
  }
2088
2088
  const M = o;
2089
2089
  let $;
2090
- M >= r ? $ = 1 : $ = E - C, $ > 4 && ($ = 1);
2091
- const Z = C + $;
2090
+ M >= r ? $ = 1 : $ = E - w, $ > 4 && ($ = 1);
2091
+ const Z = w + $;
2092
2092
  i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
2093
- const y = [s, 0];
2094
- i.map = y, f && (i.info = u.src.slice(c, h - 1));
2095
- const q = u.tight, g = u.tShift[s], B = u.sCount[s], L = u.listIndent;
2096
- if (u.listIndent = u.blkIndent, u.blkIndent = Z, u.tight = !0, u.tShift[s] = M - u.bMarks[s], u.sCount[s] = E, M >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || v) && (a = !1), v = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = L, u.tShift[s] = g, u.sCount[s] = B, u.tight = q, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), s = u.line, y[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
2093
+ const C = [s, 0];
2094
+ i.map = C, f && (i.info = u.src.slice(c, h - 1));
2095
+ const q = u.tight, x = u.tShift[s], B = u.sCount[s], L = u.listIndent;
2096
+ if (u.listIndent = u.blkIndent, u.blkIndent = Z, u.tight = !0, u.tShift[s] = M - u.bMarks[s], u.sCount[s] = E, M >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || _) && (a = !1), _ = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = L, u.tShift[s] = x, u.sCount[s] = B, u.tight = q, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), s = u.line, C[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
2097
2097
  break;
2098
2098
  let O = !1;
2099
- for (let W = 0, Y = k.length; W < Y; W++)
2100
- if (k[W](u, s, t, !0)) {
2099
+ for (let W = 0, Y = v.length; W < Y; W++)
2100
+ if (v[W](u, s, t, !0)) {
2101
2101
  O = !0;
2102
2102
  break;
2103
2103
  }
@@ -2112,58 +2112,58 @@ function jo(u, e, t, n) {
2112
2112
  if (d !== u.src.charCodeAt(h - 1))
2113
2113
  break;
2114
2114
  }
2115
- return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), _[1] = s, u.line = s, u.parentType = w, a && Zo(u, x), !0;
2115
+ return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), k[1] = s, u.line = s, u.parentType = y, a && Zo(u, g), !0;
2116
2116
  }
2117
2117
  function Ho(u, e, t, n) {
2118
2118
  let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
2119
2119
  if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
2120
2120
  return !1;
2121
- function i(k) {
2122
- const w = u.lineMax;
2123
- if (k >= w || u.isEmpty(k))
2121
+ function i(v) {
2122
+ const y = u.lineMax;
2123
+ if (v >= y || u.isEmpty(v))
2124
2124
  return null;
2125
- let C = !1;
2126
- if (u.sCount[k] - u.blkIndent > 3 && (C = !0), u.sCount[k] < 0 && (C = !0), !C) {
2125
+ let w = !1;
2126
+ if (u.sCount[v] - u.blkIndent > 3 && (w = !0), u.sCount[v] < 0 && (w = !0), !w) {
2127
2127
  const $ = u.md.block.ruler.getRules("reference"), Z = u.parentType;
2128
2128
  u.parentType = "reference";
2129
- let y = !1;
2130
- for (let q = 0, g = $.length; q < g; q++)
2131
- if ($[q](u, k, w, !0)) {
2132
- y = !0;
2129
+ let C = !1;
2130
+ for (let q = 0, x = $.length; q < x; q++)
2131
+ if ($[q](u, v, y, !0)) {
2132
+ C = !0;
2133
2133
  break;
2134
2134
  }
2135
- if (u.parentType = Z, y)
2135
+ if (u.parentType = Z, C)
2136
2136
  return null;
2137
2137
  }
2138
- const E = u.bMarks[k] + u.tShift[k], M = u.eMarks[k];
2138
+ const E = u.bMarks[v] + u.tShift[v], M = u.eMarks[v];
2139
2139
  return u.src.slice(E, M + 1);
2140
2140
  }
2141
2141
  let s = u.src.slice(r, o + 1);
2142
2142
  o = s.length;
2143
2143
  let a = -1;
2144
2144
  for (r = 1; r < o; r++) {
2145
- const k = s.charCodeAt(r);
2146
- if (k === 91)
2145
+ const v = s.charCodeAt(r);
2146
+ if (v === 91)
2147
2147
  return !1;
2148
- if (k === 93) {
2148
+ if (v === 93) {
2149
2149
  a = r;
2150
2150
  break;
2151
- } else if (k === 10) {
2152
- const w = i(c);
2153
- w !== null && (s += w, o = s.length, c++);
2154
- } else if (k === 92 && (r++, r < o && s.charCodeAt(r) === 10)) {
2155
- const w = i(c);
2156
- w !== null && (s += w, o = s.length, c++);
2151
+ } else if (v === 10) {
2152
+ const y = i(c);
2153
+ y !== null && (s += y, o = s.length, c++);
2154
+ } else if (v === 92 && (r++, r < o && s.charCodeAt(r) === 10)) {
2155
+ const y = i(c);
2156
+ y !== null && (s += y, o = s.length, c++);
2157
2157
  }
2158
2158
  }
2159
2159
  if (a < 0 || s.charCodeAt(a + 1) !== 58)
2160
2160
  return !1;
2161
2161
  for (r = a + 2; r < o; r++) {
2162
- const k = s.charCodeAt(r);
2163
- if (k === 10) {
2164
- const w = i(c);
2165
- w !== null && (s += w, o = s.length, c++);
2166
- } else if (!V(k)) break;
2162
+ const v = s.charCodeAt(r);
2163
+ if (v === 10) {
2164
+ const y = i(c);
2165
+ y !== null && (s += y, o = s.length, c++);
2166
+ } else if (!V(v)) break;
2167
2167
  }
2168
2168
  const l = u.md.helpers.parseLinkDestination(s, r, o);
2169
2169
  if (!l.ok)
@@ -2174,36 +2174,36 @@ function Ho(u, e, t, n) {
2174
2174
  r = l.pos;
2175
2175
  const p = r, h = c, d = r;
2176
2176
  for (; r < o; r++) {
2177
- const k = s.charCodeAt(r);
2178
- if (k === 10) {
2179
- const w = i(c);
2180
- w !== null && (s += w, o = s.length, c++);
2181
- } else if (!V(k)) break;
2182
- }
2183
- let x = u.md.helpers.parseLinkTitle(s, r, o);
2184
- for (; x.can_continue; ) {
2185
- const k = i(c);
2186
- if (k === null) break;
2187
- s += k, r = o, o = s.length, c++, x = u.md.helpers.parseLinkTitle(s, r, o, x);
2188
- }
2189
- let _;
2190
- for (r < o && d !== r && x.ok ? (_ = x.str, r = x.pos) : (_ = "", r = p, c = h); r < o; ) {
2191
- const k = s.charCodeAt(r);
2192
- if (!V(k))
2177
+ const v = s.charCodeAt(r);
2178
+ if (v === 10) {
2179
+ const y = i(c);
2180
+ y !== null && (s += y, o = s.length, c++);
2181
+ } else if (!V(v)) break;
2182
+ }
2183
+ let g = u.md.helpers.parseLinkTitle(s, r, o);
2184
+ for (; g.can_continue; ) {
2185
+ const v = i(c);
2186
+ if (v === null) break;
2187
+ s += v, r = o, o = s.length, c++, g = u.md.helpers.parseLinkTitle(s, r, o, g);
2188
+ }
2189
+ let k;
2190
+ for (r < o && d !== r && g.ok ? (k = g.str, r = g.pos) : (k = "", r = p, c = h); r < o; ) {
2191
+ const v = s.charCodeAt(r);
2192
+ if (!V(v))
2193
2193
  break;
2194
2194
  r++;
2195
2195
  }
2196
- if (r < o && s.charCodeAt(r) !== 10 && _)
2197
- for (_ = "", r = p, c = h; r < o; ) {
2198
- const k = s.charCodeAt(r);
2199
- if (!V(k))
2196
+ if (r < o && s.charCodeAt(r) !== 10 && k)
2197
+ for (k = "", r = p, c = h; r < o; ) {
2198
+ const v = s.charCodeAt(r);
2199
+ if (!V(v))
2200
2200
  break;
2201
2201
  r++;
2202
2202
  }
2203
2203
  if (r < o && s.charCodeAt(r) !== 10)
2204
2204
  return !1;
2205
- const v = De(s.slice(1, a));
2206
- return v ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[v] > "u" && (u.env.references[v] = { title: _, href: f }), u.line = c), !0) : !1;
2205
+ const _ = De(s.slice(1, a));
2206
+ return _ ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[_] > "u" && (u.env.references[_] = { title: k, href: f }), u.line = c), !0) : !1;
2207
2207
  }
2208
2208
  const Vo = [
2209
2209
  "address",
@@ -2727,8 +2727,8 @@ function _c(u, e) {
2727
2727
  }
2728
2728
  if (!e) {
2729
2729
  u.pos = p, u.posMax = h;
2730
- const x = u.push("link_open", "a", 1), _ = [["href", c]];
2731
- x.attrs = _, i && _.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
2730
+ const g = u.push("link_open", "a", 1), k = [["href", c]];
2731
+ g.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
2732
2732
  }
2733
2733
  return u.pos = d, u.posMax = f, !0;
2734
2734
  }
@@ -2764,15 +2764,15 @@ function vc(u, e) {
2764
2764
  }
2765
2765
  if (!e) {
2766
2766
  n = u.src.slice(h, d);
2767
- const x = [];
2767
+ const g = [];
2768
2768
  u.md.inline.parse(
2769
2769
  n,
2770
2770
  u.md,
2771
2771
  u.env,
2772
- x
2772
+ g
2773
2773
  );
2774
- const _ = u.push("image", "img", 0), v = [["src", l], ["alt", ""]];
2775
- _.attrs = v, _.children = x, _.content = n, s && v.push(["title", s]);
2774
+ const k = u.push("image", "img", 0), _ = [["src", l], ["alt", ""]];
2775
+ k.attrs = _, k.children = g, k.content = n, s && _.push(["title", s]);
2776
2776
  }
2777
2777
  return u.pos = o, u.posMax = p, !0;
2778
2778
  }
@@ -3274,10 +3274,10 @@ const Jc = (u) => String.fromCodePoint(...u), Kc = function(u) {
3274
3274
  const h = p <= o ? lt : p >= o + ue ? ue : p - o;
3275
3275
  if (f < h)
3276
3276
  break;
3277
- const d = f - h, x = hu - h;
3277
+ const d = f - h, g = hu - h;
3278
3278
  e.push(
3279
- Pe($t(h + d % x, 0))
3280
- ), f = pu(d / x);
3279
+ Pe($t(h + d % g, 0))
3280
+ ), f = pu(d / g);
3281
3281
  }
3282
3282
  e.push(Pe($t(f, 0))), o = x0(r, a, i === c), r = 0, ++i;
3283
3283
  }
@@ -3597,8 +3597,8 @@ function fi() {
3597
3597
  const c = [], i = { children: [] };
3598
3598
  let s = i;
3599
3599
  return r.forEach((a) => {
3600
- var _, v, k, w, C, E, M, $, Z, y, q;
3601
- const { type: l, children: f, content: p, attrs: h, tag: d, hidden: x } = a;
3600
+ var k, _, v, y, w, E, M, $, Z, C, q;
3601
+ const { type: l, children: f, content: p, attrs: h, tag: d, hidden: g } = a;
3602
3602
  switch (l) {
3603
3603
  case "heading_open":
3604
3604
  case "paragraph_open":
@@ -3616,15 +3616,15 @@ function fi() {
3616
3616
  case "em_open":
3617
3617
  case "s_open":
3618
3618
  case "link_open": {
3619
- if (x) break;
3620
- const g = {
3619
+ if (g) break;
3620
+ const x = {
3621
3621
  tag: (o == null ? void 0 : o[d]) ?? d,
3622
3622
  children: [],
3623
3623
  attrs: h ? Object.fromEntries(h) : {}
3624
3624
  };
3625
3625
  if (l === "link_open") {
3626
3626
  const B = a.attrGet("href") ?? "", L = document.location.origin;
3627
- B != null && B.startsWith("http") && !B.includes(L) && (g.attrs.target = "_blank", g.attrs.rel = "noopener noreferrer", g.attrs.dataOuter = "", (_ = g.children) == null || _.push({ tag: nr }));
3627
+ B != null && B.startsWith("http") && !B.includes(L) && (x.attrs.target = "_blank", x.attrs.rel = "noopener noreferrer", x.attrs.dataOuter = "", (k = x.children) == null || k.push({ tag: nr }));
3628
3628
  }
3629
3629
  if (l === "table_open") {
3630
3630
  const B = {
@@ -3632,9 +3632,9 @@ function fi() {
3632
3632
  children: [],
3633
3633
  attrs: { class: "sq-article-table" }
3634
3634
  };
3635
- (v = s.children) == null || v.push(B), c.push(s), s = B;
3635
+ (_ = s.children) == null || _.push(B), c.push(s), s = B;
3636
3636
  }
3637
- (k = s.children) == null || k.push(g), c.push(s), s = g;
3637
+ (v = s.children) == null || v.push(x), c.push(s), s = x;
3638
3638
  break;
3639
3639
  }
3640
3640
  case "heading_close":
@@ -3653,12 +3653,12 @@ function fi() {
3653
3653
  case "em_close":
3654
3654
  case "s_close":
3655
3655
  case "link_close": {
3656
- if (x) break;
3656
+ if (g) break;
3657
3657
  s = c.pop();
3658
3658
  break;
3659
3659
  }
3660
3660
  case "code_inline": {
3661
- (w = s.children) == null || w.push({
3661
+ (y = s.children) == null || y.push({
3662
3662
  tag: (o == null ? void 0 : o[d]) ?? d,
3663
3663
  children: [p],
3664
3664
  attrs: h ? Object.fromEntries(h) : {}
@@ -3667,8 +3667,8 @@ function fi() {
3667
3667
  }
3668
3668
  case "inline": {
3669
3669
  if (f) {
3670
- const g = n(f, o);
3671
- (C = s.children) == null || C.push(...g ?? []);
3670
+ const x = n(f, o);
3671
+ (w = s.children) == null || w.push(...x ?? []);
3672
3672
  } else
3673
3673
  (E = s.children) == null || E.push(p);
3674
3674
  break;
@@ -3692,11 +3692,11 @@ function fi() {
3692
3692
  break;
3693
3693
  }
3694
3694
  case "input": {
3695
- const g = h ? Object.fromEntries(h) : {}, B = g.type ?? "text", L = `${d}-${B}`;
3696
- (y = s.children) == null || y.push({
3695
+ const x = h ? Object.fromEntries(h) : {}, B = x.type ?? "text", L = `${d}-${B}`;
3696
+ (C = s.children) == null || C.push({
3697
3697
  tag: (o == null ? void 0 : o[L]) ?? d,
3698
3698
  children: [],
3699
- attrs: g
3699
+ attrs: x
3700
3700
  });
3701
3701
  break;
3702
3702
  }
@@ -3704,8 +3704,8 @@ function fi() {
3704
3704
  if (p.startsWith("</"))
3705
3705
  s = c.pop();
3706
3706
  else {
3707
- const g = p.replace("<", "").replace(">", ""), B = {
3708
- tag: (o == null ? void 0 : o[g]) ?? g,
3707
+ const x = p.replace("<", "").replace(">", ""), B = {
3708
+ tag: (o == null ? void 0 : o[x]) ?? x,
3709
3709
  children: []
3710
3710
  };
3711
3711
  (q = s.children) == null || q.push(B), c.push(s), s = B;
@@ -3860,7 +3860,7 @@ const { md2tokens: hi, tokens2vueh: pi } = fi(), bi = "sq-article", cl = I({
3860
3860
  name: r.transition
3861
3861
  }, {
3862
3862
  default: H(() => {
3863
- var h, d, x;
3863
+ var h, d, g;
3864
3864
  return [
3865
3865
  bu(F("div", _i, [
3866
3866
  F("div", {
@@ -3875,7 +3875,7 @@ const { md2tokens: hi, tokens2vueh: pi } = fi(), bi = "sq-article", cl = I({
3875
3875
  max: o.value,
3876
3876
  type: (h = r.progressProps) == null ? void 0 : h.type,
3877
3877
  stroke: (d = r.progressProps) == null ? void 0 : d.stroke,
3878
- color: (x = r.progressProps) == null ? void 0 : x.color
3878
+ color: (g = r.progressProps) == null ? void 0 : g.color
3879
3879
  }, null, 8, ["value", "max", "type", "stroke", "color"])) : j("", !0),
3880
3880
  U(f.$slots, "default", {}, () => [
3881
3881
  (m(), R(Cu(r.icon)))
@@ -4093,8 +4093,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4093
4093
  emits: ["click"],
4094
4094
  setup(u, { emit: e }) {
4095
4095
  const t = e, n = u, { btnTextType: r, btnSize: o, btnType: c, btnRound: i, btnDisabled: s } = Ci(n), a = D(() => {
4096
- const p = [], h = b(o), d = b(c), x = b(i), _ = b(r);
4097
- return h !== "md" && p.push(`sq-button--${h}`), d && p.push(`is-${d}`), x && p.push("is-round"), _ && p.push("is-text"), _ && n.bg && p.push("has-bg"), p;
4096
+ const p = [], h = b(o), d = b(c), g = b(i), k = b(r);
4097
+ return h !== "md" && p.push(`sq-button--${h}`), d && p.push(`is-${d}`), g && p.push("is-round"), k && p.push("is-text"), k && n.bg && p.push("has-bg"), p;
4098
4098
  }), l = D(() => n.loading ? Ce : n.icon), f = D(() => n.loading || b(s));
4099
4099
  return (p, h) => (m(), A("button", {
4100
4100
  class: G(["sq-button", a.value]),
@@ -4192,8 +4192,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4192
4192
  checkboxVariant: s,
4193
4193
  groupContext: a
4194
4194
  } = wi(n), l = lu(u, "checked"), f = D(() => {
4195
- const h = [], d = b(r), x = b(o), _ = b(s);
4196
- return d !== "md" && h.push(`sq-selection--${d}`), p.value && h.push("is-checked"), x && h.push("is-disabled"), _ && h.push(`is-${_}`), h;
4195
+ const h = [], d = b(r), g = b(o), k = b(s);
4196
+ return d !== "md" && h.push(`sq-selection--${d}`), p.value && h.push("is-checked"), g && h.push("is-disabled"), k && h.push(`is-${k}`), h;
4197
4197
  }), p = D(() => n.label && a ? b(b(a).list).includes(n.label) : l.value);
4198
4198
  return wu(p, (h) => {
4199
4199
  if (l.value !== h) {
@@ -4214,8 +4214,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4214
4214
  form: b(c),
4215
4215
  value: n.label,
4216
4216
  disabled: b(o),
4217
- "onUpdate:modelValue": d[0] || (d[0] = (x) => l.value = x),
4218
- onChange: d[1] || (d[1] = (x) => t("change", l.value))
4217
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => l.value = g),
4218
+ onChange: d[1] || (d[1] = (g) => t("change", l.value))
4219
4219
  }, null, 40, Ri), [
4220
4220
  [Ut, l.value]
4221
4221
  ]),
@@ -4392,137 +4392,137 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4392
4392
  })
4393
4393
  );
4394
4394
  const c = N({}), i = N([]), s = N({}), a = D(() => {
4395
- const y = [];
4396
- return o.size !== "md" && y.push(`sq-form--${o.size}`), o.requiredMark !== "hidden" && y.push(`required-${o.requiredMark}`), y.push(`is-${o.layout}`), y;
4395
+ const C = [];
4396
+ return o.size !== "md" && C.push(`sq-form--${o.size}`), o.requiredMark !== "hidden" && C.push(`required-${o.requiredMark}`), C.push(`is-${o.layout}`), C;
4397
4397
  }), l = D(() => ({
4398
4398
  "--form-label-width": o.labelWidth
4399
4399
  })), f = D(() => {
4400
- const y = o.step;
4401
- return y === void 0 ? o.items : o.items.filter((q) => q.step === void 0 ? q : Array.isArray(q.step) ? q.step.includes(y) : q.step === y);
4400
+ const C = o.step;
4401
+ return C === void 0 ? o.items : o.items.filter((q) => q.step === void 0 ? q : Array.isArray(q.step) ? q.step.includes(C) : q.step === C);
4402
4402
  });
4403
4403
  Du(() => {
4404
4404
  n = structuredClone(Ou(o.formData));
4405
4405
  });
4406
- function p(y) {
4406
+ function p(C) {
4407
4407
  var q;
4408
- return (q = y.rule) == null ? void 0 : q.required;
4408
+ return (q = C.rule) == null ? void 0 : q.required;
4409
4409
  }
4410
- function h(y) {
4411
- if (s.value[y]) return Ce;
4412
- if (i.value.includes(y)) return Je;
4413
- if (c.value[y])
4410
+ function h(C) {
4411
+ if (s.value[C]) return Ce;
4412
+ if (i.value.includes(C)) return Je;
4413
+ if (c.value[C])
4414
4414
  return o.invalidStatus === "error" ? Ke : ut;
4415
4415
  }
4416
- async function d(y, q, g, B = !0) {
4417
- if (!g) return;
4418
- const L = g.trigger ?? "change", O = Array.isArray(L) ? "array" : "string";
4416
+ async function d(C, q, x, B = !0) {
4417
+ if (!x) return;
4418
+ const L = x.trigger ?? "change", O = Array.isArray(L) ? "array" : "string";
4419
4419
  if (q) {
4420
4420
  if (O === "array" && !L.includes(q)) return;
4421
4421
  if (O === "string" && L !== q) return;
4422
4422
  }
4423
- i.value = i.value.filter((z) => z !== y), M(y), s.value[y] = new AbortController(), await P0();
4424
- const W = o.formData[y];
4423
+ i.value = i.value.filter((z) => z !== C), M(C), s.value[C] = new AbortController(), await P0();
4424
+ const W = o.formData[C];
4425
4425
  let Y = !1;
4426
- const S = g.validateType ?? "string";
4427
- return g.validateFunc ? Y = await _(y, W, g, q) : S === "string" ? Y = v(y, W, g) : S === "boolean" ? Y = k(y, W, g) : S === "list" && (Y = w(y, W, g)), B && r("validate", y, Y, Ou(i.value)), s.value[y].signal.aborted || M(y), Y;
4426
+ const S = x.validateType ?? "string";
4427
+ return x.validateFunc ? Y = await k(C, W, x, q) : S === "string" ? Y = _(C, W, x) : S === "boolean" ? Y = v(C, W, x) : S === "list" && (Y = y(C, W, x)), B && r("validate", C, Y, Ou(i.value)), s.value[C].signal.aborted || M(C), Y;
4428
4428
  }
4429
- function x(y) {
4430
- if (c.value[y]) return o.invalidStatus;
4429
+ function g(C) {
4430
+ if (c.value[C]) return o.invalidStatus;
4431
4431
  }
4432
- async function _(y, q, g, B) {
4433
- const L = s.value[y].signal, O = await g.validateFunc(q, L, B);
4432
+ async function k(C, q, x, B) {
4433
+ const L = s.value[C].signal, O = await x.validateFunc(q, L, B);
4434
4434
  if (O === void 0) {
4435
- i.value = i.value.filter((W) => W !== y), delete c.value[y];
4435
+ i.value = i.value.filter((W) => W !== C), delete c.value[C];
4436
4436
  return;
4437
4437
  }
4438
- return O === !0 ? E(y) : O === !1 ? C(y, "字段验证失败") : O ? C(y, O) : E(y), O === !0 || typeof O == "string" && !O;
4438
+ return O === !0 ? E(C) : O === !1 ? w(C, "字段验证失败") : O ? w(C, O) : E(C), O === !0 || typeof O == "string" && !O;
4439
4439
  }
4440
- function v(y, q, g) {
4441
- return g.required && !q ? (C(y, g.requiredText ?? "字段必填"), !1) : g.pattern && q && !g.pattern.test(q) ? (C(y, g.patternText ?? "字段验证失败"), !1) : (E(y), !0);
4440
+ function _(C, q, x) {
4441
+ return x.required && !q ? (w(C, x.requiredText ?? "字段必填"), !1) : x.pattern && q && !x.pattern.test(q) ? (w(C, x.patternText ?? "字段验证失败"), !1) : (E(C), !0);
4442
4442
  }
4443
- function k(y, q, g) {
4444
- return g.required && q === void 0 ? (C(y, g.requiredText ?? "字段必填"), !1) : (E(y), !0);
4443
+ function v(C, q, x) {
4444
+ return x.required && q === void 0 ? (w(C, x.requiredText ?? "字段必填"), !1) : (E(C), !0);
4445
4445
  }
4446
- function w(y, q, g) {
4447
- return g.required && (!q || !q.length) ? (C(y, g.requiredText ?? "字段必填"), !1) : g.pattern && q && q.map((O) => O.toString()).map((O) => g.pattern.test(O)).includes(!1) ? (C(y, g.patternText ?? "字段验证失败"), !1) : (E(y), !0);
4446
+ function y(C, q, x) {
4447
+ return x.required && (!q || !q.length) ? (w(C, x.requiredText ?? "字段必填"), !1) : x.pattern && q && q.map((O) => O.toString()).map((O) => x.pattern.test(O)).includes(!1) ? (w(C, x.patternText ?? "字段验证失败"), !1) : (E(C), !0);
4448
4448
  }
4449
- function C(y, q) {
4450
- i.value = i.value.filter((g) => g !== y), c.value[y] = q;
4449
+ function w(C, q) {
4450
+ i.value = i.value.filter((x) => x !== C), c.value[C] = q;
4451
4451
  }
4452
- function E(y) {
4453
- i.value.push(y), delete c.value[y];
4452
+ function E(C) {
4453
+ i.value.push(C), delete c.value[C];
4454
4454
  }
4455
- function M(y) {
4455
+ function M(C) {
4456
4456
  var q;
4457
- (q = s.value[y]) == null || q.abort(), delete s.value[y];
4457
+ (q = s.value[C]) == null || q.abort(), delete s.value[C];
4458
4458
  }
4459
4459
  function $() {
4460
4460
  r("update:formData", structuredClone(n)), c.value = {}, i.value = [], r("validate", "SQFORM", !1, Ou(i.value));
4461
4461
  }
4462
- function Z(y = !0) {
4463
- const g = (y ? o.items : f.value).filter(
4462
+ function Z(C = !0) {
4463
+ const x = (C ? o.items : f.value).filter(
4464
4464
  (B) => B.type !== "custom" && B.rule && !i.value.includes(B.binding)
4465
4465
  ).map((B) => {
4466
4466
  const L = B;
4467
4467
  return d(L.binding, void 0, L.rule, !1);
4468
4468
  });
4469
- return Promise.all(g).then((B) => (r("validate", "SQFORM", !B.includes(!1), Ou(i.value)), B));
4469
+ return Promise.all(x).then((B) => (r("validate", "SQFORM", !B.includes(!1), Ou(i.value)), B));
4470
4470
  }
4471
- return e({ resetFields: $, validate: Z }), (y, q) => (m(), A("form", {
4471
+ return e({ resetFields: $, validate: Z }), (C, q) => (m(), A("form", {
4472
4472
  class: G(["sq-form", a.value]),
4473
4473
  style: eu(l.value),
4474
4474
  onSubmit: q[0] || (q[0] = Qe(() => {
4475
4475
  }, ["prevent"]))
4476
4476
  }, [
4477
- (m(!0), A(gu, null, Uu(f.value, (g, B) => (m(), R(Gi, {
4478
- class: G(g.itemClass),
4479
- type: g.type,
4477
+ (m(!0), A(gu, null, Uu(f.value, (x, B) => (m(), R(Gi, {
4478
+ class: G(x.itemClass),
4479
+ type: x.type,
4480
4480
  key: B,
4481
- "label-width": g.labelWidth,
4482
- label: g.label,
4483
- "show-label": g.showLabel && o.layout !== "vertical",
4484
- "is-required": p(g),
4485
- "error-msg": o.hasFeedback ? c.value[g.binding] : ""
4481
+ "label-width": x.labelWidth,
4482
+ label: x.label,
4483
+ "show-label": x.showLabel && o.layout !== "vertical",
4484
+ "is-required": p(x),
4485
+ "error-msg": o.hasFeedback ? c.value[x.binding] : ""
4486
4486
  }, {
4487
4487
  default: H(() => [
4488
- g.type === "input" ? (m(), R(b(hs), ae({
4488
+ x.type === "input" ? (m(), R(b(hs), ae({
4489
4489
  key: 0,
4490
4490
  ref_for: !0
4491
- }, g.props, {
4492
- name: g.name,
4493
- status: x(g.binding),
4494
- "suffix-icon": h(g.binding),
4495
- value: o.formData[g.binding],
4496
- "onUpdate:value": (L) => o.formData[g.binding] = L,
4497
- onChange: (L) => d(g.binding, "change", g.rule),
4498
- onInput: (L) => d(g.binding, "input", g.rule),
4499
- onBlur: (L) => d(g.binding, "blur", g.rule)
4500
- }), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : g.type === "checkbox" ? (m(), R(b(Zi), ae({
4491
+ }, x.props, {
4492
+ name: x.name,
4493
+ status: g(x.binding),
4494
+ "suffix-icon": h(x.binding),
4495
+ value: o.formData[x.binding],
4496
+ "onUpdate:value": (L) => o.formData[x.binding] = L,
4497
+ onChange: (L) => d(x.binding, "change", x.rule),
4498
+ onInput: (L) => d(x.binding, "input", x.rule),
4499
+ onBlur: (L) => d(x.binding, "blur", x.rule)
4500
+ }), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : x.type === "checkbox" ? (m(), R(b(Zi), ae({
4501
4501
  key: 1,
4502
4502
  ref_for: !0
4503
- }, g.props, {
4504
- name: g.name,
4505
- value: o.formData[g.binding],
4506
- "onUpdate:value": (L) => o.formData[g.binding] = L,
4507
- onChange: (L) => d(g.binding, "change", g.rule)
4508
- }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : g.type === "radio" ? (m(), R(b(Pa), ae({
4503
+ }, x.props, {
4504
+ name: x.name,
4505
+ value: o.formData[x.binding],
4506
+ "onUpdate:value": (L) => o.formData[x.binding] = L,
4507
+ onChange: (L) => d(x.binding, "change", x.rule)
4508
+ }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : x.type === "radio" ? (m(), R(b(Pa), ae({
4509
4509
  key: 2,
4510
4510
  ref_for: !0
4511
- }, g.props, {
4512
- name: g.name,
4513
- value: o.formData[g.binding],
4514
- "onUpdate:value": (L) => o.formData[g.binding] = L,
4515
- onChange: (L) => d(g.binding, "change", g.rule)
4516
- }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : g.type === "switch" ? (m(), R(b(Va), ae({
4511
+ }, x.props, {
4512
+ name: x.name,
4513
+ value: o.formData[x.binding],
4514
+ "onUpdate:value": (L) => o.formData[x.binding] = L,
4515
+ onChange: (L) => d(x.binding, "change", x.rule)
4516
+ }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : x.type === "switch" ? (m(), R(b(Va), ae({
4517
4517
  key: 3,
4518
4518
  ref_for: !0
4519
- }, g.props, {
4520
- name: g.name,
4521
- loading: !!s.value[g.binding],
4522
- checked: o.formData[g.binding],
4523
- "onUpdate:checked": (L) => o.formData[g.binding] = L,
4524
- onChange: (L) => d(g.binding, "change", g.rule)
4525
- }), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : U(y.$slots, g.slot, { key: 4 })
4519
+ }, x.props, {
4520
+ name: x.name,
4521
+ loading: !!s.value[x.binding],
4522
+ checked: o.formData[x.binding],
4523
+ "onUpdate:checked": (L) => o.formData[x.binding] = L,
4524
+ onChange: (L) => d(x.binding, "change", x.rule)
4525
+ }), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : U(C.$slots, x.slot, { key: 4 })
4526
4526
  ]),
4527
4527
  _: 2
4528
4528
  }, 1032, ["class", "type", "label-width", "label", "show-label", "is-required", "error-msg"]))), 128))
@@ -4554,72 +4554,73 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4554
4554
  lazy: { type: Boolean, default: !0 },
4555
4555
  source: {}
4556
4556
  },
4557
- setup(u) {
4558
- const e = new IntersectionObserver(h), t = u, n = N(!1), r = N(t.src), o = N(!1), c = N(!1), i = N(!1), s = Yu(null), a = D(() => n.value && !o.value), l = D(() => ({
4559
- height: a.value ? void 0 : "var(--image-placeholder-height)",
4560
- aspectRatio: a.value ? void 0 : t.aspectRatio
4557
+ emits: ["load", "error"],
4558
+ setup(u, { emit: e }) {
4559
+ const t = new IntersectionObserver(g), n = e, r = u, o = N(!1), c = N(r.src), i = N(!1), s = N(!1), a = N(!1), l = Yu(null), f = D(() => o.value && !i.value), p = D(() => ({
4560
+ height: f.value ? void 0 : "var(--image-placeholder-height)",
4561
+ aspectRatio: f.value ? void 0 : r.aspectRatio
4561
4562
  }));
4562
4563
  Du(() => {
4563
- e.observe(s.value);
4564
+ t.observe(l.value);
4564
4565
  }), ye(() => {
4565
- e.disconnect();
4566
+ t.disconnect();
4566
4567
  });
4567
- function f() {
4568
- n.value = !0;
4568
+ function h(_) {
4569
+ o.value = !0, n("load", _);
4569
4570
  }
4570
- function p() {
4571
- if (r.value !== t.fallback && t.fallback) {
4572
- r.value = t.fallback;
4571
+ function d(_) {
4572
+ if (c.value !== r.fallback && r.fallback) {
4573
+ c.value = r.fallback;
4573
4574
  return;
4574
4575
  }
4575
- o.value = !0, n.value = !0;
4576
+ i.value = !0, o.value = !0, n("error", _);
4576
4577
  }
4577
- function h(x) {
4578
- x[0].isIntersecting && (c.value = !0, e.disconnect());
4578
+ function g(_) {
4579
+ _[0].isIntersecting && (s.value = !0, t.disconnect());
4579
4580
  }
4580
- function d() {
4581
- i.value = !0;
4581
+ function k() {
4582
+ a.value = !0;
4582
4583
  }
4583
- return (x, _) => (m(), A("div", {
4584
+ return (_, v) => (m(), A("div", {
4584
4585
  class: "sq-image",
4585
- style: eu(l.value),
4586
+ style: eu(p.value),
4586
4587
  ref_key: "imgRef",
4587
- ref: s
4588
+ ref: l
4588
4589
  }, [
4589
4590
  P(Vu, { name: "sq-fade" }, {
4590
4591
  default: H(() => [
4591
- n.value ? j("", !0) : (m(), A("div", Yi))
4592
+ o.value ? j("", !0) : (m(), A("div", Yi))
4592
4593
  ]),
4593
4594
  _: 1
4594
4595
  }),
4595
- !o.value && c.value ? (m(), A("picture", Qi, [
4596
- (m(!0), A(gu, null, Uu(t.source, (v, k) => (m(), A("source", {
4597
- key: k,
4598
- srcset: v.src,
4599
- media: v.media,
4600
- type: v.type
4596
+ !i.value && s.value ? (m(), A("picture", Qi, [
4597
+ (m(!0), A(gu, null, Uu(r.source, (y, w) => (m(), A("source", {
4598
+ key: w,
4599
+ srcset: y.src,
4600
+ media: y.media,
4601
+ type: y.type
4601
4602
  }, null, 8, Ji))), 128)),
4602
4603
  F("img", {
4603
- style: eu({ objectFit: t.objectFit }),
4604
- crossorigin: t.crossorigin,
4605
- alt: t.alt,
4606
- src: r.value,
4607
- onLoad: f,
4608
- onError: p
4604
+ style: eu({ objectFit: r.objectFit }),
4605
+ crossorigin: r.crossorigin,
4606
+ alt: r.alt,
4607
+ src: c.value,
4608
+ onLoad: h,
4609
+ onError: d
4609
4610
  }, null, 44, Ki)
4610
4611
  ])) : j("", !0),
4611
- !o.value && c.value && t.preview ? (m(), A("div", us, [
4612
- P(b(Yt), { onClick: d })
4612
+ !i.value && s.value && r.preview ? (m(), A("div", us, [
4613
+ P(b(Yt), { onClick: k })
4613
4614
  ])) : j("", !0),
4614
- o.value ? (m(), A("div", es, [
4615
- U(x.$slots, "error", {}, () => [
4616
- _[1] || (_[1] = F("span", null, "图片加载失败", -1))
4615
+ i.value ? (m(), A("div", es, [
4616
+ U(_.$slots, "error", {}, () => [
4617
+ v[1] || (v[1] = F("span", null, "图片加载失败", -1))
4617
4618
  ])
4618
4619
  ])) : j("", !0),
4619
4620
  P(b(is), {
4620
- "src-list": [r.value],
4621
- visible: i.value,
4622
- "onUpdate:visible": _[0] || (_[0] = (v) => i.value = v)
4621
+ "src-list": [c.value],
4622
+ visible: a.value,
4623
+ "onUpdate:visible": v[0] || (v[0] = (y) => a.value = y)
4623
4624
  }, null, 8, ["src-list", "visible"])
4624
4625
  ], 4));
4625
4626
  }
@@ -4644,7 +4645,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4644
4645
  setup(u) {
4645
4646
  const { nextZIndex: e } = tt(), t = {}, n = {};
4646
4647
  let r, o = !1, c;
4647
- const i = u, s = N(0), a = N(1), l = N(!1), f = N(!1), p = N(0), h = N({ x: 0, y: 0 }), d = lu(u, "visible"), x = D(() => {
4648
+ const i = u, s = N(0), a = N(1), l = N(!1), f = N(!1), p = N(0), h = N({ x: 0, y: 0 }), d = lu(u, "visible"), g = D(() => {
4648
4649
  const S = l.value ? -1 : 1, z = f.value ? -1 : 1;
4649
4650
  return {
4650
4651
  transform: [
@@ -4659,21 +4660,21 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4659
4660
  const z = document.scrollingElement;
4660
4661
  S ? (r = z.style.overflow, z.style.overflow = "hidden", s.value = e()) : (l.value = !1, f.value = !1, p.value = 0, h.value = { x: 0, y: 0 }, a.value = 1, z.style.overflow = r);
4661
4662
  });
4662
- function _(S) {
4663
- S.deltaY < 0 ? Z() : y();
4663
+ function k(S) {
4664
+ S.deltaY < 0 ? Z() : C();
4664
4665
  }
4665
- function v(S) {
4666
+ function _(S) {
4666
4667
  o = !0, t.x = S.x, t.y = S.y;
4667
4668
  }
4668
- function k() {
4669
+ function v() {
4669
4670
  o = !1;
4670
4671
  }
4671
- function w(S) {
4672
+ function y(S) {
4672
4673
  if (!o || !i.moveable) return;
4673
4674
  const z = S.x - t.x, T = S.y - t.y;
4674
4675
  h.value.x += z * 2, h.value.y += T * 2, t.x = S.x, t.y = S.y;
4675
4676
  }
4676
- function C(S) {
4677
+ function w(S) {
4677
4678
  S.touches.length === 1 ? (o = !0, t.x = S.touches[0].screenX, t.y = S.touches[0].screenY) : S.touches.length === 2 && (c = $(S.touches[0], S.touches[1]));
4678
4679
  }
4679
4680
  function E() {
@@ -4698,13 +4699,13 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4698
4699
  function Z() {
4699
4700
  a.value >= i.maxScale || (a.value = Math.min(i.maxScale, a.value * (1 + i.scaleStep)));
4700
4701
  }
4701
- function y() {
4702
+ function C() {
4702
4703
  a.value <= i.minScale || (a.value = Math.max(i.minScale, a.value / (1 + i.scaleStep)));
4703
4704
  }
4704
4705
  function q() {
4705
4706
  a.value = Math.min(n.x, n.y), h.value = { x: 0, y: 0 };
4706
4707
  }
4707
- function g() {
4708
+ function x() {
4708
4709
  a.value = 1, h.value = { x: 0, y: 0 };
4709
4710
  }
4710
4711
  function B() {
@@ -4730,18 +4731,18 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4730
4731
  key: 0,
4731
4732
  class: "sq-image-viewer-mask",
4732
4733
  style: eu({ zIndex: s.value }),
4733
- onWheelPassive: _,
4734
- onMousemove: w,
4735
- onMouseup: k,
4734
+ onWheelPassive: k,
4735
+ onMousemove: y,
4736
+ onMouseup: v,
4736
4737
  onTouchmovePassive: M,
4737
4738
  onTouchend: E
4738
4739
  }, [
4739
4740
  F("img", {
4740
- style: eu(x.value),
4741
+ style: eu(g.value),
4741
4742
  src: i.srcList[0],
4742
4743
  onLoad: Y,
4743
- onMousedown: Qe(v, ["prevent"]),
4744
- onTouchstartPassive: C
4744
+ onMousedown: Qe(_, ["prevent"]),
4745
+ onTouchstartPassive: w
4745
4746
  }, null, 44, rs),
4746
4747
  P(b(ru), {
4747
4748
  class: "sq-image-viewer-close",
@@ -4755,7 +4756,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4755
4756
  P(b(ru), {
4756
4757
  text: "",
4757
4758
  icon: b(mr),
4758
- disabled: a.value === i.maxScale,
4759
+ disabled: a.value >= i.maxScale,
4759
4760
  onClick: Z
4760
4761
  }, null, 8, ["icon", "disabled"])
4761
4762
  ]),
@@ -4766,8 +4767,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4766
4767
  P(b(ru), {
4767
4768
  text: "",
4768
4769
  icon: b(vr),
4769
- disabled: a.value === i.minScale,
4770
- onClick: y
4770
+ disabled: a.value <= i.minScale,
4771
+ onClick: C
4771
4772
  }, null, 8, ["icon", "disabled"])
4772
4773
  ]),
4773
4774
  _: 1
@@ -4820,7 +4821,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4820
4821
  P(b(ru), {
4821
4822
  text: "",
4822
4823
  icon: b(Tn),
4823
- onClick: g
4824
+ onClick: x
4824
4825
  }, null, 8, ["icon"])
4825
4826
  ]),
4826
4827
  _: 1
@@ -4876,21 +4877,21 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4876
4877
  }),
4877
4878
  emits: /* @__PURE__ */ tu(["focus", "blur", "input", "change"], ["update:value"]),
4878
4879
  setup(u, { expose: e, emit: t }) {
4879
- const n = Ye(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Di(o), f = lu(u, "value"), p = N(!1), h = N(!1), d = Yu(null), x = D(() => {
4880
+ const n = Ye(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Di(o), f = lu(u, "value"), p = N(!1), h = N(!1), d = Yu(null), g = D(() => {
4880
4881
  const S = [], z = b(c), T = b(i), K = b(Z);
4881
4882
  return z !== "md" && S.push(`sq-input--${z}`), o.status && S.push(`is-${o.status}`), T && S.push("is-round"), K && S.push("is-disabled"), S;
4882
- }), _ = D(() => b(h) ? Yn : Yt), v = D(() => b(h) ? "text" : o.type), k = D(() => n.prefix || o.prefixIcon), w = D(() => b(p) && b(f).length), C = D(
4883
- () => o.type === "password" && b(w)
4884
- ), E = D(() => o.clearable && b(w)), M = D(() => o.loading ? Ce : o.suffixIcon), $ = D(
4885
- () => b(C) || b(E) || b(M) || n.suffix
4886
- ), Z = D(() => o.loading || b(s)), y = D(() => {
4883
+ }), k = D(() => b(h) ? Yn : Yt), _ = D(() => b(h) ? "text" : o.type), v = D(() => n.prefix || o.prefixIcon), y = D(() => b(p) && b(f).length), w = D(
4884
+ () => o.type === "password" && b(y)
4885
+ ), E = D(() => o.clearable && b(y)), M = D(() => o.loading ? Ce : o.suffixIcon), $ = D(
4886
+ () => b(w) || b(E) || b(M) || n.suffix
4887
+ ), Z = D(() => o.loading || b(s)), C = D(() => {
4887
4888
  if (o.type === "textarea")
4888
4889
  return b(Z) || b(a) ? "none" : o.resize;
4889
4890
  });
4890
4891
  function q(S) {
4891
4892
  r("focus", S), !b(a) && (p.value = !0);
4892
4893
  }
4893
- function g(S) {
4894
+ function x(S) {
4894
4895
  r("blur", S), !b(a) && (p.value = !1);
4895
4896
  }
4896
4897
  function B() {
@@ -4911,10 +4912,10 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4911
4912
  p.value = !1, (S = d.value) == null || S.blur();
4912
4913
  }
4913
4914
  return e({ focus: W, blur: Y }), (S, z) => (m(), A("div", {
4914
- class: G(["sq-input", x.value]),
4915
+ class: G(["sq-input", g.value]),
4915
4916
  onMousedown: B
4916
4917
  }, [
4917
- k.value ? (m(), A("span", ss, [
4918
+ v.value ? (m(), A("span", ss, [
4918
4919
  U(S.$slots, "prefix", {}, () => [
4919
4920
  (m(), R(Cu(o.prefixIcon)))
4920
4921
  ])
@@ -4927,7 +4928,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4927
4928
  disabled: Z.value,
4928
4929
  readonly: b(a),
4929
4930
  placeholder: o.placeholder,
4930
- type: v.value,
4931
+ type: _.value,
4931
4932
  maxlength: o.maxlength,
4932
4933
  minlength: o.minlength,
4933
4934
  autocomplete: o.autocomplete,
@@ -4938,7 +4939,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4938
4939
  ref_key: "inputRef",
4939
4940
  ref: d,
4940
4941
  onFocus: q,
4941
- onBlur: g,
4942
+ onBlur: x,
4942
4943
  onInput: z[1] || (z[1] = (T) => r("input", T)),
4943
4944
  onChange: z[2] || (z[2] = (T) => r("change", T))
4944
4945
  }, null, 40, as)), [
@@ -4946,13 +4947,13 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4946
4947
  ]) : bu((m(), A("textarea", {
4947
4948
  key: 2,
4948
4949
  class: "sq-input-inner",
4949
- style: eu({ resize: y.value }),
4950
+ style: eu({ resize: C.value }),
4950
4951
  "onUpdate:modelValue": z[3] || (z[3] = (T) => f.value = T),
4951
4952
  id: b(l),
4952
4953
  disabled: Z.value,
4953
4954
  readonly: b(a),
4954
4955
  placeholder: o.placeholder,
4955
- type: v.value,
4956
+ type: _.value,
4956
4957
  maxlength: o.maxlength,
4957
4958
  minlength: o.minlength,
4958
4959
  autocomplete: o.autocomplete,
@@ -4965,14 +4966,14 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4965
4966
  ref_key: "inputRef",
4966
4967
  ref: d,
4967
4968
  onFocus: q,
4968
- onBlur: g,
4969
+ onBlur: x,
4969
4970
  onInput: z[4] || (z[4] = (T) => r("input", T)),
4970
4971
  onChange: z[5] || (z[5] = (T) => r("change", T))
4971
4972
  }, null, 44, ls)), [
4972
4973
  [Z0, f.value]
4973
4974
  ]),
4974
4975
  bu(F("span", fs, [
4975
- C.value ? (m(), R(Cu(_.value), {
4976
+ w.value ? (m(), R(Cu(k.value), {
4976
4977
  key: 0,
4977
4978
  class: "sq-input-suffix-pwd",
4978
4979
  onMousedown: O
@@ -5445,16 +5446,16 @@ const Vs = async (u, e, t) => {
5445
5446
  x: l,
5446
5447
  y: f
5447
5448
  } = Pt(a, n, s), p = n, h = {}, d = 0;
5448
- for (let x = 0; x < i.length; x++) {
5449
+ for (let g = 0; g < i.length; g++) {
5449
5450
  const {
5450
- name: _,
5451
- fn: v
5452
- } = i[x], {
5453
- x: k,
5454
- y: w,
5455
- data: C,
5451
+ name: k,
5452
+ fn: _
5453
+ } = i[g], {
5454
+ x: v,
5455
+ y,
5456
+ data: w,
5456
5457
  reset: E
5457
- } = await v({
5458
+ } = await _({
5458
5459
  x: l,
5459
5460
  y: f,
5460
5461
  initialPlacement: n,
@@ -5468,11 +5469,11 @@ const Vs = async (u, e, t) => {
5468
5469
  floating: e
5469
5470
  }
5470
5471
  });
5471
- l = k ?? l, f = w ?? f, h = {
5472
+ l = v ?? l, f = y ?? f, h = {
5472
5473
  ...h,
5473
- [_]: {
5474
- ...h[_],
5475
- ...C
5474
+ [k]: {
5475
+ ...h[k],
5476
+ ...w
5476
5477
  }
5477
5478
  }, E && d <= 50 && (d++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (a = E.rects === !0 ? await c.getElementRects({
5478
5479
  reference: u,
@@ -5481,7 +5482,7 @@ const Vs = async (u, e, t) => {
5481
5482
  }) : E.rects), {
5482
5483
  x: l,
5483
5484
  y: f
5484
- } = Pt(a, p, s)), x = -1);
5485
+ } = Pt(a, p, s)), g = -1);
5485
5486
  }
5486
5487
  return {
5487
5488
  x: l,
@@ -5507,17 +5508,17 @@ async function S0(u, e) {
5507
5508
  elementContext: f = "floating",
5508
5509
  altBoundary: p = !1,
5509
5510
  padding: h = 0
5510
- } = Fe(e, u), d = Hs(h), _ = i[p ? f === "floating" ? "reference" : "floating" : f], v = ve(await o.getClippingRect({
5511
- element: (t = await (o.isElement == null ? void 0 : o.isElement(_))) == null || t ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
5511
+ } = Fe(e, u), d = Hs(h), k = i[p ? f === "floating" ? "reference" : "floating" : f], _ = ve(await o.getClippingRect({
5512
+ element: (t = await (o.isElement == null ? void 0 : o.isElement(k))) == null || t ? k : k.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
5512
5513
  boundary: a,
5513
5514
  rootBoundary: l,
5514
5515
  strategy: s
5515
- })), k = f === "floating" ? {
5516
+ })), v = f === "floating" ? {
5516
5517
  x: n,
5517
5518
  y: r,
5518
5519
  width: c.floating.width,
5519
5520
  height: c.floating.height
5520
- } : c.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), C = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
5521
+ } : c.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), w = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
5521
5522
  x: 1,
5522
5523
  y: 1
5523
5524
  } : {
@@ -5525,15 +5526,15 @@ async function S0(u, e) {
5525
5526
  y: 1
5526
5527
  }, E = ve(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
5527
5528
  elements: i,
5528
- rect: k,
5529
- offsetParent: w,
5529
+ rect: v,
5530
+ offsetParent: y,
5530
5531
  strategy: s
5531
- }) : k);
5532
+ }) : v);
5532
5533
  return {
5533
- top: (v.top - E.top + d.top) / C.y,
5534
- bottom: (E.bottom - v.bottom + d.bottom) / C.y,
5535
- left: (v.left - E.left + d.left) / C.x,
5536
- right: (E.right - v.right + d.right) / C.x
5534
+ top: (_.top - E.top + d.top) / w.y,
5535
+ bottom: (E.bottom - _.bottom + d.bottom) / w.y,
5536
+ left: (_.left - E.left + d.left) / w.x,
5537
+ right: (E.right - _.right + d.right) / w.x
5537
5538
  };
5538
5539
  }
5539
5540
  const Us = function(u) {
@@ -5555,28 +5556,28 @@ const Us = function(u) {
5555
5556
  fallbackPlacements: p,
5556
5557
  fallbackStrategy: h = "bestFit",
5557
5558
  fallbackAxisSideDirection: d = "none",
5558
- flipAlignment: x = !0,
5559
- ..._
5559
+ flipAlignment: g = !0,
5560
+ ...k
5560
5561
  } = Fe(u, e);
5561
5562
  if ((t = o.arrow) != null && t.alignmentOffset)
5562
5563
  return {};
5563
- const v = Tu(r), k = qu(i), w = Tu(i) === i, C = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), E = p || (w || !x ? [_e(i)] : Is(i)), M = d !== "none";
5564
- !p && M && E.push(...Zs(i, x, d, C));
5565
- const $ = [i, ...E], Z = await S0(e, _), y = [];
5564
+ const _ = Tu(r), v = qu(i), y = Tu(i) === i, w = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), E = p || (y || !g ? [_e(i)] : Is(i)), M = d !== "none";
5565
+ !p && M && E.push(...Zs(i, g, d, w));
5566
+ const $ = [i, ...E], Z = await S0(e, k), C = [];
5566
5567
  let q = ((n = o.flip) == null ? void 0 : n.overflows) || [];
5567
- if (l && y.push(Z[v]), f) {
5568
- const O = Rs(r, c, C);
5569
- y.push(Z[O[0]], Z[O[1]]);
5568
+ if (l && C.push(Z[_]), f) {
5569
+ const O = Rs(r, c, w);
5570
+ C.push(Z[O[0]], Z[O[1]]);
5570
5571
  }
5571
5572
  if (q = [...q, {
5572
5573
  placement: r,
5573
- overflows: y
5574
- }], !y.every((O) => O <= 0)) {
5575
- var g, B;
5576
- const O = (((g = o.flip) == null ? void 0 : g.index) || 0) + 1, W = $[O];
5577
- if (W && (!(f === "alignment" ? k !== qu(W) : !1) || // We leave the current main axis only if every placement on that axis
5574
+ overflows: C
5575
+ }], !C.every((O) => O <= 0)) {
5576
+ var x, B;
5577
+ const O = (((x = o.flip) == null ? void 0 : x.index) || 0) + 1, W = $[O];
5578
+ if (W && (!(f === "alignment" ? v !== qu(W) : !1) || // We leave the current main axis only if every placement on that axis
5578
5579
  // overflows the main axis.
5579
- q.every((z) => qu(z.placement) === k ? z.overflows[0] > 0 : !0)))
5580
+ q.every((z) => qu(z.placement) === v ? z.overflows[0] > 0 : !0)))
5580
5581
  return {
5581
5582
  data: {
5582
5583
  index: O,
@@ -5594,7 +5595,7 @@ const Us = function(u) {
5594
5595
  const S = (L = q.filter((z) => {
5595
5596
  if (M) {
5596
5597
  const T = qu(z.placement);
5597
- return T === k || // Create a bias to the `y` side axis due to horizontal
5598
+ return T === v || // Create a bias to the `y` side axis due to horizontal
5598
5599
  // reading directions favoring greater width.
5599
5600
  T === "y";
5600
5601
  }
@@ -5680,14 +5681,14 @@ const Xs = function(u) {
5680
5681
  mainAxis: o = !0,
5681
5682
  crossAxis: c = !1,
5682
5683
  limiter: i = {
5683
- fn: (_) => {
5684
+ fn: (k) => {
5684
5685
  let {
5685
- x: v,
5686
- y: k
5687
- } = _;
5686
+ x: _,
5687
+ y: v
5688
+ } = k;
5688
5689
  return {
5689
- x: v,
5690
- y: k
5690
+ x: _,
5691
+ y: v
5691
5692
  };
5692
5693
  }
5693
5694
  },
@@ -5698,23 +5699,23 @@ const Xs = function(u) {
5698
5699
  }, l = await S0(e, s), f = qu(Tu(r)), p = E0(f);
5699
5700
  let h = a[p], d = a[f];
5700
5701
  if (o) {
5701
- const _ = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", k = h + l[_], w = h - l[v];
5702
- h = Rt(k, h, w);
5702
+ const k = p === "y" ? "top" : "left", _ = p === "y" ? "bottom" : "right", v = h + l[k], y = h - l[_];
5703
+ h = Rt(v, h, y);
5703
5704
  }
5704
5705
  if (c) {
5705
- const _ = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", k = d + l[_], w = d - l[v];
5706
- d = Rt(k, d, w);
5706
+ const k = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", v = d + l[k], y = d - l[_];
5707
+ d = Rt(v, d, y);
5707
5708
  }
5708
- const x = i.fn({
5709
+ const g = i.fn({
5709
5710
  ...e,
5710
5711
  [p]: h,
5711
5712
  [f]: d
5712
5713
  });
5713
5714
  return {
5714
- ...x,
5715
+ ...g,
5715
5716
  data: {
5716
- x: x.x - t,
5717
- y: x.y - n,
5717
+ x: g.x - t,
5718
+ y: g.y - n,
5718
5719
  enabled: {
5719
5720
  [p]: o,
5720
5721
  [f]: c
@@ -5886,10 +5887,10 @@ function $u(u, e, t, n) {
5886
5887
  let s = (r.left + i.x) / c.x, a = (r.top + i.y) / c.y, l = r.width / c.x, f = r.height / c.y;
5887
5888
  if (o) {
5888
5889
  const p = ou(o), h = n && fu(n) ? ou(n) : n;
5889
- let d = p, x = Xe(d);
5890
- for (; x && n && h !== d; ) {
5891
- const _ = Nu(x), v = x.getBoundingClientRect(), k = du(x), w = v.left + (x.clientLeft + parseFloat(k.paddingLeft)) * _.x, C = v.top + (x.clientTop + parseFloat(k.paddingTop)) * _.y;
5892
- s *= _.x, a *= _.y, l *= _.x, f *= _.y, s += w, a += C, d = ou(x), x = Xe(d);
5890
+ let d = p, g = Xe(d);
5891
+ for (; g && n && h !== d; ) {
5892
+ const k = Nu(g), _ = g.getBoundingClientRect(), v = du(g), y = _.left + (g.clientLeft + parseFloat(v.paddingLeft)) * k.x, w = _.top + (g.clientTop + parseFloat(v.paddingTop)) * k.y;
5893
+ s *= k.x, a *= k.y, l *= k.x, f *= k.y, s += y, a += w, d = ou(g), g = Xe(d);
5893
5894
  }
5894
5895
  }
5895
5896
  return ve({
@@ -6146,30 +6147,30 @@ function ka(u, e) {
6146
6147
  } = a;
6147
6148
  if (i || e(), !p || !h)
6148
6149
  return;
6149
- const d = de(f), x = de(r.clientWidth - (l + p)), _ = de(r.clientHeight - (f + h)), v = de(l), w = {
6150
- rootMargin: -d + "px " + -x + "px " + -_ + "px " + -v + "px",
6150
+ const d = de(f), g = de(r.clientWidth - (l + p)), k = de(r.clientHeight - (f + h)), _ = de(l), y = {
6151
+ rootMargin: -d + "px " + -g + "px " + -k + "px " + -_ + "px",
6151
6152
  threshold: Bu(0, xe(1, s)) || 1
6152
6153
  };
6153
- let C = !0;
6154
+ let w = !0;
6154
6155
  function E(M) {
6155
6156
  const $ = M[0].intersectionRatio;
6156
6157
  if ($ !== s) {
6157
- if (!C)
6158
+ if (!w)
6158
6159
  return c();
6159
6160
  $ ? c(!1, $) : n = setTimeout(() => {
6160
6161
  c(!1, 1e-7);
6161
6162
  }, 1e3);
6162
6163
  }
6163
- $ === 1 && !R0(a, u.getBoundingClientRect()) && c(), C = !1;
6164
+ $ === 1 && !R0(a, u.getBoundingClientRect()) && c(), w = !1;
6164
6165
  }
6165
6166
  try {
6166
6167
  t = new IntersectionObserver(E, {
6167
- ...w,
6168
+ ...y,
6168
6169
  // Handle <iframe>s
6169
6170
  root: r.ownerDocument
6170
6171
  });
6171
6172
  } catch {
6172
- t = new IntersectionObserver(E, w);
6173
+ t = new IntersectionObserver(E, y);
6173
6174
  }
6174
6175
  t.observe(u);
6175
6176
  }
@@ -6184,31 +6185,31 @@ function ya(u, e, t, n) {
6184
6185
  layoutShift: i = typeof IntersectionObserver == "function",
6185
6186
  animationFrame: s = !1
6186
6187
  } = n, a = pt(u), l = r || o ? [...a ? ee(a) : [], ...ee(e)] : [];
6187
- l.forEach((v) => {
6188
- r && v.addEventListener("scroll", t, {
6188
+ l.forEach((_) => {
6189
+ r && _.addEventListener("scroll", t, {
6189
6190
  passive: !0
6190
- }), o && v.addEventListener("resize", t);
6191
+ }), o && _.addEventListener("resize", t);
6191
6192
  });
6192
6193
  const f = a && i ? ka(a, t) : null;
6193
6194
  let p = -1, h = null;
6194
- c && (h = new ResizeObserver((v) => {
6195
- let [k] = v;
6196
- k && k.target === a && h && (h.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
6197
- var w;
6198
- (w = h) == null || w.observe(e);
6195
+ c && (h = new ResizeObserver((_) => {
6196
+ let [v] = _;
6197
+ v && v.target === a && h && (h.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
6198
+ var y;
6199
+ (y = h) == null || y.observe(e);
6199
6200
  })), t();
6200
6201
  }), a && !s && h.observe(a), h.observe(e));
6201
- let d, x = s ? $u(u) : null;
6202
- s && _();
6203
- function _() {
6204
- const v = $u(u);
6205
- x && !R0(x, v) && t(), x = v, d = requestAnimationFrame(_);
6202
+ let d, g = s ? $u(u) : null;
6203
+ s && k();
6204
+ function k() {
6205
+ const _ = $u(u);
6206
+ g && !R0(g, _) && t(), g = _, d = requestAnimationFrame(k);
6206
6207
  }
6207
6208
  return t(), () => {
6208
- var v;
6209
- l.forEach((k) => {
6210
- r && k.removeEventListener("scroll", t), o && k.removeEventListener("resize", t);
6211
- }), f == null || f(), (v = h) == null || v.disconnect(), h = null, s && cancelAnimationFrame(d);
6209
+ var _;
6210
+ l.forEach((v) => {
6211
+ r && v.removeEventListener("scroll", t), o && v.removeEventListener("resize", t);
6212
+ }), f == null || f(), (_ = h) == null || _.disconnect(), h = null, s && cancelAnimationFrame(d);
6212
6213
  };
6213
6214
  }
6214
6215
  const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
@@ -6245,40 +6246,40 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6245
6246
  const { nextZIndex: e } = tt();
6246
6247
  let t, n;
6247
6248
  const r = u, o = lu(u, "visible"), c = N(0), i = N({}), s = Yu(null), a = Yu(null);
6248
- wu(o, (v) => {
6249
- v ? (c.value = e(), x(), n = ya(
6249
+ wu(o, (_) => {
6250
+ _ ? (c.value = e(), g(), n = ya(
6250
6251
  s.value.$el,
6251
6252
  a.value,
6252
- x
6253
+ g
6253
6254
  )) : n == null || n();
6254
6255
  }), Du(() => {
6255
- x();
6256
+ g();
6256
6257
  }), ye(() => {
6257
- _(), document.removeEventListener("click", d);
6258
+ k(), document.removeEventListener("click", d);
6258
6259
  });
6259
6260
  function l() {
6260
- r.trigger !== "hover" || r.disabled || (_(), t = setTimeout(() => {
6261
+ r.trigger !== "hover" || r.disabled || (k(), t = setTimeout(() => {
6261
6262
  h(!1);
6262
6263
  }, r.showAfter));
6263
6264
  }
6264
6265
  function f() {
6265
- r.trigger === "hover" && (_(), t = setTimeout(() => {
6266
+ r.trigger === "hover" && (k(), t = setTimeout(() => {
6266
6267
  d();
6267
6268
  }, r.hideAfter));
6268
6269
  }
6269
- function p(v) {
6270
- r.trigger === "click" && !r.disabled && !o.value && (v.stopPropagation(), h());
6270
+ function p(_) {
6271
+ r.trigger === "click" && !r.disabled && !o.value && (_.stopPropagation(), h());
6271
6272
  }
6272
- function h(v = !0) {
6273
- o.value = !0, v && document.addEventListener("click", d);
6273
+ function h(_ = !0) {
6274
+ o.value = !0, _ && document.addEventListener("click", d);
6274
6275
  }
6275
6276
  function d() {
6276
6277
  o.value = !1, document.removeEventListener("click", d);
6277
6278
  }
6278
- async function x() {
6279
- var y, q;
6280
- const v = typeof ((y = s.value) == null ? void 0 : y.$el.getBoundingClientRect), k = typeof ((q = a.value) == null ? void 0 : q.getBoundingClientRect), w = document.documentElement, C = getComputedStyle(w).getPropertyValue("--sq-padding-md").trim(), E = parseInt(C);
6281
- if (v !== "function" || k !== "function") return;
6279
+ async function g() {
6280
+ var C, q;
6281
+ const _ = typeof ((C = s.value) == null ? void 0 : C.$el.getBoundingClientRect), v = typeof ((q = a.value) == null ? void 0 : q.getBoundingClientRect), y = document.documentElement, w = getComputedStyle(y).getPropertyValue("--sq-padding-md").trim(), E = parseInt(w);
6282
+ if (_ !== "function" || v !== "function") return;
6282
6283
  const M = await Ea(s.value.$el, a.value, {
6283
6284
  placement: r.placement,
6284
6285
  middleware: [Ca(r.offset), Da(), wa({ padding: E })]
@@ -6288,13 +6289,13 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6288
6289
  top: `${Z}px`
6289
6290
  };
6290
6291
  }
6291
- function _() {
6292
+ function k() {
6292
6293
  t && (clearTimeout(t), t = void 0);
6293
6294
  }
6294
- return (v, k) => (m(), A(gu, null, [
6295
+ return (_, v) => (m(), A(gu, null, [
6295
6296
  P(b(Bs), {
6296
- class: G(["sq-popover-trigger", v.$attrs.class]),
6297
- style: eu(v.$attrs.style),
6297
+ class: G(["sq-popover-trigger", _.$attrs.class]),
6298
+ style: eu(_.$attrs.style),
6298
6299
  ref_key: "triggerRef",
6299
6300
  ref: s,
6300
6301
  onMouseenter: l,
@@ -6302,7 +6303,7 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6302
6303
  onClick: p
6303
6304
  }, {
6304
6305
  default: H(() => [
6305
- U(v.$slots, "reference")
6306
+ U(_.$slots, "reference")
6306
6307
  ]),
6307
6308
  _: 3
6308
6309
  }, 8, ["class", "style"]),
@@ -6315,14 +6316,14 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6315
6316
  }, {
6316
6317
  default: H(() => [
6317
6318
  bu(F("div", {
6318
- class: G(["sq-popover", v.popoverClass]),
6319
+ class: G(["sq-popover", _.popoverClass]),
6319
6320
  style: eu({ ...i.value, zIndex: c.value }),
6320
6321
  ref_key: "popverRef",
6321
6322
  ref: a,
6322
- onClick: k[0] || (k[0] = Qe(() => {
6323
+ onClick: v[0] || (v[0] = Qe(() => {
6323
6324
  }, ["stop"]))
6324
6325
  }, [
6325
- U(v.$slots, "default")
6326
+ U(_.$slots, "default")
6326
6327
  ], 6), [
6327
6328
  [te, o.value]
6328
6329
  ])
@@ -6438,8 +6439,8 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6438
6439
  radioVariant: s,
6439
6440
  groupContext: a
6440
6441
  } = Ei(n), l = N(), f = lu(u, "checked"), p = D(() => {
6441
- const d = [], x = b(r), _ = b(o), v = b(s);
6442
- return x !== "md" && d.push(`sq-selection--${x}`), h.value && d.push("is-checked"), _ && d.push("is-disabled"), v && d.push(`is-${v}`), d;
6442
+ const d = [], g = b(r), k = b(o), _ = b(s);
6443
+ return g !== "md" && d.push(`sq-selection--${g}`), h.value && d.push("is-checked"), k && d.push("is-disabled"), _ && d.push(`is-${_}`), d;
6443
6444
  }), h = D(() => n.label && a ? b(b(a)).checked === n.label : f.value);
6444
6445
  return wu(l, (d) => {
6445
6446
  n.label ? f.value = d === n.label : f.value = d === "on";
@@ -6452,7 +6453,7 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6452
6453
  h.value !== d && n.label && a && a.value.toggleItem(n.label);
6453
6454
  }), Du(() => {
6454
6455
  f.value = h.value, l.value = f.value ? n.label ?? "on" : void 0;
6455
- }), (d, x) => (m(), A("label", {
6456
+ }), (d, g) => (m(), A("label", {
6456
6457
  class: G(["sq-selection sq-radio", p.value])
6457
6458
  }, [
6458
6459
  bu(F("input", {
@@ -6462,8 +6463,8 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
6462
6463
  form: b(c),
6463
6464
  value: n.label,
6464
6465
  disabled: b(o),
6465
- "onUpdate:modelValue": x[0] || (x[0] = (_) => l.value = _),
6466
- onChange: x[1] || (x[1] = (_) => t("change", h.value))
6466
+ "onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
6467
+ onChange: g[1] || (g[1] = (k) => t("change", h.value))
6467
6468
  }, null, 40, Ba), [
6468
6469
  [U0, l.value]
6469
6470
  ]),