aptechka 0.5.23 → 0.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,95 +1,95 @@
1
- var ms = (e, i, r) => {
1
+ var bs = (e, i, r) => {
2
2
  if (!i.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var a = (e, i, r) => (ms(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
5
+ var a = (e, i, r) => (bs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
6
6
  if (i.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
9
- }, O = (e, i, r, h) => (ms(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
- import { S as _t } from "../Store-Cd-E5W1z.js";
11
- import { D as Us } from "../Derived-DH-ouLBq.js";
12
- import { i as as } from "../browser-0zX67oeU.js";
13
- import { a as Ie, g as Re } from "../layout-HoBT_Da2.js";
14
- import { c as Ms, s as Ks } from "../math-BOBiC4TN.js";
9
+ }, O = (e, i, r, h) => (bs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
+ import { S as Ct } from "../Store-Cd-E5W1z.js";
11
+ import { D as Ks } from "../Derived-DH-ouLBq.js";
12
+ import { i as os } from "../browser-0zX67oeU.js";
13
+ import { a as Re, g as Te } from "../layout-HoBT_Da2.js";
14
+ import { c as Es, s as Zs } from "../math-BOBiC4TN.js";
15
15
  import "../path-data-polyfill-DgeDWYeI.js";
16
16
  import "../ticker/index.js";
17
- import { TICK_ORDER as Es, RESIZE_ORDER as os } from "../order/index.js";
18
- import { D as xs } from "../Damped-BJgyFENo.js";
19
- import { WheelControls as Zs, KeyboardControls as Js, DragControls as Qs, AutoplayControls as Xs } from "../controls/index.js";
20
- import { CustomElement as Ls, define as ce } from "../custom-element/index.js";
21
- import { windowResizer as ae } from "../window-resizer/index.js";
22
- import { scrollEntries as Tt } from "../scroll-entries/index.js";
23
- import { e as ls, D as Ze, ay as Te, p as Ys } from "../tags-BoPv9fDr.js";
24
- import { c as cs } from "../createStylesheet-KMRQhSa-.js";
25
- import { cssUnitParser as bs } from "../css-unit-parser/index.js";
26
- import { CSSProperty as u } from "../css-property/index.js";
27
- import { d as js } from "../Viewport-CCDNxaDg.js";
28
- import { elementResizer as Be } from "../element-resizer/index.js";
29
- import { s as ti } from "../gestures-D2Fdra_G.js";
30
- import { aptechkaTheme as gs } from "../theme/index.js";
31
- import { f as ei } from "../dom-0S_WDL4g.js";
32
- import { d as Vs } from "../function-C10DGppn.js";
33
- var si = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ri = (e, i, r, h) => {
34
- for (var n = h > 1 ? void 0 : h ? ii(i, r) : i, p = e.length - 1, d; p >= 0; p--)
17
+ import { TICK_ORDER as xs, RESIZE_ORDER as ls } from "../order/index.js";
18
+ import { D as Ls } from "../Damped-BJgyFENo.js";
19
+ import { WheelControls as Js, KeyboardControls as Qs, DragControls as Xs, AutoplayControls as Ys } from "../controls/index.js";
20
+ import { CustomElement as Vs, define as ue } from "../custom-element/index.js";
21
+ import { windowResizer as oe } from "../window-resizer/index.js";
22
+ import { scrollEntries as Bt } from "../scroll-entries/index.js";
23
+ import { e as cs, D as Je, ay as Be, p as js } from "../tags-BoPv9fDr.js";
24
+ import { c as us } from "../createStylesheet-KMRQhSa-.js";
25
+ import { cssUnitParser as gs } from "../css-unit-parser/index.js";
26
+ import { CSSProperty as c } from "../css-property/index.js";
27
+ import { d as ti } from "../Viewport-CCDNxaDg.js";
28
+ import { elementResizer as He } from "../element-resizer/index.js";
29
+ import { s as ei } from "../gestures-D2Fdra_G.js";
30
+ import { aptechkaTheme as ws } from "../theme/index.js";
31
+ import { f as si } from "../dom-0S_WDL4g.js";
32
+ import { d as zs } from "../function-C10DGppn.js";
33
+ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i, r, h) => {
34
+ for (var n = h > 1 ? void 0 : h ? ri(i, r) : i, p = e.length - 1, d; p >= 0; p--)
35
35
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
36
- return h && n && si(i, r, n), n;
37
- }, us = (e, i, r) => {
36
+ return h && n && ii(i, r, n), n;
37
+ }, ps = (e, i, r) => {
38
38
  if (!i.has(e))
39
39
  throw TypeError("Cannot " + r);
40
- }, t = (e, i, r) => (us(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
40
+ }, t = (e, i, r) => (ps(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
41
41
  if (i.has(e))
42
42
  throw TypeError("Cannot add the same private member more than once");
43
43
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
44
- }, _ = (e, i, r, h) => (us(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), v = (e, i, r) => (us(e, i, "access private method"), r), S, Ht, A, st, X, it, Ct, yt, J, R, Gt, qt, Nt, Ut, ue, at, Kt, Pt, Q, $t, dt, Zt, Jt, g, He, c, Pe, ke, M, C, T, Y, Ot, St, F, P, pe, kt, oe, le, ie, we, At, re, Ge, ps, qe, fs, We, Je, Me, Qe, B, Ue, Xe, zs, fe, Ee, xe, Ye, ot, Ft, je, $s, w, y, Rt, tt, bt;
45
- class hi {
44
+ }, _ = (e, i, r, h) => (ps(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), v = (e, i, r) => (ps(e, i, "access private method"), r), S, Gt, A, st, it, X, rt, yt, Pt, J, R, qt, Nt, Ut, Kt, pe, ot, Zt, kt, Q, Ft, St, Jt, Qt, g, Ge, u, ke, We, M, C, T, Y, At, vt, F, P, fe, Wt, le, ce, re, _e, It, he, qe, fs, Ne, ds, Me, Qe, Ee, Xe, B, Ke, Ye, $s, de, xe, Le, je, lt, Dt, ts, Fs, w, y, Tt, tt, gt;
45
+ class ni {
46
46
  constructor(i, r) {
47
47
  z(this, w, void 0);
48
48
  z(this, y, void 0);
49
- z(this, Rt, 0);
49
+ z(this, Tt, 0);
50
50
  z(this, tt, 0);
51
- z(this, bt, null);
52
- O(this, w, i), O(this, y, r), Tt.register(a(this, w));
51
+ z(this, gt, null);
52
+ O(this, w, i), O(this, y, r), Bt.register(a(this, w));
53
53
  }
54
54
  get size() {
55
- return a(this, Rt);
55
+ return a(this, Tt);
56
56
  }
57
57
  get position() {
58
58
  return a(this, tt);
59
59
  }
60
60
  destroy() {
61
- Tt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
61
+ Bt.unregister(a(this, w)), a(this, w).style.transform = "", this.mark(null);
62
62
  }
63
63
  setSize(i) {
64
64
  i ? (a(this, w).style.setProperty("--size", i + "px"), a(this, y).axisCSSProperty.current === "x" ? (a(this, w).style.width = i + "px", a(this, w).style.height = "") : (a(this, w).style.height = i + "px", a(this, w).style.width = "")) : (a(this, w).style.width = "", a(this, w).style.height = "", a(this, w).style.removeProperty("--size"));
65
65
  }
66
66
  resize() {
67
- O(this, Rt, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, tt, a(this, y).vertical ? Ie(a(this, w)) : Re(a(this, w))), O(this, tt, a(this, tt) - a(this, y).contentPosition);
67
+ O(this, Tt, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, tt, a(this, y).vertical ? Re(a(this, w)) : Te(a(this, w))), O(this, tt, a(this, tt) - a(this, y).contentPosition);
68
68
  }
69
69
  transform() {
70
70
  let i = 0;
71
71
  const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
72
- a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, tt) + a(this, Rt) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Tt.update(
72
+ a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, tt) + a(this, Tt) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Bt.update(
73
73
  a(this, w),
74
74
  a(this, y).axisCSSProperty.current,
75
75
  i
76
76
  );
77
- const h = a(this, y).currentScrollValue + i, n = a(this, tt) - a(this, y).viewportSize - r, p = a(this, tt) + a(this, Rt) + r, d = Ms(h, n, p);
77
+ const h = a(this, y).currentScrollValue + i, n = a(this, tt) - a(this, y).viewportSize - r, p = a(this, tt) + a(this, Tt) + r, d = Es(h, n, p);
78
78
  a(this, y).vertical ? a(this, w).style.transform = `translate3d(0px, ${d * -1}px, 0px)` : a(this, w).style.transform = `translate3d(${d * -1}px, 0px, 0px)`;
79
79
  }
80
80
  mark(i) {
81
- a(this, bt) !== i && (a(this, bt) && a(this, w).classList.remove(a(this, bt)), i && a(this, w).classList.add(i), O(this, bt, i), a(this, w).dispatchEvent(
81
+ a(this, gt) !== i && (a(this, gt) && a(this, w).classList.remove(a(this, gt)), i && a(this, w).classList.add(i), O(this, gt, i), a(this, w).dispatchEvent(
82
82
  new CustomEvent("sectionsChange", {
83
83
  composed: !0,
84
84
  detail: {
85
- mark: a(this, bt)
85
+ mark: a(this, gt)
86
86
  }
87
87
  })
88
88
  ));
89
89
  }
90
90
  }
91
- w = new WeakMap(), y = new WeakMap(), Rt = new WeakMap(), tt = new WeakMap(), bt = new WeakMap();
92
- const ni = cs({
91
+ w = new WeakMap(), y = new WeakMap(), Tt = new WeakMap(), tt = new WeakMap(), gt = new WeakMap();
92
+ const ai = us({
93
93
  ":host": {
94
94
  position: "relative",
95
95
  width: "100%",
@@ -122,58 +122,58 @@ const ni = cs({
122
122
  flexShrink: "0"
123
123
  }
124
124
  });
125
- let Ne = class extends Ls {
125
+ let Ue = class extends Vs {
126
126
  constructor() {
127
- super(), o(this, ie), o(this, At), o(this, Ge), o(this, qe), o(this, We), o(this, Me), o(this, Xe), o(this, xe), o(this, ot), o(this, je), o(this, S, null), o(this, Ht, new u(this, "--controls", !0)), o(this, A, new u(this, "--axis", "y")), o(this, st, new u(this, "--pages", 0, {
127
+ super(), o(this, re), o(this, It), o(this, qe), o(this, Ne), o(this, Me), o(this, Ee), o(this, Ye), o(this, Le), o(this, lt), o(this, ts), o(this, S, null), o(this, Gt, new c(this, "--controls", !0)), o(this, A, new c(this, "--axis", "y")), o(this, st, new c(this, "--direction", 0)), o(this, it, new c(this, "--pages", 0, {
128
128
  validate: (e) => Math.max(0, e - 1)
129
- })), o(this, X, new u(this, "--split", !1)), o(this, it, new u(this, "--sectional", !1)), o(this, Ct, new u(this, "--auto-size", !1)), o(this, yt, new u(
129
+ })), o(this, X, new c(this, "--split", !1)), o(this, rt, new c(this, "--sectional", !1)), o(this, yt, new c(this, "--auto-size", !1)), o(this, Pt, new c(
130
130
  this,
131
131
  "--wheel-max-delta",
132
132
  !1
133
- )), o(this, J, new u(
133
+ )), o(this, J, new c(
134
134
  this,
135
135
  "--sections-in-view",
136
136
  1
137
- )), o(this, R, new u(this, "--infinite", !1)), o(this, Gt, new u(this, "--damping", 20)), o(this, qt, new u(this, "--mass", 0)), o(this, Nt, new u(this, "--stiffness", 0)), o(this, Ut, new u(this, "--mouse-drag", !1)), o(this, ue, new u(
137
+ )), o(this, R, new c(this, "--infinite", !1)), o(this, qt, new c(this, "--damping", 20)), o(this, Nt, new c(this, "--mass", 0)), o(this, Ut, new c(this, "--stiffness", 0)), o(this, Kt, new c(this, "--mouse-drag", !1)), o(this, pe, new c(
138
138
  this,
139
139
  "--section-distance-scale",
140
140
  0.5
141
- )), o(this, at, new u(this, "--autoplay", 0)), o(this, Kt, new u(
141
+ )), o(this, ot, new c(this, "--autoplay", 0)), o(this, Zt, new c(
142
142
  this,
143
143
  "--autoplay-pause-duration",
144
144
  0
145
- )), o(this, Pt, new u(
145
+ )), o(this, kt, new c(
146
146
  this,
147
147
  "--autoplay-user-direction",
148
148
  !1
149
- )), o(this, Q, new u(this, "--classes", 0)), o(this, $t, new u(
149
+ )), o(this, Q, new c(this, "--classes", 0)), o(this, Ft, new c(
150
150
  this,
151
151
  "--current-index-start-offset",
152
152
  0
153
- )), o(this, dt, new u(
153
+ )), o(this, St, new c(
154
154
  this,
155
155
  "--current-index-end-offset",
156
156
  0
157
- )), o(this, Zt, new u(this, "--disabled", !1)), o(this, Jt, new u(this, "--hibernated", !1)), o(this, g, null), o(this, He, null), o(this, c, []), o(this, Pe, 0), o(this, ke, 0), o(this, M, 0), o(this, C, 0), o(this, T, 0), o(this, Y, null), o(this, Ot, null), o(this, St, null), o(this, F, null), o(this, P, new _t(0)), o(this, pe, 0), o(this, kt, 0), o(this, oe, !0), o(this, le, !0), o(this, B, () => {
157
+ )), o(this, Jt, new c(this, "--disabled", !1)), o(this, Qt, new c(this, "--hibernated", !1)), o(this, g, null), o(this, Ge, null), o(this, u, []), o(this, ke, 0), o(this, We, 0), o(this, M, 0), o(this, C, 0), o(this, T, 0), o(this, Y, null), o(this, At, null), o(this, vt, null), o(this, F, null), o(this, P, new Ct(0)), o(this, fe, 0), o(this, Wt, 0), o(this, le, !0), o(this, ce, !0), o(this, B, () => {
158
158
  t(this, S).unlistenAnimationFrame();
159
159
  const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
160
- if (_(this, Pe, this.vertical ? Ie(this) : Re(this)), _(this, ke, this.vertical ? Ie(t(this, g)) : Re(t(this, g))), _(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? _(this, T, bs.parse(
160
+ if (_(this, ke, this.vertical ? Re(this) : Te(this)), _(this, We, this.vertical ? Re(t(this, g)) : Te(t(this, g))), _(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? _(this, T, gs.parse(
161
161
  getComputedStyle(t(this, g)).rowGap
162
- )) : _(this, T, bs.parse(
162
+ )) : _(this, T, gs.parse(
163
163
  getComputedStyle(t(this, g)).columnGap
164
- )), t(this, Ct).current && t(this, c).length) {
164
+ )), t(this, yt).current && t(this, u).length) {
165
165
  const r = t(this, J).current, h = (t(this, M) - t(this, T) * (r - 1)) / r;
166
- t(this, c).forEach((n) => {
166
+ t(this, u).forEach((n) => {
167
167
  n.setSize(h);
168
168
  });
169
169
  } else
170
- t(this, c).forEach((r) => {
170
+ t(this, u).forEach((r) => {
171
171
  r.setSize();
172
172
  });
173
- if (t(this, c).forEach((r) => {
173
+ if (t(this, u).forEach((r) => {
174
174
  r.resize();
175
- }), t(this, st).current) {
176
- _(this, C, t(this, M) * t(this, st).current);
175
+ }), t(this, it).current) {
176
+ _(this, C, t(this, M) * t(this, it).current);
177
177
  const r = t(this, C) + t(this, M);
178
178
  this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
179
179
  } else
@@ -182,13 +182,13 @@ let Ne = class extends Ls {
182
182
  const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
183
183
  _(this, C, t(this, C) + h), t(this, S).max = t(this, C);
184
184
  }
185
- if (t(this, R).current && t(this, c).length) {
186
- const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
187
- _(this, kt, r.position + r.size + n);
185
+ if (t(this, R).current && t(this, u).length) {
186
+ const r = t(this, u)[t(this, u).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
187
+ _(this, Wt, r.position + r.size + n);
188
188
  } else
189
- _(this, kt, t(this, C));
190
- if (t(this, it).current && t(this, c).length) {
191
- const r = t(this, c)[i];
189
+ _(this, Wt, t(this, C));
190
+ if (t(this, rt).current && t(this, u).length) {
191
+ const r = t(this, u)[i];
192
192
  t(this, S).set(r.position, {
193
193
  equalize: !0
194
194
  });
@@ -196,49 +196,55 @@ let Ne = class extends Ls {
196
196
  t(this, S).set(e * t(this, C), {
197
197
  equalize: !0
198
198
  });
199
- }), o(this, Ue, () => {
199
+ }), o(this, Ke, () => {
200
200
  const e = this.currentScrollValue;
201
- if (_(this, pe, Math.max(0, e - t(this, C))), t(this, c).length) {
201
+ if (_(this, fe, Math.max(0, e - t(this, C))), t(this, u).length) {
202
202
  let i = 0;
203
- for (let r = 0; r < t(this, c).length; r++) {
204
- const h = t(this, c)[r];
203
+ for (let r = 0; r < t(this, u).length; r++) {
204
+ const h = t(this, u)[r];
205
205
  h.transform(), this.targetScrollValue + h.size / 2 >= h.position && (i = r);
206
206
  }
207
207
  t(this, P).current = i;
208
208
  } else
209
209
  this.vertical ? t(this, g).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, g).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
210
- Tt.update(
210
+ Bt.update(
211
211
  this,
212
212
  t(this, A).current,
213
213
  e
214
214
  );
215
- }), o(this, fe, (e, i) => {
216
- t(this, Ht).current && (t(this, F).pauseAndContinue(
217
- t(this, Kt).current
218
- ), t(this, Pt).current && (t(this, F).direction = Math.sign(i) || 1), t(this, Ee).call(this, e, i));
219
- }), o(this, Ee, (e, i) => {
220
- if (!(e === "drag" && !js.isMobile && !t(this, Ut).current))
221
- if (t(this, it).current) {
215
+ }), o(this, de, (e, i) => {
216
+ t(this, Gt).current && (t(this, F).pauseAndContinue(
217
+ t(this, Zt).current
218
+ ), t(this, kt).current && (t(this, F).direction = Math.sign(i) || 1), t(this, xe).call(this, e, i));
219
+ }), o(this, xe, (e, i) => {
220
+ if (t(this, st).current) {
221
+ if (t(this, st).current < 0 && i > 0)
222
+ return;
223
+ if (t(this, st).current > 0 && i < 0)
224
+ return;
225
+ }
226
+ if (!(e === "drag" && !ti.isMobile && !t(this, Kt).current))
227
+ if (t(this, rt).current) {
222
228
  const r = Math.sign(i);
223
- t(this, c).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
229
+ t(this, u).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
224
230
  } else
225
231
  t(this, S).shift(i);
226
- }), as && (_(this, S, new xs(0, {
232
+ }), os && (_(this, S, new Ls(0, {
227
233
  damping: 0.01,
228
234
  min: 0,
229
- order: Es.SCROLL
230
- })), this.openShadow(ni), ls(this, {
235
+ order: xs.SCROLL
236
+ })), this.openShadow(ai), cs(this, {
231
237
  tabIndex: 0,
232
238
  children: [
233
- Ze({
239
+ Je({
234
240
  class: "static",
235
- children: [Te({ name: "static" })]
241
+ children: [Be({ name: "static" })]
236
242
  }),
237
- Ze({
243
+ Je({
238
244
  class: "content",
239
- children: [Te({ ref: (e) => _(this, He, e) })],
245
+ children: [Be({ ref: (e) => _(this, Ge, e) })],
240
246
  style: {
241
- flexDirection: new Us(
247
+ flexDirection: new Ks(
242
248
  t(this, A),
243
249
  (e) => e === "x" ? "row" : "column"
244
250
  )
@@ -246,77 +252,80 @@ let Ne = class extends Ls {
246
252
  ref: (e) => _(this, g, e)
247
253
  })
248
254
  ]
249
- }), _(this, Y, new Zs({ element: t(this, g) })), t(this, Y).changeEvent.subscribe(
250
- t(this, fe)
251
- ), _(this, Ot, new Js({
255
+ }), _(this, Y, new Js({ element: t(this, g) })), t(this, Y).changeEvent.subscribe(
256
+ t(this, de)
257
+ ), _(this, At, new Qs({
252
258
  element: this
253
- })), t(this, Ot).changeEvent.subscribe(
254
- t(this, fe)
255
- ), _(this, St, new Qs({ element: t(this, g) })), t(this, St).changeEvent.subscribe(t(this, fe)), _(this, F, new Xs()), t(this, F).changeEvent.subscribe(t(this, Ee)), t(this, A).subscribe(({ current: e }) => {
256
- t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Y).axis = t(this, yt).current ? "max" : e, t(this, Ot).dimension = e === "x" ? "width" : "height", t(this, St).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
257
- }), t(this, yt).subscribe((e) => {
259
+ })), t(this, At).changeEvent.subscribe(
260
+ t(this, de)
261
+ ), _(this, vt, new Xs({ element: t(this, g) })), t(this, vt).changeEvent.subscribe(t(this, de)), _(this, F, new Ys()), t(this, F).changeEvent.subscribe(t(this, xe)), t(this, A).subscribe(({ current: e }) => {
262
+ t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, Y).axis = t(this, Pt).current ? "max" : e, t(this, At).dimension = e === "x" ? "width" : "height", t(this, vt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
263
+ }), t(this, Pt).subscribe((e) => {
258
264
  t(this, Y).axis = e.current ? "max" : t(this, A).current;
259
- }), t(this, st).subscribe(() => {
265
+ }), t(this, it).subscribe(() => {
260
266
  this.isConnected && t(this, B).call(this);
261
267
  }), t(this, X).subscribe(({ current: e }) => {
262
- this.isConnected && (e ? v(this, ie, we).call(this) : v(this, At, re).call(this));
263
- }), t(this, it).subscribe((e) => {
264
- t(this, Y).debounce = e.current, t(this, St).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? v(this, ie, we).call(this) : !e.current && e.previous && t(this, c).length && v(this, At, re).call(this));
265
- }), t(this, Ct).subscribe((e) => {
266
- this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ? v(this, ie, we).call(this) : !e.current && e.previous && t(this, c).length && v(this, At, re).call(this));
268
+ this.isConnected && (e ? v(this, re, _e).call(this) : v(this, It, he).call(this));
269
+ }), t(this, rt).subscribe((e) => {
270
+ t(this, Y).debounce = e.current, t(this, vt).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, u).length ? v(this, re, _e).call(this) : !e.current && e.previous && t(this, u).length && v(this, It, he).call(this));
271
+ }), t(this, yt).subscribe((e) => {
272
+ this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, u).length ? v(this, re, _e).call(this) : !e.current && e.previous && t(this, u).length && v(this, It, he).call(this));
267
273
  }), t(this, J).subscribe((e) => {
268
- this.isConnected && (t(this, B).call(this), v(this, ot, Ft).call(this));
274
+ this.isConnected && (t(this, B).call(this), v(this, lt, Dt).call(this));
269
275
  }), t(this, R).subscribe((e) => {
270
- e.current ? (this.isConnected && (t(this, c).length || (t(this, X).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (_(this, pe, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
271
- }), t(this, Gt).subscribe((e) => {
272
- t(this, S).damping = e.current;
276
+ e.current ? (this.isConnected && (t(this, u).length || (t(this, X).current = !0)), t(this, u).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (_(this, fe, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
273
277
  }), t(this, qt).subscribe((e) => {
274
- t(this, S).mass = e.current;
278
+ t(this, S).damping = e.current;
275
279
  }), t(this, Nt).subscribe((e) => {
280
+ t(this, S).mass = e.current;
281
+ }), t(this, Ut).subscribe((e) => {
276
282
  t(this, S).stiffness = e.current;
277
- }), t(this, Zt).subscribe((e) => {
278
- e.current && !e.previous ? v(this, Ge, ps).call(this) : !e.current && e.previous && v(this, qe, fs).call(this);
279
283
  }), t(this, Jt).subscribe((e) => {
280
- e.current && !e.previous ? v(this, We, Je).call(this) : !e.current && e.previous && v(this, Me, Qe).call(this);
281
- }), t(this, at).subscribe((e) => {
284
+ e.current && !e.previous ? v(this, qe, fs).call(this) : !e.current && e.previous && v(this, Ne, ds).call(this);
285
+ }), t(this, Qt).subscribe((e) => {
286
+ e.current && !e.previous ? v(this, Me, Qe).call(this) : !e.current && e.previous && v(this, Ee, Xe).call(this);
287
+ }), t(this, ot).subscribe((e) => {
282
288
  t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
283
- }), t(this, Pt).subscribe((e) => {
289
+ }), t(this, kt).subscribe((e) => {
284
290
  e.current || (t(this, F).direction = 1);
285
291
  }), t(this, Q).subscribe((e) => {
286
- this.isConnected && v(this, ot, Ft).call(this);
287
- }), t(this, $t).subscribe((e) => {
288
- this.isConnected && t(this, Q).current && v(this, ot, Ft).call(this);
289
- }), t(this, dt).subscribe((e) => {
290
- this.isConnected && t(this, Q).current && v(this, ot, Ft).call(this);
292
+ this.isConnected && v(this, lt, Dt).call(this);
293
+ }), t(this, Ft).subscribe((e) => {
294
+ this.isConnected && t(this, Q).current && v(this, lt, Dt).call(this);
295
+ }), t(this, St).subscribe((e) => {
296
+ this.isConnected && t(this, Q).current && v(this, lt, Dt).call(this);
291
297
  }), t(this, S).isRunning.subscribe((e) => {
292
298
  this.classList.toggle("active", e.current);
293
299
  }), t(this, P).subscribe((e) => {
294
- t(this, c).length && v(this, ot, Ft).call(this);
300
+ t(this, u).length && v(this, lt, Dt).call(this);
295
301
  }));
296
302
  }
297
303
  get damped() {
298
304
  return t(this, S);
299
305
  }
300
306
  get controlsCSSProperty() {
301
- return t(this, Ht);
307
+ return t(this, Gt);
302
308
  }
303
309
  get axisCSSProperty() {
304
310
  return t(this, A);
305
311
  }
306
- get pagesCSSProperty() {
312
+ get directionCSSProperty() {
307
313
  return t(this, st);
308
314
  }
315
+ get pagesCSSProperty() {
316
+ return t(this, it);
317
+ }
309
318
  get splitCSSProperty() {
310
319
  return t(this, X);
311
320
  }
312
321
  get sectionalCSSProperty() {
313
- return t(this, it);
322
+ return t(this, rt);
314
323
  }
315
324
  get autoSizeCSSProperty() {
316
- return t(this, Ct);
325
+ return t(this, yt);
317
326
  }
318
327
  get wheelMaxDeltaCSSProperty() {
319
- return t(this, yt);
328
+ return t(this, Pt);
320
329
  }
321
330
  get sectionsInViewCSSProperty() {
322
331
  return t(this, J);
@@ -325,61 +334,61 @@ let Ne = class extends Ls {
325
334
  return t(this, R);
326
335
  }
327
336
  get dampingCSSProperty() {
328
- return t(this, Gt);
337
+ return t(this, qt);
329
338
  }
330
339
  get massCSSProperty() {
331
- return t(this, qt);
340
+ return t(this, Nt);
332
341
  }
333
342
  get stiffnessCSSProperty() {
334
- return t(this, Nt);
343
+ return t(this, Ut);
335
344
  }
336
345
  get mouseDragCSSProperty() {
337
- return t(this, Ut);
346
+ return t(this, Kt);
338
347
  }
339
348
  get sectionDistanceScaleCSSProperty() {
340
- return t(this, ue);
349
+ return t(this, pe);
341
350
  }
342
351
  get autoplayCSSProperty() {
343
- return t(this, at);
352
+ return t(this, ot);
344
353
  }
345
354
  get autoplayPauseDurationCSSProperty() {
346
- return t(this, Kt);
355
+ return t(this, Zt);
347
356
  }
348
357
  get autoplayUserDirectionCSSProperty() {
349
- return t(this, Pt);
358
+ return t(this, kt);
350
359
  }
351
360
  get classesCSSProperty() {
352
361
  return t(this, Q);
353
362
  }
354
363
  get currentIndexStartOffsetCSSProperty() {
355
- return t(this, $t);
364
+ return t(this, Ft);
356
365
  }
357
366
  get currentIndexEndOffsetCSSProperty() {
358
- return t(this, dt);
367
+ return t(this, St);
359
368
  }
360
369
  get disabledCSSProperty() {
361
- return t(this, Zt);
370
+ return t(this, Jt);
362
371
  }
363
372
  get hibernatedCSSProperty() {
364
- return t(this, Jt);
373
+ return t(this, Qt);
365
374
  }
366
375
  get currentScrollValue() {
367
- return v(this, xe, Ye).call(this, "current");
376
+ return v(this, Le, je).call(this, "current");
368
377
  }
369
378
  get targetScrollValue() {
370
- return v(this, xe, Ye).call(this, "target");
379
+ return v(this, Le, je).call(this, "target");
371
380
  }
372
381
  get contentElement() {
373
382
  return t(this, g);
374
383
  }
375
384
  get sections() {
376
- return t(this, c);
385
+ return t(this, u);
377
386
  }
378
387
  get position() {
379
- return t(this, Pe);
388
+ return t(this, ke);
380
389
  }
381
390
  get contentPosition() {
382
- return t(this, ke);
391
+ return t(this, We);
383
392
  }
384
393
  get viewportSize() {
385
394
  return t(this, M);
@@ -394,16 +403,16 @@ let Ne = class extends Ls {
394
403
  return t(this, P);
395
404
  }
396
405
  get limit() {
397
- return t(this, c).length - t(this, J).current;
406
+ return t(this, u).length - t(this, J).current;
398
407
  }
399
408
  get distance() {
400
- return t(this, kt);
409
+ return t(this, Wt);
401
410
  }
402
411
  get infiniteDistance() {
403
- return t(this, R).current ? t(this, kt) + t(this, T) : t(this, kt);
412
+ return t(this, R).current ? t(this, Wt) + t(this, T) : t(this, Wt);
404
413
  }
405
414
  get overscroll() {
406
- return t(this, pe);
415
+ return t(this, fe);
407
416
  }
408
417
  get vertical() {
409
418
  return t(this, A).current === "y";
@@ -439,21 +448,21 @@ let Ne = class extends Ls {
439
448
  return this.currentProgress >= h && this.currentProgress <= n;
440
449
  }
441
450
  scrollToSection(e, i = "smooth") {
442
- if (!t(this, c).length)
451
+ if (!t(this, u).length)
443
452
  return;
444
453
  const r = t(this, P).current;
445
- v(this, Xe, zs).call(this, e);
446
- const h = t(this, c)[r], n = t(this, c)[t(this, P).current];
454
+ v(this, Ye, $s).call(this, e);
455
+ const h = t(this, u)[r], n = t(this, u)[t(this, P).current];
447
456
  if (h && n) {
448
457
  let p = 0;
449
- const d = v(this, je, $s).call(this), Ns = d ? this.targetScrollValue - d.position : 0;
450
- t(this, R).current ? t(this, P).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, T) : t(this, P).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, T)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - Ns, {
458
+ const d = v(this, ts, Fs).call(this), Us = d ? this.targetScrollValue - d.position : 0;
459
+ t(this, R).current ? t(this, P).current === 0 && r === t(this, u).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, T) : t(this, P).current === t(this, u).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, T)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - Us, {
451
460
  equalize: i === "instant"
452
461
  });
453
462
  }
454
463
  }
455
464
  shiftSections(e, i = "smooth") {
456
- t(this, c).length && this.scrollToSection(t(this, P).current + e, i);
465
+ t(this, u).length && this.scrollToSection(t(this, P).current + e, i);
457
466
  }
458
467
  setPosition(e, i = "smooth") {
459
468
  t(this, S).set(e, {
@@ -461,160 +470,161 @@ let Ne = class extends Ls {
461
470
  });
462
471
  }
463
472
  connectedCallback() {
464
- t(this, Ht).observe(), t(this, A).observe(), t(this, st).observe(), t(this, X).observe(), t(this, it).observe(), t(this, Ct).observe(), t(this, yt).observe(), t(this, J).observe(), t(this, R).observe(), t(this, Gt).observe(), t(this, qt).observe(), t(this, Nt).observe(), t(this, Ut).observe(), t(this, ue).observe(), t(this, at).observe(), t(this, at).observe(), t(this, Kt).observe(), t(this, Pt).observe(), t(this, Q).observe(), t(this, $t).observe(), t(this, dt).observe(), t(this, Zt).observe(), t(this, Jt).observe(), v(this, Me, Qe).call(this);
473
+ t(this, Gt).observe(), t(this, A).observe(), t(this, st).observe(), t(this, it).observe(), t(this, X).observe(), t(this, rt).observe(), t(this, yt).observe(), t(this, Pt).observe(), t(this, J).observe(), t(this, R).observe(), t(this, qt).observe(), t(this, Nt).observe(), t(this, Ut).observe(), t(this, Kt).observe(), t(this, pe).observe(), t(this, ot).observe(), t(this, ot).observe(), t(this, Zt).observe(), t(this, kt).observe(), t(this, Q).observe(), t(this, Ft).observe(), t(this, St).observe(), t(this, Jt).observe(), t(this, Qt).observe(), v(this, Ee, Xe).call(this);
465
474
  }
466
475
  disconnectedCallback() {
467
- t(this, Ht).unobserve(), t(this, A).unobserve(), t(this, st).unobserve(), t(this, X).unobserve(), t(this, it).unobserve(), t(this, Ct).unobserve(), t(this, yt).unobserve(), t(this, J).unobserve(), t(this, R).unobserve(), t(this, Gt).unobserve(), t(this, qt).unobserve(), t(this, Nt).unobserve(), t(this, Ut).unobserve(), t(this, ue).unobserve(), t(this, at).unobserve(), t(this, Kt).unobserve(), t(this, Pt).unobserve(), t(this, Q).unobserve(), t(this, $t).unobserve(), t(this, dt).unobserve(), t(this, Zt).unobserve(), t(this, Jt).unobserve(), v(this, We, Je).call(this);
476
+ t(this, Gt).unobserve(), t(this, A).unobserve(), t(this, st).unobserve(), t(this, it).unobserve(), t(this, X).unobserve(), t(this, rt).unobserve(), t(this, yt).unobserve(), t(this, Pt).unobserve(), t(this, J).unobserve(), t(this, R).unobserve(), t(this, qt).unobserve(), t(this, Nt).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), t(this, pe).unobserve(), t(this, ot).unobserve(), t(this, Zt).unobserve(), t(this, kt).unobserve(), t(this, Q).unobserve(), t(this, Ft).unobserve(), t(this, St).unobserve(), t(this, Jt).unobserve(), t(this, Qt).unobserve(), v(this, Me, Qe).call(this);
468
477
  }
469
478
  };
470
479
  S = /* @__PURE__ */ new WeakMap();
471
- Ht = /* @__PURE__ */ new WeakMap();
480
+ Gt = /* @__PURE__ */ new WeakMap();
472
481
  A = /* @__PURE__ */ new WeakMap();
473
482
  st = /* @__PURE__ */ new WeakMap();
474
- X = /* @__PURE__ */ new WeakMap();
475
483
  it = /* @__PURE__ */ new WeakMap();
476
- Ct = /* @__PURE__ */ new WeakMap();
484
+ X = /* @__PURE__ */ new WeakMap();
485
+ rt = /* @__PURE__ */ new WeakMap();
477
486
  yt = /* @__PURE__ */ new WeakMap();
487
+ Pt = /* @__PURE__ */ new WeakMap();
478
488
  J = /* @__PURE__ */ new WeakMap();
479
489
  R = /* @__PURE__ */ new WeakMap();
480
- Gt = /* @__PURE__ */ new WeakMap();
481
490
  qt = /* @__PURE__ */ new WeakMap();
482
491
  Nt = /* @__PURE__ */ new WeakMap();
483
492
  Ut = /* @__PURE__ */ new WeakMap();
484
- ue = /* @__PURE__ */ new WeakMap();
485
- at = /* @__PURE__ */ new WeakMap();
486
493
  Kt = /* @__PURE__ */ new WeakMap();
487
- Pt = /* @__PURE__ */ new WeakMap();
488
- Q = /* @__PURE__ */ new WeakMap();
489
- $t = /* @__PURE__ */ new WeakMap();
490
- dt = /* @__PURE__ */ new WeakMap();
494
+ pe = /* @__PURE__ */ new WeakMap();
495
+ ot = /* @__PURE__ */ new WeakMap();
491
496
  Zt = /* @__PURE__ */ new WeakMap();
497
+ kt = /* @__PURE__ */ new WeakMap();
498
+ Q = /* @__PURE__ */ new WeakMap();
499
+ Ft = /* @__PURE__ */ new WeakMap();
500
+ St = /* @__PURE__ */ new WeakMap();
492
501
  Jt = /* @__PURE__ */ new WeakMap();
502
+ Qt = /* @__PURE__ */ new WeakMap();
493
503
  g = /* @__PURE__ */ new WeakMap();
494
- He = /* @__PURE__ */ new WeakMap();
495
- c = /* @__PURE__ */ new WeakMap();
496
- Pe = /* @__PURE__ */ new WeakMap();
504
+ Ge = /* @__PURE__ */ new WeakMap();
505
+ u = /* @__PURE__ */ new WeakMap();
497
506
  ke = /* @__PURE__ */ new WeakMap();
507
+ We = /* @__PURE__ */ new WeakMap();
498
508
  M = /* @__PURE__ */ new WeakMap();
499
509
  C = /* @__PURE__ */ new WeakMap();
500
510
  T = /* @__PURE__ */ new WeakMap();
501
511
  Y = /* @__PURE__ */ new WeakMap();
502
- Ot = /* @__PURE__ */ new WeakMap();
503
- St = /* @__PURE__ */ new WeakMap();
512
+ At = /* @__PURE__ */ new WeakMap();
513
+ vt = /* @__PURE__ */ new WeakMap();
504
514
  F = /* @__PURE__ */ new WeakMap();
505
515
  P = /* @__PURE__ */ new WeakMap();
506
- pe = /* @__PURE__ */ new WeakMap();
507
- kt = /* @__PURE__ */ new WeakMap();
508
- oe = /* @__PURE__ */ new WeakMap();
516
+ fe = /* @__PURE__ */ new WeakMap();
517
+ Wt = /* @__PURE__ */ new WeakMap();
509
518
  le = /* @__PURE__ */ new WeakMap();
510
- ie = /* @__PURE__ */ new WeakSet();
511
- we = function() {
512
- v(this, At, re).call(this), t(this, He).assignedElements().forEach((e) => {
513
- e instanceof HTMLElement && t(this, c).push(new hi(e, this));
519
+ ce = /* @__PURE__ */ new WeakMap();
520
+ re = /* @__PURE__ */ new WeakSet();
521
+ _e = function() {
522
+ v(this, It, he).call(this), t(this, Ge).assignedElements().forEach((e) => {
523
+ e instanceof HTMLElement && t(this, u).push(new ni(e, this));
514
524
  }), t(this, g).style.transform = "", this.dispatchEvent(
515
525
  new CustomEvent("sectionsChange", {
516
526
  composed: !0
517
527
  })
518
- ), t(this, B).call(this), v(this, ot, Ft).call(this);
528
+ ), t(this, B).call(this), v(this, lt, Dt).call(this);
519
529
  };
520
- At = /* @__PURE__ */ new WeakSet();
521
- re = function() {
522
- t(this, c).forEach((e) => {
530
+ It = /* @__PURE__ */ new WeakSet();
531
+ he = function() {
532
+ t(this, u).forEach((e) => {
523
533
  e.destroy();
524
- }), _(this, c, []), t(this, P).current = 0, t(this, S).reset(), this.dispatchEvent(
534
+ }), _(this, u, []), t(this, P).current = 0, t(this, S).reset(), this.dispatchEvent(
525
535
  new CustomEvent("sectionsChange", {
526
536
  composed: !0
527
537
  })
528
538
  );
529
539
  };
530
- Ge = /* @__PURE__ */ new WeakSet();
531
- ps = function() {
532
- t(this, oe) || (_(this, oe, !0), t(this, S).unsubscribe(t(this, Ue)), t(this, S).unlistenAnimationFrame(), t(this, Y).disconnect(), t(this, Ot).disconnect(), t(this, St).disconnect(), t(this, F).disconnect());
533
- };
534
540
  qe = /* @__PURE__ */ new WeakSet();
535
541
  fs = function() {
536
- t(this, oe) && (_(this, oe, !1), t(this, S).subscribe(t(this, Ue)), t(this, Y).connect(), t(this, Ot).connect(), t(this, St).connect(), t(this, at).current && t(this, F).connect());
542
+ t(this, le) || (_(this, le, !0), t(this, S).unsubscribe(t(this, Ke)), t(this, S).unlistenAnimationFrame(), t(this, Y).disconnect(), t(this, At).disconnect(), t(this, vt).disconnect(), t(this, F).disconnect());
537
543
  };
538
- We = /* @__PURE__ */ new WeakSet();
539
- Je = function() {
540
- t(this, le) || (_(this, le, !0), ae.unsubscribe(t(this, B)), Be.unsubscribe(t(this, B)), t(this, S).reset(), v(this, Ge, ps).call(this), t(this, g).style.transform = "", t(this, X).current && v(this, At, re).call(this), Tt.unregister(this));
544
+ Ne = /* @__PURE__ */ new WeakSet();
545
+ ds = function() {
546
+ t(this, le) && (_(this, le, !1), t(this, S).subscribe(t(this, Ke)), t(this, Y).connect(), t(this, At).connect(), t(this, vt).connect(), t(this, ot).current && t(this, F).connect());
541
547
  };
542
548
  Me = /* @__PURE__ */ new WeakSet();
543
549
  Qe = function() {
544
- t(this, le) && (_(this, le, !1), t(this, X).current && v(this, ie, we).call(this), Tt.register(this), ae.subscribe(t(this, B), os.SCROLL), Be.subscribe(this, t(this, B)), v(this, qe, fs).call(this));
550
+ t(this, ce) || (_(this, ce, !0), oe.unsubscribe(t(this, B)), He.unsubscribe(t(this, B)), t(this, S).reset(), v(this, qe, fs).call(this), t(this, g).style.transform = "", t(this, X).current && v(this, It, he).call(this), Bt.unregister(this));
551
+ };
552
+ Ee = /* @__PURE__ */ new WeakSet();
553
+ Xe = function() {
554
+ t(this, ce) && (_(this, ce, !1), t(this, X).current && v(this, re, _e).call(this), Bt.register(this), oe.subscribe(t(this, B), ls.SCROLL), He.subscribe(this, t(this, B)), v(this, Ne, ds).call(this));
545
555
  };
546
556
  B = /* @__PURE__ */ new WeakMap();
547
- Ue = /* @__PURE__ */ new WeakMap();
548
- Xe = /* @__PURE__ */ new WeakSet();
549
- zs = function(e) {
550
- t(this, R).current ? (t(this, P).current = e % t(this, c).length, t(this, P).current = t(this, P).current < 0 ? t(this, c).length + t(this, P).current : t(this, P).current) : t(this, P).current = Ms(e, 0, this.limit);
557
+ Ke = /* @__PURE__ */ new WeakMap();
558
+ Ye = /* @__PURE__ */ new WeakSet();
559
+ $s = function(e) {
560
+ t(this, R).current ? (t(this, P).current = e % t(this, u).length, t(this, P).current = t(this, P).current < 0 ? t(this, u).length + t(this, P).current : t(this, P).current) : t(this, P).current = Es(e, 0, this.limit);
551
561
  };
552
- fe = /* @__PURE__ */ new WeakMap();
553
- Ee = /* @__PURE__ */ new WeakMap();
554
- xe = /* @__PURE__ */ new WeakSet();
555
- Ye = function(e = "current") {
556
- if (t(this, R).current && t(this, c).length) {
562
+ de = /* @__PURE__ */ new WeakMap();
563
+ xe = /* @__PURE__ */ new WeakMap();
564
+ Le = /* @__PURE__ */ new WeakSet();
565
+ je = function(e = "current") {
566
+ if (t(this, R).current && t(this, u).length) {
557
567
  const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, T));
558
568
  return i < 0 ? t(this, C) + i + t(this, M) + t(this, T) : i;
559
569
  } else
560
570
  return t(this, S)[e];
561
571
  };
562
- ot = /* @__PURE__ */ new WeakSet();
563
- Ft = function() {
564
- if (t(this, Q).current && t(this, c).length) {
565
- const e = t(this, P).current + t(this, $t).current;
572
+ lt = /* @__PURE__ */ new WeakSet();
573
+ Dt = function() {
574
+ if (t(this, Q).current && t(this, u).length) {
575
+ const e = t(this, P).current + t(this, Ft).current;
566
576
  e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end");
567
- const i = t(this, J).current + t(this, dt).current;
568
- t(this, c).forEach((r, h) => {
569
- const n = e - this.limit - 1 + t(this, dt).current, p = e + i, d = this.sections.length - p;
577
+ const i = t(this, J).current + t(this, St).current;
578
+ t(this, u).forEach((r, h) => {
579
+ const n = e - this.limit - 1 + t(this, St).current, p = e + i, d = this.sections.length - p;
570
580
  h >= e && h < p || h <= n ? r.mark("current") : h >= p && h < p + d / 2 || h <= n + i ? r.mark("next") : r.mark("previous");
571
581
  });
572
582
  }
573
583
  };
574
- je = /* @__PURE__ */ new WeakSet();
575
- $s = function() {
584
+ ts = /* @__PURE__ */ new WeakSet();
585
+ Fs = function() {
576
586
  let e = null, i = 1 / 0;
577
- for (let r = 0; r < t(this, c).length; r++) {
578
- const h = Math.abs(t(this, c)[r].position - this.targetScrollValue);
587
+ for (let r = 0; r < t(this, u).length; r++) {
588
+ const h = Math.abs(t(this, u)[r].position - this.targetScrollValue);
579
589
  h < i && (i = h, e = r);
580
590
  }
581
- return e !== null ? t(this, c)[e] : null;
591
+ return e !== null ? t(this, u)[e] : null;
582
592
  };
583
- Ne = ri([
584
- ce("e-scroll")
585
- ], Ne);
586
- var _e;
587
- class Ke extends Ls {
593
+ Ue = hi([
594
+ ue("e-scroll")
595
+ ], Ue);
596
+ var Ce;
597
+ class Ze extends Vs {
588
598
  constructor() {
589
599
  super(...arguments);
590
- z(this, _e, null);
600
+ z(this, Ce, null);
591
601
  }
592
602
  get scrollElement() {
593
- return a(this, _e);
603
+ return a(this, Ce);
594
604
  }
595
605
  connectedCallback() {
596
- const r = ei(this, Ne);
597
- r instanceof Ne ? O(this, _e, r) : console.error(this, "e-scroll not found");
606
+ const r = si(this, Ue);
607
+ r instanceof Ue ? O(this, Ce, r) : console.error(this, "e-scroll not found");
598
608
  }
599
609
  }
600
- _e = new WeakMap();
601
- var ai = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, li = (e, i, r, h) => {
602
- for (var n = h > 1 ? void 0 : h ? oi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
610
+ Ce = new WeakMap();
611
+ var oi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (e, i, r, h) => {
612
+ for (var n = h > 1 ? void 0 : h ? li(i, r) : i, p = e.length - 1, d; p >= 0; p--)
603
613
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
604
- return h && n && ai(i, r, n), n;
605
- }, Fs = (e, i, r) => {
614
+ return h && n && oi(i, r, n), n;
615
+ }, Ds = (e, i, r) => {
606
616
  if (!i.has(e))
607
617
  throw TypeError("Cannot " + r);
608
- }, f = (e, i, r) => (Fs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
618
+ }, f = (e, i, r) => (Ds(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
609
619
  if (i.has(e))
610
620
  throw TypeError("Cannot add the same private member more than once");
611
621
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
612
- }, wt = (e, i, r, h) => (Fs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), de, I, rt, ht, Se, ve, Qt, Le, Ve, ze;
613
- const ci = cs({
622
+ }, _t = (e, i, r, h) => (Ds(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), Se, I, ht, nt, ve, me, Xt, Ve, ze, $e;
623
+ const ui = us({
614
624
  ":host": {
615
625
  display: "inline-block",
616
626
  zIndex: "1",
617
- backgroundColor: gs.colorLight.var
627
+ backgroundColor: ws.colorLight.var
618
628
  },
619
629
  ':host([axis="y"])': {
620
630
  position: "absolute",
@@ -631,7 +641,7 @@ const ci = cs({
631
641
  height: "1vmin"
632
642
  },
633
643
  ".default-thumb": {
634
- backgroundColor: gs.colorDark.var,
644
+ backgroundColor: ws.colorDark.var,
635
645
  borderRadius: "1vmin",
636
646
  touchAction: "none"
637
647
  },
@@ -639,34 +649,34 @@ const ci = cs({
639
649
  touchAction: "none"
640
650
  }
641
651
  });
642
- let ws = class extends Ke {
652
+ let _s = class extends Ze {
643
653
  constructor() {
644
- super(), N(this, de, null), N(this, I, null), N(this, rt, !1), N(this, ht, 0), N(this, Se, 0), N(this, ve, 0), N(this, Qt, () => {
645
- wt(this, rt, this.offsetWidth > this.offsetHeight);
646
- const e = f(this, rt) ? this.offsetWidth : this.offsetHeight;
647
- wt(this, ht, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), wt(this, ht, Math.max(f(this, ht), 30)), f(this, rt) ? (f(this, I).style.width = f(this, ht) + "px", f(this, I).style.height = "100%") : (f(this, I).style.width = "100%", f(this, I).style.height = f(this, ht) + "px"), wt(this, Se, e - f(this, ht)), this.scrollElement.scrollSize || (this.style.display = "none");
648
- }), N(this, Le, () => {
649
- wt(this, ve, this.scrollElement.currentProgress * f(this, Se)), f(this, rt) ? f(this, I).style.transform = `translate3d(${f(this, ve)}px, 0px, 0px)` : f(this, I).style.transform = `translate3d(0px, ${f(this, ve)}px, 0px)`;
654
+ super(), N(this, Se, null), N(this, I, null), N(this, ht, !1), N(this, nt, 0), N(this, ve, 0), N(this, me, 0), N(this, Xt, () => {
655
+ _t(this, ht, this.offsetWidth > this.offsetHeight);
656
+ const e = f(this, ht) ? this.offsetWidth : this.offsetHeight;
657
+ _t(this, nt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), _t(this, nt, Math.max(f(this, nt), 30)), f(this, ht) ? (f(this, I).style.width = f(this, nt) + "px", f(this, I).style.height = "100%") : (f(this, I).style.width = "100%", f(this, I).style.height = f(this, nt) + "px"), _t(this, ve, e - f(this, nt)), this.scrollElement.scrollSize || (this.style.display = "none");
650
658
  }), N(this, Ve, () => {
659
+ _t(this, me, this.scrollElement.currentProgress * f(this, ve)), f(this, ht) ? f(this, I).style.transform = `translate3d(${f(this, me)}px, 0px, 0px)` : f(this, I).style.transform = `translate3d(0px, ${f(this, me)}px, 0px)`;
660
+ }), N(this, ze, () => {
651
661
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
652
- }), N(this, ze, (e) => {
653
- document.documentElement.classList.add("grabbing"), ti(
662
+ }), N(this, $e, (e) => {
663
+ document.documentElement.classList.add("grabbing"), ei(
654
664
  (h) => {
655
- const n = f(this, rt) ? h.x : h.y, p = this.scrollElement.distance / f(this, Se), d = (n - r) * p;
665
+ const n = f(this, ht) ? h.x : h.y, p = this.scrollElement.distance / f(this, ve), d = (n - r) * p;
656
666
  this.scrollElement.setPosition(i + d);
657
667
  },
658
668
  () => {
659
669
  document.documentElement.classList.remove("grabbing");
660
670
  }
661
671
  );
662
- const i = this.scrollElement.targetScrollValue, r = f(this, rt) ? e.x : e.y;
663
- }), as && (this.openShadow(ci), ls(this, {
672
+ const i = this.scrollElement.targetScrollValue, r = f(this, ht) ? e.x : e.y;
673
+ }), os && (this.openShadow(ui), cs(this, {
664
674
  slot: "static",
665
675
  "drag-dead-zone": "",
666
676
  children: [
667
- Te({
668
- ref: (e) => wt(this, de, e),
669
- children: Ze({ class: "default-thumb" })
677
+ Be({
678
+ ref: (e) => _t(this, Se, e),
679
+ children: Je({ class: "default-thumb" })
670
680
  })
671
681
  ]
672
682
  }));
@@ -676,203 +686,203 @@ let ws = class extends Ke {
676
686
  }
677
687
  connectedCallback() {
678
688
  super.connectedCallback();
679
- const e = f(this, de).assignedElements()[0] || f(this, de).firstElementChild;
680
- wt(this, I, e), f(this, I).addEventListener("pointerdown", f(this, ze)), ae.subscribe(f(this, Qt), os.SCROLL + 1), Be.subscribe(this, f(this, Qt)), this.scrollElement.onScroll(f(this, Le)), this.scrollElement.axisCSSProperty.subscribe(f(this, Ve));
689
+ const e = f(this, Se).assignedElements()[0] || f(this, Se).firstElementChild;
690
+ _t(this, I, e), f(this, I).addEventListener("pointerdown", f(this, $e)), oe.subscribe(f(this, Xt), ls.SCROLL + 1), He.subscribe(this, f(this, Xt)), this.scrollElement.onScroll(f(this, Ve)), this.scrollElement.axisCSSProperty.subscribe(f(this, ze));
681
691
  }
682
692
  disconnectedCallback() {
683
- f(this, I).removeEventListener("pointerdown", f(this, ze)), ae.unsubscribe(f(this, Qt)), Be.unsubscribe(f(this, Qt)), this.scrollElement.offScroll(f(this, Le)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Ve));
693
+ f(this, I).removeEventListener("pointerdown", f(this, $e)), oe.unsubscribe(f(this, Xt)), He.unsubscribe(f(this, Xt)), this.scrollElement.offScroll(f(this, Ve)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, ze));
684
694
  }
685
695
  };
686
- de = /* @__PURE__ */ new WeakMap();
696
+ Se = /* @__PURE__ */ new WeakMap();
687
697
  I = /* @__PURE__ */ new WeakMap();
688
- rt = /* @__PURE__ */ new WeakMap();
689
698
  ht = /* @__PURE__ */ new WeakMap();
690
- Se = /* @__PURE__ */ new WeakMap();
699
+ nt = /* @__PURE__ */ new WeakMap();
691
700
  ve = /* @__PURE__ */ new WeakMap();
692
- Qt = /* @__PURE__ */ new WeakMap();
693
- Le = /* @__PURE__ */ new WeakMap();
701
+ me = /* @__PURE__ */ new WeakMap();
702
+ Xt = /* @__PURE__ */ new WeakMap();
694
703
  Ve = /* @__PURE__ */ new WeakMap();
695
704
  ze = /* @__PURE__ */ new WeakMap();
696
- ws = li([
697
- ce("e-scrollbar")
698
- ], ws);
699
- const ui = cs({
705
+ $e = /* @__PURE__ */ new WeakMap();
706
+ _s = ci([
707
+ ue("e-scrollbar")
708
+ ], _s);
709
+ const pi = us({
700
710
  button: {
701
711
  all: "inherit"
702
712
  }
703
713
  });
704
- class Ds extends Ke {
714
+ class Os extends Ze {
705
715
  constructor() {
706
- super(), this.openShadow(ui), as && ls(this, {
716
+ super(), this.openShadow(pi), os && cs(this, {
707
717
  children: [
708
- Ys({
718
+ js({
709
719
  onClick: () => {
710
720
  this.handleClick();
711
721
  },
712
- children: [Te()]
722
+ children: [Be()]
713
723
  })
714
724
  ]
715
725
  });
716
726
  }
717
727
  }
718
- var pi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, di = (e, i, r, h) => {
719
- for (var n = h > 1 ? void 0 : h ? fi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
728
+ var fi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, Si = (e, i, r, h) => {
729
+ for (var n = h > 1 ? void 0 : h ? di(i, r) : i, p = e.length - 1, d; p >= 0; p--)
720
730
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
721
- return h && n && pi(i, r, n), n;
731
+ return h && n && fi(i, r, n), n;
722
732
  };
723
- let _s = class extends Ds {
733
+ let Cs = class extends Os {
724
734
  handleClick() {
725
735
  const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
726
736
  this.scrollElement.scrollToSection(parseInt(e || "0"), i);
727
737
  }
728
738
  };
729
- _s = di([
730
- ce("e-scroll-set-button")
731
- ], _s);
732
- var Si = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, mi = (e, i, r, h) => {
733
- for (var n = h > 1 ? void 0 : h ? vi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
739
+ Cs = Si([
740
+ ue("e-scroll-set-button")
741
+ ], Cs);
742
+ var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, bi = (e, i, r, h) => {
743
+ for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
734
744
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
735
- return h && n && Si(i, r, n), n;
745
+ return h && n && vi(i, r, n), n;
736
746
  };
737
- let Cs = class extends Ds {
747
+ let ys = class extends Os {
738
748
  handleClick() {
739
749
  const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
740
750
  this.scrollElement.shiftSections(parseInt(e || "1"), i);
741
751
  }
742
752
  };
743
- Cs = mi([
744
- ce("e-scroll-step-button")
745
- ], Cs);
746
- var bi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, wi = (e, i, r, h) => {
747
- for (var n = h > 1 ? void 0 : h ? gi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
753
+ ys = bi([
754
+ ue("e-scroll-step-button")
755
+ ], ys);
756
+ var gi = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, _i = (e, i, r, h) => {
757
+ for (var n = h > 1 ? void 0 : h ? wi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
748
758
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
749
- return h && n && bi(i, r, n), n;
750
- }, Os = (e, i, r) => {
759
+ return h && n && gi(i, r, n), n;
760
+ }, As = (e, i, r) => {
751
761
  if (!i.has(e))
752
762
  throw TypeError("Cannot " + r);
753
- }, Bt = (e, i, r) => (Os(e, i, "read from private field"), r ? r.call(e) : i.get(e)), ys = (e, i, r) => {
763
+ }, Ht = (e, i, r) => (As(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Ps = (e, i, r) => {
754
764
  if (i.has(e))
755
765
  throw TypeError("Cannot add the same private member more than once");
756
766
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
757
- }, Ps = (e, i, r, h) => (Os(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), Wt, me, et, gt, he, Ce, ye, ne;
758
- class _i {
767
+ }, ks = (e, i, r, h) => (As(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), Mt, be, et, wt, ne, ye, Pe, ae;
768
+ class Ci {
759
769
  constructor(i, r, h) {
760
770
  z(this, et, void 0);
761
- z(this, gt, void 0);
762
- z(this, he, void 0);
763
- z(this, Ce, void 0);
764
- z(this, ye, () => {
765
- a(this, gt).scrollToSection(a(this, he), a(this, Ce));
771
+ z(this, wt, void 0);
772
+ z(this, ne, void 0);
773
+ z(this, ye, void 0);
774
+ z(this, Pe, () => {
775
+ a(this, wt).scrollToSection(a(this, ne), a(this, ye));
766
776
  });
767
- z(this, ne, () => {
777
+ z(this, ae, () => {
768
778
  a(this, et).classList.toggle(
769
779
  "current",
770
- a(this, gt).counter.current === a(this, he)
780
+ a(this, wt).counter.current === a(this, ne)
771
781
  );
772
782
  });
773
- O(this, et, document.createElement("button")), O(this, gt, i), O(this, Ce, h), O(this, he, r), a(this, et).addEventListener("click", a(this, ye)), a(this, gt).counter.subscribe(a(this, ne)), a(this, ne).call(this);
783
+ O(this, et, document.createElement("button")), O(this, wt, i), O(this, ye, h), O(this, ne, r), a(this, et).addEventListener("click", a(this, Pe)), a(this, wt).counter.subscribe(a(this, ae)), a(this, ae).call(this);
774
784
  }
775
785
  get element() {
776
786
  return a(this, et);
777
787
  }
778
788
  destroy() {
779
- a(this, et).removeEventListener("click", a(this, ye)), a(this, gt).counter.unsubscribe(a(this, ne)), a(this, et).remove();
789
+ a(this, et).removeEventListener("click", a(this, Pe)), a(this, wt).counter.unsubscribe(a(this, ae)), a(this, et).remove();
780
790
  }
781
791
  }
782
- et = new WeakMap(), gt = new WeakMap(), he = new WeakMap(), Ce = new WeakMap(), ye = new WeakMap(), ne = new WeakMap();
783
- let ks = class extends Ke {
792
+ et = new WeakMap(), wt = new WeakMap(), ne = new WeakMap(), ye = new WeakMap(), Pe = new WeakMap(), ae = new WeakMap();
793
+ let Ws = class extends Ze {
784
794
  constructor() {
785
- super(...arguments), ys(this, Wt, []), ys(this, me, Vs(() => {
786
- Bt(this, Wt).forEach((e) => e.destroy()), Ps(this, Wt, []);
795
+ super(...arguments), Ps(this, Mt, []), Ps(this, be, zs(() => {
796
+ Ht(this, Mt).forEach((e) => e.destroy()), ks(this, Mt, []);
787
797
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
788
- const i = new _i(
798
+ const i = new Ci(
789
799
  this.scrollElement,
790
800
  e,
791
801
  this.getAttribute("behaviour") || "smooth"
792
802
  );
793
- this.appendChild(i.element), Bt(this, Wt).push(i);
803
+ this.appendChild(i.element), Ht(this, Mt).push(i);
794
804
  }
795
805
  }, 0));
796
806
  }
797
807
  connectedCallback() {
798
808
  super.connectedCallback(), this.scrollElement.addEventListener(
799
809
  "sectionsChange",
800
- Bt(this, me)
801
- ), Bt(this, me).call(this);
810
+ Ht(this, be)
811
+ ), Ht(this, be).call(this);
802
812
  }
803
813
  disconnectedCallback() {
804
814
  this.scrollElement.removeEventListener(
805
815
  "sectionsChange",
806
- Bt(this, me)
807
- ), Bt(this, Wt).forEach((e) => e.destroy()), Ps(this, Wt, []);
816
+ Ht(this, be)
817
+ ), Ht(this, Mt).forEach((e) => e.destroy()), ks(this, Mt, []);
808
818
  }
809
819
  };
810
- Wt = /* @__PURE__ */ new WeakMap();
811
- me = /* @__PURE__ */ new WeakMap();
812
- ks = wi([
813
- ce("e-scroll-bullet-buttons")
814
- ], ks);
815
- var Ci = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, Pi = (e, i, r, h) => {
816
- for (var n = h > 1 ? void 0 : h ? yi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
820
+ Mt = /* @__PURE__ */ new WeakMap();
821
+ be = /* @__PURE__ */ new WeakMap();
822
+ Ws = _i([
823
+ ue("e-scroll-bullet-buttons")
824
+ ], Ws);
825
+ var yi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, ki = (e, i, r, h) => {
826
+ for (var n = h > 1 ? void 0 : h ? Pi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
817
827
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
818
- return h && n && Ci(i, r, n), n;
819
- }, ds = (e, i, r) => {
828
+ return h && n && yi(i, r, n), n;
829
+ }, Ss = (e, i, r) => {
820
830
  if (!i.has(e))
821
831
  throw TypeError("Cannot " + r);
822
- }, s = (e, i, r) => (ds(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
832
+ }, s = (e, i, r) => (Ss(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
823
833
  if (i.has(e))
824
834
  throw TypeError("Cannot add the same private member more than once");
825
835
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
826
- }, b = (e, i, r, h) => (ds(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (ds(e, i, "access private method"), r), Xt, Yt, jt, te, Mt, Et, xt, Lt, D, H, G, q, Dt, x, lt, ct, ut, pt, ft, E, Z, K, vt, mt, j, $e, m, ee, se, Fe, L, Vt, $, V, U, be, It, k, ts, As, es, Is, ss, Rs, is, Ts, rs, Bs, hs, Hs, De, ge, nt, zt, Ss, Gs, vs, qs, Oe, ns, Ae;
827
- let Ws = class extends Ke {
836
+ }, b = (e, i, r, h) => (Ss(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (Ss(e, i, "access private method"), r), Yt, jt, te, ee, Et, xt, Lt, Vt, D, H, G, q, Ot, x, ct, ut, pt, ft, dt, E, Z, K, mt, bt, j, Fe, m, se, ie, De, L, zt, $, V, U, ge, Rt, k, es, Is, ss, Rs, is, Ts, rs, Bs, hs, Hs, ns, Gs, Oe, we, at, $t, vs, qs, ms, Ns, Ae, as, Ie;
837
+ let Ms = class extends Ze {
828
838
  constructor() {
829
- super(), l(this, ts), l(this, es), l(this, ss), l(this, is), l(this, rs), l(this, hs), l(this, nt), l(this, Ss), l(this, vs), l(this, Oe), l(this, Xt, new u(this, "--damping", 20)), l(this, Yt, new u(this, "--mass", 0)), l(this, jt, new u(this, "--stiffness", 0)), l(this, te, new u(this, "--target", "")), l(this, Mt, new u(this, "--disabled", !1)), l(this, Et, new u(
839
+ super(), l(this, es), l(this, ss), l(this, is), l(this, rs), l(this, hs), l(this, ns), l(this, at), l(this, vs), l(this, ms), l(this, Ae), l(this, Yt, new c(this, "--damping", 20)), l(this, jt, new c(this, "--mass", 0)), l(this, te, new c(this, "--stiffness", 0)), l(this, ee, new c(this, "--target", "")), l(this, Et, new c(this, "--disabled", !1)), l(this, xt, new c(
830
840
  this,
831
841
  "--distance-offset",
832
842
  0,
833
843
  { rawValueCheck: !1 }
834
- )), l(this, xt, new u(this, "--start-offset", 0, {
844
+ )), l(this, Lt, new c(this, "--start-offset", 0, {
835
845
  rawValueCheck: !1
836
- })), l(this, Lt, new u(
846
+ })), l(this, Vt, new c(
837
847
  this,
838
848
  "--capture-once",
839
849
  !1
840
- )), l(this, D, new u(this, "--captured", "")), l(this, H, new u(this, "--released", "")), l(this, G, new u(
850
+ )), l(this, D, new c(this, "--captured", "")), l(this, H, new c(this, "--released", "")), l(this, G, new c(
841
851
  this,
842
852
  "--captured-from-start",
843
853
  ""
844
- )), l(this, q, new u(
854
+ )), l(this, q, new c(
845
855
  this,
846
856
  "--captured-from-finish",
847
857
  ""
848
- )), l(this, Dt, new u(
858
+ )), l(this, Ot, new c(
849
859
  this,
850
860
  "--released-from-start",
851
861
  ""
852
- )), l(this, x, new u(
862
+ )), l(this, x, new c(
853
863
  this,
854
864
  "--released-from-finish",
855
865
  ""
856
- )), l(this, lt, new u(this, "--passed-var", "")), l(this, ct, new u(this, "--progress-var", "")), l(this, ut, new u(this, "--distance-var", "")), l(this, pt, new u(this, "--start-var", "")), l(this, ft, new u(this, "--finish-var", "")), l(this, E, new _t(!1)), l(this, Z, new _t(!1)), l(this, K, new _t(!1)), l(this, vt, new _t(!1)), l(this, mt, new _t(!1)), l(this, j, new _t(!1)), l(this, $e, []), l(this, m, this), l(this, ee, 0), l(this, se, 0), l(this, Fe, 0), l(this, L, new xs(0, { order: Es.SCROLL - 1, min: 0, max: 1 })), l(this, Vt, 0), l(this, $, 0), l(this, V, 0), l(this, U, 0), l(this, be, !1), l(this, It, !1), l(this, k, !0), l(this, De, () => {
857
- s(this, k) || (this.resize(), s(this, ge).call(this));
858
- }), l(this, ge, () => {
859
- !s(this, k) && s(this, be) && this.tick();
860
- }), l(this, Ae, Vs(() => {
861
- const e = Tt.getAll(this).reverse();
866
+ )), l(this, ct, new c(this, "--passed-var", "")), l(this, ut, new c(this, "--progress-var", "")), l(this, pt, new c(this, "--distance-var", "")), l(this, ft, new c(this, "--start-var", "")), l(this, dt, new c(this, "--finish-var", "")), l(this, E, new Ct(!1)), l(this, Z, new Ct(!1)), l(this, K, new Ct(!1)), l(this, mt, new Ct(!1)), l(this, bt, new Ct(!1)), l(this, j, new Ct(!1)), l(this, Fe, []), l(this, m, this), l(this, se, 0), l(this, ie, 0), l(this, De, 0), l(this, L, new Ls(0, { order: xs.SCROLL - 1, min: 0, max: 1 })), l(this, zt, 0), l(this, $, 0), l(this, V, 0), l(this, U, 0), l(this, ge, !1), l(this, Rt, !1), l(this, k, !0), l(this, Oe, () => {
867
+ s(this, k) || (this.resize(), s(this, we).call(this));
868
+ }), l(this, we, () => {
869
+ !s(this, k) && s(this, ge) && this.tick();
870
+ }), l(this, Ie, zs(() => {
871
+ const e = Bt.getAll(this).reverse();
862
872
  let i = 0;
863
873
  e.forEach((r, h) => {
864
874
  r.element === this.scrollElement && (i = h);
865
- }), b(this, $e, e.slice(i + 1));
875
+ }), b(this, Fe, e.slice(i + 1));
866
876
  }, 0));
867
877
  }
868
878
  get distanceOffsetCSSProperty() {
869
- return s(this, Et);
879
+ return s(this, xt);
870
880
  }
871
881
  get startOffsetCSSProperty() {
872
- return s(this, xt);
882
+ return s(this, Lt);
873
883
  }
874
884
  get captureOnceCSSProperty() {
875
- return s(this, Lt);
885
+ return s(this, Vt);
876
886
  }
877
887
  get capturedCSSProperty() {
878
888
  return s(this, D);
@@ -887,40 +897,40 @@ let Ws = class extends Ke {
887
897
  return s(this, q);
888
898
  }
889
899
  get releasedFromStartCSSProperty() {
890
- return s(this, Dt);
900
+ return s(this, Ot);
891
901
  }
892
902
  get releasedFromFinishCSSProperty() {
893
903
  return s(this, x);
894
904
  }
895
905
  get passedVarCSSProperty() {
896
- return s(this, lt);
906
+ return s(this, ct);
897
907
  }
898
908
  get progressVarCSSProperty() {
899
- return s(this, ct);
909
+ return s(this, ut);
900
910
  }
901
911
  get distanceVarCSSProperty() {
902
- return s(this, ut);
912
+ return s(this, pt);
903
913
  }
904
914
  get startVarCSSProperty() {
905
- return s(this, pt);
915
+ return s(this, ft);
906
916
  }
907
917
  get finishVarCSSProperty() {
908
- return s(this, ft);
918
+ return s(this, dt);
909
919
  }
910
920
  get disabledCSSProperty() {
911
- return s(this, Mt);
921
+ return s(this, Et);
912
922
  }
913
923
  get dampingCSSProperty() {
914
- return s(this, Xt);
924
+ return s(this, Yt);
915
925
  }
916
926
  get massCSSProperty() {
917
- return s(this, Yt);
927
+ return s(this, jt);
918
928
  }
919
929
  get stiffnessCSSProperty() {
920
- return s(this, jt);
930
+ return s(this, te);
921
931
  }
922
932
  get targetCSSProperty() {
923
- return s(this, te);
933
+ return s(this, ee);
924
934
  }
925
935
  get isCaptured() {
926
936
  return s(this, E);
@@ -932,25 +942,25 @@ let Ws = class extends Ke {
932
942
  return s(this, K);
933
943
  }
934
944
  get isReleasedFromStart() {
935
- return s(this, vt);
945
+ return s(this, mt);
936
946
  }
937
947
  get isCapturedFromFinish() {
938
- return s(this, mt);
948
+ return s(this, bt);
939
949
  }
940
950
  get isReleasedFromFinish() {
941
951
  return s(this, j);
942
952
  }
943
953
  get directionPosition() {
944
- return s(this, ee);
954
+ return s(this, se);
945
955
  }
946
956
  get directionSize() {
947
- return s(this, se);
957
+ return s(this, ie);
948
958
  }
949
959
  get passed() {
950
960
  return s(this, L);
951
961
  }
952
962
  get progress() {
953
- return s(this, Vt);
963
+ return s(this, zt);
954
964
  }
955
965
  get start() {
956
966
  return s(this, $);
@@ -962,86 +972,86 @@ let Ws = class extends Ke {
962
972
  return s(this, V);
963
973
  }
964
974
  get isCapturedOnce() {
965
- return s(this, It);
975
+ return s(this, Rt);
966
976
  }
967
977
  get isDisabled() {
968
978
  return s(this, k);
969
979
  }
970
980
  resize() {
971
- b(this, se, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), b(this, ee, this.scrollElement.vertical ? Ie(this, this.scrollElement) : Re(this, this.scrollElement)), b(this, $, this.getStart()), b(this, V, this.getDistance()), b(this, $, s(this, $) + s(this, xt).current), b(this, V, s(this, V) + s(this, Et).current), b(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, Z).current && (s(this, E).current = !0), this.setVar(s(this, pt).current, s(this, $)), this.setVar(s(this, ft).current, s(this, U)), this.setVar(s(this, ut).current, s(this, V)), s(this, L).max = s(this, V), b(this, be, !0);
981
+ b(this, ie, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), b(this, se, this.scrollElement.vertical ? Re(this, this.scrollElement) : Te(this, this.scrollElement)), b(this, $, this.getStart()), b(this, V, this.getDistance()), b(this, $, s(this, $) + s(this, Lt).current), b(this, V, s(this, V) + s(this, xt).current), b(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, Z).current && (s(this, E).current = !0), this.setVar(s(this, ft).current, s(this, $)), this.setVar(s(this, dt).current, s(this, U)), this.setVar(s(this, pt).current, s(this, V)), s(this, L).max = s(this, V), b(this, ge, !0);
972
982
  }
973
983
  tick() {
974
984
  let e = this.scrollElement.currentScrollValue;
975
- s(this, $e).forEach((r) => {
985
+ s(this, Fe).forEach((r) => {
976
986
  e += r.value;
977
987
  }), s(this, L).set(e - s(this, $));
978
988
  const i = Math.round(e);
979
- s(this, E).current && (i > s(this, $) ? s(this, K).current || W(this, ss, Rs).call(this) : s(this, K).current && !s(this, vt).current && W(this, rs, Bs).call(this), i < s(this, U) ? s(this, j).current && !s(this, mt).current && W(this, is, Ts).call(this) : s(this, K).current && !s(this, j).current && W(this, hs, Hs).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, ts, As).call(this) : s(this, E).current && (s(this, L).set(
980
- Ks(s(this, V) / 2, s(this, L).current, 0, s(this, V))
981
- ), W(this, es, Is).call(this)), s(this, It) && s(this, Lt).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), b(this, k, !0));
989
+ s(this, E).current && (i > s(this, $) ? s(this, K).current || W(this, is, Ts).call(this) : s(this, K).current && !s(this, mt).current && W(this, hs, Hs).call(this), i < s(this, U) ? s(this, j).current && !s(this, bt).current && W(this, rs, Bs).call(this) : s(this, K).current && !s(this, j).current && W(this, ns, Gs).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, es, Is).call(this) : s(this, E).current && (s(this, L).set(
990
+ Zs(s(this, V) / 2, s(this, L).current, 0, s(this, V))
991
+ ), W(this, ss, Rs).call(this)), s(this, Rt) && s(this, Vt).current && (s(this, D).current && s(this, m).classList.add(s(this, D).current), b(this, k, !0));
982
992
  }
983
993
  disable() {
984
- this.style.cssText = "", b(this, ee, 0), b(this, se, 0), s(this, L).reset(), b(this, Vt, 0), b(this, $, 0), b(this, V, 0), b(this, U, 0), b(this, be, !1), s(this, E).current = !1, s(this, Z).current = !1, s(this, K).current = !1, s(this, vt).current = !1, s(this, mt).current = !1, s(this, j).current = !1, b(this, It, !1), b(this, k, !0), W(this, Oe, ns).call(this);
994
+ this.style.cssText = "", b(this, se, 0), b(this, ie, 0), s(this, L).reset(), b(this, zt, 0), b(this, $, 0), b(this, V, 0), b(this, U, 0), b(this, ge, !1), s(this, E).current = !1, s(this, Z).current = !1, s(this, K).current = !1, s(this, mt).current = !1, s(this, bt).current = !1, s(this, j).current = !1, b(this, Rt, !1), b(this, k, !0), W(this, Ae, as).call(this);
985
995
  }
986
996
  enable() {
987
997
  b(this, k, !1);
988
998
  }
989
999
  connectedCallback() {
990
- super.connectedCallback(), s(this, Xt).observe(), s(this, Yt).observe(), s(this, jt).observe(), s(this, te).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, xt).observe(), s(this, Lt).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, Dt).observe(), s(this, x).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, pt).observe(), s(this, ft).observe();
1000
+ super.connectedCallback(), s(this, Yt).observe(), s(this, jt).observe(), s(this, te).observe(), s(this, ee).observe(), s(this, Et).observe(), s(this, xt).observe(), s(this, Lt).observe(), s(this, Vt).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, Ot).observe(), s(this, x).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, pt).observe(), s(this, ft).observe(), s(this, dt).observe();
991
1001
  let e = !1;
992
1002
  this.scrollElement.addEventListener(
993
1003
  "sectionsChange",
994
- s(this, Ae)
995
- ), s(this, Ae).call(this), s(this, Mt).current || this.enable(), s(this, Xt).subscribe((i) => {
1004
+ s(this, Ie)
1005
+ ), s(this, Ie).call(this), s(this, Et).current || this.enable(), s(this, Yt).subscribe((i) => {
996
1006
  s(this, L).damping = i.current;
997
- }), s(this, Yt).subscribe((i) => {
998
- s(this, L).mass = i.current;
999
1007
  }), s(this, jt).subscribe((i) => {
1000
- s(this, L).stiffness = i.current;
1008
+ s(this, L).mass = i.current;
1001
1009
  }), s(this, te).subscribe((i) => {
1002
- i.previous && W(this, Oe, ns).call(this), i.current ? i.current === "parent" ? b(this, m, this.parentElement || this) : b(this, m, document.querySelector(i.current) || this) : b(this, m, this);
1003
- }), s(this, Mt).subscribe((i) => {
1010
+ s(this, L).stiffness = i.current;
1011
+ }), s(this, ee).subscribe((i) => {
1012
+ i.previous && W(this, Ae, as).call(this), i.current ? i.current === "parent" ? b(this, m, this.parentElement || this) : b(this, m, document.querySelector(i.current) || this) : b(this, m, this);
1013
+ }), s(this, Et).subscribe((i) => {
1004
1014
  i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
1005
- }), s(this, xt).subscribe(() => {
1015
+ }), s(this, Lt).subscribe(() => {
1006
1016
  e && !s(this, k) && this.resize();
1007
- }), s(this, Et).subscribe(() => {
1017
+ }), s(this, xt).subscribe(() => {
1008
1018
  e && !s(this, k) && this.resize();
1009
1019
  }), s(this, D).subscribe((i) => {
1010
- W(this, nt, zt).call(this, i);
1020
+ W(this, at, $t).call(this, i);
1011
1021
  }), s(this, G).subscribe((i) => {
1012
- W(this, nt, zt).call(this, i);
1022
+ W(this, at, $t).call(this, i);
1013
1023
  }), s(this, q).subscribe((i) => {
1014
- W(this, nt, zt).call(this, i);
1024
+ W(this, at, $t).call(this, i);
1015
1025
  }), s(this, H).subscribe((i) => {
1016
- W(this, nt, zt).call(this, i);
1017
- }), s(this, Dt).subscribe((i) => {
1018
- W(this, nt, zt).call(this, i);
1026
+ W(this, at, $t).call(this, i);
1027
+ }), s(this, Ot).subscribe((i) => {
1028
+ W(this, at, $t).call(this, i);
1019
1029
  }), s(this, x).subscribe((i) => {
1020
- W(this, nt, zt).call(this, i);
1021
- }), s(this, Lt).subscribe((i) => {
1030
+ W(this, at, $t).call(this, i);
1031
+ }), s(this, Vt).subscribe((i) => {
1022
1032
  s(this, k) || !i.current && i.previous && (this.resize(), this.enable());
1023
- }), s(this, lt).subscribe((i) => {
1024
- s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
1025
1033
  }), s(this, ct).subscribe((i) => {
1026
- s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, Vt)));
1027
- }), s(this, pt).subscribe((i) => {
1028
- s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, $)));
1034
+ s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, this.passed.current));
1035
+ }), s(this, ut).subscribe((i) => {
1036
+ s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, zt)));
1029
1037
  }), s(this, ft).subscribe((i) => {
1038
+ s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, $)));
1039
+ }), s(this, dt).subscribe((i) => {
1030
1040
  s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, U)));
1031
- }), s(this, ut).subscribe((i) => {
1041
+ }), s(this, pt).subscribe((i) => {
1032
1042
  s(this, k) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
1033
1043
  }), s(this, L).subscribe((i) => {
1034
- b(this, Vt, s(this, L).current / s(this, V) || 0), this.setVar(
1035
- s(this, lt).current,
1044
+ b(this, zt, s(this, L).current / s(this, V) || 0), this.setVar(
1045
+ s(this, ct).current,
1036
1046
  s(this, L).current.toFixed(6)
1037
1047
  ), this.setVar(
1038
- s(this, ct).current,
1039
- s(this, Vt).toFixed(6)
1048
+ s(this, ut).current,
1049
+ s(this, zt).toFixed(6)
1040
1050
  );
1041
- }), ae.subscribe(s(this, De), os.SEGMENT), this.scrollElement.onScroll(s(this, ge)), e = !0;
1051
+ }), oe.subscribe(s(this, Oe), ls.SEGMENT), this.scrollElement.onScroll(s(this, we)), e = !0;
1042
1052
  }
1043
1053
  disconnectedCallback() {
1044
- ae.unsubscribe(s(this, De)), this.scrollElement.offScroll(s(this, ge)), s(this, Xt).close(), s(this, Yt).close(), s(this, jt).close(), s(this, te).close(), s(this, Mt).close(), s(this, Et).close(), s(this, xt).close(), s(this, Lt).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, Dt).close(), s(this, x).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, pt).close(), s(this, ft).close(), s(this, E).close(), s(this, Z).close(), s(this, K).close(), s(this, vt).close(), s(this, mt).close(), s(this, j).close(), this.disable();
1054
+ oe.unsubscribe(s(this, Oe)), this.scrollElement.offScroll(s(this, we)), s(this, Yt).close(), s(this, jt).close(), s(this, te).close(), s(this, ee).close(), s(this, Et).close(), s(this, xt).close(), s(this, Lt).close(), s(this, Vt).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, Ot).close(), s(this, x).close(), s(this, ct).close(), s(this, ut).close(), s(this, pt).close(), s(this, ft).close(), s(this, dt).close(), s(this, E).close(), s(this, Z).close(), s(this, K).close(), s(this, mt).close(), s(this, bt).close(), s(this, j).close(), this.disable();
1045
1055
  }
1046
1056
  removeVar(e) {
1047
1057
  e && s(this, m).style.removeProperty(`--${e}`);
@@ -1050,125 +1060,125 @@ let Ws = class extends Ke {
1050
1060
  e && s(this, m).style.setProperty(`--${e}`, i.toString());
1051
1061
  }
1052
1062
  getDistance() {
1053
- return s(this, se) + s(this, Fe);
1063
+ return s(this, ie) + s(this, De);
1054
1064
  }
1055
1065
  getStart() {
1056
- return s(this, ee) - s(this, Fe);
1066
+ return s(this, se) - s(this, De);
1057
1067
  }
1058
1068
  };
1059
- Xt = /* @__PURE__ */ new WeakMap();
1060
1069
  Yt = /* @__PURE__ */ new WeakMap();
1061
1070
  jt = /* @__PURE__ */ new WeakMap();
1062
1071
  te = /* @__PURE__ */ new WeakMap();
1063
- Mt = /* @__PURE__ */ new WeakMap();
1072
+ ee = /* @__PURE__ */ new WeakMap();
1064
1073
  Et = /* @__PURE__ */ new WeakMap();
1065
1074
  xt = /* @__PURE__ */ new WeakMap();
1066
1075
  Lt = /* @__PURE__ */ new WeakMap();
1076
+ Vt = /* @__PURE__ */ new WeakMap();
1067
1077
  D = /* @__PURE__ */ new WeakMap();
1068
1078
  H = /* @__PURE__ */ new WeakMap();
1069
1079
  G = /* @__PURE__ */ new WeakMap();
1070
1080
  q = /* @__PURE__ */ new WeakMap();
1071
- Dt = /* @__PURE__ */ new WeakMap();
1081
+ Ot = /* @__PURE__ */ new WeakMap();
1072
1082
  x = /* @__PURE__ */ new WeakMap();
1073
- lt = /* @__PURE__ */ new WeakMap();
1074
1083
  ct = /* @__PURE__ */ new WeakMap();
1075
1084
  ut = /* @__PURE__ */ new WeakMap();
1076
1085
  pt = /* @__PURE__ */ new WeakMap();
1077
1086
  ft = /* @__PURE__ */ new WeakMap();
1087
+ dt = /* @__PURE__ */ new WeakMap();
1078
1088
  E = /* @__PURE__ */ new WeakMap();
1079
1089
  Z = /* @__PURE__ */ new WeakMap();
1080
1090
  K = /* @__PURE__ */ new WeakMap();
1081
- vt = /* @__PURE__ */ new WeakMap();
1082
1091
  mt = /* @__PURE__ */ new WeakMap();
1092
+ bt = /* @__PURE__ */ new WeakMap();
1083
1093
  j = /* @__PURE__ */ new WeakMap();
1084
- $e = /* @__PURE__ */ new WeakMap();
1094
+ Fe = /* @__PURE__ */ new WeakMap();
1085
1095
  m = /* @__PURE__ */ new WeakMap();
1086
- ee = /* @__PURE__ */ new WeakMap();
1087
1096
  se = /* @__PURE__ */ new WeakMap();
1088
- Fe = /* @__PURE__ */ new WeakMap();
1097
+ ie = /* @__PURE__ */ new WeakMap();
1098
+ De = /* @__PURE__ */ new WeakMap();
1089
1099
  L = /* @__PURE__ */ new WeakMap();
1090
- Vt = /* @__PURE__ */ new WeakMap();
1100
+ zt = /* @__PURE__ */ new WeakMap();
1091
1101
  $ = /* @__PURE__ */ new WeakMap();
1092
1102
  V = /* @__PURE__ */ new WeakMap();
1093
1103
  U = /* @__PURE__ */ new WeakMap();
1094
- be = /* @__PURE__ */ new WeakMap();
1095
- It = /* @__PURE__ */ new WeakMap();
1104
+ ge = /* @__PURE__ */ new WeakMap();
1105
+ Rt = /* @__PURE__ */ new WeakMap();
1096
1106
  k = /* @__PURE__ */ new WeakMap();
1097
- ts = /* @__PURE__ */ new WeakSet();
1098
- As = function() {
1099
- s(this, E).current = !0, s(this, Z).current = !1, b(this, It, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, x).current && s(this, m).classList.remove(
1107
+ es = /* @__PURE__ */ new WeakSet();
1108
+ Is = function() {
1109
+ s(this, E).current = !0, s(this, Z).current = !1, b(this, Rt, !0), s(this, H).current && s(this, m).classList.remove(s(this, H).current), s(this, x).current && s(this, m).classList.remove(
1100
1110
  s(this, x).current
1101
1111
  ), s(this, x).current && s(this, m).classList.remove(
1102
1112
  s(this, x).current
1103
1113
  ), s(this, D).current && s(this, m).classList.add(s(this, D).current);
1104
1114
  };
1105
- es = /* @__PURE__ */ new WeakSet();
1106
- Is = function() {
1107
- s(this, Z).current = !0, s(this, E).current = !1, b(this, It, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1115
+ ss = /* @__PURE__ */ new WeakSet();
1116
+ Rs = function() {
1117
+ s(this, Z).current = !0, s(this, E).current = !1, b(this, Rt, !0), s(this, D).current && s(this, m).classList.remove(s(this, D).current), s(this, G).current && s(this, m).classList.remove(
1108
1118
  s(this, G).current
1109
1119
  ), s(this, q).current && s(this, m).classList.remove(
1110
1120
  s(this, q).current
1111
1121
  ), s(this, H).current && s(this, m).classList.add(s(this, H).current);
1112
1122
  };
1113
- ss = /* @__PURE__ */ new WeakSet();
1114
- Rs = function() {
1115
- s(this, E).current = !0, s(this, K).current = !0, s(this, vt).current = !1, s(this, G).current && s(this, m).classList.add(
1116
- s(this, G).current
1117
- );
1118
- };
1119
1123
  is = /* @__PURE__ */ new WeakSet();
1120
1124
  Ts = function() {
1121
- s(this, E).current = !0, s(this, mt).current = !0, s(this, j).current = !1, s(this, q).current && s(this, m).classList.add(
1122
- s(this, q).current
1125
+ s(this, E).current = !0, s(this, K).current = !0, s(this, mt).current = !1, s(this, G).current && s(this, m).classList.add(
1126
+ s(this, G).current
1123
1127
  );
1124
1128
  };
1125
1129
  rs = /* @__PURE__ */ new WeakSet();
1126
1130
  Bs = function() {
1127
- s(this, Z).current = !0, s(this, vt).current = !0, s(this, K).current = !1, s(this, x).current && s(this, m).classList.add(
1128
- s(this, x).current
1131
+ s(this, E).current = !0, s(this, bt).current = !0, s(this, j).current = !1, s(this, q).current && s(this, m).classList.add(
1132
+ s(this, q).current
1129
1133
  );
1130
1134
  };
1131
1135
  hs = /* @__PURE__ */ new WeakSet();
1132
1136
  Hs = function() {
1133
- s(this, Z).current = !0, s(this, j).current = !0, s(this, mt).current = !1, s(this, x).current && s(this, m).classList.add(
1137
+ s(this, Z).current = !0, s(this, mt).current = !0, s(this, K).current = !1, s(this, x).current && s(this, m).classList.add(
1134
1138
  s(this, x).current
1135
1139
  );
1136
1140
  };
1137
- De = /* @__PURE__ */ new WeakMap();
1138
- ge = /* @__PURE__ */ new WeakMap();
1139
- nt = /* @__PURE__ */ new WeakSet();
1140
- zt = function(e) {
1141
+ ns = /* @__PURE__ */ new WeakSet();
1142
+ Gs = function() {
1143
+ s(this, Z).current = !0, s(this, j).current = !0, s(this, bt).current = !1, s(this, x).current && s(this, m).classList.add(
1144
+ s(this, x).current
1145
+ );
1146
+ };
1147
+ Oe = /* @__PURE__ */ new WeakMap();
1148
+ we = /* @__PURE__ */ new WeakMap();
1149
+ at = /* @__PURE__ */ new WeakSet();
1150
+ $t = function(e) {
1141
1151
  if (s(this, k)) {
1142
1152
  e.previous && s(this, m).classList.remove(e.previous), e.current && s(this, m).classList.remove(e.current);
1143
1153
  return;
1144
1154
  }
1145
1155
  e.current && s(this, E).current ? (e.previous && s(this, m).classList.remove(e.previous), s(this, m).classList.add(e.current)) : !e.current && e.previous && s(this, m).classList.remove(e.previous);
1146
1156
  };
1147
- Ss = /* @__PURE__ */ new WeakSet();
1148
- Gs = function(...e) {
1157
+ vs = /* @__PURE__ */ new WeakSet();
1158
+ qs = function(...e) {
1149
1159
  e.forEach((i) => {
1150
1160
  i && s(this, m).classList.remove(i);
1151
1161
  });
1152
1162
  };
1153
- vs = /* @__PURE__ */ new WeakSet();
1154
- qs = function(...e) {
1163
+ ms = /* @__PURE__ */ new WeakSet();
1164
+ Ns = function(...e) {
1155
1165
  e.forEach((i) => {
1156
1166
  i && s(this, m).style.removeProperty(`--${i}`);
1157
1167
  });
1158
1168
  };
1159
- Oe = /* @__PURE__ */ new WeakSet();
1160
- ns = function() {
1161
- W(this, Ss, Gs).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, Dt).current, s(this, x).current), W(this, vs, qs).call(this, s(this, lt).current, s(this, ct).current, s(this, ut).current, s(this, pt).current, s(this, ft).current);
1169
+ Ae = /* @__PURE__ */ new WeakSet();
1170
+ as = function() {
1171
+ W(this, vs, qs).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, Ot).current, s(this, x).current), W(this, ms, Ns).call(this, s(this, ct).current, s(this, ut).current, s(this, pt).current, s(this, ft).current, s(this, dt).current);
1162
1172
  };
1163
- Ae = /* @__PURE__ */ new WeakMap();
1164
- Ws = Pi([
1165
- ce("e-scroll-segment")
1166
- ], Ws);
1173
+ Ie = /* @__PURE__ */ new WeakMap();
1174
+ Ms = ki([
1175
+ ue("e-scroll-segment")
1176
+ ], Ms);
1167
1177
  export {
1168
- ks as ScrollBulletButtonsElement,
1169
- Ne as ScrollElement,
1170
- Ws as ScrollSegmentElement,
1171
- _s as ScrollSetButtonElement,
1172
- Cs as ScrollStepButtonElement,
1173
- ws as ScrollbarElement
1178
+ Ws as ScrollBulletButtonsElement,
1179
+ Ue as ScrollElement,
1180
+ Ms as ScrollSegmentElement,
1181
+ Cs as ScrollSetButtonElement,
1182
+ ys as ScrollStepButtonElement,
1183
+ _s as ScrollbarElement
1174
1184
  };