yuyeon 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yuyeon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, h as k, getCurrentInstance as Je, createVNode as l, withDirectives as Qe, resolveDirective as Sn, ref as T, toRef as Fe, computed as E, watch as R, nextTick as et, withKeys as Aa, createTextVNode as Ke, watchEffect as Ae, withModifiers as Vt, Transition as Bt, reactive as ze, Teleport as Va, mergeProps as Z, vShow as Ba, Fragment as L, onScopeDispose as Oa, effectScope as wn, toRaw as xn, inject as tt, provide as ye, onMounted as Ia, onBeforeUnmount as Ya, readonly as Da, onBeforeUpdate as Na, shallowRef as Pa } from "vue";
1
+ import { defineComponent as A, h as k, getCurrentInstance as Je, createVNode as l, withDirectives as Qe, resolveDirective as Sn, ref as T, toRef as Fe, computed as C, watch as R, nextTick as et, withKeys as Aa, createTextVNode as Ke, watchEffect as Ae, withModifiers as Vt, Transition as Bt, reactive as ze, Teleport as Va, mergeProps as Z, vShow as Ba, Fragment as L, onScopeDispose as Oa, effectScope as wn, toRaw as xn, inject as tt, provide as ye, onMounted as Ia, onBeforeUnmount as Ya, readonly as Da, onBeforeUpdate as Na, shallowRef as Pa } from "vue";
2
2
  const Ra = A({
3
3
  name: "YApp",
4
4
  setup(e, { slots: t }) {
@@ -667,7 +667,7 @@ const rt = "y-field-input", vt = A({
667
667
  "blur"
668
668
  ],
669
669
  setup(e, { attrs: t, expose: n, emit: a, slots: i }) {
670
- const r = T(), o = T(), s = T(!1), c = T(""), h = T(""), f = Fe(e, "type"), d = E(() => {
670
+ const r = T(), o = T(), s = T(!1), c = T(""), h = T(""), d = Fe(e, "type"), f = C(() => {
671
671
  var u;
672
672
  return {
673
673
  ...((u = r.value) == null ? void 0 : u.classes) || {},
@@ -679,11 +679,11 @@ const rt = "y-field-input", vt = A({
679
679
  var b;
680
680
  (b = o.value) == null || b.focus(), a("click", u);
681
681
  }
682
- function C(u) {
682
+ function x(u) {
683
683
  s.value = !0, h.value = c.value, a("focus", u);
684
684
  }
685
685
  function m(u) {
686
- s.value = !1, a("blur", u), x();
686
+ s.value = !1, a("blur", u), E();
687
687
  }
688
688
  function _(u) {
689
689
  a("input", u);
@@ -699,10 +699,10 @@ const rt = "y-field-input", vt = A({
699
699
  function y(u) {
700
700
  a("keyup", u);
701
701
  }
702
- function w(u) {
702
+ function S(u) {
703
703
  I();
704
704
  }
705
- function S(u) {
705
+ function w(u) {
706
706
  (u.code === "Space" || u.code === "Enter") && I();
707
707
  }
708
708
  function $() {
@@ -716,7 +716,7 @@ const rt = "y-field-input", vt = A({
716
716
  function I() {
717
717
  c.value = "", h.value = "", a("update:modelValue", c.value);
718
718
  }
719
- function x() {
719
+ function E() {
720
720
  const u = Je(), { displayText: b } = e;
721
721
  if (b !== void 0) {
722
722
  let O = c.value;
@@ -734,14 +734,14 @@ const rt = "y-field-input", vt = A({
734
734
  immediate: !0
735
735
  }
736
736
  ), R(c, (u) => {
737
- s.value ? h.value = u : x();
737
+ s.value ? h.value = u : E();
738
738
  }), n({
739
739
  focus: $,
740
740
  select: B,
741
741
  clear: I,
742
742
  inputRef: o
743
743
  });
744
- const N = () => {
744
+ const Y = () => {
745
745
  const u = {};
746
746
  for (const b in We)
747
747
  u[b] = e[b];
@@ -753,17 +753,17 @@ const rt = "y-field-input", vt = A({
753
753
  return () => k(
754
754
  ht,
755
755
  {
756
- class: d.value,
756
+ class: f.value,
757
757
  ref: r,
758
- ...N(),
758
+ ...Y(),
759
759
  modelValue: c.value,
760
760
  "onUpdate:modelValue": V,
761
761
  onClick: p
762
762
  },
763
763
  {
764
764
  prepend: i.prepend ? (...u) => {
765
- var D;
766
- const b = [], O = (D = i.prepend) == null ? void 0 : D.call(i, ...u);
765
+ var N;
766
+ const b = [], O = (N = i.prepend) == null ? void 0 : N.call(i, ...u);
767
767
  if (O)
768
768
  b.push(O);
769
769
  else
@@ -782,7 +782,7 @@ const rt = "y-field-input", vt = A({
782
782
  k("input", {
783
783
  ".value": h.value,
784
784
  ".id": u.attrId,
785
- "^type": f.value,
785
+ "^type": d.value,
786
786
  readonly: e.readonly || e.loading || u.formLoading,
787
787
  ".placeholder": e.placeholder,
788
788
  ".disabled": e.disabled,
@@ -790,7 +790,7 @@ const rt = "y-field-input", vt = A({
790
790
  autocomplete: t.autocomplete,
791
791
  maxlength: t.maxlength,
792
792
  onInput: _,
793
- onFocus: C,
793
+ onFocus: x,
794
794
  onBlur: m,
795
795
  onChange: v,
796
796
  onKeydown: g,
@@ -810,8 +810,8 @@ const rt = "y-field-input", vt = A({
810
810
  "button",
811
811
  {
812
812
  class: `${rt}__clear`,
813
- onClick: w,
814
- onKeydown: S,
813
+ onClick: S,
814
+ onKeydown: w,
815
815
  "^tabindex": "2"
816
816
  },
817
817
  [k(Yn)]
@@ -923,7 +923,7 @@ const rt = "y-field-input", vt = A({
923
923
  });
924
924
  function Xa(e) {
925
925
  return {
926
- numValue: E(() => {
926
+ numValue: C(() => {
927
927
  const { value: n } = e, a = Number(n);
928
928
  return Number.isNaN(a) || a < 0 ? 0 : a > 100 ? 100 : a;
929
929
  })
@@ -1034,8 +1034,8 @@ const Za = /* @__PURE__ */ A({
1034
1034
  }), e.classList.add(i);
1035
1035
  }
1036
1036
  Ae(() => {
1037
- var s, c, h, f, d;
1038
- const i = ((c = (s = t.instance) == null ? void 0 : s.$yuyeon) == null ? void 0 : c.theme) ?? ((d = (f = (h = n == null ? void 0 : n.ctx) == null ? void 0 : h.root.appContext.config.globalProperties) == null ? void 0 : f.$yuyeon) == null ? void 0 : d.theme), r = t.value ?? i.name ?? "";
1037
+ var s, c, h, d, f;
1038
+ const i = ((c = (s = t.instance) == null ? void 0 : s.$yuyeon) == null ? void 0 : c.theme) ?? ((f = (d = (h = n == null ? void 0 : n.ctx) == null ? void 0 : h.root.appContext.config.globalProperties) == null ? void 0 : d.$yuyeon) == null ? void 0 : f.theme), r = t.value ?? i.name ?? "";
1039
1039
  if (!r)
1040
1040
  return;
1041
1041
  const o = `theme--${r}`;
@@ -1279,10 +1279,10 @@ const ni = /* @__PURE__ */ A({
1279
1279
  innerValue: s,
1280
1280
  disabled: c,
1281
1281
  trackStyles: h,
1282
- stateLabel: f,
1283
- labelOn: d,
1282
+ stateLabel: d,
1283
+ labelOn: f,
1284
1284
  labelOff: p,
1285
- loading: C
1285
+ loading: x
1286
1286
  } = this;
1287
1287
  return l("div", {
1288
1288
  class: {
@@ -1309,19 +1309,19 @@ const ni = /* @__PURE__ */ A({
1309
1309
  }, null), l("div", {
1310
1310
  class: "y-switch__track",
1311
1311
  style: h
1312
- }, [f && l("div", {
1312
+ }, [d && l("div", {
1313
1313
  class: "y-switch__state"
1314
1314
  }, [l("span", {
1315
1315
  class: "y-switch__state-label y-switch__state-label--on"
1316
1316
  }, {
1317
- labelOn: d
1317
+ labelOn: f
1318
1318
  }), l("span", {
1319
1319
  class: "y-switch__state-label y-switch__state-label--off"
1320
1320
  }, {
1321
1321
  labelOff: p
1322
1322
  })])]), l("div", {
1323
1323
  class: "y-switch__thumb"
1324
- }, [C && l("div", {
1324
+ }, [x && l("div", {
1325
1325
  class: "y-switch__spinner"
1326
1326
  }, null)])]), l("label", {
1327
1327
  for: o,
@@ -1339,7 +1339,7 @@ function M(e) {
1339
1339
  }
1340
1340
  const Qt = "y-layer-group";
1341
1341
  function ai(e) {
1342
- return { layerGroup: E(() => {
1342
+ return { layerGroup: C(() => {
1343
1343
  const n = e == null ? void 0 : e.value;
1344
1344
  let a = document.body;
1345
1345
  if (typeof n == "string") {
@@ -1354,7 +1354,7 @@ function ai(e) {
1354
1354
  function ii(e, t) {
1355
1355
  const n = T(!1), a = T();
1356
1356
  a.value = t.value;
1357
- const i = E(() => e ? t.value : a.value);
1357
+ const i = C(() => e ? t.value : a.value);
1358
1358
  R(t, () => {
1359
1359
  n.value || (a.value = t.value), e || (n.value = !0);
1360
1360
  });
@@ -1372,26 +1372,26 @@ function ri(e, t = 1e3, n) {
1372
1372
  let i = a ?? 100, r = -1;
1373
1373
  const o = T(0), s = T(t), c = T(!1);
1374
1374
  function h() {
1375
- const C = Date.now(), m = C - o.value;
1375
+ const x = Date.now(), m = x - o.value;
1376
1376
  if (s.value = s.value - m, s.value < 1)
1377
1377
  e();
1378
1378
  else {
1379
- const _ = C - o.value + i, v = _ >= 1 ? _ : i;
1380
- o.value = C, r = window.setTimeout(h, v);
1379
+ const _ = x - o.value + i, v = _ >= 1 ? _ : i;
1380
+ o.value = x, r = window.setTimeout(h, v);
1381
1381
  }
1382
1382
  }
1383
- function f() {
1383
+ function d() {
1384
1384
  c.value || (c.value = !0, o.value = Date.now(), r = window.setTimeout(h, i));
1385
1385
  }
1386
- function d() {
1386
+ function f() {
1387
1387
  window.clearTimeout(r), r = -1, c.value = !1;
1388
1388
  }
1389
1389
  function p() {
1390
- d(), s.value = t;
1390
+ f(), s.value = t;
1391
1391
  }
1392
1392
  return {
1393
- start: f,
1394
- stop: d,
1393
+ start: d,
1394
+ stop: f,
1395
1395
  reset: p,
1396
1396
  drift: s,
1397
1397
  isWork: c
@@ -1405,7 +1405,7 @@ const It = {
1405
1405
  };
1406
1406
  function oi(e) {
1407
1407
  return {
1408
- polyTransitionBindProps: E(() => {
1408
+ polyTransitionBindProps: C(() => {
1409
1409
  const { is: n, ...a } = typeof e.transition == "object" ? e.transition : { is: e.transition, name: e.transition };
1410
1410
  return {
1411
1411
  is: n,
@@ -1536,15 +1536,15 @@ const le = /* @__PURE__ */ A({
1536
1536
  layerGroup: r
1537
1537
  } = ai(), {
1538
1538
  polyTransitionBindProps: o
1539
- } = oi(e), s = E({
1539
+ } = oi(e), s = C({
1540
1540
  get: () => !!e.modelValue,
1541
1541
  set: (I) => {
1542
1542
  t("update:modelValue", I);
1543
1543
  }
1544
1544
  }), c = Fe(e, "disabled"), {
1545
1545
  lazyValue: h,
1546
- onAfterUpdate: f
1547
- } = ii(!!e.eager, s), d = E(() => !c.value && (h.value || s.value)), p = T(), C = T();
1546
+ onAfterUpdate: d
1547
+ } = ii(!!e.eager, s), f = C(() => !c.value && (h.value || s.value)), p = T(), x = T();
1548
1548
  function m(I) {
1549
1549
  t("click:complement", I), e.persistent || p.value !== null && p.value === I.target && e.closeClickScrim && (s.value = !1);
1550
1550
  }
@@ -1560,21 +1560,21 @@ const le = /* @__PURE__ */ A({
1560
1560
  });
1561
1561
  n({
1562
1562
  scrim$: p,
1563
- content$: C,
1563
+ content$: x,
1564
1564
  active: s,
1565
- onAfterUpdate: f
1565
+ onAfterUpdate: d
1566
1566
  });
1567
1567
  function g() {
1568
1568
  }
1569
1569
  function y() {
1570
- f();
1570
+ d();
1571
1571
  }
1572
- function w() {
1572
+ function S() {
1573
1573
  e.closeClickScrim && (s.value = !1);
1574
1574
  }
1575
- const S = E(() => ({
1575
+ const w = C(() => ({
1576
1576
  zIndex: "2000"
1577
- })), $ = E(() => {
1577
+ })), $ = C(() => {
1578
1578
  const {
1579
1579
  classes: I
1580
1580
  } = e;
@@ -1582,26 +1582,26 @@ const le = /* @__PURE__ */ A({
1582
1582
  ...ve(I),
1583
1583
  "y-layer--active": !!s.value
1584
1584
  };
1585
- }), B = E(() => ({
1585
+ }), B = C(() => ({
1586
1586
  ...ve(e.contentClasses)
1587
1587
  }));
1588
1588
  return M(() => l(Va, {
1589
1589
  disabled: !r.value,
1590
1590
  to: r.value
1591
1591
  }, {
1592
- default: () => [d.value && l("div", Z({
1592
+ default: () => [f.value && l("div", Z({
1593
1593
  class: {
1594
1594
  "y-layer": !0,
1595
1595
  ...$.value
1596
1596
  },
1597
- style: S.value
1597
+ style: w.value
1598
1598
  }, a), [l(Bt, {
1599
1599
  name: "fade",
1600
1600
  appear: !0
1601
1601
  }, {
1602
1602
  default: () => [s.value && e.scrim && l("div", {
1603
1603
  class: "y-layer__scrim",
1604
- onClick: w,
1604
+ onClick: S,
1605
1605
  ref: "scrim$"
1606
1606
  }, null)]
1607
1607
  }), l(en, Z({
@@ -1629,10 +1629,10 @@ const le = /* @__PURE__ */ A({
1629
1629
  complementClickOption: v,
1630
1630
  layerGroup: r,
1631
1631
  active: s,
1632
- rendered: d,
1633
- onAfterUpdate: f,
1632
+ rendered: f,
1633
+ onAfterUpdate: d,
1634
1634
  scrim$: p,
1635
- content$: C,
1635
+ content$: x,
1636
1636
  polyTransitionBindProps: o
1637
1637
  };
1638
1638
  }
@@ -1659,24 +1659,24 @@ const ci = /* @__PURE__ */ A({
1659
1659
  emit: t,
1660
1660
  slots: n
1661
1661
  }) {
1662
- const a = E({
1662
+ const a = C({
1663
1663
  get: () => !!e.modelValue,
1664
- set: (f) => {
1665
- t("update:modelValue", f);
1664
+ set: (d) => {
1665
+ t("update:modelValue", d);
1666
1666
  }
1667
- }), i = E(() => ({
1667
+ }), i = C(() => ({
1668
1668
  ...ve(e.dialogClasses),
1669
1669
  "y-dialog": !0
1670
1670
  })), r = T();
1671
- function o(f) {
1672
- var C, m, _;
1673
- const d = f.relatedTarget, p = f.target;
1674
- if (d !== p && ((C = r.value) != null && C.content$) && ![document, (m = r.value) == null ? void 0 : m.content$].includes(p) && !((_ = r.value) != null && _.content$.contains(p))) {
1675
- const v = 'button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])', g = [...r.value.content$.querySelectorAll(v)].filter((S) => !S.hasAttribute("disabled") && !S.matches('[tabindex="-1"]'));
1671
+ function o(d) {
1672
+ var x, m, _;
1673
+ const f = d.relatedTarget, p = d.target;
1674
+ if (f !== p && ((x = r.value) != null && x.content$) && ![document, (m = r.value) == null ? void 0 : m.content$].includes(p) && !((_ = r.value) != null && _.content$.contains(p))) {
1675
+ const v = 'button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])', g = [...r.value.content$.querySelectorAll(v)].filter((w) => !w.hasAttribute("disabled") && !w.matches('[tabindex="-1"]'));
1676
1676
  if (!g.length)
1677
1677
  return;
1678
- const y = g[0], w = g[g.length - 1];
1679
- y === w ? w.focus() : y.focus();
1678
+ const y = g[0], S = g[g.length - 1];
1679
+ y === S ? S.focus() : y.focus();
1680
1680
  }
1681
1681
  }
1682
1682
  function s() {
@@ -1685,16 +1685,16 @@ const ci = /* @__PURE__ */ A({
1685
1685
  function c() {
1686
1686
  document.removeEventListener("focusin", o);
1687
1687
  }
1688
- function h(f) {
1689
- a.value = f;
1688
+ function h(d) {
1689
+ a.value = d;
1690
1690
  }
1691
- return R(() => a.value, (f) => {
1692
- f ? s() : c();
1691
+ return R(() => a.value, (d) => {
1692
+ d ? s() : c();
1693
1693
  }, {
1694
1694
  immediate: !0
1695
1695
  }), M(() => {
1696
- var f;
1697
- return l(L, null, [(f = n.base) == null ? void 0 : f.call(n), l(le, {
1696
+ var d;
1697
+ return l(L, null, [(d = n.base) == null ? void 0 : d.call(n), l(le, {
1698
1698
  "model-value": a.value,
1699
1699
  "onUpdate:modelValue": h,
1700
1700
  scrim: !0,
@@ -1702,9 +1702,9 @@ const ci = /* @__PURE__ */ A({
1702
1702
  persistent: e.persistent,
1703
1703
  ref: r
1704
1704
  }, {
1705
- default: (...d) => {
1705
+ default: (...f) => {
1706
1706
  var p;
1707
- return (p = n.default) == null ? void 0 : p.call(n, ...d);
1707
+ return (p = n.default) == null ? void 0 : p.call(n, ...f);
1708
1708
  }
1709
1709
  })]);
1710
1710
  }), {
@@ -1798,26 +1798,26 @@ function an(e) {
1798
1798
  }
1799
1799
  class Wn {
1800
1800
  constructor(t, n = [0, 1], { easing: a, duration: i = K.duration, delay: r = K.delay, endDelay: o = K.endDelay, repeat: s = K.repeat, offset: c, direction: h = "normal" } = {}) {
1801
- if (this.startTime = null, this.rate = 1, this.t = 0, this.cancelTimestamp = null, this.easing = ne, this.duration = 0, this.totalDuration = 0, this.repeat = 0, this.playState = "idle", this.finished = new Promise((d, p) => {
1802
- this.resolve = d, this.reject = p;
1801
+ if (this.startTime = null, this.rate = 1, this.t = 0, this.cancelTimestamp = null, this.easing = ne, this.duration = 0, this.totalDuration = 0, this.repeat = 0, this.playState = "idle", this.finished = new Promise((f, p) => {
1802
+ this.resolve = f, this.reject = p;
1803
1803
  }), a = a || K.easing, pt(a)) {
1804
- const d = a.createAnimation(n);
1805
- a = d.easing, n = d.keyframes || n, i = d.duration || i;
1804
+ const f = a.createAnimation(n);
1805
+ a = f.easing, n = f.keyframes || n, i = f.duration || i;
1806
1806
  }
1807
1807
  this.repeat = s, this.easing = he(a) ? ne : an(a), this.updateDuration(i);
1808
- const f = pi(n, c, he(a) ? a.map(an) : ne);
1809
- this.tick = (d) => {
1808
+ const d = pi(n, c, he(a) ? a.map(an) : ne);
1809
+ this.tick = (f) => {
1810
1810
  var p;
1811
1811
  r = r;
1812
- let C = 0;
1813
- this.pauseTime !== void 0 ? C = this.pauseTime : C = (d - this.startTime) * this.rate, this.t = C, C /= 1e3, C = Math.max(C - r, 0), this.playState === "finished" && this.pauseTime === void 0 && (C = this.totalDuration);
1814
- const m = C / this.duration;
1812
+ let x = 0;
1813
+ this.pauseTime !== void 0 ? x = this.pauseTime : x = (f - this.startTime) * this.rate, this.t = x, x /= 1e3, x = Math.max(x - r, 0), this.playState === "finished" && this.pauseTime === void 0 && (x = this.totalDuration);
1814
+ const m = x / this.duration;
1815
1815
  let _ = Math.floor(m), v = m % 1;
1816
1816
  !v && m >= 1 && (v = 1), v === 1 && _--;
1817
1817
  const g = _ % 2;
1818
1818
  (h === "reverse" || h === "alternate" && g || h === "alternate-reverse" && !g) && (v = 1 - v);
1819
- const y = C >= this.totalDuration ? 1 : Math.min(v, 1), w = f(this.easing(y));
1820
- t(w), this.pauseTime === void 0 && (this.playState === "finished" || C >= this.totalDuration + o) ? (this.playState = "finished", (p = this.resolve) === null || p === void 0 || p.call(this, w)) : this.playState !== "idle" && (this.frameRequestId = requestAnimationFrame(this.tick));
1819
+ const y = x >= this.totalDuration ? 1 : Math.min(v, 1), S = d(this.easing(y));
1820
+ t(S), this.pauseTime === void 0 && (this.playState === "finished" || x >= this.totalDuration + o) ? (this.playState = "finished", (p = this.resolve) === null || p === void 0 || p.call(this, S)) : this.playState !== "idle" && (this.frameRequestId = requestAnimationFrame(this.tick));
1821
1821
  }, this.play();
1822
1822
  }
1823
1823
  play() {
@@ -2005,60 +2005,60 @@ function Mi() {
2005
2005
  }
2006
2006
  function Li(e, t, n, a = {}, i) {
2007
2007
  const r = Mi(), o = a.record !== !1 && r;
2008
- let s, { duration: c = K.duration, delay: h = K.delay, endDelay: f = K.endDelay, repeat: d = K.repeat, easing: p = K.easing, persist: C = !1, direction: m, offset: _, allowWebkitAcceleration: v = !1 } = a;
2008
+ let s, { duration: c = K.duration, delay: h = K.delay, endDelay: d = K.endDelay, repeat: f = K.repeat, easing: p = K.easing, persist: x = !1, direction: m, offset: _, allowWebkitAcceleration: v = !1 } = a;
2009
2009
  const g = Un(e), y = qn(t);
2010
- let w = de.waapi();
2010
+ let S = de.waapi();
2011
2011
  y && Ai(e, t);
2012
- const S = gt(t), $ = xi(g.values, S), B = xe.get(S);
2012
+ const w = gt(t), $ = xi(g.values, w), B = xe.get(w);
2013
2013
  return Gn($.animation, !(pt(p) && $.generator) && a.record !== !1), () => {
2014
2014
  const I = () => {
2015
2015
  var V, u;
2016
- return (u = (V = Be.get(e, S)) !== null && V !== void 0 ? V : B == null ? void 0 : B.initialValue) !== null && u !== void 0 ? u : 0;
2016
+ return (u = (V = Be.get(e, w)) !== null && V !== void 0 ? V : B == null ? void 0 : B.initialValue) !== null && u !== void 0 ? u : 0;
2017
2017
  };
2018
- let x = Ni(Pi(n), I);
2019
- const N = Ri(x, B);
2018
+ let E = Ni(Pi(n), I);
2019
+ const Y = Ri(E, B);
2020
2020
  if (pt(p)) {
2021
- const V = p.createAnimation(x, t !== "opacity", I, S, $);
2022
- p = V.easing, x = V.keyframes || x, c = V.duration || c;
2021
+ const V = p.createAnimation(E, t !== "opacity", I, w, $);
2022
+ p = V.easing, E = V.keyframes || E, c = V.duration || c;
2023
2023
  }
2024
- if (mt(S) && (de.cssRegisterProperty() ? Oi(S) : w = !1), y && !de.linearEasing() && (pe(p) || he(p) && p.some(pe)) && (w = !1), w) {
2025
- B && (x = x.map((b) => Ue(b) ? B.toDefaultUnit(b) : b)), x.length === 1 && (!de.partialKeyframes() || o) && x.unshift(I());
2024
+ if (mt(w) && (de.cssRegisterProperty() ? Oi(w) : S = !1), y && !de.linearEasing() && (pe(p) || he(p) && p.some(pe)) && (S = !1), S) {
2025
+ B && (E = E.map((b) => Ue(b) ? B.toDefaultUnit(b) : b)), E.length === 1 && (!de.partialKeyframes() || o) && E.unshift(I());
2026
2026
  const V = {
2027
2027
  delay: _e.ms(h),
2028
2028
  duration: _e.ms(c),
2029
- endDelay: _e.ms(f),
2029
+ endDelay: _e.ms(d),
2030
2030
  easing: he(p) ? void 0 : ln(p, c),
2031
2031
  direction: m,
2032
- iterations: d + 1,
2032
+ iterations: f + 1,
2033
2033
  fill: "both"
2034
2034
  };
2035
2035
  s = e.animate({
2036
- [S]: x,
2036
+ [w]: E,
2037
2037
  offset: _,
2038
2038
  easing: he(p) ? p.map((b) => ln(b, c)) : void 0
2039
2039
  }, V), s.finished || (s.finished = new Promise((b, O) => {
2040
2040
  s.onfinish = b, s.oncancel = O;
2041
2041
  }));
2042
- const u = x[x.length - 1];
2042
+ const u = E[E.length - 1];
2043
2043
  s.finished.then(() => {
2044
- C || (Be.set(e, S, u), s.cancel());
2044
+ x || (Be.set(e, w, u), s.cancel());
2045
2045
  }).catch(Fn), v || (s.playbackRate = 1.000001);
2046
2046
  } else if (i && y)
2047
- x = x.map((V) => typeof V == "string" ? parseFloat(V) : V), x.length === 1 && x.unshift(parseFloat(I())), s = new i((V) => {
2048
- Be.set(e, S, N ? N(V) : V);
2049
- }, x, Object.assign(Object.assign({}, a), {
2047
+ E = E.map((V) => typeof V == "string" ? parseFloat(V) : V), E.length === 1 && E.unshift(parseFloat(I())), s = new i((V) => {
2048
+ Be.set(e, w, Y ? Y(V) : V);
2049
+ }, E, Object.assign(Object.assign({}, a), {
2050
2050
  duration: c,
2051
2051
  easing: p
2052
2052
  }));
2053
2053
  else {
2054
- const V = x[x.length - 1];
2055
- Be.set(e, S, B && Ue(V) ? B.toDefaultUnit(V) : V);
2054
+ const V = E[E.length - 1];
2055
+ Be.set(e, w, B && Ue(V) ? B.toDefaultUnit(V) : V);
2056
2056
  }
2057
- return o && r(e, t, x, {
2057
+ return o && r(e, t, E, {
2058
2058
  duration: c,
2059
2059
  delay: h,
2060
2060
  easing: p,
2061
- repeat: d,
2061
+ repeat: f,
2062
2062
  offset: _
2063
2063
  }, "motion-one"), $.setAnimation(s), s;
2064
2064
  };
@@ -2129,10 +2129,10 @@ function qi(e) {
2129
2129
  for (let s = 0; s < r; s++) {
2130
2130
  const c = n[s];
2131
2131
  for (const h in a) {
2132
- const f = ji(i, h);
2133
- f.delay = Ui(f.delay, s, r);
2134
- const d = Li(c, h, a[h], f, e);
2135
- o.push(d);
2132
+ const d = ji(i, h);
2133
+ d.delay = Ui(d.delay, s, r);
2134
+ const f = Li(c, h, a[h], d, e);
2135
+ o.push(f);
2136
2136
  }
2137
2137
  }
2138
2138
  return Xn(
@@ -2206,13 +2206,13 @@ function W(e, t = "modelValue", n, a = (r) => r, i = (r) => r) {
2206
2206
  function h() {
2207
2207
  return e[s];
2208
2208
  }
2209
- const f = E(() => {
2209
+ const d = C(() => {
2210
2210
  h();
2211
2211
  const p = r.vnode.props;
2212
2212
  return (oe(p, o) || oe(p, s)) && (oe(p, `onUpdate:${o}`) || oe(p, `onUpdate:${s}`));
2213
2213
  });
2214
2214
  Ji(
2215
- () => !f.value,
2215
+ () => !d.value,
2216
2216
  () => {
2217
2217
  R(
2218
2218
  () => h(),
@@ -2222,18 +2222,18 @@ function W(e, t = "modelValue", n, a = (r) => r, i = (r) => r) {
2222
2222
  );
2223
2223
  }
2224
2224
  );
2225
- const d = E({
2225
+ const f = C({
2226
2226
  get() {
2227
- return a(f.value ? h() : c.value);
2227
+ return a(d.value ? h() : c.value);
2228
2228
  },
2229
2229
  set(p) {
2230
- const C = i(p), m = xn(f.value ? h() : c.value);
2231
- m === C || i(m) === p || (c.value = C, r == null || r.emit(`update:${s}`, C));
2230
+ const x = i(p), m = xn(d.value ? h() : c.value);
2231
+ m === x || i(m) === p || (c.value = x, r == null || r.emit(`update:${s}`, x));
2232
2232
  }
2233
2233
  });
2234
- return Object.defineProperty(d, "rxValue", {
2235
- get: () => f.value ? h() : c.value
2236
- }), d;
2234
+ return Object.defineProperty(f, "rxValue", {
2235
+ get: () => d.value ? h() : c.value
2236
+ }), f;
2237
2237
  }
2238
2238
  const Ce = /* @__PURE__ */ A({
2239
2239
  name: "YPlate",
@@ -2241,7 +2241,7 @@ const Ce = /* @__PURE__ */ A({
2241
2241
  variation: Object
2242
2242
  },
2243
2243
  setup() {
2244
- const e = E(() => ({
2244
+ const e = C(() => ({
2245
2245
  "y-plate": !0
2246
2246
  }));
2247
2247
  M(() => l("div", {
@@ -2306,44 +2306,44 @@ const un = {
2306
2306
  emit: t,
2307
2307
  slots: n
2308
2308
  }) {
2309
- const a = W(e), i = T(!1), r = E(() => ({
2309
+ const a = W(e), i = T(!1), r = C(() => ({
2310
2310
  "y-snackbar": !0
2311
- })), o = E(() => ({
2311
+ })), o = C(() => ({
2312
2312
  ...ve(e.contentClasses),
2313
2313
  "y-snackbar__display": !0
2314
- })), s = E(() => {
2315
- var S;
2316
- const [_, v] = (S = e.position) == null ? void 0 : S.split(" ");
2314
+ })), s = C(() => {
2315
+ var w;
2316
+ const [_, v] = (w = e.position) == null ? void 0 : w.split(" ");
2317
2317
  let g = "top", y = "left";
2318
2318
  v ? (y = v, g = _) : y = _;
2319
- const w = {
2319
+ const S = {
2320
2320
  [y === "center" ? "left" : y]: y === "center" ? "50%" : 0,
2321
2321
  [g]: 0
2322
2322
  };
2323
- return y === "center" && (w.transform = "translateX(-50%)"), w;
2323
+ return y === "center" && (S.transform = "translateX(-50%)"), S;
2324
2324
  });
2325
2325
  function c() {
2326
2326
  a.value = !1;
2327
2327
  }
2328
2328
  const {
2329
2329
  start: h,
2330
- stop: f,
2331
- reset: d
2330
+ stop: d,
2331
+ reset: f
2332
2332
  } = ri(c, e.duration);
2333
2333
  function p() {
2334
2334
  e.duration > 0 && h();
2335
2335
  }
2336
2336
  R(i, (_) => {
2337
- _ ? f() : p();
2337
+ _ ? d() : p();
2338
2338
  }), R(a, (_) => {
2339
- _ ? p() : d();
2339
+ _ ? p() : f();
2340
2340
  }, {
2341
2341
  immediate: !0
2342
2342
  });
2343
- function C(_) {
2343
+ function x(_) {
2344
2344
  t("click", _), a.value = !1;
2345
2345
  }
2346
- const m = E(() => {
2346
+ const m = C(() => {
2347
2347
  const {
2348
2348
  transition: _,
2349
2349
  position: v
@@ -2366,7 +2366,7 @@ const un = {
2366
2366
  var _;
2367
2367
  return l(L, null, [l(Ce, null, null), l("div", {
2368
2368
  class: "y-snackbar__content",
2369
- onClick: Vt(C, ["capture"]),
2369
+ onClick: Vt(x, ["capture"]),
2370
2370
  onMouseenter: () => i.value = !0,
2371
2371
  onMouseleave: () => i.value = !1
2372
2372
  }, [(_ = n.default) == null ? void 0 : _.call(n)])]);
@@ -2378,7 +2378,7 @@ const un = {
2378
2378
  computedContentClasses: o,
2379
2379
  computedInset: s,
2380
2380
  proxyTransition: m,
2381
- onClickContent: C
2381
+ onClickContent: x
2382
2382
  };
2383
2383
  }
2384
2384
  });
@@ -2427,52 +2427,52 @@ const er = {
2427
2427
  emit: n,
2428
2428
  expose: a
2429
2429
  }) {
2430
- const i = T(), r = T(), o = T(), s = T(), c = T(), h = E(() => ({
2430
+ const i = T(), r = T(), o = T(), s = T(), c = T(), h = C(() => ({
2431
2431
  ...ve(e.tooltipClasses),
2432
2432
  "y-tooltip": !0
2433
- })), f = W(e), d = E({
2434
- get: () => !!f.value,
2433
+ })), d = W(e), f = C({
2434
+ get: () => !!d.value,
2435
2435
  set: (y) => {
2436
- y && e.disabled || (f.value = y);
2436
+ y && e.disabled || (d.value = y);
2437
2437
  }
2438
- }), p = E(() => {
2438
+ }), p = C(() => {
2439
2439
  const y = s.value;
2440
2440
  if (y) {
2441
2441
  const {
2442
- position: w,
2443
- align: S
2442
+ position: S,
2443
+ align: w
2444
2444
  } = e, $ = c.value, B = y.getBoundingClientRect();
2445
- let I = B.top, x = B.left + B.width / 2;
2446
- return $ && (w === "top" || w === "bottom") && (w === "top" && (I -= $.clientHeight, I -= 8), w === "bottom" && (I += B.height, I += 8), S === "center" ? x -= $.clientWidth / 2 : S === "end" && (x = B.right, x -= $.clientWidth)), {
2445
+ let I = B.top, E = B.left + B.width / 2;
2446
+ return $ && (S === "top" || S === "bottom") && (S === "top" && (I -= $.clientHeight, I -= 8), S === "bottom" && (I += B.height, I += 8), w === "center" ? E -= $.clientWidth / 2 : w === "end" && (E = B.right, E -= $.clientWidth)), {
2447
2447
  top: `${I}px`,
2448
- left: `${x}px`
2448
+ left: `${E}px`
2449
2449
  };
2450
2450
  }
2451
2451
  return {};
2452
- }), C = E(() => {
2453
- var y, w;
2454
- return (w = (y = o.value) == null ? void 0 : y[0]) == null ? void 0 : w.el;
2452
+ }), x = C(() => {
2453
+ var y, S;
2454
+ return (S = (y = o.value) == null ? void 0 : y[0]) == null ? void 0 : S.el;
2455
2455
  });
2456
2456
  Ae(() => {
2457
- var w, S, $;
2457
+ var S, w, $;
2458
2458
  if (!r.value) {
2459
- ((w = C.value) == null ? void 0 : w.nodeType) !== 3 && (s.value = C.value);
2459
+ ((S = x.value) == null ? void 0 : S.nodeType) !== 3 && (s.value = x.value);
2460
2460
  return;
2461
2461
  }
2462
2462
  const y = r.value;
2463
- s.value = (S = r.value) != null && S.$el ? ($ = r.value) == null ? void 0 : $.$el : y;
2464
- }), R(d, (y) => {
2463
+ s.value = (w = r.value) != null && w.$el ? ($ = r.value) == null ? void 0 : $.$el : y;
2464
+ }), R(f, (y) => {
2465
2465
  y && et(() => {
2466
- var S;
2467
- const w = (S = i.value) == null ? void 0 : S.content$;
2468
- c.value = w;
2466
+ var w;
2467
+ const S = (w = i.value) == null ? void 0 : w.content$;
2468
+ c.value = S;
2469
2469
  });
2470
2470
  });
2471
2471
  function m(y) {
2472
- e.openOnHover && (d.value = !0);
2472
+ e.openOnHover && (f.value = !0);
2473
2473
  }
2474
2474
  function _(y) {
2475
- e.openOnHover && (d.value = !1);
2475
+ e.openOnHover && (f.value = !1);
2476
2476
  }
2477
2477
  function v(y) {
2478
2478
  y.addEventListener("mouseenter", m), y.addEventListener("mouseleave", _);
@@ -2480,19 +2480,19 @@ const er = {
2480
2480
  function g(y) {
2481
2481
  y.removeEventListener("mouseenter", m), y.removeEventListener("mouseleave", _);
2482
2482
  }
2483
- return R(s, (y, w) => {
2484
- y ? v(y) : w && g(w);
2483
+ return R(s, (y, S) => {
2484
+ y ? v(y) : S && g(S);
2485
2485
  }), M(() => {
2486
- var w;
2487
- const y = (w = t.base) == null ? void 0 : w.call(t, {
2488
- active: d.value,
2486
+ var S;
2487
+ const y = (S = t.base) == null ? void 0 : S.call(t, {
2488
+ active: f.value,
2489
2489
  props: Z({
2490
2490
  ref: r
2491
2491
  })
2492
2492
  });
2493
2493
  return o.value = y, l(L, null, [y, l(le, {
2494
- modelValue: d.value,
2495
- "onUpdate:modelValue": (S) => d.value = S,
2494
+ modelValue: f.value,
2495
+ "onUpdate:modelValue": (w) => f.value = w,
2496
2496
  ref: i,
2497
2497
  classes: h.value,
2498
2498
  scrim: !1,
@@ -2502,11 +2502,11 @@ const er = {
2502
2502
  },
2503
2503
  transition: e.transition
2504
2504
  }, {
2505
- default: (...S) => {
2505
+ default: (...w) => {
2506
2506
  var $;
2507
2507
  return l(L, null, [l(Ce, null, null), l("div", {
2508
2508
  class: "y-tooltip__content"
2509
- }, [(($ = t.default) == null ? void 0 : $.call(t, ...S)) ?? ""])]);
2509
+ }, [(($ = t.default) == null ? void 0 : $.call(t, ...w)) ?? ""])]);
2510
2510
  }
2511
2511
  })]);
2512
2512
  }), {
@@ -2515,7 +2515,7 @@ const er = {
2515
2515
  baseEl: s,
2516
2516
  coordinatesStyles: p,
2517
2517
  baseSlot: o,
2518
- active: d
2518
+ active: f
2519
2519
  };
2520
2520
  }
2521
2521
  });
@@ -2595,13 +2595,13 @@ const ar = /* @__PURE__ */ A({
2595
2595
  R(i, (m) => {
2596
2596
  r.value = !!m;
2597
2597
  });
2598
- const s = E(() => {
2598
+ const s = C(() => {
2599
2599
  let m = "0 0";
2600
2600
  return r.value && (m = `0 0 ${100 - n.value}% 0`), {
2601
2601
  position: "absolute",
2602
2602
  inset: m
2603
2603
  };
2604
- }), c = E(() => ({
2604
+ }), c = C(() => ({
2605
2605
  "y-divide-panel": !0,
2606
2606
  "y-divide-panel--resizing": a.value
2607
2607
  }));
@@ -2611,17 +2611,17 @@ const ar = /* @__PURE__ */ A({
2611
2611
  n.value = Math.min(Math.max(10, (_.clientY - v.y) / v.height * 100), 90);
2612
2612
  });
2613
2613
  }
2614
- function f() {
2615
- a.value = !1, o.value.removeEventListener("mousemove", h), o.value.removeEventListener("mouseup", d), o.value.removeEventListener("mouseleave", p);
2614
+ function d() {
2615
+ a.value = !1, o.value.removeEventListener("mousemove", h), o.value.removeEventListener("mouseup", f), o.value.removeEventListener("mouseleave", p);
2616
2616
  }
2617
- function d(m) {
2618
- f();
2617
+ function f(m) {
2618
+ d();
2619
2619
  }
2620
2620
  function p(m) {
2621
- f();
2621
+ d();
2622
2622
  }
2623
- function C(m) {
2624
- m.preventDefault(), a.value = !0, o.value.addEventListener("mousemove", h), o.value.addEventListener("mouseup", d), o.value.addEventListener("mouseleave", p);
2623
+ function x(m) {
2624
+ m.preventDefault(), a.value = !0, o.value.addEventListener("mousemove", h), o.value.addEventListener("mouseup", f), o.value.addEventListener("mouseleave", p);
2625
2625
  }
2626
2626
  return M(() => {
2627
2627
  var m, _;
@@ -2637,7 +2637,7 @@ const ar = /* @__PURE__ */ A({
2637
2637
  position: "absolute",
2638
2638
  inset: `${n.value}% 0 0 0`
2639
2639
  },
2640
- onMousedown: C
2640
+ onMousedown: x
2641
2641
  }, [l("div", {
2642
2642
  class: "y-divide-panel__divider-line"
2643
2643
  }, null)]), l("div", {
@@ -2740,48 +2740,48 @@ const ae = /* @__PURE__ */ A({
2740
2740
  setup(e, { slots: t, expose: n }) {
2741
2741
  const a = tt("tree-view"), i = T(!1), r = T(!1), o = T(!1), s = T(!1);
2742
2742
  function c(y) {
2743
- const w = !r.value;
2744
- r.value = w, a.updateActive(g.value, w), a.emitActive();
2743
+ const S = !r.value;
2744
+ r.value = S, a.updateActive(g.value, S), a.emitActive();
2745
2745
  }
2746
2746
  function h(y) {
2747
2747
  y.stopPropagation();
2748
- const w = !i.value;
2749
- i.value = w, a.updateExpanded(g.value, w), a.emitExpanded();
2748
+ const S = !i.value;
2749
+ i.value = S, a.updateExpanded(g.value, S), a.emitExpanded();
2750
2750
  }
2751
- function f(y) {
2751
+ function d(y) {
2752
2752
  y.stopPropagation();
2753
- const w = !o.value;
2754
- o.value = w, a.updateSelected(g.value, w), a.emitSelected();
2753
+ const S = !o.value;
2754
+ o.value = S, a.updateSelected(g.value, S), a.emitSelected();
2755
2755
  }
2756
- const d = E(() => {
2756
+ const f = C(() => {
2757
2757
  var y;
2758
2758
  return ((y = e.item) == null ? void 0 : y[e.childrenKey]) ?? [];
2759
- }), p = E(() => d.value.length < 1), C = E(() => ({
2759
+ }), p = C(() => f.value.length < 1), x = C(() => ({
2760
2760
  "y-tree-view-node": !0,
2761
2761
  "y-tree-view-node--leaf": p.value,
2762
2762
  "y-tree-view-node--expanded": i.value,
2763
2763
  "y-tree-view-node--active": r.value
2764
- })), m = E(() => ({
2764
+ })), m = C(() => ({
2765
2765
  "--tree-view-node--level": e.level
2766
- })), _ = E(() => F(e.item, e.textKey) ?? ""), v = E(() => ({
2766
+ })), _ = C(() => F(e.item, e.textKey) ?? ""), v = C(() => ({
2767
2767
  level: e.level,
2768
2768
  imLeaf: p.value
2769
2769
  }));
2770
2770
  M(() => {
2771
- var S;
2772
- const y = d.value.map(($) => k(
2771
+ var w;
2772
+ const y = f.value.map(($) => k(
2773
2773
  Rt,
2774
2774
  { ...e, level: (e.level ?? 0) + 1, item: $ },
2775
2775
  t
2776
- )), w = [];
2776
+ )), S = [];
2777
2777
  for (let $ = 0; $ < e.level; $ += 1)
2778
- w.push(
2778
+ S.push(
2779
2779
  k("div", { class: "y-tree-view-node__indent-spacer" })
2780
2780
  );
2781
2781
  return k(
2782
2782
  "div",
2783
2783
  {
2784
- class: C.value,
2784
+ class: x.value,
2785
2785
  style: m.value,
2786
2786
  ".role": "treeitem",
2787
2787
  "data-level": e.level
@@ -2795,7 +2795,7 @@ const ae = /* @__PURE__ */ A({
2795
2795
  },
2796
2796
  [
2797
2797
  k(Ce),
2798
- k("div", { class: "y-tree-view-node__indents" }, w),
2798
+ k("div", { class: "y-tree-view-node__indents" }, S),
2799
2799
  /* EXPAND */
2800
2800
  p.value ? k("i", { class: "y-tree-view-node__no-expand-icon" }) : k(
2801
2801
  H,
@@ -2812,7 +2812,7 @@ const ae = /* @__PURE__ */ A({
2812
2812
  "div",
2813
2813
  {
2814
2814
  class: ["y-tree-view-node__select"],
2815
- onClick: ($) => f($)
2815
+ onClick: ($) => d($)
2816
2816
  },
2817
2817
  [k(ae, { checked: o.value })]
2818
2818
  ),
@@ -2826,7 +2826,7 @@ const ae = /* @__PURE__ */ A({
2826
2826
  k(
2827
2827
  "div",
2828
2828
  { class: "y-tree-view-node__text" },
2829
- t.default ? (S = t.default) == null ? void 0 : S.call(t, {
2829
+ t.default ? (w = t.default) == null ? void 0 : w.call(t, {
2830
2830
  text: _.value,
2831
2831
  item: e.item
2832
2832
  }) : _.value
@@ -2840,7 +2840,7 @@ const ae = /* @__PURE__ */ A({
2840
2840
  ]
2841
2841
  ),
2842
2842
  /* CHILDREN */
2843
- d.value.length > 0 ? k(
2843
+ f.value.length > 0 ? k(
2844
2844
  ea,
2845
2845
  { disabled: e.disableTransition },
2846
2846
  i.value ? () => k(
@@ -2855,7 +2855,7 @@ const ae = /* @__PURE__ */ A({
2855
2855
  ]
2856
2856
  );
2857
2857
  });
2858
- const g = E(() => F(e.item, e.itemKey));
2858
+ const g = C(() => F(e.item, e.itemKey));
2859
2859
  return n({
2860
2860
  myKey: g,
2861
2861
  expanded: i,
@@ -2935,23 +2935,23 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
2935
2935
  emit: n,
2936
2936
  expose: a
2937
2937
  }) {
2938
- const i = T({}), r = W(e, "expanded"), o = W(e, "active"), s = W(e, "selected"), c = T(/* @__PURE__ */ new Set()), h = T(/* @__PURE__ */ new Set()), f = T(/* @__PURE__ */ new Set());
2938
+ const i = T({}), r = W(e, "expanded"), o = W(e, "active"), s = W(e, "selected"), c = T(/* @__PURE__ */ new Set()), h = T(/* @__PURE__ */ new Set()), d = T(/* @__PURE__ */ new Set());
2939
2939
  T([]);
2940
- function d(u, b = []) {
2940
+ function f(u, b = []) {
2941
2941
  const {
2942
2942
  childKeys: O
2943
2943
  } = i.value[u];
2944
2944
  b.push(...O);
2945
- for (const D of O)
2946
- b = d(D, b);
2945
+ for (const N of O)
2946
+ b = f(N, b);
2947
2947
  return b;
2948
2948
  }
2949
2949
  function p(u) {
2950
2950
  return e.returnItem ? F(u, e.itemKey) : u;
2951
2951
  }
2952
- function C(u, b = null, O = 0) {
2953
- for (const D of u) {
2954
- const P = F(D, e.itemKey), U = F(D, e.childrenKey) ?? [], me = oe(i.value, P) ? i.value[P] : {
2952
+ function x(u, b = null, O = 0) {
2953
+ for (const N of u) {
2954
+ const P = F(N, e.itemKey), U = F(N, e.childrenKey) ?? [], me = oe(i.value, P) ? i.value[P] : {
2955
2955
  vnode: null,
2956
2956
  selected: !1,
2957
2957
  indeterminate: !1,
@@ -2959,7 +2959,7 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
2959
2959
  expanded: !1
2960
2960
  }, Ta = {
2961
2961
  vnode: me.vnode,
2962
- item: D,
2962
+ item: N,
2963
2963
  level: O,
2964
2964
  parentKey: b,
2965
2965
  childKeys: U.map((ka) => F(ka, e.itemKey)),
@@ -2968,14 +2968,14 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
2968
2968
  indeterminate: me.indeterminate,
2969
2969
  selected: me.selected
2970
2970
  };
2971
- C(U, P, O + 1), i.value[P] = Ta, i.value[P].expanded && c.value.add(P), i.value[P].selected && c.value.add(P), i.value[P].active && f.value.add(P), B(P);
2971
+ x(U, P, O + 1), i.value[P] = Ta, i.value[P].expanded && c.value.add(P), i.value[P].selected && c.value.add(P), i.value[P].active && d.value.add(P), B(P);
2972
2972
  }
2973
2973
  }
2974
2974
  function m(u, b) {
2975
2975
  if (!(u in i.value))
2976
2976
  return;
2977
- const O = i.value[u], D = F(O.item, e.childrenKey);
2978
- Array.isArray(D) && D.length > 0 && (b ? c.value.add(u) : c.value.delete(u), O.expanded = b, B(u));
2977
+ const O = i.value[u], N = F(O.item, e.childrenKey);
2978
+ Array.isArray(N) && N.length > 0 && (b ? c.value.add(u) : c.value.delete(u), O.expanded = b, B(u));
2979
2979
  }
2980
2980
  function _(u = !0) {
2981
2981
  Object.entries(i.value).forEach(([b, O]) => {
@@ -2986,48 +2986,48 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
2986
2986
  if (!(u in i.value))
2987
2987
  return;
2988
2988
  const O = i.value[u];
2989
- let D = b ? "" : u;
2990
- if (e.multipleActive || ([D] = f.value.keys()), b && (f.value.add(u), O.active = !0), D && D in i.value && (f.value.delete(D), i.value[D].active = !1, B(D)), e.multipleActive && e.activeStrategy === "cascade")
2991
- for (const P of d(u))
2992
- P in i.value && (b ? f.value.add(P) : f.value.delete(P), i.value[P].active = b, B(P));
2989
+ let N = b ? "" : u;
2990
+ if (e.multipleActive || ([N] = d.value.keys()), b && (d.value.add(u), O.active = !0), N && N in i.value && (d.value.delete(N), i.value[N].active = !1, B(N)), e.multipleActive && e.activeStrategy === "cascade")
2991
+ for (const P of f(u))
2992
+ P in i.value && (b ? d.value.add(P) : d.value.delete(P), i.value[P].active = b, B(P));
2993
2993
  }
2994
2994
  function g(u, b) {
2995
2995
  if (!(u in i.value))
2996
2996
  return;
2997
2997
  const O = i.value[u];
2998
2998
  if (b && (h.value.add(u), O.selected = !0), !b && u in i.value && (h.value.delete(u), i.value[u].selected = !1, B(u)), e.selectStrategy === "cascade")
2999
- for (const D of d(u))
3000
- D in i.value && (b ? h.value.add(D) : h.value.delete(D), i.value[D].selected = b, B(D));
2999
+ for (const N of f(u))
3000
+ N in i.value && (b ? h.value.add(N) : h.value.delete(N), i.value[N].selected = b, B(N));
3001
3001
  }
3002
3002
  function y() {
3003
3003
  const u = [...c.value];
3004
3004
  r.value = e.returnItem ? u.map((b) => i.value[b].item) : u;
3005
3005
  }
3006
- function w() {
3007
- const u = [...f.value];
3006
+ function S() {
3007
+ const u = [...d.value];
3008
3008
  o.value = e.returnItem ? u.map((b) => i.value[b].item) : u;
3009
3009
  }
3010
- function S() {
3010
+ function w() {
3011
3011
  const u = [...h.value];
3012
3012
  s.value = e.returnItem ? u.map((b) => i.value[b].item) : u;
3013
3013
  }
3014
- function $(u, b, O, D) {
3014
+ function $(u, b, O, N) {
3015
3015
  const P = e.returnItem ? u.map((ue) => F(ue, e.itemKey)) : u, U = [...b.value];
3016
- He(U, P) || (U.forEach((ue) => O(ue, !1)), P.forEach((ue) => O(ue, !0)), D());
3016
+ He(U, P) || (U.forEach((ue) => O(ue, !1)), P.forEach((ue) => O(ue, !0)), N());
3017
3017
  }
3018
3018
  R(r, (u) => {
3019
3019
  $(u, c, m, y);
3020
3020
  }), R(o, (u) => {
3021
- $(u, f, v, w);
3021
+ $(u, d, v, S);
3022
3022
  }), R(s, (u) => {
3023
- $(u, h, g, S);
3023
+ $(u, h, g, w);
3024
3024
  }), R(() => e.items, (u) => {
3025
- const b = Object.keys(i.value).map((U) => F(i.value[U].item, e.itemKey)), O = ta(u, e.itemKey, e.childrenKey), D = ir(b, O);
3026
- if (D.length < 1 && O.length < b.length)
3025
+ const b = Object.keys(i.value).map((U) => F(i.value[U].item, e.itemKey)), O = ta(u, e.itemKey, e.childrenKey), N = ir(b, O);
3026
+ if (N.length < 1 && O.length < b.length)
3027
3027
  return;
3028
- D.forEach((U) => delete i.value[U]);
3028
+ N.forEach((U) => delete i.value[U]);
3029
3029
  const P = [...h.value];
3030
- h.value.clear(), c.value.clear(), f.value.clear(), C(u), He(P, [...h.value]) || S();
3030
+ h.value.clear(), c.value.clear(), d.value.clear(), x(u), He(P, [...h.value]) || w();
3031
3031
  }, {
3032
3032
  deep: !0
3033
3033
  });
@@ -3038,18 +3038,18 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
3038
3038
  function I(u, b) {
3039
3039
  i.value[u] && (i.value[u].vnode = b), B(u);
3040
3040
  }
3041
- C(e.items), ye("tree-view", {
3041
+ x(e.items), ye("tree-view", {
3042
3042
  register: I,
3043
3043
  updateExpanded: m,
3044
3044
  updateActive: v,
3045
3045
  updateSelected: g,
3046
3046
  emitExpanded: y,
3047
- emitActive: w,
3048
- emitSelected: S
3047
+ emitActive: S,
3048
+ emitSelected: w
3049
3049
  });
3050
- const x = E(() => e.items), N = E(() => ({
3050
+ const E = C(() => e.items), Y = C(() => ({
3051
3051
  "y-tree-view": !0
3052
- })), V = E(() => {
3052
+ })), V = C(() => {
3053
3053
  let u = e.activeColor;
3054
3054
  return e.activeColor && !Vn(e.activeColor) && (u = `rgba(var(--y-theme--${e.activeColor}), 1)`), {
3055
3055
  ["--y-tree-view__active-color"]: u
@@ -3060,10 +3060,10 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
3060
3060
  }), a({
3061
3061
  expand: _
3062
3062
  }), M(() => l(L, null, [l("div", {
3063
- class: N.value,
3063
+ class: Y.value,
3064
3064
  style: V.value,
3065
3065
  role: "tree"
3066
- }, [x.value.length > 0 ? x.value.map((u) => l(Rt, {
3066
+ }, [E.value.length > 0 ? E.value.map((u) => l(Rt, {
3067
3067
  ...Me(e, dn),
3068
3068
  item: u,
3069
3069
  level: 0
@@ -3073,7 +3073,7 @@ const dn = Pt(), rr = /* @__PURE__ */ A({
3073
3073
  nodes: i,
3074
3074
  expandedSet: c,
3075
3075
  selectedSet: h,
3076
- activeSet: f
3076
+ activeSet: d
3077
3077
  };
3078
3078
  }
3079
3079
  });
@@ -3180,14 +3180,14 @@ const Mt = j({
3180
3180
  }]
3181
3181
  }, {
3182
3182
  default: () => {
3183
- var s, c, h, f, d;
3183
+ var s, c, h, d, f;
3184
3184
  return [(s = t.top) == null ? void 0 : s.call(t), t.default ? l("div", {
3185
3185
  class: ["y-table__container"],
3186
3186
  ref: n,
3187
3187
  style: {
3188
3188
  height: X(r)
3189
3189
  }
3190
- }, [(c = t.leading) == null ? void 0 : c.call(t), l("table", null, [t.default()]), (h = t.trailing) == null ? void 0 : h.call(t)]) : (f = t.container) == null ? void 0 : f.call(t, n, a), (d = t.bottom) == null ? void 0 : d.call(t)];
3190
+ }, [(c = t.leading) == null ? void 0 : c.call(t), l("table", null, [t.default()]), (h = t.trailing) == null ? void 0 : h.call(t)]) : (d = t.container) == null ? void 0 : d.call(t, n, a), (f = t.bottom) == null ? void 0 : f.call(t)];
3191
3191
  }
3192
3192
  });
3193
3193
  });
@@ -3223,7 +3223,7 @@ const Mt = j({
3223
3223
  emit: n,
3224
3224
  attrs: a
3225
3225
  }) {
3226
- const i = E(() => {
3226
+ const i = C(() => {
3227
3227
  const r = {};
3228
3228
  return e.fixed && e.fixedOffset !== void 0 && (e.fixed === "lead" ? r.left = X(e.fixedOffset) : e.fixed === "trail" && (r.right = X(e.fixedOffset))), r;
3229
3229
  });
@@ -3262,11 +3262,11 @@ const Mt = j({
3262
3262
  function ur(e, t) {
3263
3263
  const n = T([]), a = T([]);
3264
3264
  Ae(() => {
3265
- var C;
3265
+ var x;
3266
3266
  const r = e.headers.length > 0 ? Array.isArray(e.headers[0]) ? e.headers : [e.headers] : [], o = r.flatMap(
3267
3267
  (m, _) => m.map((v) => ({ column: v, rowIndex: _ }))
3268
3268
  ), s = r.length, h = { ...{ text: "", sortable: !1 }, width: 48 };
3269
- if ((C = t == null ? void 0 : t.enableSelect) != null && C.value) {
3269
+ if ((x = t == null ? void 0 : t.enableSelect) != null && x.value) {
3270
3270
  const m = o.findIndex(
3271
3271
  ({ column: _ }) => _.key === "data-table-select"
3272
3272
  );
@@ -3285,17 +3285,17 @@ function ur(e, t) {
3285
3285
  rowIndex: o[m].rowIndex
3286
3286
  });
3287
3287
  }
3288
- const f = ce(s).map(() => []), d = ce(s).fill(0);
3288
+ const d = ce(s).map(() => []), f = ce(s).fill(0);
3289
3289
  o.forEach(({ column: m, rowIndex: _ }) => {
3290
3290
  const { key: v } = m;
3291
3291
  for (let g = _; g <= _ + (m.rowspan ?? 1) - 1; g += 1)
3292
- f[g].push({
3292
+ d[g].push({
3293
3293
  ...m,
3294
3294
  key: v,
3295
- fixedOffset: d[g],
3295
+ fixedOffset: f[g],
3296
3296
  sortable: m.sortable ?? !!v
3297
- }), d[g] += Number(m.width ?? 0);
3298
- }), f.forEach((m) => {
3297
+ }), f[g] += Number(m.width ?? 0);
3298
+ }), d.forEach((m) => {
3299
3299
  for (let _ = m.length; _ -= 1; _ >= 0)
3300
3300
  if (m[_].fixed) {
3301
3301
  m[_].lastFixed = !0;
@@ -3303,12 +3303,12 @@ function ur(e, t) {
3303
3303
  }
3304
3304
  });
3305
3305
  const p = /* @__PURE__ */ new Set();
3306
- n.value = f.map((m) => {
3306
+ n.value = d.map((m) => {
3307
3307
  const _ = [];
3308
3308
  for (const v of m)
3309
3309
  p.has(v.key) || (p.add(v.key), _.push(v));
3310
3310
  return _;
3311
- }), a.value = f.at(-1) ?? [];
3311
+ }), a.value = d.at(-1) ?? [];
3312
3312
  });
3313
3313
  const i = { headers: n, columns: a };
3314
3314
  return ye(_t, i), i;
@@ -3369,11 +3369,11 @@ function fr(e, {
3369
3369
  e.modelValue,
3370
3370
  (v) => new Set(v),
3371
3371
  (v) => [...v.values()]
3372
- ), i = E(
3372
+ ), i = C(
3373
3373
  () => t.value.filter((v) => v.selectable)
3374
- ), r = E(
3374
+ ), r = C(
3375
3375
  () => n.value.filter((v) => v.selectable)
3376
- ), o = E(() => {
3376
+ ), o = C(() => {
3377
3377
  if (typeof e.selectStrategy == "object")
3378
3378
  return e.selectStrategy;
3379
3379
  switch (e.selectStrategy) {
@@ -3399,10 +3399,10 @@ function fr(e, {
3399
3399
  selected: new Set(a.value)
3400
3400
  });
3401
3401
  }
3402
- function f(v) {
3402
+ function d(v) {
3403
3403
  h([v], !s([v]));
3404
3404
  }
3405
- function d(v) {
3405
+ function f(v) {
3406
3406
  a.value = o.value.selectAll({
3407
3407
  value: v,
3408
3408
  allItems: i.value,
@@ -3410,16 +3410,16 @@ function fr(e, {
3410
3410
  selected: new Set(a.value)
3411
3411
  });
3412
3412
  }
3413
- const p = E(() => o.value.allSelected({
3413
+ const p = C(() => o.value.allSelected({
3414
3414
  allItems: i.value,
3415
3415
  pageItems: r.value
3416
- })), C = E(() => a.value.size > 0), m = E(() => s(p.value)), _ = {
3417
- toggleSelect: f,
3416
+ })), x = C(() => a.value.size > 0), m = C(() => s(p.value)), _ = {
3417
+ toggleSelect: d,
3418
3418
  select: h,
3419
- selectAll: d,
3419
+ selectAll: f,
3420
3420
  isSelected: s,
3421
3421
  isSomeSelected: c,
3422
- someSelected: C,
3422
+ someSelected: x,
3423
3423
  allSelected: m,
3424
3424
  showSelectAll: o.value.showSelectAll,
3425
3425
  selectables: p
@@ -3464,22 +3464,23 @@ const hr = j({
3464
3464
  }]
3465
3465
  }, {
3466
3466
  default: () => {
3467
- var d, p;
3468
- const c = e.item, h = `item.${o.key}`, f = {
3467
+ var f, p;
3468
+ const c = e.item, h = `item.${o.key}`, d = {
3469
3469
  index: e.index,
3470
3470
  item: e.item,
3471
3471
  columns: r.value,
3472
+ value: Re(c.columns, o.key),
3472
3473
  isSelected: a,
3473
3474
  toggleSelect: i
3474
3475
  };
3475
- return n[h] ? (d = n[h]) == null ? void 0 : d.call(n, f) : o.key === "data-table-select" ? ((p = n["item.data-table-select"]) == null ? void 0 : p.call(n, f)) ?? l(ae, Z({
3476
+ return n[h] ? (f = n[h]) == null ? void 0 : f.call(n, d) : o.key === "data-table-select" ? ((p = n["item.data-table-select"]) == null ? void 0 : p.call(n, d)) ?? l(ae, Z({
3476
3477
  checked: a([c]),
3477
3478
  disabled: !c.selectable
3478
3479
  }, {
3479
- onClick: (C) => {
3480
- C.stopPropagation(), i(c);
3480
+ onClick: (x) => {
3481
+ x.stopPropagation(), i(c);
3481
3482
  }
3482
- }), null) : Re(c.columns, o.key);
3483
+ }), null) : d.value;
3483
3484
  }
3484
3485
  }))]));
3485
3486
  }
@@ -3522,7 +3523,7 @@ const hr = j({
3522
3523
  }, [l("td", {
3523
3524
  colspan: a.value.length
3524
3525
  }, [((o = t["no-data"]) == null ? void 0 : o.call(t)) ?? e.noDataText])]) : l(L, null, [t.body ? (s = t.body) == null ? void 0 : s.call(t, e) : e.items.map((c, h) => {
3525
- const d = {
3526
+ const f = {
3526
3527
  ...{
3527
3528
  index: h,
3528
3529
  item: c,
@@ -3533,8 +3534,8 @@ const hr = j({
3533
3534
  props: {
3534
3535
  key: `item__${c.value}`,
3535
3536
  onClick: e["onClick:row"] ? (p) => {
3536
- var C;
3537
- (C = e["onClick:row"]) == null || C.call(e, p, {
3537
+ var x;
3538
+ (x = e["onClick:row"]) == null || x.call(e, p, {
3538
3539
  item: c
3539
3540
  });
3540
3541
  } : void 0,
@@ -3542,7 +3543,7 @@ const hr = j({
3542
3543
  item: c
3543
3544
  }
3544
3545
  };
3545
- return l(L, null, [t.item ? t.item(d) : l(vr, d.props, t)]);
3546
+ return l(L, null, [t.item ? t.item(f) : l(vr, f.props, t)]);
3546
3547
  })]);
3547
3548
  }), {};
3548
3549
  }
@@ -3676,8 +3677,8 @@ function re(e, t, n, a, i, r) {
3676
3677
  s = [...o.values()];
3677
3678
  else if (n === "length" && ie(e)) {
3678
3679
  const h = Number(a);
3679
- o.forEach((f, d) => {
3680
- (d === "length" || d >= h) && s.push(f);
3680
+ o.forEach((d, f) => {
3681
+ (f === "length" || f >= h) && s.push(d);
3681
3682
  });
3682
3683
  } else
3683
3684
  switch (n !== void 0 && s.push(o.get(n)), t) {
@@ -3696,8 +3697,8 @@ function re(e, t, n, a, i, r) {
3696
3697
  s[0] && (process.env.NODE_ENV !== "production" ? fe(s[0], c) : fe(s[0]));
3697
3698
  else {
3698
3699
  const h = [];
3699
- for (const f of s)
3700
- f && h.push(...f);
3700
+ for (const d of s)
3701
+ d && h.push(...d);
3701
3702
  process.env.NODE_ENV !== "production" ? fe($e(h), c) : fe($e(h));
3702
3703
  }
3703
3704
  }
@@ -3722,22 +3723,22 @@ function Or() {
3722
3723
  const e = {};
3723
3724
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
3724
3725
  e[t] = function(...n) {
3725
- const a = Y(this);
3726
+ const a = D(this);
3726
3727
  for (let r = 0, o = this.length; r < o; r++)
3727
3728
  z(a, "get", r + "");
3728
3729
  const i = a[t](...n);
3729
- return i === -1 || i === !1 ? a[t](...n.map(Y)) : i;
3730
+ return i === -1 || i === !1 ? a[t](...n.map(D)) : i;
3730
3731
  };
3731
3732
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
3732
3733
  e[t] = function(...n) {
3733
3734
  $r();
3734
- const a = Y(this)[t].apply(this, n);
3735
+ const a = D(this)[t].apply(this, n);
3735
3736
  return Tr(), a;
3736
3737
  };
3737
3738
  }), e;
3738
3739
  }
3739
3740
  function Ir(e) {
3740
- const t = Y(this);
3741
+ const t = D(this);
3741
3742
  return z(t, "has", e), t.hasOwnProperty(e);
3742
3743
  }
3743
3744
  function da(e = !1, t = !1) {
@@ -3767,10 +3768,10 @@ function Dr(e = !1) {
3767
3768
  let o = n[a];
3768
3769
  if (Ze(o) && te(o) && !te(i))
3769
3770
  return !1;
3770
- if (!e && (!ba(i) && !Ze(i) && (o = Y(o), i = Y(i)), !ie(n) && te(o) && !te(i)))
3771
+ if (!e && (!ba(i) && !Ze(i) && (o = D(o), i = D(i)), !ie(n) && te(o) && !te(i)))
3771
3772
  return o.value = i, !0;
3772
3773
  const s = ie(n) && Kt(a) ? Number(a) < n.length : nt(n, a), c = Reflect.set(n, a, i, r);
3773
- return n === Y(r) && (s ? zt(i, o) && re(n, "set", a, i, o) : re(n, "add", a, i)), c;
3774
+ return n === D(r) && (s ? zt(i, o) && re(n, "set", a, i, o) : re(n, "add", a, i)), c;
3774
3775
  };
3775
3776
  }
3776
3777
  function Nr(e, t) {
@@ -3807,7 +3808,7 @@ const Mr = {
3807
3808
  }, Wt = (e) => e, at = (e) => Reflect.getPrototypeOf(e);
3808
3809
  function Oe(e, t, n = !1, a = !1) {
3809
3810
  e = e.__v_raw;
3810
- const i = Y(e), r = Y(t);
3811
+ const i = D(e), r = D(t);
3811
3812
  n || (t !== r && z(i, "get", t), z(i, "get", r));
3812
3813
  const { has: o } = at(i), s = a ? Wt : n ? Ut : ke;
3813
3814
  if (o.call(i, t))
@@ -3817,45 +3818,45 @@ function Oe(e, t, n = !1, a = !1) {
3817
3818
  e !== i && e.get(t);
3818
3819
  }
3819
3820
  function Ie(e, t = !1) {
3820
- const n = this.__v_raw, a = Y(n), i = Y(e);
3821
+ const n = this.__v_raw, a = D(n), i = D(e);
3821
3822
  return t || (e !== i && z(a, "has", e), z(a, "has", i)), e === i ? n.has(e) : n.has(e) || n.has(i);
3822
3823
  }
3823
3824
  function Ye(e, t = !1) {
3824
- return e = e.__v_raw, !t && z(Y(e), "iterate", se), Reflect.get(e, "size", e);
3825
+ return e = e.__v_raw, !t && z(D(e), "iterate", se), Reflect.get(e, "size", e);
3825
3826
  }
3826
3827
  function pn(e) {
3827
- e = Y(e);
3828
- const t = Y(this);
3828
+ e = D(e);
3829
+ const t = D(this);
3829
3830
  return at(t).has.call(t, e) || (t.add(e), re(t, "add", e, e)), this;
3830
3831
  }
3831
3832
  function yn(e, t) {
3832
- t = Y(t);
3833
- const n = Y(this), { has: a, get: i } = at(n);
3833
+ t = D(t);
3834
+ const n = D(this), { has: a, get: i } = at(n);
3834
3835
  let r = a.call(n, e);
3835
- r ? process.env.NODE_ENV !== "production" && ha(n, a, e) : (e = Y(e), r = a.call(n, e));
3836
+ r ? process.env.NODE_ENV !== "production" && ha(n, a, e) : (e = D(e), r = a.call(n, e));
3836
3837
  const o = i.call(n, e);
3837
3838
  return n.set(e, t), r ? zt(t, o) && re(n, "set", e, t, o) : re(n, "add", e, t), this;
3838
3839
  }
3839
3840
  function mn(e) {
3840
- const t = Y(this), { has: n, get: a } = at(t);
3841
+ const t = D(this), { has: n, get: a } = at(t);
3841
3842
  let i = n.call(t, e);
3842
- i ? process.env.NODE_ENV !== "production" && ha(t, n, e) : (e = Y(e), i = n.call(t, e));
3843
+ i ? process.env.NODE_ENV !== "production" && ha(t, n, e) : (e = D(e), i = n.call(t, e));
3843
3844
  const r = a ? a.call(t, e) : void 0, o = t.delete(e);
3844
3845
  return i && re(t, "delete", e, void 0, r), o;
3845
3846
  }
3846
3847
  function gn() {
3847
- const e = Y(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? we(e) ? new Map(e) : new Set(e) : void 0, a = e.clear();
3848
+ const e = D(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? we(e) ? new Map(e) : new Set(e) : void 0, a = e.clear();
3848
3849
  return t && re(e, "clear", void 0, void 0, n), a;
3849
3850
  }
3850
3851
  function De(e, t) {
3851
3852
  return function(a, i) {
3852
- const r = this, o = r.__v_raw, s = Y(o), c = t ? Wt : e ? Ut : ke;
3853
- return !e && z(s, "iterate", se), o.forEach((h, f) => a.call(i, c(h), c(f), r));
3853
+ const r = this, o = r.__v_raw, s = D(o), c = t ? Wt : e ? Ut : ke;
3854
+ return !e && z(s, "iterate", se), o.forEach((h, d) => a.call(i, c(h), c(d), r));
3854
3855
  };
3855
3856
  }
3856
3857
  function Ne(e, t, n) {
3857
3858
  return function(...a) {
3858
- const i = this.__v_raw, r = Y(i), o = we(r), s = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, h = i[e](...a), f = n ? Wt : t ? Ut : ke;
3859
+ const i = this.__v_raw, r = D(i), o = we(r), s = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, h = i[e](...a), d = n ? Wt : t ? Ut : ke;
3859
3860
  return !t && z(
3860
3861
  r,
3861
3862
  "iterate",
@@ -3863,9 +3864,9 @@ function Ne(e, t, n) {
3863
3864
  ), {
3864
3865
  // iterator protocol
3865
3866
  next() {
3866
- const { value: d, done: p } = h.next();
3867
- return p ? { value: d, done: p } : {
3868
- value: s ? [f(d[0]), f(d[1])] : f(d),
3867
+ const { value: f, done: p } = h.next();
3868
+ return p ? { value: f, done: p } : {
3869
+ value: s ? [d(f[0]), d(f[1])] : d(f),
3869
3870
  done: p
3870
3871
  };
3871
3872
  },
@@ -3882,7 +3883,7 @@ function ee(e) {
3882
3883
  const n = t[0] ? `on key "${t[0]}" ` : "";
3883
3884
  console.warn(
3884
3885
  `${xr(e)} operation ${n}failed: target is readonly.`,
3885
- Y(this)
3886
+ D(this)
3886
3887
  );
3887
3888
  }
3888
3889
  return e === "delete" ? !1 : this;
@@ -3991,7 +3992,7 @@ const Wr = {
3991
3992
  get: /* @__PURE__ */ fa(!0, !1)
3992
3993
  };
3993
3994
  function ha(e, t, n) {
3994
- const a = Y(n);
3995
+ const a = D(n);
3995
3996
  if (a !== n && t.call(e, a)) {
3996
3997
  const i = la(e);
3997
3998
  console.warn(
@@ -4058,20 +4059,20 @@ function Ze(e) {
4058
4059
  function ba(e) {
4059
4060
  return !!(e && e.__v_isShallow);
4060
4061
  }
4061
- function Y(e) {
4062
+ function D(e) {
4062
4063
  const t = e && e.__v_raw;
4063
- return t ? Y(t) : e;
4064
+ return t ? D(t) : e;
4064
4065
  }
4065
4066
  const ke = (e) => Ve(e) ? ya(e) : e, Ut = (e) => Ve(e) ? ma(e) : e;
4066
4067
  function Jr(e) {
4067
- Te && Q && (e = Y(e), process.env.NODE_ENV !== "production" ? Ct(e.dep || (e.dep = $e()), {
4068
+ Te && Q && (e = D(e), process.env.NODE_ENV !== "production" ? Ct(e.dep || (e.dep = $e()), {
4068
4069
  target: e,
4069
4070
  type: "get",
4070
4071
  key: "value"
4071
4072
  }) : Ct(e.dep || (e.dep = $e())));
4072
4073
  }
4073
4074
  function Qr(e, t) {
4074
- e = Y(e);
4075
+ e = D(e);
4075
4076
  const n = e.dep;
4076
4077
  n && (process.env.NODE_ENV !== "production" ? fe(n, {
4077
4078
  target: e,
@@ -4091,14 +4092,14 @@ function to(e, t) {
4091
4092
  }
4092
4093
  class no {
4093
4094
  constructor(t, n) {
4094
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : Y(t), this._value = n ? t : ke(t);
4095
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : D(t), this._value = n ? t : ke(t);
4095
4096
  }
4096
4097
  get value() {
4097
4098
  return Jr(this), this._value;
4098
4099
  }
4099
4100
  set value(t) {
4100
4101
  const n = this.__v_isShallow || ba(t) || Ze(t);
4101
- t = n ? t : Y(t), zt(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ke(t), Qr(this, t));
4102
+ t = n ? t : D(t), zt(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ke(t), Qr(this, t));
4102
4103
  }
4103
4104
  }
4104
4105
  class ao {
@@ -4113,7 +4114,7 @@ class ao {
4113
4114
  this._object[this._key] = t;
4114
4115
  }
4115
4116
  get dep() {
4116
- return kr(Y(this._object), this._key);
4117
+ return kr(D(this._object), this._key);
4117
4118
  }
4118
4119
  }
4119
4120
  class io {
@@ -4151,10 +4152,10 @@ function so(e) {
4151
4152
  }
4152
4153
  function lo(e) {
4153
4154
  const { sortBy: t, multiSort: n, page: a } = e, i = (s) => {
4154
- var d;
4155
- let c = ((d = t.value) == null ? void 0 : d.map((p) => ({ ...p }))) ?? [];
4156
- const h = c.find((p) => p.key === s.key), f = { key: s.key, order: "asc" };
4157
- h ? h.order === "desc" ? s.mustSort ? h.order = "asc" : c = c.filter((p) => p.key !== s.key) : h.order = "desc" : n != null && n.value ? c = [...c, f] : c = [f], t.value = c, a && (a.value = 1);
4155
+ var f;
4156
+ let c = ((f = t.value) == null ? void 0 : f.map((p) => ({ ...p }))) ?? [];
4157
+ const h = c.find((p) => p.key === s.key), d = { key: s.key, order: "asc" };
4158
+ h ? h.order === "desc" ? s.mustSort ? h.order = "asc" : c = c.filter((p) => p.key !== s.key) : h.order = "desc" : n != null && n.value ? c = [...c, d] : c = [d], t.value = c, a && (a.value = 1);
4158
4159
  };
4159
4160
  function r(s) {
4160
4161
  return !!t.value.find((c) => c.key === s.key);
@@ -4202,8 +4203,8 @@ const _a = j({
4202
4203
  showSelectAll: c,
4203
4204
  selectables: h
4204
4205
  } = jt(), {
4205
- columns: f,
4206
- headers: d
4206
+ columns: d,
4207
+ headers: f
4207
4208
  } = Lt(), p = (v, g) => {
4208
4209
  if (!(!e.sticky && !v.fixed))
4209
4210
  return {
@@ -4213,7 +4214,7 @@ const _a = j({
4213
4214
  top: e.sticky ? `calc(var(--v-table-header-height) * ${g})` : void 0
4214
4215
  };
4215
4216
  };
4216
- function C(v) {
4217
+ function x(v) {
4217
4218
  }
4218
4219
  function m(v) {
4219
4220
  const g = a.value.find((y) => y.key === v.key);
@@ -4246,11 +4247,11 @@ const _a = j({
4246
4247
  rowspan: v.rowspan,
4247
4248
  colspan: v.colspan
4248
4249
  }, {
4249
- onClick: C
4250
+ onClick: x
4250
4251
  }), {
4251
4252
  default: () => {
4252
4253
  var $, B;
4253
- const w = `header.${v.key}`, S = {
4254
+ const S = `header.${v.key}`, w = {
4254
4255
  column: v,
4255
4256
  selectAll: s,
4256
4257
  isSorted: i,
@@ -4261,7 +4262,7 @@ const _a = j({
4261
4262
  selectables: h.value,
4262
4263
  getSortDirection: m
4263
4264
  };
4264
- return t[w] ? ($ = t[w]) == null ? void 0 : $.call(t, S) : v.key === "data-table-select" ? ((B = t["header.data-table-select"]) == null ? void 0 : B.call(t, S)) ?? (c && l(ae, Z({
4265
+ return t[S] ? ($ = t[S]) == null ? void 0 : $.call(t, w) : v.key === "data-table-select" ? ((B = t["header.data-table-select"]) == null ? void 0 : B.call(t, w)) ?? (c && l(ae, Z({
4265
4266
  checked: o.value,
4266
4267
  indeterminate: !o.value && r.value,
4267
4268
  disabled: h.value.length < 1
@@ -4288,9 +4289,9 @@ const _a = j({
4288
4289
  });
4289
4290
  M(() => {
4290
4291
  var v;
4291
- return l(L, null, [t.head ? (v = t.head) == null ? void 0 : v.call(t, e) : d.value.map((g, y) => l("tr", null, [g.map((w, S) => l(_, {
4292
- column: w,
4293
- x: S,
4292
+ return l(L, null, [t.head ? (v = t.head) == null ? void 0 : v.call(t, e) : f.value.map((g, y) => l("tr", null, [g.map((S, w) => l(_, {
4293
+ column: S,
4294
+ x: w,
4294
4295
  y
4295
4296
  }, null))]))]);
4296
4297
  });
@@ -4330,7 +4331,7 @@ function wa(e) {
4330
4331
  return { page: t, pageSize: n };
4331
4332
  }
4332
4333
  function fo(e) {
4333
- const { page: t, pageSize: n, total: a } = e, i = E(() => n.value === -1 ? 0 : n.value * (t.value - 1)), r = E(() => n.value === -1 ? a.value : Math.min(a.value, i.value + n.value)), o = E(() => n.value === -1 || a.value === 0 ? 1 : Math.ceil(a.value / n.value));
4334
+ const { page: t, pageSize: n, total: a } = e, i = C(() => n.value === -1 ? 0 : n.value * (t.value - 1)), r = C(() => n.value === -1 ? a.value : Math.min(a.value, i.value + n.value)), o = C(() => n.value === -1 || a.value === 0 ? 1 : Math.ceil(a.value / n.value));
4334
4335
  Ae(() => {
4335
4336
  t.value > o.value && (t.value = o.value);
4336
4337
  });
@@ -4343,10 +4344,10 @@ function fo(e) {
4343
4344
  function h() {
4344
4345
  t.value = it(t.value - 1, 1, o.value);
4345
4346
  }
4346
- function f(p) {
4347
+ function d(p) {
4347
4348
  t.value = it(p, 1, o.value);
4348
4349
  }
4349
- const d = {
4350
+ const f = {
4350
4351
  page: t,
4351
4352
  pageSize: n,
4352
4353
  startIndex: i,
@@ -4355,10 +4356,10 @@ function fo(e) {
4355
4356
  total: a,
4356
4357
  nextPage: c,
4357
4358
  prevPage: h,
4358
- setPage: f,
4359
+ setPage: d,
4359
4360
  setPageSize: s
4360
4361
  };
4361
- return ye(co, d), d;
4362
+ return ye(co, f), f;
4362
4363
  }
4363
4364
  const ho = j(
4364
4365
  {
@@ -4392,7 +4393,7 @@ function po(e, t, n) {
4392
4393
  return t.map((a, i) => vo(e, a, i, n));
4393
4394
  }
4394
4395
  function yo(e, t) {
4395
- return { items: E(() => po(e, e.items, t.value)) };
4396
+ return { items: C(() => po(e, e.items, t.value)) };
4396
4397
  }
4397
4398
  const qt = j({
4398
4399
  width: [String, Number],
@@ -4422,7 +4423,7 @@ const qt = j({
4422
4423
  const {
4423
4424
  page: n,
4424
4425
  pageSize: a
4425
- } = wa(e), i = E(() => ({
4426
+ } = wa(e), i = C(() => ({
4426
4427
  page: n.value,
4427
4428
  pageSize: a.value
4428
4429
  }));
@@ -4452,7 +4453,7 @@ const qt = j({
4452
4453
  }
4453
4454
  });
4454
4455
  function go({ page: e, pageSize: t, sortBy: n, search: a }, i) {
4455
- const r = E(() => ({
4456
+ const r = C(() => ({
4456
4457
  page: e.value,
4457
4458
  pageSize: t.value,
4458
4459
  sortBy: n.value,
@@ -4510,36 +4511,37 @@ const xa = j({
4510
4511
  } = wa(e), {
4511
4512
  sortBy: r,
4512
4513
  multiSort: o
4513
- } = so(e), s = E(() => parseInt(e.total)), {
4514
+ } = so(e), s = C(() => parseInt(e.total)), {
4514
4515
  columns: c,
4515
4516
  headers: h
4516
4517
  } = ur(e, {
4517
4518
  enableSelect: Et(e, "enableSelect")
4518
4519
  }), {
4519
- items: f
4520
+ items: d
4520
4521
  } = yo(e, c), {
4521
- toggleSort: d
4522
+ toggleSort: f
4522
4523
  } = lo({
4523
4524
  sortBy: r,
4524
4525
  multiSort: o,
4525
4526
  page: a
4526
4527
  }), {
4527
4528
  pageLength: p,
4528
- setPageSize: C
4529
+ setPageSize: x,
4530
+ setPage: m
4529
4531
  } = fo({
4530
4532
  page: a,
4531
4533
  pageSize: i,
4532
4534
  total: s
4533
4535
  }), {
4534
- isSelected: m,
4535
- select: _,
4536
- selectAll: v,
4537
- toggleSelect: g,
4538
- someSelected: y,
4536
+ isSelected: _,
4537
+ select: v,
4538
+ selectAll: g,
4539
+ toggleSelect: y,
4540
+ someSelected: S,
4539
4541
  allSelected: w
4540
4542
  } = fr(e, {
4541
- allItems: f,
4542
- pageItems: f
4543
+ allItems: d,
4544
+ pageItems: d
4543
4545
  });
4544
4546
  go({
4545
4547
  page: a,
@@ -4547,51 +4549,52 @@ const xa = j({
4547
4549
  search: Et(e, "search"),
4548
4550
  sortBy: r
4549
4551
  }, n), ye("y-data-table", {
4550
- toggleSort: d,
4552
+ toggleSort: f,
4551
4553
  sortBy: r
4552
4554
  });
4553
- const S = E(() => ({
4555
+ const $ = C(() => ({
4554
4556
  // pagination
4555
4557
  page: a.value,
4556
4558
  pageSize: i.value,
4557
4559
  pageLength: p.value,
4558
- setPageSize: C,
4560
+ setPageSize: x,
4561
+ setPage: m,
4559
4562
  // sorting
4560
4563
  sortBy: r.value,
4561
- toggleSort: d,
4564
+ toggleSort: f,
4562
4565
  // selection
4563
- someSelected: y.value,
4566
+ someSelected: S.value,
4564
4567
  allSelected: w.value,
4565
- isSelected: m,
4566
- select: _,
4567
- selectAll: v,
4568
- toggleSelect: g,
4568
+ isSelected: _,
4569
+ select: v,
4570
+ selectAll: g,
4571
+ toggleSelect: y,
4569
4572
  //
4570
- items: f.value,
4573
+ items: d.value,
4571
4574
  columns: c.value,
4572
4575
  headers: h.value
4573
4576
  }));
4574
4577
  M(() => {
4575
- const $ = Me(e, je.props), B = Me(e, Le.props), I = Me(e, Se.props);
4578
+ const B = Me(e, je.props), I = Me(e, Le.props), E = Me(e, Se.props);
4576
4579
  return l(Se, Z({
4577
4580
  class: ["y-data-table"]
4578
- }, I), {
4581
+ }, E), {
4579
4582
  top: () => {
4580
- var x;
4581
- return (x = t.top) == null ? void 0 : x.call(t, S.value);
4583
+ var Y;
4584
+ return (Y = t.top) == null ? void 0 : Y.call(t, $.value);
4582
4585
  },
4583
- leading: () => t.leading ? t.leading(S.value) : l(L, null, [l(Tt, null, t)]),
4586
+ leading: () => t.leading ? t.leading($.value) : l(L, null, [l(Tt, null, t)]),
4584
4587
  default: () => {
4585
- var x, N, V;
4586
- return t.default ? t.default(S.value) : l(L, null, [l("thead", null, [l(je, $, t)]), (x = t.thead) == null ? void 0 : x.call(t, S.value), l("tbody", null, [l(Le, Z(B, {
4587
- items: f.value
4588
- }), t)]), (N = t.tbody) == null ? void 0 : N.call(t, S.value), (V = t.tfoot) == null ? void 0 : V.call(t, S.value)]);
4588
+ var Y, V, u;
4589
+ return t.default ? t.default($.value) : l(L, null, [l("thead", null, [l(je, B, t)]), (Y = t.thead) == null ? void 0 : Y.call(t, $.value), l("tbody", null, [l(Le, Z(I, {
4590
+ items: d.value
4591
+ }), t)]), (V = t.tbody) == null ? void 0 : V.call(t, $.value), (u = t.tfoot) == null ? void 0 : u.call(t, $.value)]);
4589
4592
  },
4590
4593
  trailing: () => {
4591
- var x;
4592
- return (x = t.trailing) == null ? void 0 : x.call(t, S.value);
4594
+ var Y;
4595
+ return (Y = t.trailing) == null ? void 0 : Y.call(t, $.value);
4593
4596
  },
4594
- bottom: () => t.bottom ? t.bottom(S.value) : l(wt, null, {
4597
+ bottom: () => t.bottom ? t.bottom($.value) : l(wt, null, {
4595
4598
  prepend: t["control.prepend"]
4596
4599
  })
4597
4600
  });
@@ -4649,21 +4652,21 @@ const Ea = {
4649
4652
  emit: n,
4650
4653
  expose: a
4651
4654
  }) {
4652
- const i = T(), r = T(), o = T(), s = T(), c = T(), h = E(() => ({
4655
+ const i = T(), r = T(), o = T(), s = T(), c = T(), h = C(() => ({
4653
4656
  ...ve(e.menuClasses),
4654
4657
  "y-menu": !0
4655
- })), f = W(e), d = E({
4656
- get: () => !!f.value,
4657
- set: (x) => {
4658
- x && e.disabled || (f.value = x);
4658
+ })), d = W(e), f = C({
4659
+ get: () => !!d.value,
4660
+ set: (E) => {
4661
+ E && e.disabled || (d.value = E);
4659
4662
  }
4660
- }), p = Fe(e, "position"), C = Fe(e, "align"), m = T(), _ = E(() => m.value ?? {});
4663
+ }), p = Fe(e, "position"), x = Fe(e, "align"), m = T(), _ = C(() => m.value ?? {});
4661
4664
  function v() {
4662
- const x = s.value, N = d.value;
4663
- if (x && N) {
4664
- const V = c.value, u = x.getBoundingClientRect();
4665
+ const E = s.value, Y = f.value;
4666
+ if (E && Y) {
4667
+ const V = c.value, u = E.getBoundingClientRect();
4665
4668
  let b = u.top, O = u.left + u.width / 2;
4666
- return V && ((p.value === "top" || p.value === "bottom") && (p.value === "top" && (b -= V.clientHeight, b -= 8), p.value === "bottom" && (b += u.height, b += 8)), C.value === "center" ? O -= V.clientWidth / 2 : C.value === "start" ? O = u.left : C.value === "end" && (O = u.right, O -= V.clientWidth)), e.offsetY && (b += +e.offsetY), {
4669
+ return V && ((p.value === "top" || p.value === "bottom") && (p.value === "top" && (b -= V.clientHeight, b -= 8), p.value === "bottom" && (b += u.height, b += 8)), x.value === "center" ? O -= V.clientWidth / 2 : x.value === "start" ? O = u.left : x.value === "end" && (O = u.right, O -= V.clientWidth)), e.offsetY && (b += +e.offsetY), {
4667
4670
  top: `${b}px`,
4668
4671
  left: `${O}px`,
4669
4672
  minWidth: X(u.width)
@@ -4671,61 +4674,61 @@ const Ea = {
4671
4674
  }
4672
4675
  return {};
4673
4676
  }
4674
- const g = E(() => {
4675
- var x, N;
4676
- return (N = (x = o.value) == null ? void 0 : x[0]) == null ? void 0 : N.el;
4677
+ const g = C(() => {
4678
+ var E, Y;
4679
+ return (Y = (E = o.value) == null ? void 0 : E[0]) == null ? void 0 : Y.el;
4677
4680
  });
4678
4681
  Ae(() => {
4679
- var N, V;
4682
+ var Y, V;
4680
4683
  if (!r.value) {
4681
4684
  s.value = g.value;
4682
4685
  return;
4683
4686
  }
4684
- const x = r.value;
4685
- s.value = (N = r.value) != null && N.$el ? (V = r.value) == null ? void 0 : V.$el : x;
4686
- }), R(d, (x) => {
4687
- x && et(() => {
4687
+ const E = r.value;
4688
+ s.value = (Y = r.value) != null && Y.$el ? (V = r.value) == null ? void 0 : V.$el : E;
4689
+ }), R(f, (E) => {
4690
+ E && et(() => {
4688
4691
  var V;
4689
- const N = (V = i.value) == null ? void 0 : V.content$;
4690
- c.value = N, m.value = v();
4692
+ const Y = (V = i.value) == null ? void 0 : V.content$;
4693
+ c.value = Y, m.value = v();
4691
4694
  });
4692
4695
  });
4693
- function y(x) {
4694
- e.openOnHover && (d.value = !0);
4696
+ function y(E) {
4697
+ e.openOnHover && (f.value = !0);
4695
4698
  }
4696
- function w(x) {
4697
- e.openOnHover && (d.value = !1);
4699
+ function S(E) {
4700
+ e.openOnHover && (f.value = !1);
4698
4701
  }
4699
- function S(x) {
4700
- const N = d.value;
4701
- e.disabled || (d.value = !N);
4702
+ function w(E) {
4703
+ const Y = f.value;
4704
+ e.disabled || (f.value = !Y);
4702
4705
  }
4703
- function $(x) {
4704
- d.value && (d.value = !1);
4706
+ function $(E) {
4707
+ f.value && (f.value = !1);
4705
4708
  }
4706
- function B(x) {
4707
- x.addEventListener("mouseenter", y), x.addEventListener("mouseleave", w);
4709
+ function B(E) {
4710
+ E.addEventListener("mouseenter", y), E.addEventListener("mouseleave", S);
4708
4711
  }
4709
- function I(x) {
4710
- x.removeEventListener("mouseenter", y), x.removeEventListener("mouseleave", w);
4712
+ function I(E) {
4713
+ E.removeEventListener("mouseenter", y), E.removeEventListener("mouseleave", S);
4711
4714
  }
4712
- return R(s, (x, N) => {
4713
- x ? (B(x), x.addEventListener("click", S)) : N && (I(N), N.removeEventListener("click", S));
4715
+ return R(s, (E, Y) => {
4716
+ E ? (B(E), E.addEventListener("click", w)) : Y && (I(Y), Y.removeEventListener("click", w));
4714
4717
  }), M(() => {
4715
- var N;
4716
- const x = (N = t.base) == null ? void 0 : N.call(t, {
4717
- active: d.value,
4718
+ var Y;
4719
+ const E = (Y = t.base) == null ? void 0 : Y.call(t, {
4720
+ active: f.value,
4718
4721
  props: Z({
4719
4722
  ref: r,
4720
4723
  class: {
4721
4724
  "y-menu-base": !0,
4722
- "y-menu-base--active": d.value
4725
+ "y-menu-base--active": f.value
4723
4726
  }
4724
4727
  })
4725
4728
  });
4726
- return o.value = x, l(L, null, [x, l(le, {
4727
- modelValue: d.value,
4728
- "onUpdate:modelValue": (V) => d.value = V,
4729
+ return o.value = E, l(L, null, [E, l(le, {
4730
+ modelValue: f.value,
4731
+ "onUpdate:modelValue": (V) => f.value = V,
4729
4732
  ref: i,
4730
4733
  classes: h.value,
4731
4734
  scrim: !1,
@@ -4884,11 +4887,11 @@ const kt = /* @__PURE__ */ A({
4884
4887
  function h(m, ..._) {
4885
4888
  e.disabled || e.readonly || (i.value = !i.value, t("change", i.value, m));
4886
4889
  }
4887
- function f() {
4890
+ function d() {
4888
4891
  var m;
4889
4892
  Array.isArray(e.inputValue) ? ((m = e.inputValue) == null ? void 0 : m.find((v) => v === e.value)) !== void 0 ? i.value = !0 : i.value = !1 : typeof e.inputValue == "boolean" && (i.value = e.inputValue);
4890
4893
  }
4891
- const d = E(() => {
4894
+ const f = C(() => {
4892
4895
  const {
4893
4896
  reverse: m,
4894
4897
  disabled: _,
@@ -4901,14 +4904,14 @@ const kt = /* @__PURE__ */ A({
4901
4904
  "y-checkbox--disabled": !!_,
4902
4905
  "y-checkbox--readonly": !!v
4903
4906
  };
4904
- }), p = E(() => {
4907
+ }), p = C(() => {
4905
4908
  if (typeof e.icon == "string")
4906
4909
  return e.icon;
4907
- }), C = E(() => Array.isArray(e.inputValue));
4908
- return E(() => C.value ? e.inputValue.findIndex((m) => m === e.value) : -1), M(() => {
4910
+ }), x = C(() => Array.isArray(e.inputValue));
4911
+ return C(() => x.value ? e.inputValue.findIndex((m) => m === e.value) : -1), M(() => {
4909
4912
  var m, _;
4910
4913
  return l("div", {
4911
- class: d
4914
+ class: f
4912
4915
  }, [l("slot", {
4913
4916
  name: "prepend"
4914
4917
  }, null), l("div", {
@@ -4940,7 +4943,7 @@ const kt = /* @__PURE__ */ A({
4940
4943
  }, [n.label ? (m = n.label) == null ? void 0 : m.call(n) : e.label])]), (_ = n.append) == null ? void 0 : _.call(n)]);
4941
4944
  }), {
4942
4945
  innerValue: i,
4943
- inputByValue: f
4946
+ inputByValue: d
4944
4947
  };
4945
4948
  },
4946
4949
  created() {
@@ -5035,73 +5038,73 @@ const $a = j({
5035
5038
  slots: t,
5036
5039
  emit: n
5037
5040
  }) {
5038
- const a = W(e), i = E(() => parseInt(e.length, 10)), r = E(() => parseInt(e.start, 10)), o = Pa(-1), {
5041
+ const a = W(e), i = C(() => parseInt(e.length, 10)), r = C(() => parseInt(e.start, 10)), o = Pa(-1), {
5039
5042
  resizeObservedRef: s
5040
5043
  } = aa((g) => {
5041
5044
  if (1 > g.length)
5042
5045
  return;
5043
5046
  const {
5044
5047
  target: y,
5045
- contentRect: w
5046
- } = g[0], S = y.querySelector(".y-pagination__list > *");
5047
- if (S) {
5048
- const $ = w.width, B = S.offsetWidth + parseFloat(getComputedStyle(S).marginRight) * 2;
5048
+ contentRect: S
5049
+ } = g[0], w = y.querySelector(".y-pagination__list > *");
5050
+ if (w) {
5051
+ const $ = S.width, B = w.offsetWidth + parseFloat(getComputedStyle(w).marginRight) * 2;
5049
5052
  o.value = c($, B);
5050
5053
  }
5051
5054
  });
5052
5055
  function c(g, y) {
5053
- const w = e.showEndButton ? 5 : 3, S = y * w, $ = +(e.gap ?? 4);
5054
- return Math.max(0, Math.floor(+((g - S - $) / (y + $)).toFixed(2)));
5056
+ const S = e.showEndButton ? 5 : 3, w = y * S, $ = +(e.gap ?? 4);
5057
+ return Math.max(0, Math.floor(+((g - w - $) / (y + $)).toFixed(2)));
5055
5058
  }
5056
- const h = E(() => e.totalVisible ? parseInt(e.totalVisible, 10) : o.value >= 0 ? o.value : c(innerWidth, 58)), f = E(() => {
5059
+ const h = C(() => e.totalVisible ? parseInt(e.totalVisible, 10) : o.value >= 0 ? o.value : c(innerWidth, 58)), d = C(() => {
5057
5060
  const g = !!e.disabled || a.value <= r.value, y = !!e.disabled || a.value >= r.value + i.value - 1;
5058
5061
  return {
5059
5062
  first: {
5060
5063
  disabled: g,
5061
5064
  variation: e.buttonVariations,
5062
- onClick: (w) => {
5063
- w.preventDefault(), a.value = 1, n("change", 1, "first");
5065
+ onClick: (S) => {
5066
+ S.preventDefault(), a.value = 1, n("change", 1, "first");
5064
5067
  }
5065
5068
  },
5066
5069
  prev: {
5067
5070
  disabled: g,
5068
5071
  variation: e.buttonVariations,
5069
- onClick: (w) => {
5070
- w.preventDefault();
5071
- const S = Math.max(1, a.value - 1);
5072
- a.value = S, n("change", S, "prev");
5072
+ onClick: (S) => {
5073
+ S.preventDefault();
5074
+ const w = Math.max(1, a.value - 1);
5075
+ a.value = w, n("change", w, "prev");
5073
5076
  }
5074
5077
  },
5075
5078
  next: {
5076
5079
  disabled: y,
5077
5080
  variation: e.buttonVariations,
5078
- onClick: (w) => {
5079
- w.preventDefault();
5080
- const S = Math.min(+i.value, a.value + 1);
5081
- a.value = S, n("change", S, "next");
5081
+ onClick: (S) => {
5082
+ S.preventDefault();
5083
+ const w = Math.min(+i.value, a.value + 1);
5084
+ a.value = w, n("change", w, "next");
5082
5085
  }
5083
5086
  },
5084
5087
  last: {
5085
5088
  disabled: y,
5086
5089
  variation: e.buttonVariations,
5087
- onClick: (w) => {
5088
- w.preventDefault();
5089
- const S = +i.value;
5090
- a.value = +i.value, n("change", S, "last");
5090
+ onClick: (S) => {
5091
+ S.preventDefault();
5092
+ const w = +i.value;
5093
+ a.value = +i.value, n("change", w, "last");
5091
5094
  }
5092
5095
  }
5093
5096
  };
5094
- }), d = E(() => {
5097
+ }), f = C(() => {
5095
5098
  if (i.value <= 0 || isNaN(i.value) || i.value > Number.MAX_SAFE_INTEGER)
5096
5099
  return [];
5097
5100
  if (h.value <= 1)
5098
5101
  return [a.value];
5099
5102
  if (i.value <= h.value)
5100
5103
  return ce(i.value, r.value);
5101
- const g = h.value % 2 === 0, y = g ? h.value / 2 : Math.floor(h.value / 2), w = g ? y : y + 1, S = i.value - y;
5102
- if (w - a.value >= 0)
5104
+ const g = h.value % 2 === 0, y = g ? h.value / 2 : Math.floor(h.value / 2), S = g ? y : y + 1, w = i.value - y;
5105
+ if (S - a.value >= 0)
5103
5106
  return [...ce(Math.max(1, h.value - 1), r.value), "ellipsis", i.value];
5104
- if (a.value - S >= (g ? 1 : 0)) {
5107
+ if (a.value - w >= (g ? 1 : 0)) {
5105
5108
  const $ = h.value - 1, B = i.value - $ + r.value;
5106
5109
  return [r.value, "ellipsis", ...ce($, B)];
5107
5110
  } else {
@@ -5110,42 +5113,42 @@ const $a = j({
5110
5113
  }
5111
5114
  }), {
5112
5115
  refs: p,
5113
- updateRef: C
5116
+ updateRef: x
5114
5117
  } = wo();
5115
5118
  function m(g, y = 1) {
5116
5119
  g.preventDefault(), a.value = y, n("change", y);
5117
5120
  }
5118
- const _ = E(() => d.value.map((g, y) => {
5119
- const w = (S) => C(S, y);
5121
+ const _ = C(() => f.value.map((g, y) => {
5122
+ const S = (w) => x(w, y);
5120
5123
  if (g === "ellipsis")
5121
5124
  return {
5122
5125
  active: !1,
5123
5126
  key: `ellipsis-${y}`,
5124
5127
  page: g,
5125
5128
  props: {
5126
- ref: w,
5129
+ ref: S,
5127
5130
  ellipsis: !0,
5128
5131
  disabled: !0
5129
5132
  // TODO: skipper
5130
5133
  }
5131
5134
  };
5132
5135
  {
5133
- const S = g === a.value;
5136
+ const w = g === a.value;
5134
5137
  return {
5135
- active: S,
5138
+ active: w,
5136
5139
  key: `item-${g}`,
5137
5140
  page: g,
5138
5141
  props: {
5139
- ref: w,
5142
+ ref: S,
5140
5143
  ellipsis: !1,
5141
5144
  disabled: !!e.disabled || +e.length < 2,
5142
- color: S ? e.activeColor : e.color,
5145
+ color: w ? e.activeColor : e.color,
5143
5146
  variation: e.buttonVariations,
5144
5147
  onClick: ($) => m($, g)
5145
5148
  }
5146
5149
  };
5147
5150
  }
5148
- })), v = E(() => {
5151
+ })), v = C(() => {
5149
5152
  let g;
5150
5153
  if (e.gap) {
5151
5154
  const y = +e.gap;
@@ -5165,14 +5168,14 @@ const $a = j({
5165
5168
  }, [e.showEndButton && l("li", {
5166
5169
  key: "first",
5167
5170
  class: "y-pagination__first"
5168
- }, [t.first ? t.first(f.value.first) : l(H, f.value.first, {
5171
+ }, [t.first ? t.first(d.value.first) : l(H, d.value.first, {
5169
5172
  default: () => [t["first-icon"] ? t["first-icon"]() : l(Pe, {
5170
5173
  type: "first"
5171
5174
  }, null)]
5172
5175
  })]), l("li", {
5173
5176
  key: "prev",
5174
5177
  class: "y-pagination__prev"
5175
- }, [t.prev ? t.prev(f.value.prev) : l(H, f.value.prev, {
5178
+ }, [t.prev ? t.prev(d.value.prev) : l(H, d.value.prev, {
5176
5179
  default: () => [t["prev-icon"] ? t["prev-icon"]() : l(Pe, {
5177
5180
  type: "prev"
5178
5181
  }, null)]
@@ -5186,14 +5189,14 @@ const $a = j({
5186
5189
  })])), l("li", {
5187
5190
  key: "next",
5188
5191
  class: "y-pagination__next"
5189
- }, [t.next ? t.next(f.value.next) : l(H, f.value.next, {
5192
+ }, [t.next ? t.next(d.value.next) : l(H, d.value.next, {
5190
5193
  default: () => [t["next-icon"] ? t["next-icon"]() : l(Pe, {
5191
5194
  type: "next"
5192
5195
  }, null)]
5193
5196
  })]), e.showEndButton && l("li", {
5194
5197
  key: "last",
5195
5198
  class: "y-pagination__last"
5196
- }, [t.last ? t.last(f.value.last) : l(H, f.value.last, {
5199
+ }, [t.last ? t.last(d.value.last) : l(H, d.value.last, {
5197
5200
  default: () => [t["last-icon"] ? t["last-icon"]() : l(Pe, {
5198
5201
  type: "last"
5199
5202
  }, null)]
@@ -5291,33 +5294,33 @@ function Eo(e) {
5291
5294
  themes: o,
5292
5295
  mode: i
5293
5296
  });
5294
- function c(d) {
5295
- d.directive("theme", Dn);
5297
+ function c(f) {
5298
+ f.directive("theme", Dn);
5296
5299
  }
5297
- function h(d) {
5298
- console.log(xn(d.theme)), R(
5300
+ function h(f) {
5301
+ console.log(xn(f.theme)), R(
5299
5302
  r,
5300
5303
  (p) => {
5301
- const [C, m] = p;
5302
- d.root.dataset.lightTheme = C, d.root.dataset.darkTheme = m;
5304
+ const [x, m] = p;
5305
+ f.root.dataset.lightTheme = x, f.root.dataset.darkTheme = m;
5303
5306
  },
5304
5307
  { immediate: !0 }
5305
5308
  ), R(
5306
5309
  a,
5307
5310
  (p) => {
5308
- d.root.setAttribute("data-theme-scheme", p);
5311
+ f.root.setAttribute("data-theme-scheme", p);
5309
5312
  },
5310
5313
  { immediate: !0 }
5311
5314
  );
5312
5315
  }
5313
- function f(d) {
5316
+ function d(f) {
5314
5317
  t.run(() => {
5315
- h(d);
5318
+ h(f);
5316
5319
  });
5317
5320
  }
5318
5321
  return {
5319
5322
  install: c,
5320
- init: f,
5323
+ init: d,
5321
5324
  scope: t,
5322
5325
  instance: s
5323
5326
  };