aptechka 0.5.21 → 0.5.22

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,48 +1,48 @@
1
- var Ss = (e, i, r) => {
1
+ var vs = (e, i, r) => {
2
2
  if (!i.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var a = (e, i, r) => (Ss(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
5
+ var a = (e, i, r) => (vs(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) => (Ss(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
9
+ }, O = (e, i, r, h) => (vs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
10
10
  import { S as gt } from "../Store-Cd-E5W1z.js";
11
- import { D as qs } from "../Derived-DH-ouLBq.js";
12
- import { i as hs } from "../browser-0zX67oeU.js";
13
- import { a as Oe, g as Ae } from "../layout-HoBT_Da2.js";
14
- import { c as Ps, s as Ns } from "../math-BOBiC4TN.js";
11
+ import { D as Ns } from "../Derived-DH-ouLBq.js";
12
+ import { i as ns } from "../browser-0zX67oeU.js";
13
+ import { a as Ae, g as Re } from "../layout-HoBT_Da2.js";
14
+ import { c as Ws, s as Us } from "../math-BOBiC4TN.js";
15
15
  import "../path-data-polyfill-DgeDWYeI.js";
16
16
  import "../ticker/index.js";
17
- import { TICK_ORDER as Ws, RESIZE_ORDER as ns } from "../order/index.js";
18
- import { D as Ms } from "../Damped-BJgyFENo.js";
19
- import { WheelControls as Us, KeyboardControls as Ks, DragControls as Zs, AutoplayControls as Js } from "../controls/index.js";
20
- import { CustomElement as Es, define as oe } from "../custom-element/index.js";
21
- import { windowResizer as he } from "../window-resizer/index.js";
17
+ import { TICK_ORDER as Ms, RESIZE_ORDER as as } from "../order/index.js";
18
+ import { D as Es } from "../Damped-BJgyFENo.js";
19
+ import { WheelControls as Ks, KeyboardControls as Zs, DragControls as Js, AutoplayControls as Qs } from "../controls/index.js";
20
+ import { CustomElement as xs, define as le } from "../custom-element/index.js";
21
+ import { windowResizer as ne } from "../window-resizer/index.js";
22
22
  import { scrollEntries as Rt } from "../scroll-entries/index.js";
23
- import { e as as, D as Ue, ay as Re, p as Qs } from "../tags-BoPv9fDr.js";
24
- import { c as os } from "../createStylesheet-KMRQhSa-.js";
25
- import { cssUnitParser as vs } from "../css-unit-parser/index.js";
23
+ import { e as os, D as Ke, ay as Te, p as Xs } from "../tags-BoPv9fDr.js";
24
+ import { c as ls } from "../createStylesheet-KMRQhSa-.js";
25
+ import { cssUnitParser as ms } from "../css-unit-parser/index.js";
26
26
  import { CSSProperty as u } from "../css-property/index.js";
27
- import { d as Xs } from "../Viewport-CCDNxaDg.js";
28
- import { elementResizer as Te } from "../element-resizer/index.js";
29
- import { s as Ys } from "../gestures-D2Fdra_G.js";
30
- import { aptechkaTheme as ms } from "../theme/index.js";
31
- import { f as js } from "../dom-0S_WDL4g.js";
32
- import { d as xs } from "../function-C10DGppn.js";
33
- var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, si = (e, i, r, h) => {
34
- for (var n = h > 1 ? void 0 : h ? ei(i, r) : i, p = e.length - 1, d; p >= 0; p--)
27
+ import { d as Ys } from "../Viewport-CCDNxaDg.js";
28
+ import { elementResizer as Ie } from "../element-resizer/index.js";
29
+ import { s as js } from "../gestures-D2Fdra_G.js";
30
+ import { aptechkaTheme as bs } from "../theme/index.js";
31
+ import { f as ti } from "../dom-0S_WDL4g.js";
32
+ import { d as Ls } from "../function-C10DGppn.js";
33
+ var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ii = (e, i, r, h) => {
34
+ for (var n = h > 1 ? void 0 : h ? si(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 && ti(i, r, n), n;
37
- }, ls = (e, i, r) => {
36
+ return h && n && ei(i, r, n), n;
37
+ }, cs = (e, i, r) => {
38
38
  if (!i.has(e))
39
39
  throw TypeError("Cannot " + r);
40
- }, t = (e, i, r) => (ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
40
+ }, t = (e, i, r) => (cs(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) => (ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), b = (e, i, r) => (ls(e, i, "access private method"), r), S, A, et, Q, st, wt, _t, K, T, It, Bt, Ht, Gt, le, nt, qt, Ct, at, Vt, Nt, Ut, g, Ie, c, Ce, ye, M, C, I, X, Ft, ft, F, k, ce, yt, ne, ae, te, be, Dt, se, Be, cs, He, us, ke, Ke, Pe, Ze, B, qe, Je, Ls, ue, We, Me, Qe, zt, ee, Xe, Vs, w, y, At, j, vt;
45
- class ii {
44
+ }, _ = (e, i, r, h) => (cs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), b = (e, i, r) => (cs(e, i, "access private method"), r), S, It, A, et, Q, st, wt, _t, K, T, Bt, Ht, Gt, qt, ce, nt, Nt, Ct, at, Vt, Ut, Kt, g, Be, c, ye, ke, M, C, I, X, Ft, ft, F, k, ue, yt, ae, oe, ee, ge, Dt, ie, He, us, Ge, ps, Pe, Ze, We, Je, B, Ne, Qe, Vs, pe, Me, Ee, Xe, zt, se, Ye, zs, w, y, At, j, vt;
45
+ class ri {
46
46
  constructor(i, r) {
47
47
  z(this, w, void 0);
48
48
  z(this, y, void 0);
@@ -64,7 +64,7 @@ class ii {
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, At, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, j, a(this, y).vertical ? Oe(a(this, w)) : Ae(a(this, w))), O(this, j, a(this, j) - a(this, y).contentPosition);
67
+ O(this, At, a(this, y).vertical ? a(this, w).offsetHeight : a(this, w).offsetWidth), O(this, j, a(this, y).vertical ? Ae(a(this, w)) : Re(a(this, w))), O(this, j, a(this, j) - a(this, y).contentPosition);
68
68
  }
69
69
  transform() {
70
70
  let i = 0;
@@ -74,7 +74,7 @@ class ii {
74
74
  a(this, y).axisCSSProperty.current,
75
75
  i
76
76
  );
77
- const h = a(this, y).currentScrollValue + i, n = a(this, j) - a(this, y).viewportSize - r, p = a(this, j) + a(this, At) + r, d = Ps(h, n, p);
77
+ const h = a(this, y).currentScrollValue + i, n = a(this, j) - a(this, y).viewportSize - r, p = a(this, j) + a(this, At) + r, d = Ws(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) {
@@ -89,7 +89,7 @@ class ii {
89
89
  }
90
90
  }
91
91
  w = new WeakMap(), y = new WeakMap(), At = new WeakMap(), j = new WeakMap(), vt = new WeakMap();
92
- const ri = os({
92
+ const hi = ls({
93
93
  ":host": {
94
94
  position: "relative",
95
95
  width: "100%",
@@ -122,9 +122,9 @@ const ri = os({
122
122
  flexShrink: "0"
123
123
  }
124
124
  });
125
- let Ge = class extends Es {
125
+ let qe = class extends xs {
126
126
  constructor() {
127
- super(), o(this, te), o(this, Dt), o(this, Be), o(this, He), o(this, ke), o(this, Pe), o(this, Je), o(this, Me), o(this, zt), o(this, Xe), o(this, S, null), o(this, A, new u(this, "--axis", "y")), o(this, et, new u(this, "--pages", 0, {
127
+ super(), o(this, ee), o(this, Dt), o(this, He), o(this, Ge), o(this, Pe), o(this, We), o(this, Qe), o(this, Ee), o(this, zt), o(this, Ye), o(this, S, null), o(this, It, new u(this, "--controls", !0)), o(this, A, new u(this, "--axis", "y")), o(this, et, new u(this, "--pages", 0, {
128
128
  validate: (e) => Math.max(0, e - 1)
129
129
  })), o(this, Q, new u(this, "--split", !1)), o(this, st, new u(this, "--sectional", !1)), o(this, wt, new u(this, "--auto-size", !1)), o(this, _t, new u(
130
130
  this,
@@ -134,11 +134,11 @@ let Ge = class extends Es {
134
134
  this,
135
135
  "--sections-in-view",
136
136
  1
137
- )), o(this, T, new u(this, "--infinite", !1)), o(this, It, new u(this, "--damping", 20)), o(this, Bt, new u(this, "--mass", 0)), o(this, Ht, new u(this, "--stiffness", 0)), o(this, Gt, new u(this, "--mouse-drag", !1)), o(this, le, new u(
137
+ )), o(this, T, new u(this, "--infinite", !1)), o(this, Bt, new u(this, "--damping", 20)), o(this, Ht, new u(this, "--mass", 0)), o(this, Gt, new u(this, "--stiffness", 0)), o(this, qt, new u(this, "--mouse-drag", !1)), o(this, ce, new u(
138
138
  this,
139
139
  "--section-distance-scale",
140
140
  0.5
141
- )), o(this, nt, new u(this, "--autoplay", 0)), o(this, qt, new u(
141
+ )), o(this, nt, new u(this, "--autoplay", 0)), o(this, Nt, new u(
142
142
  this,
143
143
  "--autoplay-pause-duration",
144
144
  0
@@ -150,12 +150,12 @@ let Ge = class extends Es {
150
150
  this,
151
151
  "--current-index-offset",
152
152
  0
153
- )), o(this, Nt, new u(this, "--disabled", !1)), o(this, Ut, new u(this, "--hibernated", !1)), o(this, g, null), o(this, Ie, null), o(this, c, []), o(this, Ce, 0), o(this, ye, 0), o(this, M, 0), o(this, C, 0), o(this, I, 0), o(this, X, null), o(this, Ft, null), o(this, ft, null), o(this, F, null), o(this, k, new gt(0)), o(this, ce, 0), o(this, yt, 0), o(this, ne, !0), o(this, ae, !0), o(this, B, () => {
153
+ )), o(this, Ut, new u(this, "--disabled", !1)), o(this, Kt, new u(this, "--hibernated", !1)), o(this, g, null), o(this, Be, null), o(this, c, []), o(this, ye, 0), o(this, ke, 0), o(this, M, 0), o(this, C, 0), o(this, I, 0), o(this, X, null), o(this, Ft, null), o(this, ft, null), o(this, F, null), o(this, k, new gt(0)), o(this, ue, 0), o(this, yt, 0), o(this, ae, !0), o(this, oe, !0), o(this, B, () => {
154
154
  t(this, S).unlistenAnimationFrame();
155
155
  const e = this.currentScrollValue / t(this, C) || 0, i = t(this, k).current;
156
- if (_(this, Ce, this.vertical ? Oe(this) : Ae(this)), _(this, ye, this.vertical ? Oe(t(this, g)) : Ae(t(this, g))), _(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? _(this, I, vs.parse(
156
+ if (_(this, ye, this.vertical ? Ae(this) : Re(this)), _(this, ke, this.vertical ? Ae(t(this, g)) : Re(t(this, g))), _(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? _(this, I, ms.parse(
157
157
  getComputedStyle(t(this, g)).rowGap
158
- )) : _(this, I, vs.parse(
158
+ )) : _(this, I, ms.parse(
159
159
  getComputedStyle(t(this, g)).columnGap
160
160
  )), t(this, wt).current && t(this, c).length) {
161
161
  const r = t(this, K).current, h = (t(this, M) - t(this, I) * (r - 1)) / r;
@@ -192,9 +192,9 @@ let Ge = class extends Es {
192
192
  t(this, S).set(e * t(this, C), {
193
193
  equalize: !0
194
194
  });
195
- }), o(this, qe, () => {
195
+ }), o(this, Ne, () => {
196
196
  const e = this.currentScrollValue;
197
- if (_(this, ce, Math.max(0, e - t(this, C))), t(this, c).length) {
197
+ if (_(this, ue, Math.max(0, e - t(this, C))), t(this, c).length) {
198
198
  let i = 0;
199
199
  for (let r = 0; r < t(this, c).length; r++) {
200
200
  const h = t(this, c)[r];
@@ -208,33 +208,33 @@ let Ge = class extends Es {
208
208
  t(this, A).current,
209
209
  e
210
210
  );
211
- }), o(this, ue, (e, i) => {
212
- t(this, F).pauseAndContinue(
213
- t(this, qt).current
214
- ), t(this, Ct).current && (t(this, F).direction = Math.sign(i) || 1), t(this, We).call(this, e, i);
215
- }), o(this, We, (e, i) => {
216
- if (!(e === "drag" && !Xs.isMobile && !t(this, Gt).current))
211
+ }), o(this, pe, (e, i) => {
212
+ t(this, It).current && (t(this, F).pauseAndContinue(
213
+ t(this, Nt).current
214
+ ), t(this, Ct).current && (t(this, F).direction = Math.sign(i) || 1), t(this, Me).call(this, e, i));
215
+ }), o(this, Me, (e, i) => {
216
+ if (!(e === "drag" && !Ys.isMobile && !t(this, qt).current))
217
217
  if (t(this, st).current) {
218
218
  const r = Math.sign(i);
219
219
  t(this, c).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
220
220
  } else
221
221
  t(this, S).shift(i);
222
- }), hs && (_(this, S, new Ms(0, {
222
+ }), ns && (_(this, S, new Es(0, {
223
223
  damping: 0.01,
224
224
  min: 0,
225
- order: Ws.SCROLL
226
- })), this.openShadow(ri), as(this, {
225
+ order: Ms.SCROLL
226
+ })), this.openShadow(hi), os(this, {
227
227
  tabIndex: 0,
228
228
  children: [
229
- Ue({
229
+ Ke({
230
230
  class: "static",
231
- children: [Re({ name: "static" })]
231
+ children: [Te({ name: "static" })]
232
232
  }),
233
- Ue({
233
+ Ke({
234
234
  class: "content",
235
- children: [Re({ ref: (e) => _(this, Ie, e) })],
235
+ children: [Te({ ref: (e) => _(this, Be, e) })],
236
236
  style: {
237
- flexDirection: new qs(
237
+ flexDirection: new Ns(
238
238
  t(this, A),
239
239
  (e) => e === "x" ? "row" : "column"
240
240
  )
@@ -242,55 +242,58 @@ let Ge = class extends Es {
242
242
  ref: (e) => _(this, g, e)
243
243
  })
244
244
  ]
245
- }), _(this, X, new Us({ element: t(this, g) })), t(this, X).changeEvent.subscribe(
246
- t(this, ue)
247
- ), _(this, Ft, new Ks({
245
+ }), _(this, X, new Ks({ element: t(this, g) })), t(this, X).changeEvent.subscribe(
246
+ t(this, pe)
247
+ ), _(this, Ft, new Zs({
248
248
  element: this
249
249
  })), t(this, Ft).changeEvent.subscribe(
250
- t(this, ue)
251
- ), _(this, ft, new Zs({ element: t(this, g) })), t(this, ft).changeEvent.subscribe(t(this, ue)), _(this, F, new Js()), t(this, F).changeEvent.subscribe(t(this, We)), t(this, A).subscribe(({ current: e }) => {
250
+ t(this, pe)
251
+ ), _(this, ft, new Js({ element: t(this, g) })), t(this, ft).changeEvent.subscribe(t(this, pe)), _(this, F, new Qs()), t(this, F).changeEvent.subscribe(t(this, Me)), t(this, A).subscribe(({ current: e }) => {
252
252
  t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, X).axis = t(this, _t).current ? "max" : e, t(this, Ft).dimension = e === "x" ? "width" : "height", t(this, ft).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
253
253
  }), t(this, _t).subscribe((e) => {
254
254
  t(this, X).axis = e.current ? "max" : t(this, A).current;
255
255
  }), t(this, et).subscribe(() => {
256
256
  this.isConnected && t(this, B).call(this);
257
257
  }), t(this, Q).subscribe(({ current: e }) => {
258
- this.isConnected && (e ? b(this, te, be).call(this) : b(this, Dt, se).call(this));
258
+ this.isConnected && (e ? b(this, ee, ge).call(this) : b(this, Dt, ie).call(this));
259
259
  }), t(this, st).subscribe((e) => {
260
- t(this, X).debounce = e.current, t(this, ft).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? b(this, te, be).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, se).call(this));
260
+ t(this, X).debounce = e.current, t(this, ft).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? b(this, ee, ge).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, ie).call(this));
261
261
  }), t(this, wt).subscribe((e) => {
262
- this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ? b(this, te, be).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, se).call(this));
262
+ this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ? b(this, ee, ge).call(this) : !e.current && e.previous && t(this, c).length && b(this, Dt, ie).call(this));
263
263
  }), t(this, K).subscribe((e) => {
264
- this.isConnected && (t(this, B).call(this), b(this, zt, ee).call(this));
264
+ this.isConnected && (t(this, B).call(this), b(this, zt, se).call(this));
265
265
  }), t(this, T).subscribe((e) => {
266
- e.current ? (this.isConnected && (t(this, c).length || (t(this, Q).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (_(this, ce, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
267
- }), t(this, It).subscribe((e) => {
268
- t(this, S).damping = e.current;
266
+ e.current ? (this.isConnected && (t(this, c).length || (t(this, Q).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (_(this, ue, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
269
267
  }), t(this, Bt).subscribe((e) => {
270
- t(this, S).mass = e.current;
268
+ t(this, S).damping = e.current;
271
269
  }), t(this, Ht).subscribe((e) => {
270
+ t(this, S).mass = e.current;
271
+ }), t(this, Gt).subscribe((e) => {
272
272
  t(this, S).stiffness = e.current;
273
- }), t(this, Nt).subscribe((e) => {
274
- e.current && !e.previous ? b(this, Be, cs).call(this) : !e.current && e.previous && b(this, He, us).call(this);
275
273
  }), t(this, Ut).subscribe((e) => {
276
- e.current && !e.previous ? b(this, ke, Ke).call(this) : !e.current && e.previous && b(this, Pe, Ze).call(this);
274
+ e.current && !e.previous ? b(this, He, us).call(this) : !e.current && e.previous && b(this, Ge, ps).call(this);
275
+ }), t(this, Kt).subscribe((e) => {
276
+ e.current && !e.previous ? b(this, Pe, Ze).call(this) : !e.current && e.previous && b(this, We, Je).call(this);
277
277
  }), t(this, nt).subscribe((e) => {
278
278
  t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
279
279
  }), t(this, Ct).subscribe((e) => {
280
280
  e.current || (t(this, F).direction = 1);
281
281
  }), t(this, at).subscribe((e) => {
282
- this.isConnected && b(this, zt, ee).call(this);
282
+ this.isConnected && b(this, zt, se).call(this);
283
283
  }), t(this, Vt).subscribe((e) => {
284
- this.isConnected && t(this, at).current && b(this, zt, ee).call(this);
284
+ this.isConnected && t(this, at).current && b(this, zt, se).call(this);
285
285
  }), t(this, S).isRunning.subscribe((e) => {
286
286
  this.classList.toggle("active", e.current);
287
287
  }), t(this, k).subscribe((e) => {
288
- t(this, c).length && b(this, zt, ee).call(this);
288
+ t(this, c).length && b(this, zt, se).call(this);
289
289
  }));
290
290
  }
291
291
  get damped() {
292
292
  return t(this, S);
293
293
  }
294
+ get controlsCSSProperty() {
295
+ return t(this, It);
296
+ }
294
297
  get axisCSSProperty() {
295
298
  return t(this, A);
296
299
  }
@@ -316,25 +319,25 @@ let Ge = class extends Es {
316
319
  return t(this, T);
317
320
  }
318
321
  get dampingCSSProperty() {
319
- return t(this, It);
322
+ return t(this, Bt);
320
323
  }
321
324
  get massCSSProperty() {
322
- return t(this, Bt);
325
+ return t(this, Ht);
323
326
  }
324
327
  get stiffnessCSSProperty() {
325
- return t(this, Ht);
328
+ return t(this, Gt);
326
329
  }
327
330
  get mouseDragCSSProperty() {
328
- return t(this, Gt);
331
+ return t(this, qt);
329
332
  }
330
333
  get sectionDistanceScaleCSSProperty() {
331
- return t(this, le);
334
+ return t(this, ce);
332
335
  }
333
336
  get autoplayCSSProperty() {
334
337
  return t(this, nt);
335
338
  }
336
339
  get autoplayPauseDurationCSSProperty() {
337
- return t(this, qt);
340
+ return t(this, Nt);
338
341
  }
339
342
  get autoplayUserDirectionCSSProperty() {
340
343
  return t(this, Ct);
@@ -346,16 +349,16 @@ let Ge = class extends Es {
346
349
  return t(this, Vt);
347
350
  }
348
351
  get disabledCSSProperty() {
349
- return t(this, Nt);
352
+ return t(this, Ut);
350
353
  }
351
354
  get hibernatedCSSProperty() {
352
- return t(this, Ut);
355
+ return t(this, Kt);
353
356
  }
354
357
  get currentScrollValue() {
355
- return b(this, Me, Qe).call(this, "current");
358
+ return b(this, Ee, Xe).call(this, "current");
356
359
  }
357
360
  get targetScrollValue() {
358
- return b(this, Me, Qe).call(this, "target");
361
+ return b(this, Ee, Xe).call(this, "target");
359
362
  }
360
363
  get contentElement() {
361
364
  return t(this, g);
@@ -364,10 +367,10 @@ let Ge = class extends Es {
364
367
  return t(this, c);
365
368
  }
366
369
  get position() {
367
- return t(this, Ce);
370
+ return t(this, ye);
368
371
  }
369
372
  get contentPosition() {
370
- return t(this, ye);
373
+ return t(this, ke);
371
374
  }
372
375
  get viewportSize() {
373
376
  return t(this, M);
@@ -391,7 +394,7 @@ let Ge = class extends Es {
391
394
  return t(this, T).current ? t(this, yt) + t(this, I) : t(this, yt);
392
395
  }
393
396
  get overscroll() {
394
- return t(this, ce);
397
+ return t(this, ue);
395
398
  }
396
399
  get vertical() {
397
400
  return t(this, A).current === "y";
@@ -430,12 +433,12 @@ let Ge = class extends Es {
430
433
  if (!t(this, c).length)
431
434
  return;
432
435
  const r = t(this, k).current;
433
- b(this, Je, Ls).call(this, e);
436
+ b(this, Qe, Vs).call(this, e);
434
437
  const h = t(this, c)[r], n = t(this, c)[t(this, k).current];
435
438
  if (h && n) {
436
439
  let p = 0;
437
- const d = b(this, Xe, Vs).call(this), Gs = d ? this.targetScrollValue - d.position : 0;
438
- t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - Gs, {
440
+ const d = b(this, Ye, zs).call(this), qs = d ? this.targetScrollValue - d.position : 0;
441
+ t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - qs, {
439
442
  equalize: i === "instant"
440
443
  });
441
444
  }
@@ -449,13 +452,14 @@ let Ge = class extends Es {
449
452
  });
450
453
  }
451
454
  connectedCallback() {
452
- t(this, A).observe(), t(this, et).observe(), t(this, Q).observe(), t(this, st).observe(), t(this, wt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, T).observe(), t(this, It).observe(), t(this, Bt).observe(), t(this, Ht).observe(), t(this, Gt).observe(), t(this, le).observe(), t(this, nt).observe(), t(this, nt).observe(), t(this, qt).observe(), t(this, Ct).observe(), t(this, at).observe(), t(this, Vt).observe(), t(this, Nt).observe(), t(this, Ut).observe(), b(this, Pe, Ze).call(this);
455
+ t(this, It).observe(), t(this, A).observe(), t(this, et).observe(), t(this, Q).observe(), t(this, st).observe(), t(this, wt).observe(), t(this, _t).observe(), t(this, K).observe(), t(this, T).observe(), t(this, Bt).observe(), t(this, Ht).observe(), t(this, Gt).observe(), t(this, qt).observe(), t(this, ce).observe(), t(this, nt).observe(), t(this, nt).observe(), t(this, Nt).observe(), t(this, Ct).observe(), t(this, at).observe(), t(this, Vt).observe(), t(this, Ut).observe(), t(this, Kt).observe(), b(this, We, Je).call(this);
453
456
  }
454
457
  disconnectedCallback() {
455
- t(this, A).unobserve(), t(this, et).unobserve(), t(this, Q).unobserve(), t(this, st).unobserve(), t(this, wt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, T).unobserve(), t(this, It).unobserve(), t(this, Bt).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), t(this, le).unobserve(), t(this, nt).unobserve(), t(this, qt).unobserve(), t(this, Ct).unobserve(), t(this, at).unobserve(), t(this, Vt).unobserve(), t(this, Nt).unobserve(), t(this, Ut).unobserve(), b(this, ke, Ke).call(this);
458
+ t(this, It).unobserve(), t(this, A).unobserve(), t(this, et).unobserve(), t(this, Q).unobserve(), t(this, st).unobserve(), t(this, wt).unobserve(), t(this, _t).unobserve(), t(this, K).unobserve(), t(this, T).unobserve(), t(this, Bt).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), t(this, qt).unobserve(), t(this, ce).unobserve(), t(this, nt).unobserve(), t(this, Nt).unobserve(), t(this, Ct).unobserve(), t(this, at).unobserve(), t(this, Vt).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), b(this, Pe, Ze).call(this);
456
459
  }
457
460
  };
458
461
  S = /* @__PURE__ */ new WeakMap();
462
+ It = /* @__PURE__ */ new WeakMap();
459
463
  A = /* @__PURE__ */ new WeakMap();
460
464
  et = /* @__PURE__ */ new WeakMap();
461
465
  Q = /* @__PURE__ */ new WeakMap();
@@ -464,23 +468,23 @@ wt = /* @__PURE__ */ new WeakMap();
464
468
  _t = /* @__PURE__ */ new WeakMap();
465
469
  K = /* @__PURE__ */ new WeakMap();
466
470
  T = /* @__PURE__ */ new WeakMap();
467
- It = /* @__PURE__ */ new WeakMap();
468
471
  Bt = /* @__PURE__ */ new WeakMap();
469
472
  Ht = /* @__PURE__ */ new WeakMap();
470
473
  Gt = /* @__PURE__ */ new WeakMap();
471
- le = /* @__PURE__ */ new WeakMap();
472
- nt = /* @__PURE__ */ new WeakMap();
473
474
  qt = /* @__PURE__ */ new WeakMap();
475
+ ce = /* @__PURE__ */ new WeakMap();
476
+ nt = /* @__PURE__ */ new WeakMap();
477
+ Nt = /* @__PURE__ */ new WeakMap();
474
478
  Ct = /* @__PURE__ */ new WeakMap();
475
479
  at = /* @__PURE__ */ new WeakMap();
476
480
  Vt = /* @__PURE__ */ new WeakMap();
477
- Nt = /* @__PURE__ */ new WeakMap();
478
481
  Ut = /* @__PURE__ */ new WeakMap();
482
+ Kt = /* @__PURE__ */ new WeakMap();
479
483
  g = /* @__PURE__ */ new WeakMap();
480
- Ie = /* @__PURE__ */ new WeakMap();
484
+ Be = /* @__PURE__ */ new WeakMap();
481
485
  c = /* @__PURE__ */ new WeakMap();
482
- Ce = /* @__PURE__ */ new WeakMap();
483
486
  ye = /* @__PURE__ */ new WeakMap();
487
+ ke = /* @__PURE__ */ new WeakMap();
484
488
  M = /* @__PURE__ */ new WeakMap();
485
489
  C = /* @__PURE__ */ new WeakMap();
486
490
  I = /* @__PURE__ */ new WeakMap();
@@ -489,22 +493,22 @@ Ft = /* @__PURE__ */ new WeakMap();
489
493
  ft = /* @__PURE__ */ new WeakMap();
490
494
  F = /* @__PURE__ */ new WeakMap();
491
495
  k = /* @__PURE__ */ new WeakMap();
492
- ce = /* @__PURE__ */ new WeakMap();
496
+ ue = /* @__PURE__ */ new WeakMap();
493
497
  yt = /* @__PURE__ */ new WeakMap();
494
- ne = /* @__PURE__ */ new WeakMap();
495
498
  ae = /* @__PURE__ */ new WeakMap();
496
- te = /* @__PURE__ */ new WeakSet();
497
- be = function() {
498
- b(this, Dt, se).call(this), t(this, Ie).assignedElements().forEach((e) => {
499
- e instanceof HTMLElement && t(this, c).push(new ii(e, this));
499
+ oe = /* @__PURE__ */ new WeakMap();
500
+ ee = /* @__PURE__ */ new WeakSet();
501
+ ge = function() {
502
+ b(this, Dt, ie).call(this), t(this, Be).assignedElements().forEach((e) => {
503
+ e instanceof HTMLElement && t(this, c).push(new ri(e, this));
500
504
  }), t(this, g).style.transform = "", this.dispatchEvent(
501
505
  new CustomEvent("sectionsChange", {
502
506
  composed: !0
503
507
  })
504
- ), t(this, B).call(this), b(this, zt, ee).call(this);
508
+ ), t(this, B).call(this), b(this, zt, se).call(this);
505
509
  };
506
510
  Dt = /* @__PURE__ */ new WeakSet();
507
- se = function() {
511
+ ie = function() {
508
512
  t(this, c).forEach((e) => {
509
513
  e.destroy();
510
514
  }), _(this, c, []), t(this, k).current = 0, t(this, S).reset(), this.dispatchEvent(
@@ -513,32 +517,32 @@ se = function() {
513
517
  })
514
518
  );
515
519
  };
516
- Be = /* @__PURE__ */ new WeakSet();
517
- cs = function() {
518
- t(this, ne) || (_(this, ne, !0), t(this, S).unsubscribe(t(this, qe)), t(this, S).unlistenAnimationFrame(), t(this, X).disconnect(), t(this, Ft).disconnect(), t(this, ft).disconnect(), t(this, F).disconnect());
519
- };
520
520
  He = /* @__PURE__ */ new WeakSet();
521
521
  us = function() {
522
- t(this, ne) && (_(this, ne, !1), t(this, S).subscribe(t(this, qe)), t(this, X).connect(), t(this, Ft).connect(), t(this, ft).connect(), t(this, nt).current && t(this, F).connect());
522
+ t(this, ae) || (_(this, ae, !0), t(this, S).unsubscribe(t(this, Ne)), t(this, S).unlistenAnimationFrame(), t(this, X).disconnect(), t(this, Ft).disconnect(), t(this, ft).disconnect(), t(this, F).disconnect());
523
523
  };
524
- ke = /* @__PURE__ */ new WeakSet();
525
- Ke = function() {
526
- t(this, ae) || (_(this, ae, !0), he.unsubscribe(t(this, B)), Te.unsubscribe(t(this, B)), t(this, S).reset(), b(this, Be, cs).call(this), t(this, g).style.transform = "", t(this, Q).current && b(this, Dt, se).call(this), Rt.unregister(this));
524
+ Ge = /* @__PURE__ */ new WeakSet();
525
+ ps = function() {
526
+ t(this, ae) && (_(this, ae, !1), t(this, S).subscribe(t(this, Ne)), t(this, X).connect(), t(this, Ft).connect(), t(this, ft).connect(), t(this, nt).current && t(this, F).connect());
527
527
  };
528
528
  Pe = /* @__PURE__ */ new WeakSet();
529
529
  Ze = function() {
530
- t(this, ae) && (_(this, ae, !1), t(this, Q).current && b(this, te, be).call(this), Rt.register(this), he.subscribe(t(this, B), ns.SCROLL), Te.subscribe(this, t(this, B)), b(this, He, us).call(this));
530
+ t(this, oe) || (_(this, oe, !0), ne.unsubscribe(t(this, B)), Ie.unsubscribe(t(this, B)), t(this, S).reset(), b(this, He, us).call(this), t(this, g).style.transform = "", t(this, Q).current && b(this, Dt, ie).call(this), Rt.unregister(this));
531
+ };
532
+ We = /* @__PURE__ */ new WeakSet();
533
+ Je = function() {
534
+ t(this, oe) && (_(this, oe, !1), t(this, Q).current && b(this, ee, ge).call(this), Rt.register(this), ne.subscribe(t(this, B), as.SCROLL), Ie.subscribe(this, t(this, B)), b(this, Ge, ps).call(this));
531
535
  };
532
536
  B = /* @__PURE__ */ new WeakMap();
533
- qe = /* @__PURE__ */ new WeakMap();
534
- Je = /* @__PURE__ */ new WeakSet();
535
- Ls = function(e) {
536
- t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current = Ps(e, 0, this.limit);
537
+ Ne = /* @__PURE__ */ new WeakMap();
538
+ Qe = /* @__PURE__ */ new WeakSet();
539
+ Vs = function(e) {
540
+ t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current = Ws(e, 0, this.limit);
537
541
  };
538
- ue = /* @__PURE__ */ new WeakMap();
539
- We = /* @__PURE__ */ new WeakMap();
540
- Me = /* @__PURE__ */ new WeakSet();
541
- Qe = function(e = "current") {
542
+ pe = /* @__PURE__ */ new WeakMap();
543
+ Me = /* @__PURE__ */ new WeakMap();
544
+ Ee = /* @__PURE__ */ new WeakSet();
545
+ Xe = function(e = "current") {
542
546
  if (t(this, T).current && t(this, c).length) {
543
547
  const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, I));
544
548
  return i < 0 ? t(this, C) + i + t(this, M) + t(this, I) : i;
@@ -546,7 +550,7 @@ Qe = function(e = "current") {
546
550
  return t(this, S)[e];
547
551
  };
548
552
  zt = /* @__PURE__ */ new WeakSet();
549
- ee = function() {
553
+ se = function() {
550
554
  if (t(this, at).current && t(this, c).length) {
551
555
  const e = t(this, k).current + t(this, Vt).current;
552
556
  e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end"), t(this, c).forEach((i, r) => {
@@ -555,8 +559,8 @@ ee = function() {
555
559
  });
556
560
  }
557
561
  };
558
- Xe = /* @__PURE__ */ new WeakSet();
559
- Vs = function() {
562
+ Ye = /* @__PURE__ */ new WeakSet();
563
+ zs = function() {
560
564
  let e = null, i = 1 / 0;
561
565
  for (let r = 0; r < t(this, c).length; r++) {
562
566
  const h = Math.abs(t(this, c)[r].position - this.targetScrollValue);
@@ -564,41 +568,41 @@ Vs = function() {
564
568
  }
565
569
  return e !== null ? t(this, c)[e] : null;
566
570
  };
567
- Ge = si([
568
- oe("e-scroll")
569
- ], Ge);
570
- var ge;
571
- class Ne extends Es {
571
+ qe = ii([
572
+ le("e-scroll")
573
+ ], qe);
574
+ var we;
575
+ class Ue extends xs {
572
576
  constructor() {
573
577
  super(...arguments);
574
- z(this, ge, null);
578
+ z(this, we, null);
575
579
  }
576
580
  get scrollElement() {
577
- return a(this, ge);
581
+ return a(this, we);
578
582
  }
579
583
  connectedCallback() {
580
- const r = js(this, Ge);
581
- r instanceof Ge ? O(this, ge, r) : console.error(this, "e-scroll not found");
584
+ const r = ti(this, qe);
585
+ r instanceof qe ? O(this, we, r) : console.error(this, "e-scroll not found");
582
586
  }
583
587
  }
584
- ge = new WeakMap();
585
- var hi = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ai = (e, i, r, h) => {
586
- for (var n = h > 1 ? void 0 : h ? ni(i, r) : i, p = e.length - 1, d; p >= 0; p--)
588
+ we = new WeakMap();
589
+ var ni = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, oi = (e, i, r, h) => {
590
+ for (var n = h > 1 ? void 0 : h ? ai(i, r) : i, p = e.length - 1, d; p >= 0; p--)
587
591
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
588
- return h && n && hi(i, r, n), n;
589
- }, zs = (e, i, r) => {
592
+ return h && n && ni(i, r, n), n;
593
+ }, $s = (e, i, r) => {
590
594
  if (!i.has(e))
591
595
  throw TypeError("Cannot " + r);
592
- }, f = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
596
+ }, f = (e, i, r) => ($s(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
593
597
  if (i.has(e))
594
598
  throw TypeError("Cannot add the same private member more than once");
595
599
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
596
- }, bt = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), pe, R, it, rt, fe, de, Kt, Ee, xe, Le;
597
- const oi = os({
600
+ }, bt = (e, i, r, h) => ($s(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), fe, R, it, rt, de, Se, Zt, xe, Le, Ve;
601
+ const li = ls({
598
602
  ":host": {
599
603
  display: "inline-block",
600
604
  zIndex: "1",
601
- backgroundColor: ms.colorLight.var
605
+ backgroundColor: bs.colorLight.var
602
606
  },
603
607
  ':host([axis="y"])': {
604
608
  position: "absolute",
@@ -615,7 +619,7 @@ const oi = os({
615
619
  height: "1vmin"
616
620
  },
617
621
  ".default-thumb": {
618
- backgroundColor: ms.colorDark.var,
622
+ backgroundColor: bs.colorDark.var,
619
623
  borderRadius: "1vmin",
620
624
  touchAction: "none"
621
625
  },
@@ -623,20 +627,20 @@ const oi = os({
623
627
  touchAction: "none"
624
628
  }
625
629
  });
626
- let bs = class extends Ne {
630
+ let gs = class extends Ue {
627
631
  constructor() {
628
- super(), N(this, pe, null), N(this, R, null), N(this, it, !1), N(this, rt, 0), N(this, fe, 0), N(this, de, 0), N(this, Kt, () => {
632
+ super(), N(this, fe, null), N(this, R, null), N(this, it, !1), N(this, rt, 0), N(this, de, 0), N(this, Se, 0), N(this, Zt, () => {
629
633
  bt(this, it, this.offsetWidth > this.offsetHeight);
630
634
  const e = f(this, it) ? this.offsetWidth : this.offsetHeight;
631
- bt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), bt(this, rt, Math.max(f(this, rt), 30)), f(this, it) ? (f(this, R).style.width = f(this, rt) + "px", f(this, R).style.height = "100%") : (f(this, R).style.width = "100%", f(this, R).style.height = f(this, rt) + "px"), bt(this, fe, e - f(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
632
- }), N(this, Ee, () => {
633
- bt(this, de, this.scrollElement.currentProgress * f(this, fe)), f(this, it) ? f(this, R).style.transform = `translate3d(${f(this, de)}px, 0px, 0px)` : f(this, R).style.transform = `translate3d(0px, ${f(this, de)}px, 0px)`;
635
+ bt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), bt(this, rt, Math.max(f(this, rt), 30)), f(this, it) ? (f(this, R).style.width = f(this, rt) + "px", f(this, R).style.height = "100%") : (f(this, R).style.width = "100%", f(this, R).style.height = f(this, rt) + "px"), bt(this, de, e - f(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
634
636
  }), N(this, xe, () => {
637
+ bt(this, Se, this.scrollElement.currentProgress * f(this, de)), f(this, it) ? f(this, R).style.transform = `translate3d(${f(this, Se)}px, 0px, 0px)` : f(this, R).style.transform = `translate3d(0px, ${f(this, Se)}px, 0px)`;
638
+ }), N(this, Le, () => {
635
639
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
636
- }), N(this, Le, (e) => {
637
- document.documentElement.classList.add("grabbing"), Ys(
640
+ }), N(this, Ve, (e) => {
641
+ document.documentElement.classList.add("grabbing"), js(
638
642
  (h) => {
639
- const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this, fe), d = (n - r) * p;
643
+ const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this, de), d = (n - r) * p;
640
644
  this.scrollElement.setPosition(i + d);
641
645
  },
642
646
  () => {
@@ -644,13 +648,13 @@ let bs = class extends Ne {
644
648
  }
645
649
  );
646
650
  const i = this.scrollElement.targetScrollValue, r = f(this, it) ? e.x : e.y;
647
- }), hs && (this.openShadow(oi), as(this, {
651
+ }), ns && (this.openShadow(li), os(this, {
648
652
  slot: "static",
649
653
  "drag-dead-zone": "",
650
654
  children: [
651
- Re({
652
- ref: (e) => bt(this, pe, e),
653
- children: Ue({ class: "default-thumb" })
655
+ Te({
656
+ ref: (e) => bt(this, fe, e),
657
+ children: Ke({ class: "default-thumb" })
654
658
  })
655
659
  ]
656
660
  }));
@@ -660,116 +664,116 @@ let bs = class extends Ne {
660
664
  }
661
665
  connectedCallback() {
662
666
  super.connectedCallback();
663
- const e = f(this, pe).assignedElements()[0] || f(this, pe).firstElementChild;
664
- bt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Le)), he.subscribe(f(this, Kt), ns.SCROLL + 1), Te.subscribe(this, f(this, Kt)), this.scrollElement.onScroll(f(this, Ee)), this.scrollElement.axisCSSProperty.subscribe(f(this, xe));
667
+ const e = f(this, fe).assignedElements()[0] || f(this, fe).firstElementChild;
668
+ bt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Ve)), ne.subscribe(f(this, Zt), as.SCROLL + 1), Ie.subscribe(this, f(this, Zt)), this.scrollElement.onScroll(f(this, xe)), this.scrollElement.axisCSSProperty.subscribe(f(this, Le));
665
669
  }
666
670
  disconnectedCallback() {
667
- f(this, R).removeEventListener("pointerdown", f(this, Le)), he.unsubscribe(f(this, Kt)), Te.unsubscribe(f(this, Kt)), this.scrollElement.offScroll(f(this, Ee)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, xe));
671
+ f(this, R).removeEventListener("pointerdown", f(this, Ve)), ne.unsubscribe(f(this, Zt)), Ie.unsubscribe(f(this, Zt)), this.scrollElement.offScroll(f(this, xe)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, Le));
668
672
  }
669
673
  };
670
- pe = /* @__PURE__ */ new WeakMap();
674
+ fe = /* @__PURE__ */ new WeakMap();
671
675
  R = /* @__PURE__ */ new WeakMap();
672
676
  it = /* @__PURE__ */ new WeakMap();
673
677
  rt = /* @__PURE__ */ new WeakMap();
674
- fe = /* @__PURE__ */ new WeakMap();
675
678
  de = /* @__PURE__ */ new WeakMap();
676
- Kt = /* @__PURE__ */ new WeakMap();
677
- Ee = /* @__PURE__ */ new WeakMap();
679
+ Se = /* @__PURE__ */ new WeakMap();
680
+ Zt = /* @__PURE__ */ new WeakMap();
678
681
  xe = /* @__PURE__ */ new WeakMap();
679
682
  Le = /* @__PURE__ */ new WeakMap();
680
- bs = ai([
681
- oe("e-scrollbar")
682
- ], bs);
683
- const li = os({
683
+ Ve = /* @__PURE__ */ new WeakMap();
684
+ gs = oi([
685
+ le("e-scrollbar")
686
+ ], gs);
687
+ const ci = ls({
684
688
  button: {
685
689
  all: "inherit"
686
690
  }
687
691
  });
688
- class $s extends Ne {
692
+ class Fs extends Ue {
689
693
  constructor() {
690
- super(), this.openShadow(li), hs && as(this, {
694
+ super(), this.openShadow(ci), ns && os(this, {
691
695
  children: [
692
- Qs({
696
+ Xs({
693
697
  onClick: () => {
694
698
  this.handleClick();
695
699
  },
696
- children: [Re()]
700
+ children: [Te()]
697
701
  })
698
702
  ]
699
703
  });
700
704
  }
701
705
  }
702
- var ci = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, pi = (e, i, r, h) => {
703
- for (var n = h > 1 ? void 0 : h ? ui(i, r) : i, p = e.length - 1, d; p >= 0; p--)
706
+ var ui = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, fi = (e, i, r, h) => {
707
+ for (var n = h > 1 ? void 0 : h ? pi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
704
708
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
705
- return h && n && ci(i, r, n), n;
709
+ return h && n && ui(i, r, n), n;
706
710
  };
707
- let gs = class extends $s {
711
+ let ws = class extends Fs {
708
712
  handleClick() {
709
713
  const e = this.getAttribute("index"), i = this.getAttribute("behaviour");
710
714
  this.scrollElement.scrollToSection(parseInt(e || "0"), i);
711
715
  }
712
716
  };
713
- gs = pi([
714
- oe("e-scroll-set-button")
715
- ], gs);
716
- var fi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, Si = (e, i, r, h) => {
717
- for (var n = h > 1 ? void 0 : h ? di(i, r) : i, p = e.length - 1, d; p >= 0; p--)
717
+ ws = fi([
718
+ le("e-scroll-set-button")
719
+ ], ws);
720
+ var di = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, vi = (e, i, r, h) => {
721
+ for (var n = h > 1 ? void 0 : h ? Si(i, r) : i, p = e.length - 1, d; p >= 0; p--)
718
722
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
719
- return h && n && fi(i, r, n), n;
723
+ return h && n && di(i, r, n), n;
720
724
  };
721
- let ws = class extends $s {
725
+ let _s = class extends Fs {
722
726
  handleClick() {
723
727
  const e = this.getAttribute("step"), i = this.getAttribute("behaviour");
724
728
  this.scrollElement.shiftSections(parseInt(e || "1"), i);
725
729
  }
726
730
  };
727
- ws = Si([
728
- oe("e-scroll-step-button")
729
- ], ws);
730
- var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, bi = (e, i, r, h) => {
731
- for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
731
+ _s = vi([
732
+ le("e-scroll-step-button")
733
+ ], _s);
734
+ var mi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, gi = (e, i, r, h) => {
735
+ for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
732
736
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
733
- return h && n && vi(i, r, n), n;
734
- }, Fs = (e, i, r) => {
737
+ return h && n && mi(i, r, n), n;
738
+ }, Ds = (e, i, r) => {
735
739
  if (!i.has(e))
736
740
  throw TypeError("Cannot " + r);
737
- }, Tt = (e, i, r) => (Fs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), _s = (e, i, r) => {
741
+ }, Tt = (e, i, r) => (Ds(e, i, "read from private field"), r ? r.call(e) : i.get(e)), Cs = (e, i, r) => {
738
742
  if (i.has(e))
739
743
  throw TypeError("Cannot add the same private member more than once");
740
744
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
741
- }, Cs = (e, i, r, h) => (Fs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), kt, Se, tt, mt, ie, we, _e, re;
742
- class gi {
745
+ }, ys = (e, i, r, h) => (Ds(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), kt, ve, tt, mt, re, _e, Ce, he;
746
+ class wi {
743
747
  constructor(i, r, h) {
744
748
  z(this, tt, void 0);
745
749
  z(this, mt, void 0);
746
- z(this, ie, void 0);
747
- z(this, we, void 0);
748
- z(this, _e, () => {
749
- a(this, mt).scrollToSection(a(this, ie), a(this, we));
750
+ z(this, re, void 0);
751
+ z(this, _e, void 0);
752
+ z(this, Ce, () => {
753
+ a(this, mt).scrollToSection(a(this, re), a(this, _e));
750
754
  });
751
- z(this, re, () => {
755
+ z(this, he, () => {
752
756
  a(this, tt).classList.toggle(
753
757
  "current",
754
- a(this, mt).counter.current === a(this, ie)
758
+ a(this, mt).counter.current === a(this, re)
755
759
  );
756
760
  });
757
- O(this, tt, document.createElement("button")), O(this, mt, i), O(this, we, h), O(this, ie, r), a(this, tt).addEventListener("click", a(this, _e)), a(this, mt).counter.subscribe(a(this, re)), a(this, re).call(this);
761
+ O(this, tt, document.createElement("button")), O(this, mt, i), O(this, _e, h), O(this, re, r), a(this, tt).addEventListener("click", a(this, Ce)), a(this, mt).counter.subscribe(a(this, he)), a(this, he).call(this);
758
762
  }
759
763
  get element() {
760
764
  return a(this, tt);
761
765
  }
762
766
  destroy() {
763
- a(this, tt).removeEventListener("click", a(this, _e)), a(this, mt).counter.unsubscribe(a(this, re)), a(this, tt).remove();
767
+ a(this, tt).removeEventListener("click", a(this, Ce)), a(this, mt).counter.unsubscribe(a(this, he)), a(this, tt).remove();
764
768
  }
765
769
  }
766
- tt = new WeakMap(), mt = new WeakMap(), ie = new WeakMap(), we = new WeakMap(), _e = new WeakMap(), re = new WeakMap();
767
- let ys = class extends Ne {
770
+ tt = new WeakMap(), mt = new WeakMap(), re = new WeakMap(), _e = new WeakMap(), Ce = new WeakMap(), he = new WeakMap();
771
+ let ks = class extends Ue {
768
772
  constructor() {
769
- super(...arguments), _s(this, kt, []), _s(this, Se, xs(() => {
770
- Tt(this, kt).forEach((e) => e.destroy()), Cs(this, kt, []);
773
+ super(...arguments), Cs(this, kt, []), Cs(this, ve, Ls(() => {
774
+ Tt(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
771
775
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
772
- const i = new gi(
776
+ const i = new wi(
773
777
  this.scrollElement,
774
778
  e,
775
779
  this.getAttribute("behaviour") || "smooth"
@@ -781,36 +785,36 @@ let ys = class extends Ne {
781
785
  connectedCallback() {
782
786
  super.connectedCallback(), this.scrollElement.addEventListener(
783
787
  "sectionsChange",
784
- Tt(this, Se)
785
- ), Tt(this, Se).call(this);
788
+ Tt(this, ve)
789
+ ), Tt(this, ve).call(this);
786
790
  }
787
791
  disconnectedCallback() {
788
792
  this.scrollElement.removeEventListener(
789
793
  "sectionsChange",
790
- Tt(this, Se)
791
- ), Tt(this, kt).forEach((e) => e.destroy()), Cs(this, kt, []);
794
+ Tt(this, ve)
795
+ ), Tt(this, kt).forEach((e) => e.destroy()), ys(this, kt, []);
792
796
  }
793
797
  };
794
798
  kt = /* @__PURE__ */ new WeakMap();
795
- Se = /* @__PURE__ */ new WeakMap();
796
- ys = bi([
797
- oe("e-scroll-bullet-buttons")
798
- ], ys);
799
- var wi = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, Ci = (e, i, r, h) => {
800
- for (var n = h > 1 ? void 0 : h ? _i(i, r) : i, p = e.length - 1, d; p >= 0; p--)
799
+ ve = /* @__PURE__ */ new WeakMap();
800
+ ks = gi([
801
+ le("e-scroll-bullet-buttons")
802
+ ], ks);
803
+ var _i = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, yi = (e, i, r, h) => {
804
+ for (var n = h > 1 ? void 0 : h ? Ci(i, r) : i, p = e.length - 1, d; p >= 0; p--)
801
805
  (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
802
- return h && n && wi(i, r, n), n;
803
- }, ps = (e, i, r) => {
806
+ return h && n && _i(i, r, n), n;
807
+ }, fs = (e, i, r) => {
804
808
  if (!i.has(e))
805
809
  throw TypeError("Cannot " + r);
806
- }, s = (e, i, r) => (ps(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
810
+ }, s = (e, i, r) => (fs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
807
811
  if (i.has(e))
808
812
  throw TypeError("Cannot add the same private member more than once");
809
813
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
810
- }, m = (e, i, r, h) => (ps(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (ps(e, i, "access private method"), r), Zt, Jt, Qt, Xt, Pt, Wt, Mt, Et, D, H, G, q, $t, x, ot, lt, ct, ut, pt, E, J, Z, dt, St, Y, Ve, v, Yt, jt, ze, L, xt, $, V, U, ve, Ot, P, Ye, Ds, je, Os, ts, As, es, Rs, ss, Ts, is, Is, $e, me, ht, Lt, fs, Bs, ds, Hs, Fe, rs, De;
811
- let ks = class extends Ne {
814
+ }, m = (e, i, r, h) => (fs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (fs(e, i, "access private method"), r), Jt, Qt, Xt, Yt, Pt, Wt, Mt, Et, D, H, G, q, $t, x, ot, lt, ct, ut, pt, E, J, Z, dt, St, Y, ze, v, jt, te, $e, L, xt, $, V, U, me, Ot, P, je, Os, ts, As, es, Rs, ss, Ts, is, Is, rs, Bs, Fe, be, ht, Lt, ds, Hs, Ss, Gs, De, hs, Oe;
815
+ let Ps = class extends Ue {
812
816
  constructor() {
813
- super(), l(this, Ye), l(this, je), l(this, ts), l(this, es), l(this, ss), l(this, is), l(this, ht), l(this, fs), l(this, ds), l(this, Fe), l(this, Zt, new u(this, "--damping", 20)), l(this, Jt, new u(this, "--mass", 0)), l(this, Qt, new u(this, "--stiffness", 0)), l(this, Xt, new u(this, "--target", "")), l(this, Pt, new u(this, "--disabled", !1)), l(this, Wt, new u(
817
+ super(), l(this, je), l(this, ts), l(this, es), l(this, ss), l(this, is), l(this, rs), l(this, ht), l(this, ds), l(this, Ss), l(this, De), l(this, Jt, new u(this, "--damping", 20)), l(this, Qt, new u(this, "--mass", 0)), l(this, Xt, new u(this, "--stiffness", 0)), l(this, Yt, new u(this, "--target", "")), l(this, Pt, new u(this, "--disabled", !1)), l(this, Wt, new u(
814
818
  this,
815
819
  "--distance-offset",
816
820
  0,
@@ -837,16 +841,16 @@ let ks = class extends Ne {
837
841
  this,
838
842
  "--released-from-finish",
839
843
  ""
840
- )), l(this, ot, new u(this, "--passed-var", "")), l(this, lt, new u(this, "--progress-var", "")), l(this, ct, new u(this, "--distance-var", "")), l(this, ut, new u(this, "--start-var", "")), l(this, pt, new u(this, "--finish-var", "")), l(this, E, new gt(!1)), l(this, J, new gt(!1)), l(this, Z, new gt(!1)), l(this, dt, new gt(!1)), l(this, St, new gt(!1)), l(this, Y, new gt(!1)), l(this, Ve, []), l(this, v, this), l(this, Yt, 0), l(this, jt, 0), l(this, ze, 0), l(this, L, new Ms(0, { order: Ws.SCROLL - 1, min: 0, max: 1 })), l(this, xt, 0), l(this, $, 0), l(this, V, 0), l(this, U, 0), l(this, ve, !1), l(this, Ot, !1), l(this, P, !0), l(this, $e, () => {
841
- s(this, P) || (this.resize(), s(this, me).call(this));
842
- }), l(this, me, () => {
843
- !s(this, P) && s(this, ve) && this.tick();
844
- }), l(this, De, xs(() => {
844
+ )), l(this, ot, new u(this, "--passed-var", "")), l(this, lt, new u(this, "--progress-var", "")), l(this, ct, new u(this, "--distance-var", "")), l(this, ut, new u(this, "--start-var", "")), l(this, pt, new u(this, "--finish-var", "")), l(this, E, new gt(!1)), l(this, J, new gt(!1)), l(this, Z, new gt(!1)), l(this, dt, new gt(!1)), l(this, St, new gt(!1)), l(this, Y, new gt(!1)), l(this, ze, []), l(this, v, this), l(this, jt, 0), l(this, te, 0), l(this, $e, 0), l(this, L, new Es(0, { order: Ms.SCROLL - 1, min: 0, max: 1 })), l(this, xt, 0), l(this, $, 0), l(this, V, 0), l(this, U, 0), l(this, me, !1), l(this, Ot, !1), l(this, P, !0), l(this, Fe, () => {
845
+ s(this, P) || (this.resize(), s(this, be).call(this));
846
+ }), l(this, be, () => {
847
+ !s(this, P) && s(this, me) && this.tick();
848
+ }), l(this, Oe, Ls(() => {
845
849
  const e = Rt.getAll(this).reverse();
846
850
  let i = 0;
847
851
  e.forEach((r, h) => {
848
852
  r.element === this.scrollElement && (i = h);
849
- }), m(this, Ve, e.slice(i + 1));
853
+ }), m(this, ze, e.slice(i + 1));
850
854
  }, 0));
851
855
  }
852
856
  get distanceOffsetCSSProperty() {
@@ -895,16 +899,16 @@ let ks = class extends Ne {
895
899
  return s(this, Pt);
896
900
  }
897
901
  get dampingCSSProperty() {
898
- return s(this, Zt);
902
+ return s(this, Jt);
899
903
  }
900
904
  get massCSSProperty() {
901
- return s(this, Jt);
905
+ return s(this, Qt);
902
906
  }
903
907
  get stiffnessCSSProperty() {
904
- return s(this, Qt);
908
+ return s(this, Xt);
905
909
  }
906
910
  get targetCSSProperty() {
907
- return s(this, Xt);
911
+ return s(this, Yt);
908
912
  }
909
913
  get isCaptured() {
910
914
  return s(this, E);
@@ -925,10 +929,10 @@ let ks = class extends Ne {
925
929
  return s(this, Y);
926
930
  }
927
931
  get directionPosition() {
928
- return s(this, Yt);
932
+ return s(this, jt);
929
933
  }
930
934
  get directionSize() {
931
- return s(this, jt);
935
+ return s(this, te);
932
936
  }
933
937
  get passed() {
934
938
  return s(this, L);
@@ -952,38 +956,38 @@ let ks = class extends Ne {
952
956
  return s(this, P);
953
957
  }
954
958
  resize() {
955
- m(this, jt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, Yt, this.scrollElement.vertical ? Oe(this, this.scrollElement) : Ae(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Mt).current), m(this, V, s(this, V) + s(this, Wt).current), m(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, J).current && (s(this, E).current = !0), this.setVar(s(this, ut).current, s(this, $)), this.setVar(s(this, pt).current, s(this, U)), this.setVar(s(this, ct).current, s(this, V)), s(this, L).max = s(this, V), m(this, ve, !0);
959
+ m(this, te, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, jt, this.scrollElement.vertical ? Ae(this, this.scrollElement) : Re(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Mt).current), m(this, V, s(this, V) + s(this, Wt).current), m(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, J).current && (s(this, E).current = !0), this.setVar(s(this, ut).current, s(this, $)), this.setVar(s(this, pt).current, s(this, U)), this.setVar(s(this, ct).current, s(this, V)), s(this, L).max = s(this, V), m(this, me, !0);
956
960
  }
957
961
  tick() {
958
962
  let e = this.scrollElement.currentScrollValue;
959
- s(this, Ve).forEach((r) => {
963
+ s(this, ze).forEach((r) => {
960
964
  e += r.value;
961
965
  }), s(this, L).set(e - s(this, $));
962
966
  const i = Math.round(e);
963
- s(this, E).current && (i > s(this, $) ? s(this, Z).current || W(this, ts, As).call(this) : s(this, Z).current && !s(this, dt).current && W(this, ss, Ts).call(this), i < s(this, U) ? s(this, Y).current && !s(this, St).current && W(this, es, Rs).call(this) : s(this, Z).current && !s(this, Y).current && W(this, is, Is).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, Ye, Ds).call(this) : s(this, E).current && (s(this, L).set(
964
- Ns(s(this, V) / 2, s(this, L).current, 0, s(this, V))
965
- ), W(this, je, Os).call(this)), s(this, Ot) && s(this, Et).current && (s(this, D).current && s(this, v).classList.add(s(this, D).current), m(this, P, !0));
967
+ s(this, E).current && (i > s(this, $) ? s(this, Z).current || W(this, es, Rs).call(this) : s(this, Z).current && !s(this, dt).current && W(this, is, Is).call(this), i < s(this, U) ? s(this, Y).current && !s(this, St).current && W(this, ss, Ts).call(this) : s(this, Z).current && !s(this, Y).current && W(this, rs, Bs).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, je, Os).call(this) : s(this, E).current && (s(this, L).set(
968
+ Us(s(this, V) / 2, s(this, L).current, 0, s(this, V))
969
+ ), W(this, ts, As).call(this)), s(this, Ot) && s(this, Et).current && (s(this, D).current && s(this, v).classList.add(s(this, D).current), m(this, P, !0));
966
970
  }
967
971
  disable() {
968
- this.style.cssText = "", m(this, Yt, 0), m(this, jt, 0), s(this, L).reset(), m(this, xt, 0), m(this, $, 0), m(this, V, 0), m(this, U, 0), m(this, ve, !1), s(this, E).current = !1, s(this, J).current = !1, s(this, Z).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, Y).current = !1, m(this, Ot, !1), m(this, P, !0), W(this, Fe, rs).call(this);
972
+ this.style.cssText = "", m(this, jt, 0), m(this, te, 0), s(this, L).reset(), m(this, xt, 0), m(this, $, 0), m(this, V, 0), m(this, U, 0), m(this, me, !1), s(this, E).current = !1, s(this, J).current = !1, s(this, Z).current = !1, s(this, dt).current = !1, s(this, St).current = !1, s(this, Y).current = !1, m(this, Ot, !1), m(this, P, !0), W(this, De, hs).call(this);
969
973
  }
970
974
  enable() {
971
975
  m(this, P, !1);
972
976
  }
973
977
  connectedCallback() {
974
- super.connectedCallback(), s(this, Zt).observe(), s(this, Jt).observe(), s(this, Qt).observe(), s(this, Xt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, $t).observe(), s(this, x).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, pt).observe();
978
+ super.connectedCallback(), s(this, Jt).observe(), s(this, Qt).observe(), s(this, Xt).observe(), s(this, Yt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, Et).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, $t).observe(), s(this, x).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe(), s(this, pt).observe();
975
979
  let e = !1;
976
980
  this.scrollElement.addEventListener(
977
981
  "sectionsChange",
978
- s(this, De)
979
- ), s(this, De).call(this), s(this, Pt).current || this.enable(), s(this, Zt).subscribe((i) => {
982
+ s(this, Oe)
983
+ ), s(this, Oe).call(this), s(this, Pt).current || this.enable(), s(this, Jt).subscribe((i) => {
980
984
  s(this, L).damping = i.current;
981
- }), s(this, Jt).subscribe((i) => {
982
- s(this, L).mass = i.current;
983
985
  }), s(this, Qt).subscribe((i) => {
984
- s(this, L).stiffness = i.current;
986
+ s(this, L).mass = i.current;
985
987
  }), s(this, Xt).subscribe((i) => {
986
- i.previous && W(this, Fe, rs).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
988
+ s(this, L).stiffness = i.current;
989
+ }), s(this, Yt).subscribe((i) => {
990
+ i.previous && W(this, De, hs).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
987
991
  }), s(this, Pt).subscribe((i) => {
988
992
  i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
989
993
  }), s(this, Mt).subscribe(() => {
@@ -1022,10 +1026,10 @@ let ks = class extends Ne {
1022
1026
  s(this, lt).current,
1023
1027
  s(this, xt).toFixed(6)
1024
1028
  );
1025
- }), he.subscribe(s(this, $e), ns.SEGMENT), this.scrollElement.onScroll(s(this, me)), e = !0;
1029
+ }), ne.subscribe(s(this, Fe), as.SEGMENT), this.scrollElement.onScroll(s(this, be)), e = !0;
1026
1030
  }
1027
1031
  disconnectedCallback() {
1028
- he.unsubscribe(s(this, $e)), this.scrollElement.offScroll(s(this, me)), s(this, Zt).close(), s(this, Jt).close(), s(this, Qt).close(), s(this, Xt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, Et).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, $t).close(), s(this, x).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, pt).close(), s(this, E).close(), s(this, J).close(), s(this, Z).close(), s(this, dt).close(), s(this, St).close(), s(this, Y).close(), this.disable();
1032
+ ne.unsubscribe(s(this, Fe)), this.scrollElement.offScroll(s(this, be)), s(this, Jt).close(), s(this, Qt).close(), s(this, Xt).close(), s(this, Yt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, Et).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, $t).close(), s(this, x).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, pt).close(), s(this, E).close(), s(this, J).close(), s(this, Z).close(), s(this, dt).close(), s(this, St).close(), s(this, Y).close(), this.disable();
1029
1033
  }
1030
1034
  removeVar(e) {
1031
1035
  e && s(this, v).style.removeProperty(`--${e}`);
@@ -1034,16 +1038,16 @@ let ks = class extends Ne {
1034
1038
  e && s(this, v).style.setProperty(`--${e}`, i.toString());
1035
1039
  }
1036
1040
  getDistance() {
1037
- return s(this, jt) + s(this, ze);
1041
+ return s(this, te) + s(this, $e);
1038
1042
  }
1039
1043
  getStart() {
1040
- return s(this, Yt) - s(this, ze);
1044
+ return s(this, jt) - s(this, $e);
1041
1045
  }
1042
1046
  };
1043
- Zt = /* @__PURE__ */ new WeakMap();
1044
1047
  Jt = /* @__PURE__ */ new WeakMap();
1045
1048
  Qt = /* @__PURE__ */ new WeakMap();
1046
1049
  Xt = /* @__PURE__ */ new WeakMap();
1050
+ Yt = /* @__PURE__ */ new WeakMap();
1047
1051
  Pt = /* @__PURE__ */ new WeakMap();
1048
1052
  Wt = /* @__PURE__ */ new WeakMap();
1049
1053
  Mt = /* @__PURE__ */ new WeakMap();
@@ -1065,61 +1069,61 @@ Z = /* @__PURE__ */ new WeakMap();
1065
1069
  dt = /* @__PURE__ */ new WeakMap();
1066
1070
  St = /* @__PURE__ */ new WeakMap();
1067
1071
  Y = /* @__PURE__ */ new WeakMap();
1068
- Ve = /* @__PURE__ */ new WeakMap();
1072
+ ze = /* @__PURE__ */ new WeakMap();
1069
1073
  v = /* @__PURE__ */ new WeakMap();
1070
- Yt = /* @__PURE__ */ new WeakMap();
1071
1074
  jt = /* @__PURE__ */ new WeakMap();
1072
- ze = /* @__PURE__ */ new WeakMap();
1075
+ te = /* @__PURE__ */ new WeakMap();
1076
+ $e = /* @__PURE__ */ new WeakMap();
1073
1077
  L = /* @__PURE__ */ new WeakMap();
1074
1078
  xt = /* @__PURE__ */ new WeakMap();
1075
1079
  $ = /* @__PURE__ */ new WeakMap();
1076
1080
  V = /* @__PURE__ */ new WeakMap();
1077
1081
  U = /* @__PURE__ */ new WeakMap();
1078
- ve = /* @__PURE__ */ new WeakMap();
1082
+ me = /* @__PURE__ */ new WeakMap();
1079
1083
  Ot = /* @__PURE__ */ new WeakMap();
1080
1084
  P = /* @__PURE__ */ new WeakMap();
1081
- Ye = /* @__PURE__ */ new WeakSet();
1082
- Ds = function() {
1085
+ je = /* @__PURE__ */ new WeakSet();
1086
+ Os = function() {
1083
1087
  s(this, E).current = !0, s(this, J).current = !1, m(this, Ot, !0), s(this, H).current && s(this, v).classList.remove(s(this, H).current), s(this, x).current && s(this, v).classList.remove(
1084
1088
  s(this, x).current
1085
1089
  ), s(this, x).current && s(this, v).classList.remove(
1086
1090
  s(this, x).current
1087
1091
  ), s(this, D).current && s(this, v).classList.add(s(this, D).current);
1088
1092
  };
1089
- je = /* @__PURE__ */ new WeakSet();
1090
- Os = function() {
1093
+ ts = /* @__PURE__ */ new WeakSet();
1094
+ As = function() {
1091
1095
  s(this, J).current = !0, s(this, E).current = !1, m(this, Ot, !0), s(this, D).current && s(this, v).classList.remove(s(this, D).current), s(this, G).current && s(this, v).classList.remove(
1092
1096
  s(this, G).current
1093
1097
  ), s(this, q).current && s(this, v).classList.remove(
1094
1098
  s(this, q).current
1095
1099
  ), s(this, H).current && s(this, v).classList.add(s(this, H).current);
1096
1100
  };
1097
- ts = /* @__PURE__ */ new WeakSet();
1098
- As = function() {
1101
+ es = /* @__PURE__ */ new WeakSet();
1102
+ Rs = function() {
1099
1103
  s(this, E).current = !0, s(this, Z).current = !0, s(this, dt).current = !1, s(this, G).current && s(this, v).classList.add(
1100
1104
  s(this, G).current
1101
1105
  );
1102
1106
  };
1103
- es = /* @__PURE__ */ new WeakSet();
1104
- Rs = function() {
1107
+ ss = /* @__PURE__ */ new WeakSet();
1108
+ Ts = function() {
1105
1109
  s(this, E).current = !0, s(this, St).current = !0, s(this, Y).current = !1, s(this, q).current && s(this, v).classList.add(
1106
1110
  s(this, q).current
1107
1111
  );
1108
1112
  };
1109
- ss = /* @__PURE__ */ new WeakSet();
1110
- Ts = function() {
1113
+ is = /* @__PURE__ */ new WeakSet();
1114
+ Is = function() {
1111
1115
  s(this, J).current = !0, s(this, dt).current = !0, s(this, Z).current = !1, s(this, x).current && s(this, v).classList.add(
1112
1116
  s(this, x).current
1113
1117
  );
1114
1118
  };
1115
- is = /* @__PURE__ */ new WeakSet();
1116
- Is = function() {
1119
+ rs = /* @__PURE__ */ new WeakSet();
1120
+ Bs = function() {
1117
1121
  s(this, J).current = !0, s(this, Y).current = !0, s(this, St).current = !1, s(this, x).current && s(this, v).classList.add(
1118
1122
  s(this, x).current
1119
1123
  );
1120
1124
  };
1121
- $e = /* @__PURE__ */ new WeakMap();
1122
- me = /* @__PURE__ */ new WeakMap();
1125
+ Fe = /* @__PURE__ */ new WeakMap();
1126
+ be = /* @__PURE__ */ new WeakMap();
1123
1127
  ht = /* @__PURE__ */ new WeakSet();
1124
1128
  Lt = function(e) {
1125
1129
  if (s(this, P)) {
@@ -1128,31 +1132,31 @@ Lt = function(e) {
1128
1132
  }
1129
1133
  e.current && s(this, E).current ? (e.previous && s(this, v).classList.remove(e.previous), s(this, v).classList.add(e.current)) : !e.current && e.previous && s(this, v).classList.remove(e.previous);
1130
1134
  };
1131
- fs = /* @__PURE__ */ new WeakSet();
1132
- Bs = function(...e) {
1135
+ ds = /* @__PURE__ */ new WeakSet();
1136
+ Hs = function(...e) {
1133
1137
  e.forEach((i) => {
1134
1138
  i && s(this, v).classList.remove(i);
1135
1139
  });
1136
1140
  };
1137
- ds = /* @__PURE__ */ new WeakSet();
1138
- Hs = function(...e) {
1141
+ Ss = /* @__PURE__ */ new WeakSet();
1142
+ Gs = function(...e) {
1139
1143
  e.forEach((i) => {
1140
1144
  i && s(this, v).style.removeProperty(`--${i}`);
1141
1145
  });
1142
1146
  };
1143
- Fe = /* @__PURE__ */ new WeakSet();
1144
- rs = function() {
1145
- W(this, fs, Bs).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, $t).current, s(this, x).current), W(this, ds, Hs).call(this, s(this, ot).current, s(this, lt).current, s(this, ct).current, s(this, ut).current, s(this, pt).current);
1147
+ De = /* @__PURE__ */ new WeakSet();
1148
+ hs = function() {
1149
+ W(this, ds, Hs).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, $t).current, s(this, x).current), W(this, Ss, Gs).call(this, s(this, ot).current, s(this, lt).current, s(this, ct).current, s(this, ut).current, s(this, pt).current);
1146
1150
  };
1147
- De = /* @__PURE__ */ new WeakMap();
1148
- ks = Ci([
1149
- oe("e-scroll-segment")
1150
- ], ks);
1151
+ Oe = /* @__PURE__ */ new WeakMap();
1152
+ Ps = yi([
1153
+ le("e-scroll-segment")
1154
+ ], Ps);
1151
1155
  export {
1152
- ys as ScrollBulletButtonsElement,
1153
- Ge as ScrollElement,
1154
- ks as ScrollSegmentElement,
1155
- gs as ScrollSetButtonElement,
1156
- ws as ScrollStepButtonElement,
1157
- bs as ScrollbarElement
1156
+ ks as ScrollBulletButtonsElement,
1157
+ qe as ScrollElement,
1158
+ Ps as ScrollSegmentElement,
1159
+ ws as ScrollSetButtonElement,
1160
+ _s as ScrollStepButtonElement,
1161
+ gs as ScrollbarElement
1158
1162
  };