aptechka 0.4.9 → 0.4.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.
Files changed (48) hide show
  1. package/lib/Damped-BdnkNOcb.cjs +1 -0
  2. package/lib/Damped-Ceg1a3X8.js +150 -0
  3. package/lib/DragControls-C7P6P5HO.cjs +1 -0
  4. package/lib/DragControls-CZhJHO0_.js +146 -0
  5. package/lib/animation/Animation.d.ts +23 -0
  6. package/lib/animation/Damped.d.ts +15 -12
  7. package/lib/animation/Tweened.d.ts +9 -11
  8. package/lib/animation/index.cjs +1 -1
  9. package/lib/animation/index.d.ts +1 -1
  10. package/lib/animation/index.js +49 -75
  11. package/lib/canvas/index.cjs +1 -1
  12. package/lib/canvas/index.js +2 -2
  13. package/lib/checkbox/index.cjs +1 -1
  14. package/lib/checkbox/index.js +2 -2
  15. package/lib/controls/index.cjs +1 -1
  16. package/lib/controls/index.js +2 -2
  17. package/lib/{createStylesheet-W0b965g0.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
  18. package/lib/{createStylesheet-D6C3BPkl.js → createStylesheet-DBCEbDjI.js} +1 -1
  19. package/lib/element-constructor/index.cjs +1 -1
  20. package/lib/element-constructor/index.js +2 -2
  21. package/lib/{index-ilQWX_BM.js → index-BUOBDenR.js} +2 -2
  22. package/lib/{index-C_qv6rk4.cjs → index-Bv5vIuF-.cjs} +1 -1
  23. package/lib/modal/index.cjs +1 -1
  24. package/lib/modal/index.js +2 -2
  25. package/lib/{object-BZELAoVj.cjs → object-CCiXnER2.cjs} +1 -1
  26. package/lib/{object-R34VLqhp.js → object-D6MVWB4l.js} +8 -8
  27. package/lib/popover/index.cjs +1 -1
  28. package/lib/popover/index.js +2 -2
  29. package/lib/router/index.cjs +1 -1
  30. package/lib/router/index.js +1 -1
  31. package/lib/scroll/ScrollElement.d.ts +2 -0
  32. package/lib/scroll/index.cjs +1 -1
  33. package/lib/scroll/index.js +424 -411
  34. package/lib/select/index.cjs +1 -1
  35. package/lib/select/index.js +1 -1
  36. package/lib/{tags-D0zt3vue.js → tags-CMPg9ETZ.js} +1 -1
  37. package/lib/{tags-CK7mk_EP.cjs → tags-Djb6mb1o.cjs} +1 -1
  38. package/lib/theme/index.cjs +1 -1
  39. package/lib/theme/index.js +1 -1
  40. package/lib/tweaker/index.cjs +1 -1
  41. package/lib/tweaker/index.js +3 -3
  42. package/lib/utils/index.cjs +1 -1
  43. package/lib/utils/index.js +1 -1
  44. package/package.json +1 -1
  45. package/lib/Damped-9h4qaGcS.cjs +0 -1
  46. package/lib/Damped-HhitpTP_.js +0 -132
  47. package/lib/DragControls-CuGSxr1d.js +0 -137
  48. package/lib/DragControls-Dfbbq8Wb.cjs +0 -1
@@ -1,52 +1,52 @@
1
- var es = (e, s, r) => {
2
- if (!s.has(e))
1
+ var is = (e, i, r) => {
2
+ if (!i.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var o = (e, s, r) => (es(e, s, "read from private field"), r ? r.call(e) : s.get(e)), F = (e, s, r) => {
6
- if (s.has(e))
5
+ var o = (e, i, r) => (is(e, i, "read from private field"), r ? r.call(e) : i.get(e)), F = (e, i, r) => {
6
+ if (i.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- s instanceof WeakSet ? s.add(e) : s.set(e, r);
9
- }, A = (e, s, r, h) => (es(e, s, "write to private field"), h ? h.call(e, r) : s.set(e, r), r);
10
- import { D as Ps } from "../Damped-HhitpTP_.js";
8
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
9
+ }, A = (e, i, r, h) => (is(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
+ import { D as Es } from "../Damped-Ceg1a3X8.js";
11
+ import { i as Ue } from "../browser-0zX67oeU.js";
12
+ import { a as Ce, g as ye } from "../layout-HoBT_Da2.js";
13
+ import { c as qe, s as xs, b as Ls, a as Vs } from "../math-BOBiC4TN.js";
11
14
  import { S as St } from "../Store-BQXXikps.js";
12
- import { D as Es } from "../Derived-kPJs5JC5.js";
13
- import { i as Ge } from "../browser-0zX67oeU.js";
14
- import { a as _e, g as be } from "../layout-HoBT_Da2.js";
15
- import { c as Ke, s as Ms, b as xs, a as Ls } from "../math-BOBiC4TN.js";
15
+ import { D as $s } from "../Derived-kPJs5JC5.js";
16
16
  import "../ticker/index.js";
17
- import { W as Vs, K as $s, D as Fs } from "../DragControls-CuGSxr1d.js";
18
- import { CustomElement as us, define as Kt } from "../custom-element/index.js";
19
- import { TICK_ORDER as Os, RESIZE_ORDER as Ue } from "../order/index.js";
17
+ import { W as Fs, K as Os, D as zs } from "../DragControls-CZhJHO0_.js";
18
+ import { CustomElement as fs, define as Kt } from "../custom-element/index.js";
19
+ import { TICK_ORDER as Ds, RESIZE_ORDER as Ne } from "../order/index.js";
20
20
  import { windowResizer as Bt } from "../window-resizer/index.js";
21
- import { scrollEntries as Et } from "../scroll-entries/index.js";
22
- import { e as qe, D as Le, ay as Ce, p as Ds } from "../tags-D0zt3vue.js";
23
- import { c as Ne } from "../createStylesheet-D6C3BPkl.js";
24
- import { cssUnitParser as ss } from "../css-unit-parser/index.js";
21
+ import { scrollEntries as Mt } from "../scroll-entries/index.js";
22
+ import { e as Ze, D as $e, ay as ke, p as As } from "../tags-CMPg9ETZ.js";
23
+ import { c as Je } from "../createStylesheet-DBCEbDjI.js";
24
+ import { cssUnitParser as rs } from "../css-unit-parser/index.js";
25
25
  import { CSSProperty as S } from "../css-property/index.js";
26
- import { d as zs } from "../Viewport-wlgZaIn7.js";
27
- import { s as As } from "../gestures-D2Fdra_G.js";
28
- import { f as Ts } from "../dom-0S_WDL4g.js";
29
- import { aptechkaTheme as is } from "../theme/index.js";
30
- import { d as ps } from "../function-C10DGppn.js";
31
- var Rs = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, Bs = (e, s, r, h) => {
32
- for (var n = h > 1 ? void 0 : h ? Is(s, r) : s, c = e.length - 1, p; c >= 0; c--)
33
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
34
- return h && n && Rs(s, r, n), n;
35
- }, Ze = (e, s, r) => {
36
- if (!s.has(e))
26
+ import { d as Ts } from "../Viewport-wlgZaIn7.js";
27
+ import { s as Rs } from "../gestures-D2Fdra_G.js";
28
+ import { f as Is } from "../dom-0S_WDL4g.js";
29
+ import { aptechkaTheme as hs } from "../theme/index.js";
30
+ import { d as ds } from "../function-C10DGppn.js";
31
+ var Bs = Object.defineProperty, Hs = Object.getOwnPropertyDescriptor, Gs = (e, i, r, h) => {
32
+ for (var n = h > 1 ? void 0 : h ? Hs(i, r) : i, c = e.length - 1, p; c >= 0; c--)
33
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
34
+ return h && n && Bs(i, r, n), n;
35
+ }, Qe = (e, i, r) => {
36
+ if (!i.has(e))
37
37
  throw TypeError("Cannot " + r);
38
- }, i = (e, s, r) => (Ze(e, s, "read from private field"), r ? r.call(e) : s.get(e)), l = (e, s, r) => {
39
- if (s.has(e))
38
+ }, s = (e, i, r) => (Qe(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
39
+ if (i.has(e))
40
40
  throw TypeError("Cannot add the same private member more than once");
41
- s instanceof WeakSet ? s.add(e) : s.set(e, r);
42
- }, g = (e, s, r, h) => (Ze(e, s, "write to private field"), h ? h.call(e, r) : s.set(e, r), r), C = (e, s, r) => (Ze(e, s, "access private method"), r), d, O, j, N, tt, Lt, z, mt, Vt, $t, Ft, w, ye, m, he, ne, L, _, K, Z, Wt, at, W, Ut, vt, Ht, Gt, te, ke, Tt, ee, We, Je, Pe, Qe, ae, Ve, oe, $e, Mt, Me, Fe, fs, qt, le, Oe, V, k, pt, X;
43
- class Hs {
44
- constructor(s, r) {
41
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
42
+ }, g = (e, i, r, h) => (Qe(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), C = (e, i, r) => (Qe(e, i, "access private method"), r), f, O, j, N, tt, Lt, D, mt, he, ne, Vt, $t, Ft, w, We, m, ae, oe, L, b, K, Z, Wt, at, W, Ut, vt, Ht, Gt, te, Pe, Tt, ee, Me, Xe, Ee, Ye, le, Fe, ce, Oe, Et, Le, ze, Ss, qt, ue, De, V, k, pt, X;
43
+ class Ks {
44
+ constructor(i, r) {
45
45
  F(this, V, void 0);
46
46
  F(this, k, void 0);
47
47
  F(this, pt, 0);
48
48
  F(this, X, 0);
49
- A(this, V, s), A(this, k, r), Et.register(o(this, V));
49
+ A(this, V, i), A(this, k, r), Mt.register(o(this, V));
50
50
  }
51
51
  get size() {
52
52
  return o(this, pt);
@@ -55,25 +55,25 @@ class Hs {
55
55
  return o(this, X);
56
56
  }
57
57
  destroy() {
58
- Et.unregister(o(this, V)), o(this, V).style.transform = "";
58
+ Mt.unregister(o(this, V)), o(this, V).style.transform = "";
59
59
  }
60
60
  resize() {
61
- A(this, pt, o(this, k).vertical ? o(this, V).offsetHeight : o(this, V).offsetWidth), A(this, X, o(this, k).vertical ? _e(o(this, V)) : be(o(this, V))), A(this, X, o(this, X) - o(this, k).contentPosition);
61
+ A(this, pt, o(this, k).vertical ? o(this, V).offsetHeight : o(this, V).offsetWidth), A(this, X, o(this, k).vertical ? Ce(o(this, V)) : ye(o(this, V))), A(this, X, o(this, X) - o(this, k).contentPosition);
62
62
  }
63
63
  transform() {
64
- let s = 0;
64
+ let i = 0;
65
65
  const r = o(this, k).viewportSize - o(this, pt);
66
- o(this, k).infiniteCSSProperty.current && o(this, k).overscroll && o(this, X) + o(this, pt) < o(this, k).currentScrollValue && (s = o(this, k).distance * -1 - o(this, k).gap), Et.update(
66
+ o(this, k).infiniteCSSProperty.current && o(this, k).overscroll && o(this, X) + o(this, pt) < o(this, k).currentScrollValue && (i = o(this, k).distance * -1 - o(this, k).gap), Mt.update(
67
67
  o(this, V),
68
68
  o(this, k).axisAttibute.current,
69
- s
69
+ i
70
70
  );
71
- const h = o(this, k).currentScrollValue + s, n = o(this, X) - o(this, k).viewportSize - r, c = o(this, X) + o(this, pt) + r, p = Ke(h, n, c);
71
+ const h = o(this, k).currentScrollValue + i, n = o(this, X) - o(this, k).viewportSize - r, c = o(this, X) + o(this, pt) + r, p = qe(h, n, c);
72
72
  o(this, k).vertical ? o(this, V).style.transform = `translate3d(0px, ${p * -1}px, 0px)` : o(this, V).style.transform = `translate3d(${p * -1}px, 0px, 0px)`;
73
73
  }
74
74
  }
75
75
  V = new WeakMap(), k = new WeakMap(), pt = new WeakMap(), X = new WeakMap();
76
- const Gs = Ne({
76
+ const Us = Je({
77
77
  ":host": {
78
78
  position: "relative",
79
79
  width: "100%",
@@ -105,179 +105,189 @@ const Gs = Ne({
105
105
  flexShrink: "0"
106
106
  }
107
107
  });
108
- let Ee = class extends us {
108
+ let xe = class extends fs {
109
109
  constructor() {
110
- super(), l(this, te), l(this, Tt), l(this, We), l(this, Pe), l(this, ae), l(this, oe), l(this, Fe), l(this, le), l(this, d, null), l(this, O, new S(this, "--axis", "y")), l(this, j, new S(this, "--pages", 0, {
110
+ super(), l(this, te), l(this, Tt), l(this, Me), l(this, Ee), l(this, le), l(this, ce), l(this, ze), l(this, ue), l(this, f, null), l(this, O, new S(this, "--axis", "y")), l(this, j, new S(this, "--pages", 0, {
111
111
  validate: (e) => Math.max(0, e - 1)
112
112
  })), l(this, N, new S(this, "--split", !1)), l(this, tt, new S(this, "--sectional", !1)), l(this, Lt, new S(
113
113
  this,
114
114
  "--wheel-max-delta",
115
115
  !1
116
- )), l(this, z, new S(this, "--infinite", !1)), l(this, mt, new S(this, "--damping", 0.03)), l(this, Vt, new S(this, "--mouse-drag", !1)), l(this, $t, new S(this, "--disabled", !1)), l(this, Ft, new S(this, "--hibernated", !1)), l(this, w, null), l(this, ye, null), l(this, m, []), l(this, he, 0), l(this, ne, 0), l(this, L, 0), l(this, _, 0), l(this, K, 0), l(this, Z, null), l(this, Wt, null), l(this, at, null), l(this, W, new St(0)), l(this, Ut, 0), l(this, vt, 0), l(this, Ht, !0), l(this, Gt, !0), l(this, Mt, () => {
117
- const e = this.currentScrollValue / i(this, _) || 0;
118
- if (g(this, he, this.vertical ? _e(this) : be(this)), g(this, ne, this.vertical ? _e(i(this, w)) : be(i(this, w))), g(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), i(this, j).current) {
119
- g(this, _, i(this, L) * i(this, j).current);
120
- const s = i(this, _) + i(this, L);
121
- this.vertical ? (i(this, w).style.width = s + "px", i(this, w).style.height = "100%") : (i(this, w).style.height = s + "px", i(this, w).style.width = "100%");
116
+ )), l(this, D, new S(this, "--infinite", !1)), l(this, mt, new S(this, "--damping", 0.03)), l(this, he, new S(this, "--mass", 0)), l(this, ne, new S(this, "--stiffness", 0)), l(this, Vt, new S(this, "--mouse-drag", !1)), l(this, $t, new S(this, "--disabled", !1)), l(this, Ft, new S(this, "--hibernated", !1)), l(this, w, null), l(this, We, null), l(this, m, []), l(this, ae, 0), l(this, oe, 0), l(this, L, 0), l(this, b, 0), l(this, K, 0), l(this, Z, null), l(this, Wt, null), l(this, at, null), l(this, W, new St(0)), l(this, Ut, 0), l(this, vt, 0), l(this, Ht, !0), l(this, Gt, !0), l(this, Et, () => {
117
+ const e = this.currentScrollValue / s(this, b) || 0;
118
+ if (g(this, ae, this.vertical ? Ce(this) : ye(this)), g(this, oe, this.vertical ? Ce(s(this, w)) : ye(s(this, w))), g(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), s(this, j).current) {
119
+ g(this, b, s(this, L) * s(this, j).current);
120
+ const i = s(this, b) + s(this, L);
121
+ this.vertical ? (s(this, w).style.width = i + "px", s(this, w).style.height = "100%") : (s(this, w).style.height = i + "px", s(this, w).style.width = "100%");
122
122
  } else
123
- this.vertical ? (i(this, w).style.width = "100%", i(this, w).style.height = "max-content", g(this, _, i(this, w).offsetHeight - i(this, L))) : (i(this, w).style.width = "max-content", i(this, w).style.height = "100%", g(this, _, i(this, w).offsetWidth - i(this, L)));
124
- if (this.vertical ? g(this, K, ss.parse(
125
- getComputedStyle(i(this, w)).rowGap
126
- )) : g(this, K, ss.parse(
127
- getComputedStyle(i(this, w)).columnGap
128
- )), !i(this, z).current) {
129
- const s = getComputedStyle(this);
130
- g(this, _, i(this, _) + (this.vertical ? parseFloat(s.paddingBlockStart) + parseFloat(s.paddingBlockEnd) : parseFloat(s.paddingInlineStart) + parseFloat(s.paddingInlineEnd))), i(this, d).max = i(this, _);
123
+ this.vertical ? (s(this, w).style.width = "100%", s(this, w).style.height = "max-content", g(this, b, s(this, w).offsetHeight - s(this, L))) : (s(this, w).style.width = "max-content", s(this, w).style.height = "100%", g(this, b, s(this, w).offsetWidth - s(this, L)));
124
+ if (this.vertical ? g(this, K, rs.parse(
125
+ getComputedStyle(s(this, w)).rowGap
126
+ )) : g(this, K, rs.parse(
127
+ getComputedStyle(s(this, w)).columnGap
128
+ )), !s(this, D).current) {
129
+ const i = getComputedStyle(this);
130
+ g(this, b, s(this, b) + (this.vertical ? parseFloat(i.paddingBlockStart) + parseFloat(i.paddingBlockEnd) : parseFloat(i.paddingInlineStart) + parseFloat(i.paddingInlineEnd))), s(this, f).max = s(this, b);
131
131
  }
132
- if (i(this, m).forEach((s) => {
133
- s.resize(), s.transform();
134
- }), i(this, z).current && i(this, m).length) {
135
- const s = i(this, m)[i(this, m).length - 1], r = s.position + s.size - i(this, L), h = i(this, _) - r;
136
- g(this, vt, s.position + s.size + h);
132
+ if (s(this, m).forEach((i) => {
133
+ i.resize(), i.transform();
134
+ }), s(this, D).current && s(this, m).length) {
135
+ const i = s(this, m)[s(this, m).length - 1], r = i.position + i.size - s(this, L), h = s(this, b) - r;
136
+ g(this, vt, i.position + i.size + h);
137
137
  } else
138
- g(this, vt, i(this, _));
139
- if (i(this, tt).current && i(this, m).length) {
140
- const s = i(this, m)[i(this, W).current];
141
- i(this, d).set(s.position, !0);
138
+ g(this, vt, s(this, b));
139
+ if (s(this, tt).current && s(this, m).length) {
140
+ const i = s(this, m)[s(this, W).current];
141
+ s(this, f).set(i.position, !0);
142
142
  } else
143
- i(this, d).set(e * i(this, _), !0);
144
- }), l(this, Me, () => {
143
+ s(this, f).set(e * s(this, b), !0);
144
+ }), l(this, Le, () => {
145
145
  const e = this.currentScrollValue;
146
- if (g(this, Ut, Math.max(0, e - i(this, _))), i(this, m).length) {
147
- let s = 0;
148
- for (let r = 0; r < i(this, m).length; r++) {
149
- const h = i(this, m)[r];
150
- h.transform(), this.targetScrollValue + this.viewportSize / 2 >= h.position && (s = r);
146
+ if (g(this, Ut, Math.max(0, e - s(this, b))), s(this, m).length) {
147
+ let i = 0;
148
+ for (let r = 0; r < s(this, m).length; r++) {
149
+ const h = s(this, m)[r];
150
+ h.transform(), this.targetScrollValue + this.viewportSize / 2 >= h.position && (i = r);
151
151
  }
152
- i(this, W).current = s;
152
+ s(this, W).current = i;
153
153
  } else
154
- this.vertical ? i(this, w).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : i(this, w).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
155
- Et.update(
154
+ this.vertical ? s(this, w).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : s(this, w).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
155
+ Mt.update(
156
156
  this,
157
- i(this, O).current,
157
+ s(this, O).current,
158
158
  e
159
159
  );
160
- }), l(this, qt, (e, s) => {
161
- if (!(e === "drag" && !zs.isMobile && !i(this, Vt).current))
162
- if (i(this, tt).current) {
163
- const r = Math.sign(s);
164
- i(this, m).length ? this.shiftSections(r) : i(this, d).shift(r * i(this, L));
160
+ }), l(this, qt, (e, i) => {
161
+ if (!(e === "drag" && !Ts.isMobile && !s(this, Vt).current))
162
+ if (s(this, tt).current) {
163
+ const r = Math.sign(i);
164
+ s(this, m).length ? this.shiftSections(r) : s(this, f).shift(r * s(this, L));
165
165
  } else
166
- i(this, d).shift(s);
167
- }), Ge && (g(this, d, new Ps(0, {
166
+ s(this, f).shift(i);
167
+ }), Ue && (g(this, f, new Es(0, {
168
168
  damping: 0.01,
169
169
  min: 0,
170
- order: Os.SCROLL
171
- })), this.openShadow(Gs), qe(this, {
170
+ order: Ds.SCROLL
171
+ })), this.openShadow(Us), Ze(this, {
172
172
  tabIndex: 0,
173
173
  children: [
174
- Le({
174
+ $e({
175
175
  class: "static",
176
- children: [Ce({ name: "static" })]
176
+ children: [ke({ name: "static" })]
177
177
  }),
178
- Le({
178
+ $e({
179
179
  class: "content",
180
- children: [Ce({ ref: (e) => g(this, ye, e) })],
180
+ children: [ke({ ref: (e) => g(this, We, e) })],
181
181
  style: {
182
- flexDirection: new Es(
183
- i(this, O),
182
+ flexDirection: new $s(
183
+ s(this, O),
184
184
  (e) => e === "x" ? "row" : "column"
185
185
  )
186
186
  },
187
187
  ref: (e) => g(this, w, e)
188
188
  })
189
189
  ]
190
- }), g(this, Z, new Vs({ element: this })), i(this, Z).changeEvent.subscribe(i(this, qt)), g(this, Wt, new $s({ element: this })), i(this, Wt).changeEvent.subscribe(i(this, qt)), g(this, at, new Fs({ element: this })), i(this, at).changeEvent.subscribe(i(this, qt)), i(this, O).subscribe(({ current: e }) => {
191
- i(this, w).style.flexDirection = e === "x" ? "row" : "column", i(this, Z).axis = i(this, Lt).current ? "max" : e, i(this, Wt).dimension = e === "x" ? "width" : "height", i(this, at).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && i(this, Mt).call(this);
192
- }), i(this, Lt).subscribe((e) => {
193
- i(this, Z).axis = e.current ? "max" : i(this, O).current;
194
- }), i(this, j).subscribe(() => {
195
- this.isConnected && i(this, Mt).call(this);
196
- }), i(this, N).subscribe(({ current: e }) => {
197
- this.isConnected && (e ? C(this, te, ke).call(this) : C(this, Tt, ee).call(this));
198
- }), i(this, tt).subscribe((e) => {
199
- i(this, W).current = 0, i(this, Z).debounce = e.current, i(this, at).swipe = e.current, i(this, d).reset(), this.isConnected && (e.current && !e.previous ? C(this, te, ke).call(this) : !e.current && e.previous && C(this, Tt, ee).call(this));
200
- }), i(this, z).subscribe((e) => {
201
- e.current ? (this.isConnected && (i(this, m).length || (i(this, N).current = !0)), i(this, m).length && (i(this, d).max = 1 / 0, i(this, d).min = -1 / 0)) : (g(this, Ut, 0), i(this, d).max = i(this, _), i(this, d).min = 0);
202
- }), i(this, mt).subscribe((e) => {
203
- i(this, d).damping = e.current;
204
- }), i(this, $t).subscribe((e) => {
205
- e.current && !e.previous ? C(this, We, Je).call(this) : !e.current && e.previous && C(this, Pe, Qe).call(this);
206
- }), i(this, Ft).subscribe((e) => {
207
- e.current && !e.previous ? C(this, ae, Ve).call(this) : !e.current && e.previous && C(this, oe, $e).call(this);
190
+ }), g(this, Z, new Fs({ element: this })), s(this, Z).changeEvent.subscribe(s(this, qt)), g(this, Wt, new Os({ element: this })), s(this, Wt).changeEvent.subscribe(s(this, qt)), g(this, at, new zs({ element: this })), s(this, at).changeEvent.subscribe(s(this, qt)), s(this, O).subscribe(({ current: e }) => {
191
+ s(this, w).style.flexDirection = e === "x" ? "row" : "column", s(this, Z).axis = s(this, Lt).current ? "max" : e, s(this, Wt).dimension = e === "x" ? "width" : "height", s(this, at).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && s(this, Et).call(this);
192
+ }), s(this, Lt).subscribe((e) => {
193
+ s(this, Z).axis = e.current ? "max" : s(this, O).current;
194
+ }), s(this, j).subscribe(() => {
195
+ this.isConnected && s(this, Et).call(this);
196
+ }), s(this, N).subscribe(({ current: e }) => {
197
+ this.isConnected && (e ? C(this, te, Pe).call(this) : C(this, Tt, ee).call(this));
198
+ }), s(this, tt).subscribe((e) => {
199
+ s(this, W).current = 0, s(this, Z).debounce = e.current, s(this, at).swipe = e.current, s(this, f).reset(), this.isConnected && (e.current && !e.previous ? C(this, te, Pe).call(this) : !e.current && e.previous && C(this, Tt, ee).call(this));
200
+ }), s(this, D).subscribe((e) => {
201
+ e.current ? (this.isConnected && (s(this, m).length || (s(this, N).current = !0)), s(this, m).length && (s(this, f).max = 1 / 0, s(this, f).min = -1 / 0)) : (g(this, Ut, 0), s(this, f).max = s(this, b), s(this, f).min = 0);
202
+ }), s(this, mt).subscribe((e) => {
203
+ s(this, f).damping = e.current;
204
+ }), s(this, he).subscribe((e) => {
205
+ s(this, f).mass = e.current;
206
+ }), s(this, ne).subscribe((e) => {
207
+ s(this, f).stiffness = e.current;
208
+ }), s(this, $t).subscribe((e) => {
209
+ e.current && !e.previous ? C(this, Me, Xe).call(this) : !e.current && e.previous && C(this, Ee, Ye).call(this);
210
+ }), s(this, Ft).subscribe((e) => {
211
+ e.current && !e.previous ? C(this, le, Fe).call(this) : !e.current && e.previous && C(this, ce, Oe).call(this);
208
212
  }));
209
213
  }
210
214
  get dampingCSSProperty() {
211
- return i(this, mt);
215
+ return s(this, mt);
216
+ }
217
+ get maxxCSSProperty() {
218
+ return s(this, he);
219
+ }
220
+ get stiffnessCSSProperty() {
221
+ return s(this, ne);
212
222
  }
213
223
  get mouseDragCSSProperty() {
214
- return i(this, Vt);
224
+ return s(this, Vt);
215
225
  }
216
226
  get axisAttibute() {
217
- return i(this, O);
227
+ return s(this, O);
218
228
  }
219
229
  get pagesAttibute() {
220
- return i(this, j);
230
+ return s(this, j);
221
231
  }
222
232
  get splitAttibute() {
223
- return i(this, N);
233
+ return s(this, N);
224
234
  }
225
235
  get sectionalAttibute() {
226
- return i(this, tt);
236
+ return s(this, tt);
227
237
  }
228
238
  get infiniteCSSProperty() {
229
- return i(this, z);
239
+ return s(this, D);
230
240
  }
231
241
  get dampingAttibute() {
232
- return i(this, mt);
242
+ return s(this, mt);
233
243
  }
234
244
  get disabledAttibute() {
235
- return i(this, $t);
245
+ return s(this, $t);
236
246
  }
237
247
  get hibernatedAttibute() {
238
- return i(this, Ft);
248
+ return s(this, Ft);
239
249
  }
240
250
  get currentScrollValue() {
241
- return C(this, le, Oe).call(this, "current");
251
+ return C(this, ue, De).call(this, "current");
242
252
  }
243
253
  get targetScrollValue() {
244
- return C(this, le, Oe).call(this, "target");
254
+ return C(this, ue, De).call(this, "target");
245
255
  }
246
256
  get contentElement() {
247
- return i(this, w);
257
+ return s(this, w);
248
258
  }
249
259
  get sections() {
250
- return i(this, m);
260
+ return s(this, m);
251
261
  }
252
262
  get position() {
253
- return i(this, he);
263
+ return s(this, ae);
254
264
  }
255
265
  get contentPosition() {
256
- return i(this, ne);
266
+ return s(this, oe);
257
267
  }
258
268
  get viewportSize() {
259
- return i(this, L);
269
+ return s(this, L);
260
270
  }
261
271
  get scrollSize() {
262
- return i(this, _);
272
+ return s(this, b);
263
273
  }
264
274
  get gap() {
265
- return i(this, K);
275
+ return s(this, K);
266
276
  }
267
277
  get counter() {
268
- return i(this, W);
278
+ return s(this, W);
269
279
  }
270
280
  get distance() {
271
- return i(this, vt);
281
+ return s(this, vt);
272
282
  }
273
283
  get infiniteDistance() {
274
- return i(this, z).current ? i(this, vt) + i(this, K) : i(this, vt);
284
+ return s(this, D).current ? s(this, vt) + s(this, K) : s(this, vt);
275
285
  }
276
286
  get overscroll() {
277
- return i(this, Ut);
287
+ return s(this, Ut);
278
288
  }
279
289
  get vertical() {
280
- return i(this, O).current === "y";
290
+ return s(this, O).current === "y";
281
291
  }
282
292
  get currentProgress() {
283
293
  return this.currentScrollValue / this.infiniteDistance || 0;
@@ -286,82 +296,84 @@ let Ee = class extends us {
286
296
  return this.targetScrollValue / this.infiniteDistance || 0;
287
297
  }
288
298
  get speed() {
289
- return i(this, d).speed;
299
+ return s(this, f).speed;
290
300
  }
291
301
  get direction() {
292
- return i(this, d).direction;
302
+ return s(this, f).direction;
293
303
  }
294
304
  get isRunning() {
295
- return i(this, d).isRunning;
305
+ return s(this, f).isRunning;
296
306
  }
297
307
  get scrollWidth() {
298
- return i(this, O).current === "y" ? 0 : i(this, d).length;
308
+ return s(this, O).current === "y" ? 0 : s(this, f).length;
299
309
  }
300
310
  get scrollHeight() {
301
- return i(this, O).current === "x" ? 0 : i(this, d).length;
311
+ return s(this, O).current === "x" ? 0 : s(this, f).length;
302
312
  }
303
313
  onScroll(...e) {
304
- return i(this, d).subscribe(...e);
314
+ return s(this, f).subscribe(...e);
305
315
  }
306
316
  offScroll(...e) {
307
- i(this, d).unsubscribe(...e);
317
+ s(this, f).unsubscribe(...e);
308
318
  }
309
319
  //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
310
- range(e, s, r = 0) {
311
- const h = e - r, n = h + s + r * 2;
320
+ range(e, i, r = 0) {
321
+ const h = e - r, n = h + i + r * 2;
312
322
  return this.currentProgress < h ? 0 : this.currentProgress > n ? 1 : (this.currentProgress - h) / (n - h);
313
323
  }
314
- curve(e, s, r = 0) {
315
- return Math.sin(this.range(e, s, r) * Math.PI);
324
+ curve(e, i, r = 0) {
325
+ return Math.sin(this.range(e, i, r) * Math.PI);
316
326
  }
317
- visible(e, s, r = 0) {
318
- const h = e - r, n = h + s + r * 2;
327
+ visible(e, i, r = 0) {
328
+ const h = e - r, n = h + i + r * 2;
319
329
  return this.currentProgress >= h && this.currentProgress <= n;
320
330
  }
321
331
  // TODO: Поправить значение когда скролл не секционный ??
322
- scrollToSection(e, s = "smooth") {
323
- if (!i(this, m).length)
332
+ scrollToSection(e, i = "smooth") {
333
+ if (!s(this, m).length)
324
334
  return;
325
- const r = i(this, W).current;
326
- C(this, Fe, fs).call(this, e);
327
- const h = i(this, m)[r], n = i(this, m)[i(this, W).current];
335
+ const r = s(this, W).current;
336
+ C(this, ze, Ss).call(this, e);
337
+ const h = s(this, m)[r], n = s(this, m)[s(this, W).current];
328
338
  if (h && n) {
329
339
  let c = 0;
330
- const p = i(this, m).length - 1;
331
- i(this, z).current ? i(this, W).current === 0 && r === p ? c = i(this, _) + i(this, L) - h.position + i(this, K) : i(this, W).current === p && r === 0 ? c = n.position - (i(this, _) + i(this, L) + i(this, K)) : c = n.position - h.position : c = n.position - h.position, i(this, d).shift(c, s === "instant");
340
+ const p = s(this, m).length - 1;
341
+ s(this, D).current ? s(this, W).current === 0 && r === p ? c = s(this, b) + s(this, L) - h.position + s(this, K) : s(this, W).current === p && r === 0 ? c = n.position - (s(this, b) + s(this, L) + s(this, K)) : c = n.position - h.position : c = n.position - h.position, s(this, f).shift(c, i === "instant");
332
342
  }
333
343
  }
334
- shiftSections(e, s = "smooth") {
335
- i(this, m).length && this.scrollToSection(i(this, W).current + e, s);
344
+ shiftSections(e, i = "smooth") {
345
+ s(this, m).length && this.scrollToSection(s(this, W).current + e, i);
336
346
  }
337
- setPosition(e, s = "smooth") {
338
- i(this, d).set(e, s === "instant");
347
+ setPosition(e, i = "smooth") {
348
+ s(this, f).set(e, i === "instant");
339
349
  }
340
350
  connectedCallback() {
341
- i(this, O).observe(), i(this, j).observe(), i(this, N).observe(), i(this, tt).observe(), i(this, Lt).observe(), i(this, z).observe(), i(this, mt).observe(), i(this, Vt).observe(), i(this, $t).observe(), i(this, Ft).observe(), C(this, oe, $e).call(this);
351
+ s(this, O).observe(), s(this, j).observe(), s(this, N).observe(), s(this, tt).observe(), s(this, Lt).observe(), s(this, D).observe(), s(this, mt).observe(), s(this, Vt).observe(), s(this, $t).observe(), s(this, Ft).observe(), C(this, ce, Oe).call(this);
342
352
  }
343
353
  disconnectedCallback() {
344
- i(this, O).unobserve(), i(this, j).unobserve(), i(this, N).unobserve(), i(this, tt).unobserve(), i(this, Lt).unobserve(), i(this, z).unobserve(), i(this, mt).unobserve(), i(this, Vt).unobserve(), i(this, $t).unobserve(), i(this, Ft).unobserve(), C(this, ae, Ve).call(this);
354
+ s(this, O).unobserve(), s(this, j).unobserve(), s(this, N).unobserve(), s(this, tt).unobserve(), s(this, Lt).unobserve(), s(this, D).unobserve(), s(this, mt).unobserve(), s(this, Vt).unobserve(), s(this, $t).unobserve(), s(this, Ft).unobserve(), C(this, le, Fe).call(this);
345
355
  }
346
356
  };
347
- d = /* @__PURE__ */ new WeakMap();
357
+ f = /* @__PURE__ */ new WeakMap();
348
358
  O = /* @__PURE__ */ new WeakMap();
349
359
  j = /* @__PURE__ */ new WeakMap();
350
360
  N = /* @__PURE__ */ new WeakMap();
351
361
  tt = /* @__PURE__ */ new WeakMap();
352
362
  Lt = /* @__PURE__ */ new WeakMap();
353
- z = /* @__PURE__ */ new WeakMap();
363
+ D = /* @__PURE__ */ new WeakMap();
354
364
  mt = /* @__PURE__ */ new WeakMap();
365
+ he = /* @__PURE__ */ new WeakMap();
366
+ ne = /* @__PURE__ */ new WeakMap();
355
367
  Vt = /* @__PURE__ */ new WeakMap();
356
368
  $t = /* @__PURE__ */ new WeakMap();
357
369
  Ft = /* @__PURE__ */ new WeakMap();
358
370
  w = /* @__PURE__ */ new WeakMap();
359
- ye = /* @__PURE__ */ new WeakMap();
371
+ We = /* @__PURE__ */ new WeakMap();
360
372
  m = /* @__PURE__ */ new WeakMap();
361
- he = /* @__PURE__ */ new WeakMap();
362
- ne = /* @__PURE__ */ new WeakMap();
373
+ ae = /* @__PURE__ */ new WeakMap();
374
+ oe = /* @__PURE__ */ new WeakMap();
363
375
  L = /* @__PURE__ */ new WeakMap();
364
- _ = /* @__PURE__ */ new WeakMap();
376
+ b = /* @__PURE__ */ new WeakMap();
365
377
  K = /* @__PURE__ */ new WeakMap();
366
378
  Z = /* @__PURE__ */ new WeakMap();
367
379
  Wt = /* @__PURE__ */ new WeakMap();
@@ -372,18 +384,18 @@ vt = /* @__PURE__ */ new WeakMap();
372
384
  Ht = /* @__PURE__ */ new WeakMap();
373
385
  Gt = /* @__PURE__ */ new WeakMap();
374
386
  te = /* @__PURE__ */ new WeakSet();
375
- ke = function() {
376
- C(this, Tt, ee).call(this), i(this, ye).assignedElements().forEach((e) => {
377
- e instanceof HTMLElement && i(this, m).push(new Hs(e, this));
378
- }), i(this, w).style.transform = "", this.dispatchEvent(
387
+ Pe = function() {
388
+ C(this, Tt, ee).call(this), s(this, We).assignedElements().forEach((e) => {
389
+ e instanceof HTMLElement && s(this, m).push(new Ks(e, this));
390
+ }), s(this, w).style.transform = "", this.dispatchEvent(
379
391
  new CustomEvent("sectionsChange", {
380
392
  composed: !0
381
393
  })
382
- ), i(this, Mt).call(this);
394
+ ), s(this, Et).call(this);
383
395
  };
384
396
  Tt = /* @__PURE__ */ new WeakSet();
385
397
  ee = function() {
386
- i(this, m).forEach((e) => {
398
+ s(this, m).forEach((e) => {
387
399
  e.destroy();
388
400
  }), g(this, m, []), this.dispatchEvent(
389
401
  new CustomEvent("sectionsChange", {
@@ -391,42 +403,42 @@ ee = function() {
391
403
  })
392
404
  );
393
405
  };
394
- We = /* @__PURE__ */ new WeakSet();
395
- Je = function() {
396
- i(this, Ht) || (g(this, Ht, !0), i(this, d).unsubscribe(i(this, Me)), i(this, d).stopAnimation(), i(this, Z).disconnect(), i(this, Wt).disconnect(), i(this, at).disconnect());
406
+ Me = /* @__PURE__ */ new WeakSet();
407
+ Xe = function() {
408
+ s(this, Ht) || (g(this, Ht, !0), s(this, f).unsubscribe(s(this, Le)), s(this, f).unlistenAnimationFrame(), s(this, Z).disconnect(), s(this, Wt).disconnect(), s(this, at).disconnect());
397
409
  };
398
- Pe = /* @__PURE__ */ new WeakSet();
399
- Qe = function() {
400
- i(this, Ht) && (g(this, Ht, !1), i(this, d).subscribe(i(this, Me)), i(this, Z).connect(), i(this, Wt).connect(), i(this, at).connect());
410
+ Ee = /* @__PURE__ */ new WeakSet();
411
+ Ye = function() {
412
+ s(this, Ht) && (g(this, Ht, !1), s(this, f).subscribe(s(this, Le)), s(this, Z).connect(), s(this, Wt).connect(), s(this, at).connect());
401
413
  };
402
- ae = /* @__PURE__ */ new WeakSet();
403
- Ve = function() {
404
- i(this, Gt) || (g(this, Gt, !0), Bt.unsubscribe(i(this, Mt)), i(this, d).reset(), C(this, We, Je).call(this), i(this, w).style.transform = "", i(this, N).current && C(this, Tt, ee).call(this), Et.unregister(this));
414
+ le = /* @__PURE__ */ new WeakSet();
415
+ Fe = function() {
416
+ s(this, Gt) || (g(this, Gt, !0), Bt.unsubscribe(s(this, Et)), s(this, f).reset(), C(this, Me, Xe).call(this), s(this, w).style.transform = "", s(this, N).current && C(this, Tt, ee).call(this), Mt.unregister(this));
405
417
  };
406
- oe = /* @__PURE__ */ new WeakSet();
407
- $e = function() {
408
- i(this, Gt) && (g(this, Gt, !1), i(this, N).current && C(this, te, ke).call(this), Et.register(this), Bt.subscribe(i(this, Mt), Ue.SCROLL), C(this, Pe, Qe).call(this));
418
+ ce = /* @__PURE__ */ new WeakSet();
419
+ Oe = function() {
420
+ s(this, Gt) && (g(this, Gt, !1), s(this, N).current && C(this, te, Pe).call(this), Mt.register(this), Bt.subscribe(s(this, Et), Ne.SCROLL), C(this, Ee, Ye).call(this));
409
421
  };
410
- Mt = /* @__PURE__ */ new WeakMap();
411
- Me = /* @__PURE__ */ new WeakMap();
412
- Fe = /* @__PURE__ */ new WeakSet();
413
- fs = function(e) {
414
- i(this, z).current ? (i(this, W).current = e % i(this, m).length, i(this, W).current = i(this, W).current < 0 ? i(this, m).length + i(this, W).current : i(this, W).current) : i(this, W).current = Ke(e, 0, i(this, m).length - 1);
422
+ Et = /* @__PURE__ */ new WeakMap();
423
+ Le = /* @__PURE__ */ new WeakMap();
424
+ ze = /* @__PURE__ */ new WeakSet();
425
+ Ss = function(e) {
426
+ s(this, D).current ? (s(this, W).current = e % s(this, m).length, s(this, W).current = s(this, W).current < 0 ? s(this, m).length + s(this, W).current : s(this, W).current) : s(this, W).current = qe(e, 0, s(this, m).length - 1);
415
427
  };
416
428
  qt = /* @__PURE__ */ new WeakMap();
417
- le = /* @__PURE__ */ new WeakSet();
418
- Oe = function(e = "current") {
419
- if (i(this, z).current && i(this, m).length) {
420
- const s = i(this, d)[e] % (i(this, _) + i(this, L) + i(this, K));
421
- return s < 0 ? i(this, _) + s + i(this, L) + i(this, K) : s;
429
+ ue = /* @__PURE__ */ new WeakSet();
430
+ De = function(e = "current") {
431
+ if (s(this, D).current && s(this, m).length) {
432
+ const i = s(this, f)[e] % (s(this, b) + s(this, L) + s(this, K));
433
+ return i < 0 ? s(this, b) + i + s(this, L) + s(this, K) : i;
422
434
  } else
423
- return i(this, d)[e];
435
+ return s(this, f)[e];
424
436
  };
425
- Ee = Bs([
437
+ xe = Gs([
426
438
  Kt("e-scroll")
427
- ], Ee);
439
+ ], xe);
428
440
  var se;
429
- class xe extends us {
441
+ class Ve extends fs {
430
442
  constructor() {
431
443
  super(...arguments);
432
444
  F(this, se, null);
@@ -435,28 +447,28 @@ class xe extends us {
435
447
  return o(this, se);
436
448
  }
437
449
  connectedCallback() {
438
- const r = Ts(this, Ee);
439
- r instanceof Ee ? A(this, se, r) : console.error(this, "e-scroll not found");
450
+ const r = Is(this, xe);
451
+ r instanceof xe ? A(this, se, r) : console.error(this, "e-scroll not found");
440
452
  }
441
453
  }
442
454
  se = new WeakMap();
443
- var Ks = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, qs = (e, s, r, h) => {
444
- for (var n = h > 1 ? void 0 : h ? Us(s, r) : s, c = e.length - 1, p; c >= 0; c--)
445
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
446
- return h && n && Ks(s, r, n), n;
447
- }, ds = (e, s, r) => {
448
- if (!s.has(e))
455
+ var qs = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, Zs = (e, i, r, h) => {
456
+ for (var n = h > 1 ? void 0 : h ? Ns(i, r) : i, c = e.length - 1, p; c >= 0; c--)
457
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
458
+ return h && n && qs(i, r, n), n;
459
+ }, ms = (e, i, r) => {
460
+ if (!i.has(e))
449
461
  throw TypeError("Cannot " + r);
450
- }, u = (e, s, r) => (ds(e, s, "read from private field"), r ? r.call(e) : s.get(e)), G = (e, s, r) => {
451
- if (s.has(e))
462
+ }, u = (e, i, r) => (ms(e, i, "read from private field"), r ? r.call(e) : i.get(e)), G = (e, i, r) => {
463
+ if (i.has(e))
452
464
  throw TypeError("Cannot add the same private member more than once");
453
- s instanceof WeakSet ? s.add(e) : s.set(e, r);
454
- }, dt = (e, s, r, h) => (ds(e, s, "write to private field"), h ? h.call(e, r) : s.set(e, r), r), Nt, D, et, st, Zt, Jt, ce, ue, pe, fe;
455
- const Ns = Ne({
465
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
466
+ }, dt = (e, i, r, h) => (ms(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), Nt, z, et, st, Zt, Jt, pe, fe, de, Se;
467
+ const Js = Je({
456
468
  ":host": {
457
469
  display: "inline-block",
458
470
  zIndex: "1",
459
- backgroundColor: is.colorLight.var
471
+ backgroundColor: hs.colorLight.var
460
472
  },
461
473
  ':host([axis="y"])': {
462
474
  position: "absolute",
@@ -473,7 +485,7 @@ const Ns = Ne({
473
485
  height: "1vmin"
474
486
  },
475
487
  ".default-thumb": {
476
- backgroundColor: is.colorDark.var,
488
+ backgroundColor: hs.colorDark.var,
477
489
  borderRadius: "1vmin",
478
490
  touchAction: "none"
479
491
  },
@@ -481,118 +493,119 @@ const Ns = Ne({
481
493
  touchAction: "none"
482
494
  }
483
495
  });
484
- let rs = class extends xe {
496
+ let ns = class extends Ve {
485
497
  constructor() {
486
- super(), G(this, Nt, null), G(this, D, null), G(this, et, !1), G(this, st, 0), G(this, Zt, 0), G(this, Jt, 0), G(this, ce, () => {
498
+ super(), G(this, Nt, null), G(this, z, null), G(this, et, !1), G(this, st, 0), G(this, Zt, 0), G(this, Jt, 0), G(this, pe, () => {
487
499
  dt(this, et, this.offsetWidth > this.offsetHeight);
488
500
  const e = u(this, et) ? this.offsetWidth : this.offsetHeight;
489
- dt(this, st, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), dt(this, st, Math.max(u(this, st), 30)), u(this, et) ? (u(this, D).style.width = u(this, st) + "px", u(this, D).style.height = "100%") : (u(this, D).style.width = "100%", u(this, D).style.height = u(this, st) + "px"), dt(this, Zt, e - u(this, st)), this.scrollElement.scrollSize || (this.style.display = "none");
490
- }), G(this, ue, () => {
491
- dt(this, Jt, this.scrollElement.currentProgress * u(this, Zt)), u(this, et) ? u(this, D).style.transform = `translate3d(${u(this, Jt)}px, 0px, 0px)` : u(this, D).style.transform = `translate3d(0px, ${u(this, Jt)}px, 0px)`;
492
- }), G(this, pe, () => {
501
+ dt(this, st, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), dt(this, st, Math.max(u(this, st), 30)), u(this, et) ? (u(this, z).style.width = u(this, st) + "px", u(this, z).style.height = "100%") : (u(this, z).style.width = "100%", u(this, z).style.height = u(this, st) + "px"), dt(this, Zt, e - u(this, st)), this.scrollElement.scrollSize || (this.style.display = "none");
502
+ }), G(this, fe, () => {
503
+ dt(this, Jt, this.scrollElement.currentProgress * u(this, Zt)), u(this, et) ? u(this, z).style.transform = `translate3d(${u(this, Jt)}px, 0px, 0px)` : u(this, z).style.transform = `translate3d(0px, ${u(this, Jt)}px, 0px)`;
504
+ }), G(this, de, () => {
493
505
  this.setAttribute("axis", this.scrollElement.axisAttibute.current);
494
- }), G(this, fe, (e) => {
495
- As((h) => {
506
+ }), G(this, Se, (e) => {
507
+ Rs((h) => {
496
508
  const n = u(this, et) ? h.x : h.y, c = this.scrollElement.distance / u(this, Zt), p = (n - r) * c;
497
- this.scrollElement.setPosition(s + p);
509
+ this.scrollElement.setPosition(i + p);
498
510
  });
499
- const s = this.scrollElement.targetScrollValue, r = u(this, et) ? e.x : e.y;
500
- }), Ge && (this.openShadow(Ns), qe(this, {
511
+ const i = this.scrollElement.targetScrollValue, r = u(this, et) ? e.x : e.y;
512
+ }), Ue && (this.openShadow(Js), Ze(this, {
501
513
  slot: "static",
514
+ "drag-dead-zone": "",
502
515
  children: [
503
- Ce({
516
+ ke({
504
517
  ref: (e) => dt(this, Nt, e),
505
- children: Le({ class: "default-thumb" })
518
+ children: $e({ class: "default-thumb" })
506
519
  })
507
520
  ]
508
521
  }));
509
522
  }
510
523
  get thumbElement() {
511
- return u(this, D);
524
+ return u(this, z);
512
525
  }
513
526
  connectedCallback() {
514
527
  super.connectedCallback();
515
528
  const e = u(this, Nt).assignedElements()[0] || u(this, Nt).firstElementChild;
516
- dt(this, D, e), u(this, D).addEventListener("pointerdown", u(this, fe)), Bt.subscribe(u(this, ce), Ue.SCROLL + 1), this.scrollElement.onScroll(u(this, ue)), this.scrollElement.axisAttibute.subscribe(u(this, pe));
529
+ dt(this, z, e), u(this, z).addEventListener("pointerdown", u(this, Se)), Bt.subscribe(u(this, pe), Ne.SCROLL + 1), this.scrollElement.onScroll(u(this, fe)), this.scrollElement.axisAttibute.subscribe(u(this, de));
517
530
  }
518
531
  disconnectedCallback() {
519
- u(this, D).removeEventListener("pointerdown", u(this, fe)), Bt.unsubscribe(u(this, ce)), this.scrollElement.offScroll(u(this, ue)), this.scrollElement.axisAttibute.unsubscribe(u(this, pe));
532
+ u(this, z).removeEventListener("pointerdown", u(this, Se)), Bt.unsubscribe(u(this, pe)), this.scrollElement.offScroll(u(this, fe)), this.scrollElement.axisAttibute.unsubscribe(u(this, de));
520
533
  }
521
534
  };
522
535
  Nt = /* @__PURE__ */ new WeakMap();
523
- D = /* @__PURE__ */ new WeakMap();
536
+ z = /* @__PURE__ */ new WeakMap();
524
537
  et = /* @__PURE__ */ new WeakMap();
525
538
  st = /* @__PURE__ */ new WeakMap();
526
539
  Zt = /* @__PURE__ */ new WeakMap();
527
540
  Jt = /* @__PURE__ */ new WeakMap();
528
- ce = /* @__PURE__ */ new WeakMap();
529
- ue = /* @__PURE__ */ new WeakMap();
530
541
  pe = /* @__PURE__ */ new WeakMap();
531
542
  fe = /* @__PURE__ */ new WeakMap();
532
- rs = qs([
543
+ de = /* @__PURE__ */ new WeakMap();
544
+ Se = /* @__PURE__ */ new WeakMap();
545
+ ns = Zs([
533
546
  Kt("e-scrollbar")
534
- ], rs);
535
- const Zs = Ne({
547
+ ], ns);
548
+ const Qs = Je({
536
549
  button: {
537
550
  all: "inherit"
538
551
  }
539
552
  });
540
- class Ss extends xe {
553
+ class vs extends Ve {
541
554
  constructor() {
542
- super(), this.openShadow(Zs), Ge && qe(this, {
555
+ super(), this.openShadow(Qs), Ue && Ze(this, {
543
556
  children: [
544
- Ds({
557
+ As({
545
558
  onClick: () => {
546
559
  this.handleClick();
547
560
  },
548
- children: [Ce()]
561
+ children: [ke()]
549
562
  })
550
563
  ]
551
564
  });
552
565
  }
553
566
  }
554
- var Js = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, Xs = (e, s, r, h) => {
555
- for (var n = h > 1 ? void 0 : h ? Qs(s, r) : s, c = e.length - 1, p; c >= 0; c--)
556
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
557
- return h && n && Js(s, r, n), n;
567
+ var Xs = Object.defineProperty, Ys = Object.getOwnPropertyDescriptor, js = (e, i, r, h) => {
568
+ for (var n = h > 1 ? void 0 : h ? Ys(i, r) : i, c = e.length - 1, p; c >= 0; c--)
569
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
570
+ return h && n && Xs(i, r, n), n;
558
571
  };
559
- let hs = class extends Ss {
572
+ let as = class extends vs {
560
573
  handleClick() {
561
- const e = this.getAttribute("index"), s = this.getAttribute("behaviour");
562
- this.scrollElement.scrollToSection(parseInt(e || "0"), s);
574
+ const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
575
+ this.scrollElement.scrollToSection(parseInt(e || "0"), i);
563
576
  }
564
577
  };
565
- hs = Xs([
578
+ as = js([
566
579
  Kt("e-scroll-set-button")
567
- ], hs);
568
- var Ys = Object.defineProperty, js = Object.getOwnPropertyDescriptor, ti = (e, s, r, h) => {
569
- for (var n = h > 1 ? void 0 : h ? js(s, r) : s, c = e.length - 1, p; c >= 0; c--)
570
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
571
- return h && n && Ys(s, r, n), n;
580
+ ], as);
581
+ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, si = (e, i, r, h) => {
582
+ for (var n = h > 1 ? void 0 : h ? ei(i, r) : i, c = e.length - 1, p; c >= 0; c--)
583
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
584
+ return h && n && ti(i, r, n), n;
572
585
  };
573
- let ns = class extends Ss {
586
+ let os = class extends vs {
574
587
  handleClick() {
575
- const e = this.getAttribute("step"), s = this.getAttribute("behaviour");
576
- this.scrollElement.shiftSections(parseInt(e || "1"), s);
588
+ const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
589
+ this.scrollElement.shiftSections(parseInt(e || "1"), i);
577
590
  }
578
591
  };
579
- ns = ti([
592
+ os = si([
580
593
  Kt("e-scroll-step-button")
581
- ], ns);
582
- var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ii = (e, s, r, h) => {
583
- for (var n = h > 1 ? void 0 : h ? si(s, r) : s, c = e.length - 1, p; c >= 0; c--)
584
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
585
- return h && n && ei(s, r, n), n;
586
- }, ms = (e, s, r) => {
587
- if (!s.has(e))
594
+ ], os);
595
+ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i, r, h) => {
596
+ for (var n = h > 1 ? void 0 : h ? ri(i, r) : i, c = e.length - 1, p; c >= 0; c--)
597
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
598
+ return h && n && ii(i, r, n), n;
599
+ }, gs = (e, i, r) => {
600
+ if (!i.has(e))
588
601
  throw TypeError("Cannot " + r);
589
- }, xt = (e, s, r) => (ms(e, s, "read from private field"), r ? r.call(e) : s.get(e)), as = (e, s, r) => {
590
- if (s.has(e))
602
+ }, xt = (e, i, r) => (gs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), ls = (e, i, r) => {
603
+ if (i.has(e))
591
604
  throw TypeError("Cannot add the same private member more than once");
592
- s instanceof WeakSet ? s.add(e) : s.set(e, r);
593
- }, os = (e, s, r, h) => (ms(e, s, "write to private field"), h ? h.call(e, r) : s.set(e, r), r), gt, Qt, Y, ft, Rt, ie, re, It;
594
- class ri {
595
- constructor(s, r, h) {
605
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
606
+ }, cs = (e, i, r, h) => (gs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), gt, Qt, Y, ft, Rt, ie, re, It;
607
+ class ni {
608
+ constructor(i, r, h) {
596
609
  F(this, Y, void 0);
597
610
  F(this, ft, void 0);
598
611
  F(this, Rt, void 0);
@@ -606,7 +619,7 @@ class ri {
606
619
  o(this, ft).counter.current === o(this, Rt)
607
620
  );
608
621
  });
609
- A(this, Y, document.createElement("button")), A(this, ft, s), A(this, ie, h), A(this, Rt, r), o(this, Y).addEventListener("click", o(this, re)), o(this, ft).counter.subscribe(o(this, It)), o(this, It).call(this);
622
+ A(this, Y, document.createElement("button")), A(this, ft, i), A(this, ie, h), A(this, Rt, r), o(this, Y).addEventListener("click", o(this, re)), o(this, ft).counter.subscribe(o(this, It)), o(this, It).call(this);
610
623
  }
611
624
  get element() {
612
625
  return o(this, Y);
@@ -616,17 +629,17 @@ class ri {
616
629
  }
617
630
  }
618
631
  Y = new WeakMap(), ft = new WeakMap(), Rt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), It = new WeakMap();
619
- let ls = class extends xe {
632
+ let us = class extends Ve {
620
633
  constructor() {
621
- super(...arguments), as(this, gt, []), as(this, Qt, ps(() => {
622
- xt(this, gt).forEach((e) => e.destroy()), os(this, gt, []);
634
+ super(...arguments), ls(this, gt, []), ls(this, Qt, ds(() => {
635
+ xt(this, gt).forEach((e) => e.destroy()), cs(this, gt, []);
623
636
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
624
- const s = new ri(
637
+ const i = new ni(
625
638
  this.scrollElement,
626
639
  e,
627
640
  this.getAttribute("behaviour") || "smooth"
628
641
  );
629
- this.appendChild(s.element), xt(this, gt).push(s);
642
+ this.appendChild(i.element), xt(this, gt).push(i);
630
643
  }
631
644
  }, 0));
632
645
  }
@@ -640,33 +653,33 @@ let ls = class extends xe {
640
653
  this.scrollElement.removeEventListener(
641
654
  "sectionsChange",
642
655
  xt(this, Qt)
643
- ), xt(this, gt).forEach((e) => e.destroy()), os(this, gt, []);
656
+ ), xt(this, gt).forEach((e) => e.destroy()), cs(this, gt, []);
644
657
  }
645
658
  };
646
659
  gt = /* @__PURE__ */ new WeakMap();
647
660
  Qt = /* @__PURE__ */ new WeakMap();
648
- ls = ii([
661
+ us = hi([
649
662
  Kt("e-scroll-bullet-buttons")
650
- ], ls);
651
- var hi = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ai = (e, s, r, h) => {
652
- for (var n = h > 1 ? void 0 : h ? ni(s, r) : s, c = e.length - 1, p; c >= 0; c--)
653
- (p = e[c]) && (n = (h ? p(s, r, n) : p(n)) || n);
654
- return h && n && hi(s, r, n), n;
655
- }, Xe = (e, s, r) => {
656
- if (!s.has(e))
663
+ ], us);
664
+ var ai = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, li = (e, i, r, h) => {
665
+ for (var n = h > 1 ? void 0 : h ? oi(i, r) : i, c = e.length - 1, p; c >= 0; c--)
666
+ (p = e[c]) && (n = (h ? p(i, r, n) : p(n)) || n);
667
+ return h && n && ai(i, r, n), n;
668
+ }, je = (e, i, r) => {
669
+ if (!i.has(e))
657
670
  throw TypeError("Cannot " + r);
658
- }, t = (e, s, r) => (Xe(e, s, "read from private field"), r ? r.call(e) : s.get(e)), a = (e, s, r) => {
659
- if (s.has(e))
671
+ }, t = (e, i, r) => (je(e, i, "read from private field"), r ? r.call(e) : i.get(e)), a = (e, i, r) => {
672
+ if (i.has(e))
660
673
  throw TypeError("Cannot add the same private member more than once");
661
- s instanceof WeakSet ? s.add(e) : s.set(e, r);
662
- }, f = (e, s, r, h) => (Xe(e, s, "write to private field"), h ? h.call(e, r) : s.set(e, r), r), b = (e, s, r) => (Xe(e, s, "access private method"), r), Ot, wt, _t, bt, Ct, $, I, B, H, kt, M, ot, lt, rt, ht, nt, Dt, Xt, E, q, U, ct, ut, J, de, v, zt, At, Se, R, Q, x, P, T, Yt, Pt, y, me, De, Ye, vs, ze, gs, Ae, ws, Te, _s, Re, bs, Ie, Cs, Be, ys, ve, jt, it, yt, je, ks, ts, Ws, ge, He, we;
663
- let cs = class extends xe {
674
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
675
+ }, d = (e, i, r, h) => (je(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (je(e, i, "access private method"), r), Ot, wt, bt, _t, Ct, $, I, B, H, kt, E, ot, lt, rt, ht, nt, zt, Xt, M, q, U, ct, ut, J, me, v, Dt, At, ve, R, Q, x, P, T, Yt, Pt, y, ge, Ae, ts, ws, Te, bs, Re, _s, Ie, Cs, Be, ys, He, ks, Ge, Ws, we, jt, it, yt, es, Ps, ss, Ms, be, Ke, _e;
676
+ let ps = class extends Ve {
664
677
  constructor() {
665
- super(...arguments), a(this, me), a(this, Ye), a(this, ze), a(this, Ae), a(this, Te), a(this, Re), a(this, Ie), a(this, Be), a(this, it), a(this, je), a(this, ts), a(this, ge), a(this, Ot, new S(this, "--target", "")), a(this, wt, new S(this, "--disabled", !1)), a(this, _t, new S(
678
+ super(...arguments), a(this, ge), a(this, ts), a(this, Te), a(this, Re), a(this, Ie), a(this, Be), a(this, He), a(this, Ge), a(this, it), a(this, es), a(this, ss), a(this, be), a(this, Ot, new S(this, "--target", "")), a(this, wt, new S(this, "--disabled", !1)), a(this, bt, new S(
666
679
  this,
667
680
  "--distance-offset",
668
681
  0
669
- )), a(this, bt, new S(this, "--start-offset", 0)), a(this, Ct, new S(
682
+ )), a(this, _t, new S(this, "--start-offset", 0)), a(this, Ct, new S(
670
683
  this,
671
684
  "--capture-once",
672
685
  !1
@@ -682,31 +695,31 @@ let cs = class extends xe {
682
695
  this,
683
696
  "--released-from-start",
684
697
  ""
685
- )), a(this, M, new S(
698
+ )), a(this, E, new S(
686
699
  this,
687
700
  "--released-from-finish",
688
701
  ""
689
- )), a(this, ot, new S(this, "--passed-var", "")), a(this, lt, new S(this, "--progress-var", "")), a(this, rt, new S(this, "--distance-var", "")), a(this, ht, new S(this, "--start-var", "")), a(this, nt, new S(this, "--finish-var", "")), a(this, Dt, new S(this, "--smoothstep", !1)), a(this, Xt, new S(
702
+ )), a(this, ot, new S(this, "--passed-var", "")), a(this, lt, new S(this, "--progress-var", "")), a(this, rt, new S(this, "--distance-var", "")), a(this, ht, new S(this, "--start-var", "")), a(this, nt, new S(this, "--finish-var", "")), a(this, zt, new S(this, "--smoothstep", !1)), a(this, Xt, new S(
690
703
  this,
691
704
  "--smootherstep",
692
705
  !1
693
- )), a(this, E, new St(!1)), a(this, q, new St(!1)), a(this, U, new St(!1)), a(this, ct, new St(!1)), a(this, ut, new St(!1)), a(this, J, new St(!1)), a(this, de, []), a(this, v, this), a(this, zt, 0), a(this, At, 0), a(this, Se, 0), a(this, R, 0), a(this, Q, 0), a(this, x, 0), a(this, P, 0), a(this, T, 0), a(this, Yt, !1), a(this, Pt, !1), a(this, y, !0), a(this, ve, () => {
706
+ )), a(this, M, new St(!1)), a(this, q, new St(!1)), a(this, U, new St(!1)), a(this, ct, new St(!1)), a(this, ut, new St(!1)), a(this, J, new St(!1)), a(this, me, []), a(this, v, this), a(this, Dt, 0), a(this, At, 0), a(this, ve, 0), a(this, R, 0), a(this, Q, 0), a(this, x, 0), a(this, P, 0), a(this, T, 0), a(this, Yt, !1), a(this, Pt, !1), a(this, y, !0), a(this, we, () => {
694
707
  t(this, y) || (this.resize(), t(this, jt).call(this));
695
708
  }), a(this, jt, () => {
696
709
  !t(this, y) && t(this, Yt) && this.tick();
697
- }), a(this, we, ps(() => {
698
- const e = Et.getAll(this).reverse();
699
- let s = 0;
710
+ }), a(this, _e, ds(() => {
711
+ const e = Mt.getAll(this).reverse();
712
+ let i = 0;
700
713
  e.forEach((r, h) => {
701
- r.element === this.scrollElement && (s = h);
702
- }), f(this, de, e.slice(s + 1));
714
+ r.element === this.scrollElement && (i = h);
715
+ }), d(this, me, e.slice(i + 1));
703
716
  }, 0));
704
717
  }
705
718
  get distanceOffsetCSSProperty() {
706
- return t(this, _t);
719
+ return t(this, bt);
707
720
  }
708
721
  get startOffsetCSSProperty() {
709
- return t(this, bt);
722
+ return t(this, _t);
710
723
  }
711
724
  get captureOnceCSSProperty() {
712
725
  return t(this, Ct);
@@ -727,7 +740,7 @@ let cs = class extends xe {
727
740
  return t(this, kt);
728
741
  }
729
742
  get releasedFromFinishCSSProperty() {
730
- return t(this, M);
743
+ return t(this, E);
731
744
  }
732
745
  get passedVarCSSProperty() {
733
746
  return t(this, ot);
@@ -745,7 +758,7 @@ let cs = class extends xe {
745
758
  return t(this, nt);
746
759
  }
747
760
  get smoothstepCSSProperty() {
748
- return t(this, Dt);
761
+ return t(this, zt);
749
762
  }
750
763
  get smootherstepCSSProperty() {
751
764
  return t(this, Xt);
@@ -757,7 +770,7 @@ let cs = class extends xe {
757
770
  return t(this, Ot);
758
771
  }
759
772
  get isCaptured() {
760
- return t(this, E);
773
+ return t(this, M);
761
774
  }
762
775
  get isReleased() {
763
776
  return t(this, q);
@@ -775,7 +788,7 @@ let cs = class extends xe {
775
788
  return t(this, J);
776
789
  }
777
790
  get directionPosition() {
778
- return t(this, zt);
791
+ return t(this, Dt);
779
792
  }
780
793
  get directionSize() {
781
794
  return t(this, At);
@@ -802,110 +815,110 @@ let cs = class extends xe {
802
815
  return t(this, y);
803
816
  }
804
817
  resize() {
805
- f(this, At, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), f(this, zt, this.scrollElement.vertical ? _e(this, this.scrollElement) : be(this, this.scrollElement)), f(this, x, this.getStart()), f(this, P, this.getDistance()), f(this, x, t(this, x) + t(this, bt).current), f(this, P, t(this, P) + t(this, _t).current), f(this, T, t(this, x) + t(this, P)), this.scrollElement.currentScrollValue > t(this, T) && !t(this, E).current && !t(this, q).current && (t(this, E).current = !0), this.setVar(t(this, ht).current, t(this, x)), this.setVar(t(this, nt).current, t(this, T)), this.setVar(t(this, rt).current, t(this, P)), f(this, Yt, !0);
818
+ d(this, At, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), d(this, Dt, this.scrollElement.vertical ? Ce(this, this.scrollElement) : ye(this, this.scrollElement)), d(this, x, this.getStart()), d(this, P, this.getDistance()), d(this, x, t(this, x) + t(this, _t).current), d(this, P, t(this, P) + t(this, bt).current), d(this, T, t(this, x) + t(this, P)), this.scrollElement.currentScrollValue > t(this, T) && !t(this, M).current && !t(this, q).current && (t(this, M).current = !0), this.setVar(t(this, ht).current, t(this, x)), this.setVar(t(this, nt).current, t(this, T)), this.setVar(t(this, rt).current, t(this, P)), d(this, Yt, !0);
806
819
  }
807
820
  tick() {
808
821
  let e = this.scrollElement.currentScrollValue;
809
- t(this, de).forEach((r) => {
822
+ t(this, me).forEach((r) => {
810
823
  e += r.value;
811
- }), f(this, R, this.updateValue(e - t(this, x), 0, t(this, P)) || 0), f(this, Q, t(this, R) / t(this, P) || 0);
812
- const s = Math.round(e);
813
- t(this, E).current && (s > t(this, x) ? t(this, U).current || b(this, Te, _s).call(this) : t(this, U).current && !t(this, ct).current && b(this, Ie, Cs).call(this), s < t(this, T) ? t(this, J).current && !t(this, ut).current && b(this, Re, bs).call(this) : t(this, U).current && !t(this, J).current && b(this, Be, ys).call(this)), s > t(this, x) && s < t(this, T) ? (b(this, me, De).call(this), t(this, E).current || b(this, ze, gs).call(this)) : t(this, E).current && (f(this, R, Ms(t(this, P) / 2, t(this, R), 0, t(this, P))), f(this, Q, t(this, R) / t(this, P)), b(this, me, De).call(this), b(this, Ae, ws).call(this)), t(this, Pt) && t(this, Ct).current && (t(this, $).current && t(this, v).classList.add(t(this, $).current), f(this, y, !0));
824
+ }), d(this, R, this.updateValue(e - t(this, x), 0, t(this, P)) || 0), d(this, Q, t(this, R) / t(this, P) || 0);
825
+ const i = Math.round(e);
826
+ t(this, M).current && (i > t(this, x) ? t(this, U).current || _(this, Ie, Cs).call(this) : t(this, U).current && !t(this, ct).current && _(this, He, ks).call(this), i < t(this, T) ? t(this, J).current && !t(this, ut).current && _(this, Be, ys).call(this) : t(this, U).current && !t(this, J).current && _(this, Ge, Ws).call(this)), i > t(this, x) && i < t(this, T) ? (_(this, ge, Ae).call(this), t(this, M).current || _(this, Te, bs).call(this)) : t(this, M).current && (d(this, R, xs(t(this, P) / 2, t(this, R), 0, t(this, P))), d(this, Q, t(this, R) / t(this, P)), _(this, ge, Ae).call(this), _(this, Re, _s).call(this)), t(this, Pt) && t(this, Ct).current && (t(this, $).current && t(this, v).classList.add(t(this, $).current), d(this, y, !0));
814
827
  }
815
828
  disable() {
816
- this.style.cssText = "", f(this, zt, 0), f(this, At, 0), f(this, R, 0), f(this, Q, 0), f(this, x, 0), f(this, P, 0), f(this, T, 0), f(this, Yt, !1), t(this, E).current = !1, t(this, q).current = !1, t(this, U).current = !1, t(this, ct).current = !1, t(this, ut).current = !1, t(this, J).current = !1, f(this, Pt, !1), f(this, y, !0), b(this, ge, He).call(this);
829
+ this.style.cssText = "", d(this, Dt, 0), d(this, At, 0), d(this, R, 0), d(this, Q, 0), d(this, x, 0), d(this, P, 0), d(this, T, 0), d(this, Yt, !1), t(this, M).current = !1, t(this, q).current = !1, t(this, U).current = !1, t(this, ct).current = !1, t(this, ut).current = !1, t(this, J).current = !1, d(this, Pt, !1), d(this, y, !0), _(this, be, Ke).call(this);
817
830
  }
818
831
  enable() {
819
- f(this, y, !1);
832
+ d(this, y, !1);
820
833
  }
821
834
  connectedCallback() {
822
- super.connectedCallback(), t(this, Ot).observe(), t(this, wt).observe(), t(this, _t).observe(), t(this, bt).observe(), t(this, Ct).observe(), t(this, $).observe(), t(this, I).observe(), t(this, B).observe(), t(this, H).observe(), t(this, kt).observe(), t(this, M).observe(), t(this, ot).observe(), t(this, lt).observe(), t(this, rt).observe(), t(this, ht).observe(), t(this, nt).observe(), t(this, Dt).observe(), t(this, Xt).observe();
835
+ super.connectedCallback(), t(this, Ot).observe(), t(this, wt).observe(), t(this, bt).observe(), t(this, _t).observe(), t(this, Ct).observe(), t(this, $).observe(), t(this, I).observe(), t(this, B).observe(), t(this, H).observe(), t(this, kt).observe(), t(this, E).observe(), t(this, ot).observe(), t(this, lt).observe(), t(this, rt).observe(), t(this, ht).observe(), t(this, nt).observe(), t(this, zt).observe(), t(this, Xt).observe();
823
836
  let e = !1;
824
837
  this.scrollElement.addEventListener(
825
838
  "sectionsChange",
826
- t(this, we)
827
- ), t(this, we).call(this), t(this, wt).current || this.enable(), t(this, Ot).subscribe((s) => {
828
- s.previous && b(this, ge, He).call(this), s.current ? s.current === "parent" ? f(this, v, this.parentElement || this) : f(this, v, document.querySelector(s.current) || this) : f(this, v, this);
829
- }), t(this, wt).subscribe((s) => {
830
- s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
831
- }), t(this, bt).subscribe(() => {
832
- e && !t(this, y) && this.resize();
839
+ t(this, _e)
840
+ ), t(this, _e).call(this), t(this, wt).current || this.enable(), t(this, Ot).subscribe((i) => {
841
+ i.previous && _(this, be, Ke).call(this), i.current ? i.current === "parent" ? d(this, v, this.parentElement || this) : d(this, v, document.querySelector(i.current) || this) : d(this, v, this);
842
+ }), t(this, wt).subscribe((i) => {
843
+ i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
833
844
  }), t(this, _t).subscribe(() => {
834
845
  e && !t(this, y) && this.resize();
835
- }), t(this, $).subscribe((s) => {
836
- b(this, it, yt).call(this, s);
837
- }), t(this, B).subscribe((s) => {
838
- b(this, it, yt).call(this, s);
839
- }), t(this, H).subscribe((s) => {
840
- b(this, it, yt).call(this, s);
841
- }), t(this, I).subscribe((s) => {
842
- b(this, it, yt).call(this, s);
843
- }), t(this, kt).subscribe((s) => {
844
- b(this, it, yt).call(this, s);
845
- }), t(this, M).subscribe((s) => {
846
- b(this, it, yt).call(this, s);
847
- }), t(this, Ct).subscribe((s) => {
848
- t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
849
- }), t(this, ot).subscribe((s) => {
850
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed));
851
- }), t(this, lt).subscribe((s) => {
852
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, Q)));
853
- }), t(this, ht).subscribe((s) => {
854
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, x)));
855
- }), t(this, nt).subscribe((s) => {
856
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, T)));
857
- }), t(this, rt).subscribe((s) => {
858
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, P)));
859
- }), Bt.subscribe(t(this, ve), Ue.SEGMENT), this.scrollElement.onScroll(t(this, jt)), e = !0;
846
+ }), t(this, bt).subscribe(() => {
847
+ e && !t(this, y) && this.resize();
848
+ }), t(this, $).subscribe((i) => {
849
+ _(this, it, yt).call(this, i);
850
+ }), t(this, B).subscribe((i) => {
851
+ _(this, it, yt).call(this, i);
852
+ }), t(this, H).subscribe((i) => {
853
+ _(this, it, yt).call(this, i);
854
+ }), t(this, I).subscribe((i) => {
855
+ _(this, it, yt).call(this, i);
856
+ }), t(this, kt).subscribe((i) => {
857
+ _(this, it, yt).call(this, i);
858
+ }), t(this, E).subscribe((i) => {
859
+ _(this, it, yt).call(this, i);
860
+ }), t(this, Ct).subscribe((i) => {
861
+ t(this, y) || !i.current && i.previous && (this.resize(), this.enable());
862
+ }), t(this, ot).subscribe((i) => {
863
+ t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, this.passed));
864
+ }), t(this, lt).subscribe((i) => {
865
+ t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, Q)));
866
+ }), t(this, ht).subscribe((i) => {
867
+ t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, x)));
868
+ }), t(this, nt).subscribe((i) => {
869
+ t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, T)));
870
+ }), t(this, rt).subscribe((i) => {
871
+ t(this, y) || (this.removeVar(i.previous), this.setVar(i.current, t(this, P)));
872
+ }), Bt.subscribe(t(this, we), Ne.SEGMENT), this.scrollElement.onScroll(t(this, jt)), e = !0;
860
873
  }
861
874
  disconnectedCallback() {
862
- Bt.unsubscribe(t(this, ve)), this.scrollElement.offScroll(t(this, jt)), t(this, Ot).close(), t(this, wt).close(), t(this, _t).close(), t(this, bt).close(), t(this, Ct).close(), t(this, $).close(), t(this, I).close(), t(this, B).close(), t(this, H).close(), t(this, kt).close(), t(this, M).close(), t(this, ot).close(), t(this, lt).close(), t(this, rt).close(), t(this, ht).close(), t(this, nt).close(), t(this, Dt).close(), t(this, Xt).close(), t(this, E).close(), t(this, q).close(), t(this, U).close(), t(this, ct).close(), t(this, ut).close(), t(this, J).close(), this.disable();
875
+ Bt.unsubscribe(t(this, we)), this.scrollElement.offScroll(t(this, jt)), t(this, Ot).close(), t(this, wt).close(), t(this, bt).close(), t(this, _t).close(), t(this, Ct).close(), t(this, $).close(), t(this, I).close(), t(this, B).close(), t(this, H).close(), t(this, kt).close(), t(this, E).close(), t(this, ot).close(), t(this, lt).close(), t(this, rt).close(), t(this, ht).close(), t(this, nt).close(), t(this, zt).close(), t(this, Xt).close(), t(this, M).close(), t(this, q).close(), t(this, U).close(), t(this, ct).close(), t(this, ut).close(), t(this, J).close(), this.disable();
863
876
  }
864
877
  removeVar(e) {
865
878
  e && t(this, v).style.removeProperty(`--${e}`);
866
879
  }
867
- setVar(e, s) {
868
- e && t(this, v).style.setProperty(`--${e}`, s.toString());
880
+ setVar(e, i) {
881
+ e && t(this, v).style.setProperty(`--${e}`, i.toString());
869
882
  }
870
- updateValue(e, s = 0, r = 1) {
871
- return this.smootherstepCSSProperty.current ? xs(e, s, r) * r : t(this, Dt).current ? Ls(e, s, r) * r : Ke(e, s, r);
883
+ updateValue(e, i = 0, r = 1) {
884
+ return this.smootherstepCSSProperty.current ? Ls(e, i, r) * r : t(this, zt).current ? Vs(e, i, r) * r : qe(e, i, r);
872
885
  }
873
886
  getDistance() {
874
- return t(this, At) + t(this, Se);
887
+ return t(this, At) + t(this, ve);
875
888
  }
876
889
  getStart() {
877
- return t(this, zt) - t(this, Se);
890
+ return t(this, Dt) - t(this, ve);
878
891
  }
879
892
  };
880
893
  Ot = /* @__PURE__ */ new WeakMap();
881
894
  wt = /* @__PURE__ */ new WeakMap();
882
- _t = /* @__PURE__ */ new WeakMap();
883
895
  bt = /* @__PURE__ */ new WeakMap();
896
+ _t = /* @__PURE__ */ new WeakMap();
884
897
  Ct = /* @__PURE__ */ new WeakMap();
885
898
  $ = /* @__PURE__ */ new WeakMap();
886
899
  I = /* @__PURE__ */ new WeakMap();
887
900
  B = /* @__PURE__ */ new WeakMap();
888
901
  H = /* @__PURE__ */ new WeakMap();
889
902
  kt = /* @__PURE__ */ new WeakMap();
890
- M = /* @__PURE__ */ new WeakMap();
903
+ E = /* @__PURE__ */ new WeakMap();
891
904
  ot = /* @__PURE__ */ new WeakMap();
892
905
  lt = /* @__PURE__ */ new WeakMap();
893
906
  rt = /* @__PURE__ */ new WeakMap();
894
907
  ht = /* @__PURE__ */ new WeakMap();
895
908
  nt = /* @__PURE__ */ new WeakMap();
896
- Dt = /* @__PURE__ */ new WeakMap();
909
+ zt = /* @__PURE__ */ new WeakMap();
897
910
  Xt = /* @__PURE__ */ new WeakMap();
898
- E = /* @__PURE__ */ new WeakMap();
911
+ M = /* @__PURE__ */ new WeakMap();
899
912
  q = /* @__PURE__ */ new WeakMap();
900
913
  U = /* @__PURE__ */ new WeakMap();
901
914
  ct = /* @__PURE__ */ new WeakMap();
902
915
  ut = /* @__PURE__ */ new WeakMap();
903
916
  J = /* @__PURE__ */ new WeakMap();
904
- de = /* @__PURE__ */ new WeakMap();
917
+ me = /* @__PURE__ */ new WeakMap();
905
918
  v = /* @__PURE__ */ new WeakMap();
906
- zt = /* @__PURE__ */ new WeakMap();
919
+ Dt = /* @__PURE__ */ new WeakMap();
907
920
  At = /* @__PURE__ */ new WeakMap();
908
- Se = /* @__PURE__ */ new WeakMap();
921
+ ve = /* @__PURE__ */ new WeakMap();
909
922
  R = /* @__PURE__ */ new WeakMap();
910
923
  Q = /* @__PURE__ */ new WeakMap();
911
924
  x = /* @__PURE__ */ new WeakMap();
@@ -914,12 +927,12 @@ T = /* @__PURE__ */ new WeakMap();
914
927
  Yt = /* @__PURE__ */ new WeakMap();
915
928
  Pt = /* @__PURE__ */ new WeakMap();
916
929
  y = /* @__PURE__ */ new WeakMap();
917
- me = /* @__PURE__ */ new WeakSet();
918
- De = function() {
919
- b(this, Ye, vs).call(this), this.setVar(t(this, ot).current, t(this, R)), this.setVar(t(this, lt).current, t(this, Q));
930
+ ge = /* @__PURE__ */ new WeakSet();
931
+ Ae = function() {
932
+ _(this, ts, ws).call(this), this.setVar(t(this, ot).current, t(this, R)), this.setVar(t(this, lt).current, t(this, Q));
920
933
  };
921
- Ye = /* @__PURE__ */ new WeakSet();
922
- vs = function() {
934
+ ts = /* @__PURE__ */ new WeakSet();
935
+ ws = function() {
923
936
  this.dispatchEvent(
924
937
  new CustomEvent("segmentPass", {
925
938
  detail: {
@@ -932,47 +945,47 @@ vs = function() {
932
945
  })
933
946
  );
934
947
  };
935
- ze = /* @__PURE__ */ new WeakSet();
936
- gs = function() {
937
- t(this, E).current = !0, t(this, q).current = !1, f(this, Pt, !0), t(this, I).current && t(this, v).classList.remove(t(this, I).current), t(this, M).current && t(this, v).classList.remove(
938
- t(this, M).current
939
- ), t(this, M).current && t(this, v).classList.remove(
940
- t(this, M).current
948
+ Te = /* @__PURE__ */ new WeakSet();
949
+ bs = function() {
950
+ t(this, M).current = !0, t(this, q).current = !1, d(this, Pt, !0), t(this, I).current && t(this, v).classList.remove(t(this, I).current), t(this, E).current && t(this, v).classList.remove(
951
+ t(this, E).current
952
+ ), t(this, E).current && t(this, v).classList.remove(
953
+ t(this, E).current
941
954
  ), t(this, $).current && t(this, v).classList.add(t(this, $).current);
942
955
  };
943
- Ae = /* @__PURE__ */ new WeakSet();
944
- ws = function() {
945
- t(this, q).current = !0, t(this, E).current = !1, f(this, Pt, !0), t(this, $).current && t(this, v).classList.remove(t(this, $).current), t(this, B).current && t(this, v).classList.remove(
956
+ Re = /* @__PURE__ */ new WeakSet();
957
+ _s = function() {
958
+ t(this, q).current = !0, t(this, M).current = !1, d(this, Pt, !0), t(this, $).current && t(this, v).classList.remove(t(this, $).current), t(this, B).current && t(this, v).classList.remove(
946
959
  t(this, B).current
947
960
  ), t(this, H).current && t(this, v).classList.remove(
948
961
  t(this, H).current
949
962
  ), t(this, I).current && t(this, v).classList.add(t(this, I).current);
950
963
  };
951
- Te = /* @__PURE__ */ new WeakSet();
952
- _s = function() {
953
- t(this, E).current = !0, t(this, U).current = !0, t(this, ct).current = !1, t(this, B).current && t(this, v).classList.add(
964
+ Ie = /* @__PURE__ */ new WeakSet();
965
+ Cs = function() {
966
+ t(this, M).current = !0, t(this, U).current = !0, t(this, ct).current = !1, t(this, B).current && t(this, v).classList.add(
954
967
  t(this, B).current
955
968
  );
956
969
  };
957
- Re = /* @__PURE__ */ new WeakSet();
958
- bs = function() {
959
- t(this, E).current = !0, t(this, ut).current = !0, t(this, J).current = !1, t(this, H).current && t(this, v).classList.add(
970
+ Be = /* @__PURE__ */ new WeakSet();
971
+ ys = function() {
972
+ t(this, M).current = !0, t(this, ut).current = !0, t(this, J).current = !1, t(this, H).current && t(this, v).classList.add(
960
973
  t(this, H).current
961
974
  );
962
975
  };
963
- Ie = /* @__PURE__ */ new WeakSet();
964
- Cs = function() {
965
- t(this, q).current = !0, t(this, ct).current = !0, t(this, U).current = !1, t(this, M).current && t(this, v).classList.add(
966
- t(this, M).current
976
+ He = /* @__PURE__ */ new WeakSet();
977
+ ks = function() {
978
+ t(this, q).current = !0, t(this, ct).current = !0, t(this, U).current = !1, t(this, E).current && t(this, v).classList.add(
979
+ t(this, E).current
967
980
  );
968
981
  };
969
- Be = /* @__PURE__ */ new WeakSet();
970
- ys = function() {
971
- t(this, q).current = !0, t(this, J).current = !0, t(this, ut).current = !1, t(this, M).current && t(this, v).classList.add(
972
- t(this, M).current
982
+ Ge = /* @__PURE__ */ new WeakSet();
983
+ Ws = function() {
984
+ t(this, q).current = !0, t(this, J).current = !0, t(this, ut).current = !1, t(this, E).current && t(this, v).classList.add(
985
+ t(this, E).current
973
986
  );
974
987
  };
975
- ve = /* @__PURE__ */ new WeakMap();
988
+ we = /* @__PURE__ */ new WeakMap();
976
989
  jt = /* @__PURE__ */ new WeakMap();
977
990
  it = /* @__PURE__ */ new WeakSet();
978
991
  yt = function(e) {
@@ -980,33 +993,33 @@ yt = function(e) {
980
993
  e.previous && t(this, v).classList.remove(e.previous), e.current && t(this, v).classList.remove(e.current);
981
994
  return;
982
995
  }
983
- e.current && t(this, E).current ? (e.previous && t(this, v).classList.remove(e.previous), t(this, v).classList.add(e.current)) : !e.current && e.previous && t(this, v).classList.remove(e.previous);
996
+ e.current && t(this, M).current ? (e.previous && t(this, v).classList.remove(e.previous), t(this, v).classList.add(e.current)) : !e.current && e.previous && t(this, v).classList.remove(e.previous);
984
997
  };
985
- je = /* @__PURE__ */ new WeakSet();
986
- ks = function(...e) {
987
- e.forEach((s) => {
988
- s && t(this, v).classList.remove(s);
998
+ es = /* @__PURE__ */ new WeakSet();
999
+ Ps = function(...e) {
1000
+ e.forEach((i) => {
1001
+ i && t(this, v).classList.remove(i);
989
1002
  });
990
1003
  };
991
- ts = /* @__PURE__ */ new WeakSet();
992
- Ws = function(...e) {
993
- e.forEach((s) => {
994
- s && t(this, v).style.removeProperty(`--${s}`);
1004
+ ss = /* @__PURE__ */ new WeakSet();
1005
+ Ms = function(...e) {
1006
+ e.forEach((i) => {
1007
+ i && t(this, v).style.removeProperty(`--${i}`);
995
1008
  });
996
1009
  };
997
- ge = /* @__PURE__ */ new WeakSet();
998
- He = function() {
999
- b(this, je, ks).call(this, t(this, $).current, t(this, B).current, t(this, H).current, t(this, I).current, t(this, kt).current, t(this, M).current), b(this, ts, Ws).call(this, t(this, ot).current, t(this, lt).current, t(this, rt).current, t(this, ht).current, t(this, nt).current);
1010
+ be = /* @__PURE__ */ new WeakSet();
1011
+ Ke = function() {
1012
+ _(this, es, Ps).call(this, t(this, $).current, t(this, B).current, t(this, H).current, t(this, I).current, t(this, kt).current, t(this, E).current), _(this, ss, Ms).call(this, t(this, ot).current, t(this, lt).current, t(this, rt).current, t(this, ht).current, t(this, nt).current);
1000
1013
  };
1001
- we = /* @__PURE__ */ new WeakMap();
1002
- cs = ai([
1014
+ _e = /* @__PURE__ */ new WeakMap();
1015
+ ps = li([
1003
1016
  Kt("e-scroll-segment")
1004
- ], cs);
1017
+ ], ps);
1005
1018
  export {
1006
- ls as ScrollBulletButtonsElement,
1007
- Ee as ScrollElement,
1008
- cs as ScrollSegmentElement,
1009
- hs as ScrollSetButtonElement,
1010
- ns as ScrollStepButtonElement,
1011
- rs as ScrollbarElement
1019
+ us as ScrollBulletButtonsElement,
1020
+ xe as ScrollElement,
1021
+ ps as ScrollSegmentElement,
1022
+ as as ScrollSetButtonElement,
1023
+ os as ScrollStepButtonElement,
1024
+ ns as ScrollbarElement
1012
1025
  };