aptechka 0.71.26 → 0.71.28

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,88 +1,88 @@
1
- var oi = Object.defineProperty;
2
- var Ns = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, ai = Reflect.get;
3
- var Gs = (d) => {
1
+ var li = Object.defineProperty;
2
+ var qs = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, ui = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, di = Reflect.get;
3
+ var Us = (d) => {
4
4
  throw TypeError(d);
5
5
  };
6
- var qs = (d, n, e) => n in d ? oi(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Us = (d, n) => {
6
+ var Gs = (d, n, e) => n in d ? li(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Ks = (d, n) => {
7
7
  for (var e in n || (n = {}))
8
- li.call(n, e) && qs(d, e, n[e]);
9
- if (Ns)
10
- for (var e of Ns(n))
11
- ui.call(n, e) && qs(d, e, n[e]);
8
+ ui.call(n, e) && Gs(d, e, n[e]);
9
+ if (qs)
10
+ for (var e of qs(n))
11
+ ai.call(n, e) && Gs(d, e, n[e]);
12
12
  return d;
13
13
  };
14
- var Ls = (d, n, e) => n.has(d) || Gs("Cannot " + e);
15
- var t = (d, n, e) => (Ls(d, n, "read from private field"), e ? e.call(d) : n.get(d)), i = (d, n, e) => n.has(d) ? Gs("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), r = (d, n, e, s) => (Ls(d, n, "write to private field"), s ? s.call(d, e) : n.set(d, e), e), o = (d, n, e) => (Ls(d, n, "access private method"), e);
16
- var ks = (d, n, e) => ai(ci(d), e, n);
17
- var Vs = (d, n, e) => new Promise((s, h) => {
14
+ var ks = (d, n, e) => n.has(d) || Us("Cannot " + e);
15
+ var t = (d, n, e) => (ks(d, n, "read from private field"), e ? e.call(d) : n.get(d)), i = (d, n, e) => n.has(d) ? Us("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), r = (d, n, e, s) => (ks(d, n, "write to private field"), s ? s.call(d, e) : n.set(d, e), e), o = (d, n, e) => (ks(d, n, "access private method"), e);
16
+ var Vs = (d, n, e) => di(ci(d), e, n);
17
+ var zs = (d, n, e) => new Promise((s, h) => {
18
18
  var u = (C) => {
19
19
  try {
20
20
  v(e.next(C));
21
- } catch (le) {
22
- h(le);
21
+ } catch (ce) {
22
+ h(ce);
23
23
  }
24
24
  }, g = (C) => {
25
25
  try {
26
26
  v(e.throw(C));
27
- } catch (le) {
28
- h(le);
27
+ } catch (ce) {
28
+ h(ce);
29
29
  }
30
30
  }, v = (C) => C.done ? s(C.value) : Promise.resolve(C.value).then(u, g);
31
31
  v((e = e.apply(d, n)).next());
32
32
  });
33
33
  import { S as ue } from "../Store-0BVty6AZ.js";
34
34
  import { i as q } from "../index-Bv9zgfdb.js";
35
- import { q as di } from "../easings-BEmRlrDd.js";
36
- import { i as fi } from "../element-CGVl1jA-.js";
35
+ import { q as fi } from "../easings-BEmRlrDd.js";
36
+ import { i as pi } from "../element-CGVl1jA-.js";
37
37
  import { d as st } from "../events-CsVF98U6.js";
38
- import { d as ws } from "../function-C10DGppn.js";
39
- import { a as os, g as cs, c as pi } from "../layout-DpZo-I0y.js";
40
- import { c as Zs, s as bi } from "../math-BOBiC4TN.js";
41
- import { p as mi, l as Si } from "../number-CumqY64S.js";
42
- import { c as js } from "../stylesheet-DpnWNVyD.js";
38
+ import { d as xs } from "../function-C10DGppn.js";
39
+ import { a as ls, g as cs, c as bi } from "../layout-DpZo-I0y.js";
40
+ import { c as js, s as mi } from "../math-BOBiC4TN.js";
41
+ import { p as Si, l as gi } from "../number-CumqY64S.js";
42
+ import { c as Js } from "../stylesheet-DpnWNVyD.js";
43
43
  import "../ticker/index.js";
44
- import { TICK_ORDER as Js, RESIZE_ORDER as xs } from "../order/index.js";
45
- import { D as Qs } from "../Damped-CtQmJ52v.js";
46
- import { T as gi } from "../Tweened-BlZB0vl4.js";
47
- import { W as vi, K as yi, D as Ci, A as Pi } from "../DragControls-CkhCt-4W.js";
44
+ import { TICK_ORDER as Qs, RESIZE_ORDER as Ls } from "../order/index.js";
45
+ import { D as Xs } from "../Damped-CtQmJ52v.js";
46
+ import { T as vi } from "../Tweened-BlZB0vl4.js";
47
+ import { W as yi, K as Ci, D as Pi, A as Ei } from "../DragControls-CkhCt-4W.js";
48
48
  import { windowResizer as pt } from "../window-resizer/index.js";
49
- import { scrollEntries as ce } from "../scroll-entries/index.js";
50
- import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
51
- import { CSSProperty as c } from "../css-property/index.js";
52
- import { d as Ei } from "../Viewport-DA10iWAO.js";
49
+ import { scrollEntries as le } from "../scroll-entries/index.js";
50
+ import { cssUnitParser as Zs } from "../css-unit-parser/index.js";
51
+ import { CSSProperty as l } from "../css-property/index.js";
52
+ import { d as wi } from "../Viewport-DA10iWAO.js";
53
53
  import "construct-style-sheets-polyfill";
54
- import { elementResizer as ns } from "../element-resizer/index.js";
55
- import { s as wi } from "../gestures-CcXV6fCp.js";
56
- import { b as xi } from "../dom-CVWzyXPH.js";
57
- var p, Te, E, ls, us, fe, bt, Dt, pe, Ot, Me;
58
- class Li {
54
+ import { elementResizer as os } from "../element-resizer/index.js";
55
+ import { s as xi } from "../gestures-CcXV6fCp.js";
56
+ import { b as Li } from "../dom-CVWzyXPH.js";
57
+ var p, Re, E, us, as, fe, bt, Ot, pe, Ht, Fe;
58
+ class ki {
59
59
  constructor(n, e, s) {
60
- i(this, Ot);
60
+ i(this, Ht);
61
61
  i(this, p);
62
- i(this, Te);
62
+ i(this, Re);
63
63
  i(this, E);
64
- i(this, ls, 0);
65
64
  i(this, us, 0);
65
+ i(this, as, 0);
66
66
  i(this, fe, 0);
67
67
  i(this, bt, 0);
68
- i(this, Dt, null);
68
+ i(this, Ot, null);
69
69
  i(this, pe, 0);
70
- r(this, p, n), r(this, Te, e), r(this, E, s), ce.register(t(this, p)), this.setIndex(t(this, Te));
70
+ r(this, p, n), r(this, Re, e), r(this, E, s), le.register(t(this, p)), this.setIndex(t(this, Re));
71
71
  }
72
72
  get element() {
73
73
  return t(this, p);
74
74
  }
75
75
  get index() {
76
- return t(this, Te);
76
+ return t(this, Re);
77
77
  }
78
78
  get size() {
79
79
  return t(this, fe);
80
80
  }
81
81
  get width() {
82
- return t(this, ls);
82
+ return t(this, us);
83
83
  }
84
84
  get height() {
85
- return t(this, us);
85
+ return t(this, as);
86
86
  }
87
87
  get position() {
88
88
  return t(this, bt);
@@ -91,7 +91,7 @@ class Li {
91
91
  return t(this, pe);
92
92
  }
93
93
  destroy() {
94
- ce.unregister(t(this, p)), this.unsetTransform();
94
+ le.unregister(t(this, p)), this.unsetTransform();
95
95
  }
96
96
  unsetTransform() {
97
97
  t(this, p).style.transform = "", this.setMark(null), this.setIndex(null), this.setCurrentIndex(null), this.setCurrentIndexArc(null), this.setCurrentIndexArcAbs(null), this.setOffsetIndex(null), this.setMiddle(!1), this.setSize();
@@ -100,25 +100,25 @@ class Li {
100
100
  n ? (t(this, p).style.setProperty("--size", n + "px"), t(this, E).axisCSSProperty.current === "x" ? (t(this, p).style.width = n + "px", t(this, p).style.height = "") : (t(this, p).style.height = n + "px", t(this, p).style.width = "")) : (t(this, p).style.width = "", t(this, p).style.height = "", t(this, p).style.removeProperty("--size"));
101
101
  }
102
102
  resize() {
103
- r(this, ls, t(this, p).offsetWidth), r(this, us, t(this, p).offsetHeight), r(this, fe, t(this, E).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, bt, t(this, E).vertical ? os(t(this, p)) : cs(t(this, p))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
103
+ r(this, us, t(this, p).offsetWidth), r(this, as, t(this, p).offsetHeight), r(this, fe, t(this, E).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, bt, t(this, E).vertical ? ls(t(this, p)) : cs(t(this, p))), r(this, bt, t(this, bt) - t(this, E).contentPosition);
104
104
  }
105
105
  transform() {
106
106
  const n = t(this, E).shiftSectionPositionCSSProperty.current;
107
107
  let e = n;
108
108
  const s = t(this, E).viewportSize * t(this, E).sectionDistanceScaleCSSProperty.current;
109
- t(this, E).loopCSSProperty.current && t(this, bt) + t(this, fe) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), ce.update(
109
+ t(this, E).loopCSSProperty.current && t(this, bt) + t(this, fe) <= t(this, E).currentScrollValue - n / 2 && (e = (t(this, E).distance - n) * -1 - t(this, E).gap), le.update(
110
110
  t(this, p),
111
111
  t(this, E).axisCSSProperty.current,
112
112
  e
113
113
  );
114
- const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, fe) + s, v = mi(Zs(h, u, g), 3);
114
+ const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, fe) + s, v = Si(js(h, u, g), 3);
115
115
  r(this, pe, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, pe)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, pe)}px, 0px, 0px)`;
116
116
  }
117
117
  setMark(n) {
118
- t(this, Dt) !== n && (t(this, Dt) && t(this, p).classList.remove(t(this, Dt)), n && t(this, p).classList.add(n), r(this, Dt, n), st(t(this, p), "scrollSectionMarkChange", {
118
+ t(this, Ot) !== n && (t(this, Ot) && t(this, p).classList.remove(t(this, Ot)), n && t(this, p).classList.add(n), r(this, Ot, n), st(t(this, p), "scrollSectionMarkChange", {
119
119
  composed: !0,
120
120
  detail: {
121
- mark: t(this, Dt)
121
+ mark: t(this, Ot)
122
122
  },
123
123
  custom: !0
124
124
  }));
@@ -127,25 +127,25 @@ class Li {
127
127
  t(this, p).classList.toggle("middle", n);
128
128
  }
129
129
  setIndex(n) {
130
- o(this, Ot, Me).call(this, "index", n);
130
+ o(this, Ht, Fe).call(this, "index", n);
131
131
  }
132
132
  setCurrentIndex(n) {
133
- o(this, Ot, Me).call(this, "current-index", n);
133
+ o(this, Ht, Fe).call(this, "current-index", n);
134
134
  }
135
135
  setCurrentIndexArc(n) {
136
- o(this, Ot, Me).call(this, "current-index-arc", n);
136
+ o(this, Ht, Fe).call(this, "current-index-arc", n);
137
137
  }
138
138
  setOffsetIndex(n) {
139
- o(this, Ot, Me).call(this, "offset-index", n);
139
+ o(this, Ht, Fe).call(this, "offset-index", n);
140
140
  }
141
141
  setCurrentIndexArcAbs(n) {
142
- o(this, Ot, Me).call(this, "current-index-arc-abs", n);
142
+ o(this, Ht, Fe).call(this, "current-index-arc-abs", n);
143
143
  }
144
144
  }
145
- p = new WeakMap(), Te = new WeakMap(), E = new WeakMap(), ls = new WeakMap(), us = new WeakMap(), fe = new WeakMap(), bt = new WeakMap(), Dt = new WeakMap(), pe = new WeakMap(), Ot = new WeakSet(), Me = function(n, e) {
145
+ p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), fe = new WeakMap(), bt = new WeakMap(), Ot = new WeakMap(), pe = new WeakMap(), Ht = new WeakSet(), Fe = function(n, e) {
146
146
  e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
147
147
  };
148
- const ki = js({
148
+ const Vi = Js({
149
149
  ":host": {
150
150
  position: "relative",
151
151
  width: "100%",
@@ -184,97 +184,98 @@ const ki = js({
184
184
  flexShrink: "0"
185
185
  }
186
186
  });
187
- var f, be, D, Ht, mt, St, gt, J, $t, Bt, vt, Wt, me, Q, V, Se, ge, ve, ye, Re, Ce, X, Pe, Nt, Y, qt, yt, Ee, Gt, we, Ut, Kt, Zt, b, De, G, a, as, ds, L, P, U, it, jt, rt, F, z, Oe, Ct, Pt, Et, K, He, Jt, Qt, xe, ht, A, $e, wt, Le, Be, l, As, rs, Fe, Ps, Es, Is, Ms, T, fs, Xs, We, ps, Fs, Ts, ae, Ys, bs, hs, Ne;
188
- class zs extends HTMLElement {
187
+ var f, be, D, $t, mt, St, gt, J, Bt, Wt, vt, Nt, me, Q, V, Se, ge, ve, ye, De, Ce, X, Pe, qt, Y, yt, Ct, Ee, Gt, we, xe, Ut, Kt, Zt, b, Oe, G, a, ds, fs, L, P, U, it, jt, rt, F, z, He, Pt, Et, wt, K, $e, Jt, Qt, Le, ht, A, Be, xt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, ae, _s, ms, ns, qe;
188
+ class As extends HTMLElement {
189
189
  constructor() {
190
190
  super();
191
- i(this, l);
191
+ i(this, c);
192
192
  i(this, f, null);
193
- i(this, be, new c(this, "--controls", !0));
194
- i(this, D, new c(this, "--axis", "y"));
195
- i(this, Ht, new c(this, "--reverse", !1));
196
- i(this, mt, new c(this, "--direction", 0));
197
- i(this, St, new c(this, "--pages", 0, {
193
+ i(this, be, new l(this, "--controls", !0));
194
+ i(this, D, new l(this, "--axis", "y"));
195
+ i(this, $t, new l(this, "--reverse", !1));
196
+ i(this, mt, new l(this, "--direction", 0));
197
+ i(this, St, new l(this, "--pages", 0, {
198
198
  validate: (e) => Math.max(0, e - 1)
199
199
  }));
200
- i(this, gt, new c(this, "--split", !1));
201
- i(this, J, new c(this, "--sectional", !1));
202
- i(this, $t, new c(
200
+ i(this, gt, new l(this, "--split", !1));
201
+ i(this, J, new l(this, "--sectional", !1));
202
+ i(this, Bt, new l(
203
203
  this,
204
204
  "--tween-easing",
205
205
  !1
206
206
  ));
207
- i(this, Bt, new c(
207
+ i(this, Wt, new l(
208
208
  this,
209
209
  "--tween-duration",
210
210
  !1
211
211
  ));
212
- i(this, vt, new c(this, "--auto-size", !1));
213
- i(this, Wt, new c(
212
+ i(this, vt, new l(this, "--auto-size", !1));
213
+ i(this, Nt, new l(
214
214
  this,
215
215
  "--wheel-max-delta",
216
216
  !1
217
217
  ));
218
- i(this, me, new c(this, "--drag-inertion", 1));
219
- i(this, Q, new c(
218
+ i(this, me, new l(this, "--drag-inertion", 1));
219
+ i(this, Q, new l(
220
220
  this,
221
221
  "--sections-in-view",
222
222
  1
223
223
  ));
224
- i(this, V, new c(this, "--loop", !1));
225
- i(this, Se, new c(this, "--damping", 20));
226
- i(this, ge, new c(this, "--mass", 0));
227
- i(this, ve, new c(this, "--stiffness", 0));
228
- i(this, ye, new c(this, "--mouse-drag", !1));
229
- i(this, Re, new c(
224
+ i(this, V, new l(this, "--loop", !1));
225
+ i(this, Se, new l(this, "--damping", 20));
226
+ i(this, ge, new l(this, "--mass", 0));
227
+ i(this, ve, new l(this, "--stiffness", 0));
228
+ i(this, ye, new l(this, "--mouse-drag", !1));
229
+ i(this, De, new l(
230
230
  this,
231
231
  "--section-distance-scale",
232
232
  0.5
233
233
  ));
234
- i(this, Ce, new c(this, "--start-section", 0));
235
- i(this, X, new c(this, "--autoplay", 0));
236
- i(this, Pe, new c(
234
+ i(this, Ce, new l(this, "--start-section", 0));
235
+ i(this, X, new l(this, "--autoplay", 0));
236
+ i(this, Pe, new l(
237
237
  this,
238
238
  "--autoplay-pause-duration",
239
239
  0
240
240
  ));
241
- i(this, Nt, new c(
241
+ i(this, qt, new l(
242
242
  this,
243
243
  "--autoplay-user-direction",
244
244
  !1
245
245
  ));
246
- i(this, Y, new c(this, "--classes", !1));
247
- i(this, qt, new c(
246
+ i(this, Y, new l(this, "--classes", !1));
247
+ i(this, yt, new l(
248
248
  this,
249
249
  "--current-index-start-offset",
250
250
  0
251
251
  ));
252
- i(this, yt, new c(
252
+ i(this, Ct, new l(
253
253
  this,
254
254
  "--current-index-end-offset",
255
255
  0
256
256
  ));
257
- i(this, Ee, new c(
257
+ i(this, Ee, new l(
258
258
  this,
259
259
  "--shift-section-position",
260
260
  0,
261
261
  { rawValueCheck: !1 }
262
262
  ));
263
- i(this, Gt, new c(this, "--focus-delay", 0));
264
- i(this, we, new c(
263
+ i(this, Gt, new l(this, "--focus-delay", 0));
264
+ i(this, we, new l(
265
265
  this,
266
266
  "--focus-duration",
267
267
  3e3
268
268
  ));
269
- i(this, Ut, new c(this, "--disabled", !1));
270
- i(this, Kt, new c(this, "--hibernate", !1));
269
+ i(this, xe, new l(this, "--shift-limit", 0));
270
+ i(this, Ut, new l(this, "--disabled", !1));
271
+ i(this, Kt, new l(this, "--hibernate", !1));
271
272
  i(this, Zt, null);
272
273
  i(this, b, null);
273
- i(this, De, null);
274
+ i(this, Oe, null);
274
275
  i(this, G, []);
275
276
  i(this, a, []);
276
- i(this, as, 0);
277
277
  i(this, ds, 0);
278
+ i(this, fs, 0);
278
279
  i(this, L, 0);
279
280
  i(this, P, 0);
280
281
  i(this, U, 0);
@@ -283,48 +284,48 @@ class zs extends HTMLElement {
283
284
  i(this, rt, null);
284
285
  i(this, F, null);
285
286
  i(this, z, new ue(0));
286
- i(this, Oe, 0);
287
- i(this, Ct, 0);
288
- i(this, Pt, !1);
289
- i(this, Et, !0);
287
+ i(this, He, 0);
288
+ i(this, Pt, 0);
289
+ i(this, Et, !1);
290
+ i(this, wt, !0);
290
291
  i(this, K, !0);
291
- i(this, He);
292
+ i(this, $e);
292
293
  i(this, Jt);
293
- i(this, Qt, new gi());
294
- i(this, xe, !1);
294
+ i(this, Qt, new vi());
295
+ i(this, Le, !1);
295
296
  i(this, ht, null);
296
297
  i(this, A, !1);
297
- i(this, $e, null);
298
- i(this, wt, []);
299
- i(this, Le, !1);
300
- i(this, Be);
298
+ i(this, Be, null);
299
+ i(this, xt, []);
300
+ i(this, ke, !1);
301
+ i(this, We);
301
302
  i(this, T, (e) => {
302
- if (e && t(this, Le)) {
303
- r(this, Le, !1);
303
+ if (e && t(this, ke)) {
304
+ r(this, ke, !1);
304
305
  return;
305
306
  }
306
307
  this.resize();
307
308
  });
308
- i(this, fs, () => {
309
- if (!t(this, Pt) || t(this, K) || t(this, Et))
309
+ i(this, ps, () => {
310
+ if (!t(this, Et) || t(this, K) || t(this, wt))
310
311
  return;
311
312
  const e = this.currentScrollValue;
312
- if (r(this, Oe, Math.max(0, e - t(this, P))), t(this, a).length) {
313
+ if (r(this, He, Math.max(0, e - t(this, P))), t(this, a).length) {
313
314
  for (let s = 0; s < t(this, G).length; s++)
314
315
  t(this, G)[s].transform();
315
- t(this, J).current || (t(this, z).current = o(this, l, hs).call(this));
316
+ t(this, J).current || (t(this, z).current = o(this, c, ns).call(this));
316
317
  } else
317
318
  this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
318
- o(this, l, Ys).call(this), ce.update(
319
+ o(this, c, _s).call(this), le.update(
319
320
  this,
320
321
  t(this, D).current,
321
322
  e
322
323
  );
323
324
  });
324
- i(this, We, (e, s) => {
325
- t(this, be).current && (o(this, l, Fs).call(this, Math.sign(s) || 1), t(this, ps).call(this, e, s));
325
+ i(this, Ne, (e, s) => {
326
+ t(this, be).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
326
327
  });
327
- i(this, ps, (e, s) => {
328
+ i(this, bs, (e, s) => {
328
329
  if (!t(this, Jt)) {
329
330
  if (t(this, mt).current) {
330
331
  if (t(this, mt).current < 0 && s > 0)
@@ -332,51 +333,51 @@ class zs extends HTMLElement {
332
333
  if (t(this, mt).current > 0 && s < 0)
333
334
  return;
334
335
  }
335
- if (!t(this, X).current && t(this, Gt).current && (clearInterval(t(this, He)), r(this, He, setTimeout(() => {
336
- const h = t(this, a)[o(this, l, hs).call(this)];
336
+ if (!t(this, X).current && t(this, Gt).current && (clearInterval(t(this, $e)), r(this, $e, setTimeout(() => {
337
+ const h = t(this, a)[o(this, c, ns).call(this)];
337
338
  h && this.scrollToSection(h.index, {
338
339
  tween: {
339
340
  duration: t(this, we).current,
340
- easing: di
341
+ easing: fi
341
342
  }
342
343
  });
343
- }, t(this, Gt).current))), !(e.includes("drag") && !Ei.isTouch && !t(this, ye).current)) {
344
+ }, t(this, Gt).current))), !(e.includes("drag") && !wi.isTouch && !t(this, ye).current)) {
344
345
  if (t(this, J).current && e !== "drag") {
345
346
  const h = Math.sign(s);
346
347
  if (t(this, a).length) {
347
348
  const u = {
348
- tween: t(this, $t).current || t(this, Bt).current ? {
349
- easing: t(this, $t).current || "easeInOutCubic",
350
- duration: t(this, Bt).current || 500
349
+ tween: t(this, Bt).current || t(this, Wt).current ? {
350
+ easing: t(this, Bt).current || "easeInOutCubic",
351
+ duration: t(this, Wt).current || 500
351
352
  } : void 0
352
353
  };
353
- t(this, xe) ? this.scrollToSection(o(this, l, hs).call(this, !0), u) : this.shiftSections(h, u);
354
+ t(this, Le) ? this.scrollToSection(o(this, c, ns).call(this, !0), u) : this.shiftSections(h, u);
354
355
  } else
355
356
  t(this, f).shift(h * t(this, L));
356
357
  } else
357
358
  t(this, f).shift(s);
358
- r(this, xe, e === "drag");
359
+ r(this, Le, e === "drag");
359
360
  }
360
361
  }
361
362
  });
362
- i(this, bs, ws(() => {
363
- const e = t(this, wt).reduce((s, h) => {
363
+ i(this, ms, xs(() => {
364
+ const e = t(this, xt).reduce((s, h) => {
364
365
  const u = this.vertical ? h.width : h.height;
365
366
  return u > s ? u : s;
366
367
  }, 0);
367
- clearTimeout(t(this, Be)), r(this, Le, !0), this.style.setProperty("--max-section-size", ""), r(this, Be, setTimeout(() => {
368
- r(this, Le, !0), this.style.setProperty("--max-section-size", e + "px");
368
+ clearTimeout(t(this, We)), r(this, ke, !0), this.style.setProperty("--max-section-size", ""), r(this, We, setTimeout(() => {
369
+ r(this, ke, !0), this.style.setProperty("--max-section-size", e + "px");
369
370
  }, 10));
370
371
  }, 20));
371
- i(this, Ne, () => {
372
- r(this, A, !0), this.hibernatedCSSProperty.current || o(this, l, Ms).call(this), ns.subscribe(this, t(this, T)), pt.unsubscribe(t(this, Ne));
372
+ i(this, qe, () => {
373
+ r(this, A, !0), this.hibernatedCSSProperty.current || o(this, c, Fs).call(this), os.subscribe(this, t(this, T)), pt.unsubscribe(t(this, qe));
373
374
  });
374
375
  if (q) {
375
376
  const e = this.attachShadow({ mode: "open" });
376
- e.adoptedStyleSheets = [ki];
377
+ e.adoptedStyleSheets = [Vi];
377
378
  const s = document.createElement("div");
378
- s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Zt, document.createElement("div")), t(this, Zt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, De, document.createElement("slot")), t(this, b).appendChild(t(this, De)), t(this, Zt).appendChild(t(this, b)), e.appendChild(t(this, Zt)), r(this, $e, new MutationObserver(
379
- ws(() => {
379
+ s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Zt, document.createElement("div")), t(this, Zt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, Zt).appendChild(t(this, b)), e.appendChild(t(this, Zt)), r(this, Be, new MutationObserver(
380
+ xs(() => {
380
381
  this.tryResplit();
381
382
  }, 10)
382
383
  ));
@@ -392,7 +393,7 @@ class zs extends HTMLElement {
392
393
  return t(this, D);
393
394
  }
394
395
  get reverseCSSProperty() {
395
- return t(this, Ht);
396
+ return t(this, $t);
396
397
  }
397
398
  get directionCSSProperty() {
398
399
  return t(this, mt);
@@ -407,16 +408,16 @@ class zs extends HTMLElement {
407
408
  return t(this, J);
408
409
  }
409
410
  get easingCSSProperty() {
410
- return t(this, $t);
411
+ return t(this, Bt);
411
412
  }
412
413
  get durationCSSProperty() {
413
- return t(this, Bt);
414
+ return t(this, Wt);
414
415
  }
415
416
  get autoSizeCSSProperty() {
416
417
  return t(this, vt);
417
418
  }
418
419
  get wheelMaxDeltaCSSProperty() {
419
- return t(this, Wt);
420
+ return t(this, Nt);
420
421
  }
421
422
  get dragInertionCSSProperty() {
422
423
  return t(this, me);
@@ -440,7 +441,7 @@ class zs extends HTMLElement {
440
441
  return t(this, ye);
441
442
  }
442
443
  get sectionDistanceScaleCSSProperty() {
443
- return t(this, Re);
444
+ return t(this, De);
444
445
  }
445
446
  get startSectionCSSProperty() {
446
447
  return t(this, Ce);
@@ -452,16 +453,16 @@ class zs extends HTMLElement {
452
453
  return t(this, Pe);
453
454
  }
454
455
  get autoplayUserDirectionCSSProperty() {
455
- return t(this, Nt);
456
+ return t(this, qt);
456
457
  }
457
458
  get classesCSSProperty() {
458
459
  return t(this, Y);
459
460
  }
460
461
  get currentIndexStartOffsetCSSProperty() {
461
- return t(this, qt);
462
+ return t(this, yt);
462
463
  }
463
464
  get currentIndexEndOffsetCSSProperty() {
464
- return t(this, yt);
465
+ return t(this, Ct);
465
466
  }
466
467
  get shiftSectionPositionCSSProperty() {
467
468
  return t(this, Ee);
@@ -472,6 +473,9 @@ class zs extends HTMLElement {
472
473
  get focusDurationCSSProperty() {
473
474
  return t(this, we);
474
475
  }
476
+ get shiftLimitCSSProperty() {
477
+ return t(this, xe);
478
+ }
475
479
  get disabledCSSProperty() {
476
480
  return t(this, Ut);
477
481
  }
@@ -479,10 +483,10 @@ class zs extends HTMLElement {
479
483
  return t(this, Kt);
480
484
  }
481
485
  get currentScrollValue() {
482
- return o(this, l, Ts).call(this, "current");
486
+ return o(this, c, Rs).call(this, "current");
483
487
  }
484
488
  get targetScrollValue() {
485
- return o(this, l, Ts).call(this, "target");
489
+ return o(this, c, Rs).call(this, "target");
486
490
  }
487
491
  get contentWrapperElement() {
488
492
  return t(this, Zt);
@@ -497,10 +501,10 @@ class zs extends HTMLElement {
497
501
  return t(this, a);
498
502
  }
499
503
  get position() {
500
- return t(this, as);
504
+ return t(this, ds);
501
505
  }
502
506
  get contentPosition() {
503
- return t(this, ds);
507
+ return t(this, fs);
504
508
  }
505
509
  get viewportSize() {
506
510
  return t(this, L);
@@ -516,20 +520,20 @@ class zs extends HTMLElement {
516
520
  }
517
521
  get limit() {
518
522
  return Math.ceil(
519
- t(this, a).length - t(this, Q).current
523
+ t(this, a).length - t(this, Q).current + t(this, xe).current
520
524
  );
521
525
  }
522
526
  get distance() {
523
- return t(this, Ct);
527
+ return t(this, Pt);
524
528
  }
525
529
  get loopDistance() {
526
- return t(this, V).current ? t(this, Ct) + t(this, U) : t(this, Ct);
530
+ return t(this, V).current ? t(this, Pt) + t(this, U) : t(this, Pt);
527
531
  }
528
532
  get hasOverflow() {
529
- return t(this, Pt);
533
+ return t(this, Et);
530
534
  }
531
535
  get overscroll() {
532
- return t(this, Oe);
536
+ return t(this, He);
533
537
  }
534
538
  get scrollLine() {
535
539
  return t(this, ht);
@@ -550,7 +554,7 @@ class zs extends HTMLElement {
550
554
  return t(this, D).current === "x" ? 0 : t(this, f).distance;
551
555
  }
552
556
  tryResplit() {
553
- !t(this, K) && (t(this, V).current || t(this, gt).current || t(this, V).current || t(this, vt).current || t(this, J).current) && o(this, l, rs).call(this);
557
+ !t(this, K) && (t(this, V).current || t(this, gt).current || t(this, V).current || t(this, vt).current || t(this, J).current) && o(this, c, hs).call(this);
554
558
  }
555
559
  onScroll(...e) {
556
560
  return t(this, f).subscribe(...e);
@@ -573,21 +577,21 @@ class zs extends HTMLElement {
573
577
  scrollToSection(e, s) {
574
578
  if (!t(this, a).length || t(this, K))
575
579
  return;
576
- const h = t(this, z).current, u = o(this, l, Xs).call(this, e);
580
+ const h = t(this, z).current, u = o(this, c, Ys).call(this, e);
577
581
  t(this, z).current = u;
578
582
  const g = t(this, a)[h], v = t(this, a)[u];
579
583
  if (g && v) {
580
584
  let C = 0;
581
- const le = o(this, l, hs).call(this), Ie = t(this, a)[le];
582
- let is = Ie ? this.targetScrollValue - Ie.position : 0;
583
- t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, xe) || (is = 0)) : u === t(this, a).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - is, s);
585
+ const ce = o(this, c, ns).call(this), Me = t(this, a)[ce];
586
+ let rs = Me ? this.targetScrollValue - Me.position : 0;
587
+ t(this, V).current ? u === 0 && h === t(this, a).length - 1 ? (C = t(this, P) + t(this, L) - g.position + t(this, U), t(this, Le) || (rs = 0)) : u === t(this, a).length - 1 && h === 0 ? C = v.position - (t(this, P) + t(this, L) + t(this, U)) : C = v.position - g.position : C = v.position - g.position, this.shiftPosition(C - rs, s);
584
588
  }
585
589
  }
586
590
  shiftSections(e, s) {
587
591
  t(this, a).length && this.scrollToSection(t(this, z).current + e, s);
588
592
  }
589
593
  setPosition(e, s) {
590
- t(this, K) || (o(this, l, Fs).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, Jt)), t(this, Qt).set(t(this, f).current, { equalize: !0 }), t(this, Qt).set(Math.min(e, this.distance), Us({}, s.tween)), r(this, Jt, setTimeout(() => {
594
+ t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, Jt)), t(this, Qt).set(t(this, f).current, { equalize: !0 }), t(this, Qt).set(e, Ks({}, s.tween)), r(this, Jt, setTimeout(() => {
591
595
  r(this, Jt, void 0);
592
596
  }, s.tween.duration || 0))) : t(this, f).set(e, {
593
597
  equalize: (s == null ? void 0 : s.behaviour) === "instant"
@@ -600,15 +604,15 @@ class zs extends HTMLElement {
600
604
  if (t(this, Kt).current)
601
605
  return;
602
606
  r(this, a, t(this, G).filter(
603
- (h) => fi(h.element)
607
+ (h) => pi(h.element)
604
608
  )), this.style.setProperty(
605
609
  "--sections",
606
610
  t(this, a).length.toString()
607
611
  ), t(this, f).unlistenAnimationFrame();
608
612
  const e = this.currentScrollValue / t(this, P) || 0, s = t(this, z).current;
609
- if (r(this, as, this.vertical ? os(this) : cs(this)), r(this, ds, this.vertical ? os(t(this, b)) : cs(t(this, b))), r(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, U, Ks.parse(
613
+ if (r(this, ds, this.vertical ? ls(this) : cs(this)), r(this, fs, this.vertical ? ls(t(this, b)) : cs(t(this, b))), r(this, L, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, U, Zs.parse(
610
614
  getComputedStyle(t(this, b)).rowGap
611
- )) : r(this, U, Ks.parse(
615
+ )) : r(this, U, Zs.parse(
612
616
  getComputedStyle(t(this, b)).columnGap
613
617
  )), t(this, vt).current && t(this, a).length) {
614
618
  const h = t(this, Q).current, u = (t(this, L) - t(this, U) * (h - 1)) / h;
@@ -633,9 +637,9 @@ class zs extends HTMLElement {
633
637
  }
634
638
  if (t(this, V).current && t(this, a).length) {
635
639
  const h = t(this, a)[t(this, a).length - 1], u = h.position + h.size - t(this, L), g = t(this, P) - u;
636
- r(this, Ct, h.position + h.size + g);
640
+ r(this, Pt, h.position + h.size + g);
637
641
  } else
638
- r(this, Ct, t(this, P));
642
+ r(this, Pt, t(this, P));
639
643
  if (t(this, J).current && t(this, a).length) {
640
644
  const h = t(this, a)[s];
641
645
  t(this, f).set(h.position, {
@@ -645,42 +649,42 @@ class zs extends HTMLElement {
645
649
  t(this, f).set(e * t(this, P), {
646
650
  equalize: !0
647
651
  });
648
- r(this, Pt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Pt)), t(this, Pt) ? t(this, Ut).current || o(this, l, Es).call(this) : o(this, l, Ps).call(this), t(this, bs).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
652
+ r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Ut).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
649
653
  }
650
654
  connectedCallback() {
651
- ce.register(this), r(this, f, new Qs(0, {
655
+ le.register(this), r(this, f, new Xs(0, {
652
656
  damping: 0.01,
653
657
  min: 0,
654
- order: Js.SCROLL
655
- })), this.setAttribute("tabindex", "0"), r(this, it, new vi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, We)), r(this, jt, new yi({
658
+ order: Qs.SCROLL
659
+ })), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, jt, new Ci({
656
660
  element: this
657
661
  })), t(this, jt).changeEvent.subscribe(
658
- t(this, We)
659
- ), r(this, rt, new Ci({
662
+ t(this, Ne)
663
+ ), r(this, rt, new Pi({
660
664
  element: t(this, b),
661
665
  rootElement: this
662
- })), t(this, rt).changeEvent.subscribe(t(this, We)), r(this, F, new Pi({
666
+ })), t(this, rt).changeEvent.subscribe(t(this, Ne)), r(this, F, new Ei({
663
667
  culling: this
664
- })), t(this, F).changeEvent.subscribe(t(this, ps)), t(this, D).subscribe(() => {
665
- o(this, l, As).call(this);
666
- }), t(this, Ht).subscribe(() => {
667
- o(this, l, As).call(this);
668
- }), t(this, Wt).subscribe((e) => {
668
+ })), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
669
+ o(this, c, Is).call(this);
670
+ }), t(this, $t).subscribe(() => {
671
+ o(this, c, Is).call(this);
672
+ }), t(this, Nt).subscribe((e) => {
669
673
  t(this, it).axis = e.current ? "max" : t(this, D).current;
670
674
  }), t(this, me).subscribe((e) => {
671
675
  t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
672
676
  }), t(this, St).subscribe(() => {
673
677
  t(this, A) && t(this, T).call(this);
674
678
  }), t(this, gt).subscribe(({ current: e }) => {
675
- t(this, A) && (e ? o(this, l, rs).call(this) : o(this, l, Fe).call(this));
679
+ t(this, A) && (e ? o(this, c, hs).call(this) : o(this, c, Te).call(this));
676
680
  }), t(this, J).subscribe((e) => {
677
- t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, F).interval = e.current, t(this, A) && (e.current && !e.previous && !t(this, a).length ? o(this, l, rs).call(this) : !e.current && e.previous && t(this, a).length && o(this, l, Fe).call(this));
681
+ t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, F).interval = e.current, t(this, A) && (e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
678
682
  }), t(this, vt).subscribe((e) => {
679
- t(this, A) && (t(this, T).call(this), e.current && !e.previous && !t(this, a).length ? o(this, l, rs).call(this) : !e.current && e.previous && t(this, a).length && o(this, l, Fe).call(this));
683
+ t(this, A) && (t(this, T).call(this), e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
680
684
  }), t(this, Q).subscribe((e) => {
681
- t(this, A) && (t(this, T).call(this), o(this, l, ae).call(this));
685
+ t(this, A) && (t(this, T).call(this), o(this, c, ae).call(this));
682
686
  }), t(this, V).subscribe((e) => {
683
- e.current ? (t(this, A) && (t(this, a).length || (t(this, gt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, Oe, 0), t(this, f).max = t(this, P), t(this, f).min = 0);
687
+ e.current ? (t(this, A) && (t(this, a).length || (t(this, gt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, He, 0), t(this, f).max = t(this, P), t(this, f).min = 0), this.classList.toggle("loop", !!e.current);
684
688
  }), t(this, Se).subscribe((e) => {
685
689
  t(this, f).damping = e.current;
686
690
  }), t(this, ge).subscribe((e) => {
@@ -688,71 +692,71 @@ class zs extends HTMLElement {
688
692
  }), t(this, ve).subscribe((e) => {
689
693
  t(this, f).stiffness = e.current;
690
694
  }), t(this, X).subscribe((e) => {
691
- t(this, F).speed = e.current, !t(this, Et) && e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
692
- }), t(this, Nt).subscribe((e) => {
695
+ t(this, F).speed = e.current, !t(this, wt) && e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
696
+ }), t(this, qt).subscribe((e) => {
693
697
  e.current || (t(this, F).direction = 1);
694
698
  }), t(this, Y).subscribe((e) => {
695
- t(this, A) && o(this, l, ae).call(this);
696
- }), t(this, qt).subscribe((e) => {
697
- t(this, A) && t(this, Y).current && o(this, l, ae).call(this);
699
+ t(this, A) && o(this, c, ae).call(this);
698
700
  }), t(this, yt).subscribe((e) => {
699
- t(this, A) && t(this, Y).current && o(this, l, ae).call(this);
701
+ t(this, A) && t(this, Y).current && o(this, c, ae).call(this);
702
+ }), t(this, Ct).subscribe((e) => {
703
+ t(this, A) && t(this, Y).current && o(this, c, ae).call(this);
700
704
  }), t(this, Ee).subscribe((e) => {
701
705
  t(this, A) && t(this, f).notify();
702
706
  }), t(this, f).isRunning.subscribe((e) => {
703
707
  this.classList.toggle("active", e.current);
704
708
  }), t(this, z).subscribe((e) => {
705
- t(this, K) || (t(this, a).length && o(this, l, ae).call(this), this.style.setProperty("--counter", e.current + ""));
709
+ t(this, K) || (t(this, a).length && o(this, c, ae).call(this), this.style.setProperty("--counter", e.current + ""));
706
710
  }), t(this, Qt).subscribe((e) => {
707
711
  t(this, Qt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
708
712
  }), t(this, Ut).subscribe((e) => {
709
- e.current && !e.previous ? (this.classList.add("disabled"), o(this, l, Ps).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, l, Es).call(this));
713
+ e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, ws).call(this));
710
714
  }), t(this, Kt).subscribe((e) => {
711
- e.current && !e.previous ? (this.classList.add("hibernated"), o(this, l, Is).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, l, Ms).call(this));
712
- }), t(this, be).observe(), t(this, D).observe(), t(this, Ht).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, $t).observe(), t(this, Bt).observe(), t(this, vt).observe(), t(this, Wt).observe(), t(this, me).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Re).observe(), t(this, Ce).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Pe).observe(), t(this, Nt).observe(), t(this, Y).observe(), t(this, qt).observe(), t(this, yt).observe(), t(this, Ee).observe(), t(this, Gt).observe(), t(this, we).observe(), t(this, Ut).observe(), t(this, Kt).observe(), pt.subscribe(t(this, Ne), xs.LAST), t(this, $e).observe(this, { childList: !0 });
715
+ e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Fs).call(this));
716
+ }), t(this, be).observe(), t(this, D).observe(), t(this, $t).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Bt).observe(), t(this, Wt).observe(), t(this, vt).observe(), t(this, Nt).observe(), t(this, me).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, De).observe(), t(this, Ce).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, Ee).observe(), t(this, Gt).observe(), t(this, we).observe(), t(this, xe).observe(), t(this, Ut).observe(), t(this, Kt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
713
717
  }
714
718
  disconnectedCallback() {
715
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, D).unobserve(), t(this, Ht).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, $t).unobserve(), t(this, Bt).unobserve(), t(this, vt).unobserve(), t(this, Wt).unobserve(), t(this, me).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Re).unobserve(), t(this, Ce).unobserve(), t(this, X).unobserve(), t(this, Pe).unobserve(), t(this, Nt).unobserve(), t(this, Y).unobserve(), t(this, qt).unobserve(), t(this, yt).unobserve(), t(this, Ee).unobserve(), t(this, Gt).unobserve(), t(this, we).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), pt.unsubscribe(t(this, Ne)), pt.unsubscribe(t(this, T)), ns.unsubscribe(t(this, T)), o(this, l, Is).call(this), t(this, $e).disconnect();
719
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, D).unobserve(), t(this, $t).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Bt).unobserve(), t(this, Wt).unobserve(), t(this, vt).unobserve(), t(this, Nt).unobserve(), t(this, me).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, De).unobserve(), t(this, Ce).unobserve(), t(this, X).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, Ee).unobserve(), t(this, Gt).unobserve(), t(this, we).unobserve(), t(this, xe).unobserve(), t(this, Ut).unobserve(), t(this, Kt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
716
720
  }
717
721
  }
718
- f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), $t = new WeakMap(), Bt = new WeakMap(), vt = new WeakMap(), Wt = new WeakMap(), me = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Re = new WeakMap(), Ce = new WeakMap(), X = new WeakMap(), Pe = new WeakMap(), Nt = new WeakMap(), Y = new WeakMap(), qt = new WeakMap(), yt = new WeakMap(), Ee = new WeakMap(), Gt = new WeakMap(), we = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), b = new WeakMap(), De = new WeakMap(), G = new WeakMap(), a = new WeakMap(), as = new WeakMap(), ds = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), jt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), Oe = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), K = new WeakMap(), He = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), xe = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), $e = new WeakMap(), wt = new WeakMap(), Le = new WeakMap(), Be = new WeakMap(), l = new WeakSet(), As = function() {
719
- const e = t(this, D).current, s = t(this, Ht).current ? "-reverse" : "";
720
- t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Wt).current ? "max" : e, t(this, jt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
721
- }, rs = function() {
722
- o(this, l, Fe).call(this), t(this, De).assignedElements().forEach((e, s) => {
723
- e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Li(e, s, this));
722
+ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Bt = new WeakMap(), Wt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), me = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), De = new WeakMap(), Ce = new WeakMap(), X = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), Ee = new WeakMap(), Gt = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), jt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), Le = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), xt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
723
+ const e = t(this, D).current, s = t(this, $t).current ? "-reverse" : "";
724
+ t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Nt).current ? "max" : e, t(this, jt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
725
+ }, hs = function() {
726
+ o(this, c, Te).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
727
+ e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new ki(e, s, this));
724
728
  }), r(this, a, [...t(this, G)]), t(this, b).style.transform = "", st(this, "scrollSectionsChange", {
725
729
  custom: !0,
726
730
  composed: !0
727
- }), t(this, T).call(this), o(this, l, ae).call(this);
728
- }, Fe = function() {
731
+ }), t(this, T).call(this), o(this, c, ae).call(this);
732
+ }, Te = function() {
729
733
  t(this, G).forEach((e) => {
730
734
  e.destroy();
731
735
  }), r(this, G, []), r(this, a, []), t(this, z).reset(), t(this, f).reset(), this.style.removeProperty("--max-section-size"), st(this, "scrollSectionsChange", {
732
736
  custom: !0,
733
737
  composed: !0
734
738
  });
735
- }, Ps = function() {
736
- t(this, Et) || (r(this, Et, !0), t(this, f).unsubscribe(t(this, fs)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, He)), clearInterval(t(this, Jt)), t(this, Qt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, jt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Pt) || (this.sections.forEach((e) => {
739
+ }, Es = function() {
740
+ t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, Jt)), t(this, Qt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, jt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
737
741
  e.unsetTransform();
738
742
  }), t(this, T).call(this)));
739
- }, Es = function() {
740
- t(this, Et) && (r(this, Et, !1), t(this, f).subscribe(t(this, fs), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, jt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
741
- }, Is = function() {
742
- t(this, K) || (r(this, K, !0), clearTimeout(t(this, Be)), pt.unsubscribe(t(this, T)), o(this, l, Ps).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, l, Fe).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
743
+ }, ws = function() {
744
+ t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, jt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
743
745
  }, Ms = function() {
744
- t(this, K) && (r(this, K, !1), ce.register(this), this.tryResplit(), o(this, l, Es).call(this), this.scrollToSection(t(this, Ce).current, {
746
+ t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), le.unregister(this));
747
+ }, Fs = function() {
748
+ t(this, K) && (r(this, K, !1), le.register(this), this.tryResplit(), o(this, c, ws).call(this), this.scrollToSection(t(this, Ce).current, {
745
749
  behaviour: "instant"
746
- }), pt.subscribe(t(this, T), xs.SCROLL));
747
- }, T = new WeakMap(), fs = new WeakMap(), Xs = function(e) {
750
+ }), pt.subscribe(t(this, T), Ls.SCROLL));
751
+ }, T = new WeakMap(), ps = new WeakMap(), Ys = function(e) {
748
752
  let s = t(this, z).current;
749
- return t(this, V).current ? s = Si(e, t(this, a).length) : s = Zs(e, 0, this.limit), s;
750
- }, We = new WeakMap(), ps = new WeakMap(), Fs = function(e = 1) {
751
- t(this, Nt).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
753
+ return t(this, V).current ? s = gi(e, t(this, a).length) : s = js(e, 0, this.limit), s;
754
+ }, Ne = new WeakMap(), bs = new WeakMap(), Ts = function(e = 1) {
755
+ t(this, qt).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
752
756
  t(this, Pe).current,
753
757
  this.sectionalCSSProperty.current
754
758
  );
755
- }, Ts = function(e = "current") {
759
+ }, Rs = function(e = "current") {
756
760
  if (t(this, V).current && t(this, a).length) {
757
761
  const s = t(this, f)[e] % Math.round(t(this, P) + t(this, L) + t(this, U));
758
762
  return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
@@ -760,23 +764,23 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), mt
760
764
  return t(this, f)[e];
761
765
  }, ae = function() {
762
766
  if (t(this, a).length) {
763
- const e = t(this, z).current + t(this, qt).current;
764
- if (e === 0 ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), st(this, "scrollLine", {
767
+ const e = t(this, z).current + t(this, yt).current;
768
+ if (e === t(this, yt).current ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), st(this, "scrollLine", {
765
769
  detail: { line: t(this, ht) }
766
770
  }), t(this, Y).current) {
767
771
  this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
768
- const s = t(this, Q).current + t(this, yt).current;
769
- r(this, wt, []), t(this, a).forEach((h, u) => {
772
+ const s = t(this, Q).current + t(this, Ct).current;
773
+ r(this, xt, []), t(this, a).forEach((h, u) => {
770
774
  h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
771
- const g = e - this.limit - 1 + t(this, yt).current, v = e + s, C = this.sections.length - v;
772
- u >= e && u < v || u <= g ? (h.setMark("current"), t(this, wt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
773
- }), t(this, bs).call(this);
775
+ const g = e - this.limit - 1 + t(this, Ct).current, v = e + s, C = this.sections.length - v;
776
+ u >= e && u < v || u <= g ? (h.setMark("current"), t(this, xt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
777
+ }), t(this, ms).call(this);
774
778
  }
775
779
  }
776
- }, Ys = function() {
780
+ }, _s = function() {
777
781
  if (t(this, Y).current) {
778
- const e = Math.floor(t(this, wt).length / 2);
779
- t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
782
+ const e = Math.floor(t(this, xt).length / 2);
783
+ t(this, xt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, xt).forEach((s, h) => {
780
784
  const u = h - e;
781
785
  s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
782
786
  }), t(this, a).forEach((s, h) => {
@@ -785,71 +789,71 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), mt
785
789
  );
786
790
  });
787
791
  }
788
- }, bs = new WeakMap(), hs = function(e = !1) {
792
+ }, ms = new WeakMap(), ns = function(e = !1) {
789
793
  let s = this.targetScrollValue, h = 1 / 0, u = 0;
790
794
  const g = t(this, f).direction;
791
795
  for (let v = 0; v < t(this, a).length; v++) {
792
796
  const C = t(this, a)[v];
793
- let le = t(this, xe) ? C.size * g * -1 * 0.4 : 0, Ie = C.position;
794
- this.overscroll && Ie === 0 && e && (Ie = t(this, Ct));
795
- let is = Math.abs(Ie + le - s);
796
- is <= h && (h = is, u = v);
797
+ let ce = t(this, Le) ? C.size * g * -1 * 0.4 : 0, Me = C.position;
798
+ this.overscroll && Me === 0 && e && (Me = t(this, Pt));
799
+ let rs = Math.abs(Me + ce - s);
800
+ rs <= h && (h = rs, u = v);
797
801
  }
798
802
  return u;
799
- }, Ne = new WeakMap();
800
- q && !customElements.get("e-scroll") && customElements.define("e-scroll", zs);
801
- var ms;
802
- class ss extends HTMLElement {
803
+ }, qe = new WeakMap();
804
+ q && !customElements.get("e-scroll") && customElements.define("e-scroll", As);
805
+ var Ss;
806
+ class is extends HTMLElement {
803
807
  constructor() {
804
808
  super(...arguments);
805
- i(this, ms, null);
809
+ i(this, Ss, null);
806
810
  }
807
811
  get scrollElement() {
808
- return t(this, ms);
812
+ return t(this, Ss);
809
813
  }
810
814
  connectedCallback() {
811
- const e = xi(this, zs);
812
- e instanceof zs ? r(this, ms, e) : console.error(this, "e-scroll not found");
815
+ const e = Li(this, As);
816
+ e instanceof As ? r(this, Ss, e) : console.error(this, "e-scroll not found");
813
817
  }
814
818
  }
815
- ms = new WeakMap();
816
- var Xt, O, xt, Lt, qe, Ge, Yt, Ue, Ss, gs;
817
- class Vi extends ss {
819
+ Ss = new WeakMap();
820
+ var Xt, O, Lt, kt, Ge, Ue, Yt, Ke, gs, vs;
821
+ class zi extends is {
818
822
  constructor() {
819
823
  super();
820
824
  i(this, Xt, null);
821
825
  i(this, O, null);
822
- i(this, xt, !1);
823
- i(this, Lt, 0);
824
- i(this, qe, 0);
826
+ i(this, Lt, !1);
827
+ i(this, kt, 0);
825
828
  i(this, Ge, 0);
829
+ i(this, Ue, 0);
826
830
  i(this, Yt, () => {
827
- r(this, xt, this.offsetWidth > this.offsetHeight);
828
- const e = t(this, xt) ? this.offsetWidth : this.offsetHeight;
829
- r(this, Lt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Lt, Math.max(t(this, Lt), 30)), t(this, xt) ? (t(this, O).style.width = t(this, Lt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, Lt) + "px"), r(this, qe, e - t(this, Lt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ue).call(this);
831
+ r(this, Lt, this.offsetWidth > this.offsetHeight);
832
+ const e = t(this, Lt) ? this.offsetWidth : this.offsetHeight;
833
+ r(this, kt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, kt, Math.max(t(this, kt), 30)), t(this, Lt) ? (t(this, O).style.width = t(this, kt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, kt) + "px"), r(this, Ge, e - t(this, kt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ke).call(this);
830
834
  });
831
- i(this, Ue, () => {
832
- r(this, Ge, this.scrollElement.currentProgress * t(this, qe)), t(this, xt) ? t(this, O).style.transform = `translate3d(${t(this, Ge)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ge)}px, 0px)`;
835
+ i(this, Ke, () => {
836
+ r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this, Lt) ? t(this, O).style.transform = `translate3d(${t(this, Ue)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ue)}px, 0px)`;
833
837
  });
834
- i(this, Ss, () => {
838
+ i(this, gs, () => {
835
839
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
836
840
  });
837
- i(this, gs, (e) => {
838
- document.documentElement.classList.add("grabbing"), wi(
841
+ i(this, vs, (e) => {
842
+ document.documentElement.classList.add("grabbing"), xi(
839
843
  (u) => {
840
- const g = t(this, xt) ? u.x : u.y, v = this.scrollElement.distance / t(this, qe), C = (g - h) * v;
844
+ const g = t(this, Lt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
841
845
  this.scrollElement.setPosition(s + C);
842
846
  },
843
847
  () => {
844
848
  document.documentElement.classList.remove("grabbing");
845
849
  }
846
850
  );
847
- const s = this.scrollElement.damped.target, h = t(this, xt) ? e.x : e.y;
851
+ const s = this.scrollElement.damped.target, h = t(this, Lt) ? e.x : e.y;
848
852
  });
849
853
  if (q) {
850
854
  const e = this.attachShadow({ mode: "open" });
851
855
  e.adoptedStyleSheets = [
852
- js({
856
+ Js({
853
857
  ":host": {
854
858
  display: "inline-block",
855
859
  zIndex: "1",
@@ -887,27 +891,27 @@ class Vi extends ss {
887
891
  connectedCallback() {
888
892
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
889
893
  const e = t(this, Xt).assignedElements()[0] || t(this, Xt).firstElementChild;
890
- r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, gs)), pt.subscribe(t(this, Yt), xs.SCROLL), ns.subscribe(this, t(this, Yt)), ns.subscribe(this.scrollElement, t(this, Yt)), this.scrollElement.onScroll(t(this, Ue)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ss));
894
+ r(this, O, e), t(this, O).addEventListener("pointerdown", t(this, vs)), pt.subscribe(t(this, Yt), Ls.SCROLL), os.subscribe(this, t(this, Yt)), os.subscribe(this.scrollElement, t(this, Yt)), this.scrollElement.onScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.subscribe(t(this, gs));
891
895
  }
892
896
  disconnectedCallback() {
893
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, gs)), pt.unsubscribe(t(this, Yt)), ns.unsubscribe(t(this, Yt)), this.scrollElement.offScroll(t(this, Ue)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ss));
897
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this, Yt)), os.unsubscribe(t(this, Yt)), this.scrollElement.offScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, gs));
894
898
  }
895
899
  }
896
- Xt = new WeakMap(), O = new WeakMap(), xt = new WeakMap(), Lt = new WeakMap(), qe = new WeakMap(), Ge = new WeakMap(), Yt = new WeakMap(), Ue = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap();
897
- q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", Vi);
898
- var Ke, Ze, je;
899
- class $s extends ss {
900
+ Xt = new WeakMap(), O = new WeakMap(), Lt = new WeakMap(), kt = new WeakMap(), Ge = new WeakMap(), Ue = new WeakMap(), Yt = new WeakMap(), Ke = new WeakMap(), gs = new WeakMap(), vs = new WeakMap();
901
+ q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
902
+ var Ze, je, Je;
903
+ class Bs extends is {
900
904
  constructor() {
901
905
  super();
902
- i(this, Ke, new c(this, "--behaviour", "smooth"));
903
- i(this, Ze, new c(
906
+ i(this, Ze, new l(this, "--behaviour", "smooth"));
907
+ i(this, je, new l(
904
908
  this,
905
909
  "--tween-easing",
906
910
  !1
907
911
  ));
908
- i(this, je, new c(this, "--tween-duration", 0));
912
+ i(this, Je, new l(this, "--tween-duration", 0));
909
913
  q && this.addEventListener("click", () => {
910
- const e = t(this, Ke).current, s = t(this, Ze).current, h = t(this, je).current;
914
+ const e = t(this, Ze).current, s = t(this, je).current, h = t(this, Je).current;
911
915
  this.handleClick({
912
916
  behaviour: e,
913
917
  tween: s || h ? { easing: s, duration: h } : void 0
@@ -915,107 +919,107 @@ class $s extends ss {
915
919
  });
916
920
  }
917
921
  connectedCallback() {
918
- super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, Ke).observe(), t(this, Ze).observe(), t(this, je).observe();
922
+ super.connectedCallback(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, Ze).observe(), t(this, je).observe(), t(this, Je).observe();
919
923
  }
920
924
  disconnectedCallback() {
921
- this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, Ke).close(), t(this, Ze).close(), t(this, je).close();
925
+ this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, Ze).close(), t(this, je).close(), t(this, Je).close();
922
926
  }
923
927
  }
924
- Ke = new WeakMap(), Ze = new WeakMap(), je = new WeakMap();
925
- var Je;
926
- class zi extends $s {
928
+ Ze = new WeakMap(), je = new WeakMap(), Je = new WeakMap();
929
+ var Qe;
930
+ class Ai extends Bs {
927
931
  constructor() {
928
932
  super(...arguments);
929
- i(this, Je, new c(this, "--set", 1));
933
+ i(this, Qe, new l(this, "--set", 1));
930
934
  }
931
935
  handleClick(e) {
932
- this.scrollElement.scrollToSection(t(this, Je).current, e);
936
+ this.scrollElement.scrollToSection(t(this, Qe).current, e);
933
937
  }
934
938
  connectedCallback() {
935
- super.connectedCallback(), t(this, Je).observe();
939
+ super.connectedCallback(), t(this, Qe).observe();
936
940
  }
937
941
  disconnectedCallback() {
938
- super.disconnectedCallback(), t(this, Je).close();
942
+ super.disconnectedCallback(), t(this, Qe).close();
939
943
  }
940
944
  }
941
- Je = new WeakMap();
942
- q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", zi);
943
- var kt, Qe;
944
- class Ai extends $s {
945
+ Qe = new WeakMap();
946
+ q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ai);
947
+ var Vt, Xe;
948
+ class Ii extends Bs {
945
949
  constructor() {
946
950
  super(...arguments);
947
- i(this, kt, new c(this, "--step", 1));
948
- i(this, Qe, () => {
949
- this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, kt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, kt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
951
+ i(this, Vt, new l(this, "--step", 1));
952
+ i(this, Xe, () => {
953
+ this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Vt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Vt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
950
954
  });
951
955
  }
952
956
  handleClick(e) {
953
- this.scrollElement.shiftSections(t(this, kt).current, e);
957
+ this.scrollElement.shiftSections(t(this, Vt).current, e);
954
958
  }
955
959
  connectedCallback() {
956
- super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
957
- t(this, Qe).call(this);
958
- }), t(this, kt).observe(), this.scrollElement.addEventListener(
960
+ super.connectedCallback(), this.scrollElement && (t(this, Vt).subscribe(() => {
961
+ t(this, Xe).call(this);
962
+ }), t(this, Vt).observe(), this.scrollElement.addEventListener(
959
963
  "scrollLine",
960
- t(this, Qe)
961
- ), t(this, Qe).call(this));
964
+ t(this, Xe)
965
+ ), t(this, Xe).call(this));
962
966
  }
963
967
  disconnectedCallback() {
964
- super.disconnectedCallback(), t(this, kt).close(), this.removeAttribute("disabled");
968
+ super.disconnectedCallback(), t(this, Vt).close(), this.removeAttribute("disabled");
965
969
  }
966
970
  }
967
- kt = new WeakMap(), Qe = new WeakMap();
968
- q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ai);
969
- var nt, _t, Xe, vs, ys, Ye;
970
- class Ii {
971
+ Vt = new WeakMap(), Xe = new WeakMap();
972
+ q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ii);
973
+ var nt, _t, Ye, ys, Cs, _e;
974
+ class Mi {
971
975
  constructor(n, e, s) {
972
976
  i(this, nt, null);
973
977
  i(this, _t, null);
974
- i(this, Xe, null);
975
- i(this, vs, null);
976
- i(this, ys, () => {
977
- t(this, _t).scrollToSection(t(this, Xe), {
978
- behaviour: t(this, vs)
978
+ i(this, Ye, null);
979
+ i(this, ys, null);
980
+ i(this, Cs, () => {
981
+ t(this, _t).scrollToSection(t(this, Ye), {
982
+ behaviour: t(this, ys)
979
983
  });
980
984
  });
981
- i(this, Ye, () => {
985
+ i(this, _e, () => {
982
986
  t(this, nt).classList.toggle(
983
987
  "current",
984
- t(this, _t).counter.current === t(this, Xe)
988
+ t(this, _t).counter.current === t(this, Ye)
985
989
  );
986
990
  });
987
- q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, _t, n), r(this, vs, s), r(this, Xe, e), t(this, nt).addEventListener("click", t(this, ys)), t(this, _t).counter.subscribe(t(this, Ye)), t(this, Ye).call(this));
991
+ q && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, _t, n), r(this, ys, s), r(this, Ye, e), t(this, nt).addEventListener("click", t(this, Cs)), t(this, _t).counter.subscribe(t(this, _e)), t(this, _e).call(this));
988
992
  }
989
993
  get element() {
990
994
  return t(this, nt);
991
995
  }
992
996
  destroy() {
993
- t(this, nt).removeEventListener("click", t(this, ys)), t(this, _t).counter.unsubscribe(t(this, Ye)), t(this, nt).remove();
997
+ t(this, nt).removeEventListener("click", t(this, Cs)), t(this, _t).counter.unsubscribe(t(this, _e)), t(this, nt).remove();
994
998
  }
995
999
  }
996
- nt = new WeakMap(), _t = new WeakMap(), Xe = new WeakMap(), vs = new WeakMap(), ys = new WeakMap(), Ye = new WeakMap();
997
- var ke, te, ot;
998
- class Mi extends ss {
1000
+ nt = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), ys = new WeakMap(), Cs = new WeakMap(), _e = new WeakMap();
1001
+ var Ve, te, ot;
1002
+ class Fi extends is {
999
1003
  constructor() {
1000
1004
  super(...arguments);
1001
- i(this, ke, null);
1005
+ i(this, Ve, null);
1002
1006
  i(this, te, []);
1003
- i(this, ot, ws(() => {
1007
+ i(this, ot, xs(() => {
1004
1008
  t(this, te).forEach((s) => s.destroy()), r(this, te, []);
1005
1009
  let e = 0;
1006
1010
  this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
1007
1011
  for (let s = 0; s < e; s++) {
1008
- const h = new Ii(
1012
+ const h = new Mi(
1009
1013
  this.scrollElement,
1010
1014
  s,
1011
1015
  this.getAttribute("behaviour") || "smooth"
1012
1016
  );
1013
- t(this, ke).appendChild(h.element), t(this, te).push(h);
1017
+ t(this, Ve).appendChild(h.element), t(this, te).push(h);
1014
1018
  }
1015
1019
  }, 0));
1016
1020
  }
1017
1021
  connectedCallback() {
1018
- super.connectedCallback(), this.innerHTML = "", r(this, ke, document.createElement("div")), this.appendChild(t(this, ke)), this.scrollElement.addEventListener(
1022
+ super.connectedCallback(), this.innerHTML = "", r(this, Ve, document.createElement("div")), this.appendChild(t(this, Ve)), this.scrollElement.addEventListener(
1019
1023
  "scrollSectionsChange",
1020
1024
  t(this, ot)
1021
1025
  ), this.scrollElement.sectionsInViewCSSProperty.subscribe(
@@ -1028,13 +1032,13 @@ class Mi extends ss {
1028
1032
  t(this, ot)
1029
1033
  ), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
1030
1034
  t(this, ot)
1031
- ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, te).forEach((e) => e.destroy()), r(this, te, []), t(this, ke).remove();
1035
+ ), this.scrollElement.loopCSSProperty.unsubscribe(t(this, ot)), t(this, te).forEach((e) => e.destroy()), r(this, te, []), t(this, Ve).remove();
1032
1036
  }
1033
1037
  }
1034
- ke = new WeakMap(), te = new WeakMap(), ot = new WeakMap();
1035
- q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Mi);
1036
- var ee, se, ie, re, Vt, zt, At, It, I, H, $, B, Mt, k, ct, lt, _, Ft, Ve, ut, at, dt, w, W, N, tt, et, Z, _e, S, Tt, he, ts, x, ft, R, M, j, ze, Rt, y, ne, m, _s, ti, ei, si, ii, ri, es, Ae, Rs, de, hi, ni, Ds;
1037
- class Fi extends ss {
1038
+ Ve = new WeakMap(), te = new WeakMap(), ot = new WeakMap();
1039
+ q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Fi);
1040
+ var ee, se, ie, re, zt, At, It, Mt, I, H, $, B, Ft, k, lt, ct, _, Tt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Rt, he, es, x, ft, R, M, j, Ae, Dt, y, ne, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, de, ni, oi, Os;
1041
+ class Ti extends is {
1038
1042
  constructor() {
1039
1043
  super(...arguments);
1040
1044
  i(this, m);
@@ -1042,21 +1046,21 @@ class Fi extends ss {
1042
1046
  i(this, se);
1043
1047
  i(this, ie);
1044
1048
  i(this, re);
1045
- i(this, Vt);
1046
1049
  i(this, zt);
1047
1050
  i(this, At);
1048
1051
  i(this, It);
1052
+ i(this, Mt);
1049
1053
  i(this, I);
1050
1054
  i(this, H);
1051
1055
  i(this, $);
1052
1056
  i(this, B);
1053
- i(this, Mt);
1057
+ i(this, Ft);
1054
1058
  i(this, k);
1055
- i(this, ct);
1056
1059
  i(this, lt);
1060
+ i(this, ct);
1057
1061
  i(this, _);
1058
- i(this, Ft);
1059
- i(this, Ve);
1062
+ i(this, Tt);
1063
+ i(this, ze);
1060
1064
  i(this, ut);
1061
1065
  i(this, at);
1062
1066
  i(this, dt);
@@ -1066,88 +1070,88 @@ class Fi extends ss {
1066
1070
  i(this, tt);
1067
1071
  i(this, et);
1068
1072
  i(this, Z);
1069
- i(this, _e);
1073
+ i(this, ts);
1070
1074
  i(this, S);
1071
- i(this, Tt);
1075
+ i(this, Rt);
1072
1076
  i(this, he);
1073
- i(this, ts);
1077
+ i(this, es);
1074
1078
  i(this, x);
1075
1079
  i(this, ft);
1076
1080
  i(this, R);
1077
1081
  i(this, M);
1078
1082
  i(this, j);
1079
- i(this, ze);
1080
- i(this, Rt);
1083
+ i(this, Ae);
1084
+ i(this, Dt);
1081
1085
  i(this, y);
1082
1086
  i(this, ne);
1083
- i(this, es);
1084
- i(this, Ae);
1085
- r(this, ee, new c(this, "--damping", 20)), r(this, se, new c(this, "--mass", 0)), r(this, ie, new c(this, "--stiffness", 0)), r(this, re, new c(this, "--target", "")), r(this, Vt, new c(this, "--disabled", !1)), r(this, zt, new c(
1087
+ i(this, ss);
1088
+ i(this, Ie);
1089
+ r(this, ee, new l(this, "--damping", 20)), r(this, se, new l(this, "--mass", 0)), r(this, ie, new l(this, "--stiffness", 0)), r(this, re, new l(this, "--target", "")), r(this, zt, new l(this, "--disabled", !1)), r(this, At, new l(
1086
1090
  this,
1087
1091
  "--distance-offset",
1088
1092
  0,
1089
1093
  { rawValueCheck: !1 }
1090
- )), r(this, At, new c(this, "--start-offset", 0, {
1094
+ )), r(this, It, new l(this, "--start-offset", 0, {
1091
1095
  rawValueCheck: !1
1092
- })), r(this, It, new c(
1096
+ })), r(this, Mt, new l(
1093
1097
  this,
1094
1098
  "--capture-once",
1095
1099
  !1
1096
- )), r(this, I, new c(this, "--captured", "")), r(this, H, new c(this, "--released", "")), r(this, $, new c(
1100
+ )), r(this, I, new l(this, "--captured", "")), r(this, H, new l(this, "--released", "")), r(this, $, new l(
1097
1101
  this,
1098
1102
  "--captured-from-start",
1099
1103
  ""
1100
- )), r(this, B, new c(
1104
+ )), r(this, B, new l(
1101
1105
  this,
1102
1106
  "--captured-from-finish",
1103
1107
  ""
1104
- )), r(this, Mt, new c(
1108
+ )), r(this, Ft, new l(
1105
1109
  this,
1106
1110
  "--released-from-start",
1107
1111
  ""
1108
- )), r(this, k, new c(
1112
+ )), r(this, k, new l(
1109
1113
  this,
1110
1114
  "--released-from-finish",
1111
1115
  ""
1112
- )), r(this, ct, new c(this, "--passed-var", "")), r(this, lt, new c(this, "--progress-var", "")), r(this, _, new c(
1116
+ )), r(this, lt, new l(this, "--passed-var", "")), r(this, ct, new l(this, "--progress-var", "")), r(this, _, new l(
1113
1117
  this,
1114
1118
  "--progress-arc-var",
1115
1119
  ""
1116
- )), r(this, Ft, new c(
1120
+ )), r(this, Tt, new l(
1117
1121
  this,
1118
1122
  "--progress-arc-mult",
1119
1123
  1
1120
- )), r(this, Ve, new c(
1124
+ )), r(this, ze, new l(
1121
1125
  this,
1122
1126
  "--animation-var-type",
1123
1127
  "target"
1124
- )), r(this, ut, new c(this, "--distance-var", "")), r(this, at, new c(this, "--start-var", "")), r(this, dt, new c(this, "--finish-var", "")), r(this, w, new ue(!1)), r(this, W, new ue(!1)), r(this, N, new ue(!1)), r(this, tt, new ue(!1)), r(this, et, new ue(!1)), r(this, Z, new ue(!1)), r(this, _e, []), r(this, S, this), r(this, Tt, 0), r(this, he, 0), r(this, ts, 0), r(this, x, new Qs(0, { order: Js.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, ze, !1), r(this, Rt, !1), r(this, y, !0), r(this, ne, !1), this.resize = () => {
1125
- r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? os(this, this.scrollElement) : cs(this, this.scrollElement));
1126
- const e = pi(
1128
+ )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ue(!1)), r(this, W, new ue(!1)), r(this, N, new ue(!1)), r(this, tt, new ue(!1)), r(this, et, new ue(!1)), r(this, Z, new ue(!1)), r(this, ts, []), r(this, S, this), r(this, Rt, 0), r(this, he, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Dt, !1), r(this, y, !0), r(this, ne, !1), this.resize = () => {
1129
+ r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Rt, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
1130
+ const e = bi(
1127
1131
  this,
1128
1132
  this.scrollElement.vertical ? "top" : "left"
1129
1133
  );
1130
- r(this, Tt, t(this, Tt) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, At).current), r(this, M, t(this, M) + t(this, zt).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, ze, !0), t(this, Ae).call(this);
1131
- }, this.findAnotherScrollEntries = ws(() => {
1132
- const e = ce.getAll(this).reverse();
1134
+ r(this, Rt, t(this, Rt) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, It).current), r(this, M, t(this, M) + t(this, At).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
1135
+ }, this.findAnotherScrollEntries = xs(() => {
1136
+ const e = le.getAll(this).reverse();
1133
1137
  let s = 0;
1134
1138
  e.forEach((h, u) => {
1135
1139
  h.element === this.scrollElement && (s = u);
1136
- }), r(this, _e, e.slice(s + 1)), this.tick();
1137
- }, 0), r(this, es, () => {
1140
+ }), r(this, ts, e.slice(s + 1)), this.tick();
1141
+ }, 0), r(this, ss, () => {
1138
1142
  t(this, y) || this.resize();
1139
- }), r(this, Ae, () => {
1140
- !t(this, y) && t(this, ze) && this.tick();
1143
+ }), r(this, Ie, () => {
1144
+ !t(this, y) && t(this, Ae) && this.tick();
1141
1145
  });
1142
1146
  }
1143
1147
  get distanceOffsetCSSProperty() {
1144
- return t(this, zt);
1148
+ return t(this, At);
1145
1149
  }
1146
1150
  get startOffsetCSSProperty() {
1147
- return t(this, At);
1151
+ return t(this, It);
1148
1152
  }
1149
1153
  get captureOnceCSSProperty() {
1150
- return t(this, It);
1154
+ return t(this, Mt);
1151
1155
  }
1152
1156
  get capturedCSSProperty() {
1153
1157
  return t(this, I);
@@ -1162,25 +1166,25 @@ class Fi extends ss {
1162
1166
  return t(this, B);
1163
1167
  }
1164
1168
  get releasedFromStartCSSProperty() {
1165
- return t(this, Mt);
1169
+ return t(this, Ft);
1166
1170
  }
1167
1171
  get releasedFromFinishCSSProperty() {
1168
1172
  return t(this, k);
1169
1173
  }
1170
1174
  get passedVarCSSProperty() {
1171
- return t(this, ct);
1175
+ return t(this, lt);
1172
1176
  }
1173
1177
  get progressVarCSSProperty() {
1174
- return t(this, lt);
1178
+ return t(this, ct);
1175
1179
  }
1176
1180
  get progressArcVarCSSProperty() {
1177
1181
  return t(this, _);
1178
1182
  }
1179
1183
  get progressArcMultCSSProperty() {
1180
- return t(this, Ft);
1184
+ return t(this, Tt);
1181
1185
  }
1182
1186
  get animationVarTypeCSSProperty() {
1183
- return t(this, Ve);
1187
+ return t(this, ze);
1184
1188
  }
1185
1189
  get distanceVarCSSProperty() {
1186
1190
  return t(this, ut);
@@ -1192,7 +1196,7 @@ class Fi extends ss {
1192
1196
  return t(this, dt);
1193
1197
  }
1194
1198
  get disabledCSSProperty() {
1195
- return t(this, Vt);
1199
+ return t(this, zt);
1196
1200
  }
1197
1201
  get dampingCSSProperty() {
1198
1202
  return t(this, ee);
@@ -1225,7 +1229,7 @@ class Fi extends ss {
1225
1229
  return t(this, Z);
1226
1230
  }
1227
1231
  get directionPosition() {
1228
- return t(this, Tt);
1232
+ return t(this, Rt);
1229
1233
  }
1230
1234
  get directionSize() {
1231
1235
  return t(this, he);
@@ -1237,7 +1241,7 @@ class Fi extends ss {
1237
1241
  return t(this, ft);
1238
1242
  }
1239
1243
  get progressArc() {
1240
- return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Ft).current;
1244
+ return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Tt).current;
1241
1245
  }
1242
1246
  get start() {
1243
1247
  return t(this, R);
@@ -1249,25 +1253,25 @@ class Fi extends ss {
1249
1253
  return t(this, M);
1250
1254
  }
1251
1255
  get isCapturedOnce() {
1252
- return t(this, Rt);
1256
+ return t(this, Dt);
1253
1257
  }
1254
1258
  get isDisabled() {
1255
1259
  return t(this, y);
1256
1260
  }
1257
1261
  tick() {
1258
1262
  let e = this.scrollElement.currentScrollValue;
1259
- t(this, _e).forEach((u) => {
1263
+ t(this, ts).forEach((u) => {
1260
1264
  e += u.value;
1261
1265
  });
1262
1266
  const s = e - t(this, R);
1263
1267
  t(this, ne) || r(this, ne, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
1264
1268
  const h = Math.round(e);
1265
- t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, ei).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ii).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, si).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, ri).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, _s).call(this) : t(this, w).current && (t(this, x).set(
1266
- bi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
1267
- ), o(this, m, ti).call(this)), t(this, Rt) && t(this, It).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1269
+ t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, si).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ri).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ii).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, hi).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, ti).call(this) : t(this, w).current && (t(this, x).set(
1270
+ mi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
1271
+ ), o(this, m, ei).call(this)), t(this, Dt) && t(this, Mt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1268
1272
  }
1269
1273
  disable() {
1270
- this.style.cssText = "", r(this, Tt, 0), r(this, he, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, ze, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Ds).call(this);
1274
+ this.style.cssText = "", r(this, Rt, 0), r(this, he, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Dt, !1), r(this, y, !0), o(this, m, Os).call(this);
1271
1275
  }
1272
1276
  enable() {
1273
1277
  r(this, y, !1);
@@ -1303,21 +1307,21 @@ class Fi extends ss {
1303
1307
  composed: !0,
1304
1308
  custom: !0
1305
1309
  });
1306
- }), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, Vt).observe(), t(this, zt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, k).observe(), t(this, ct).observe(), t(this, lt).observe(), t(this, _).observe(), t(this, Ft).observe(), t(this, Ve).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1310
+ }), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, zt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Ft).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Tt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1307
1311
  let e = !1;
1308
- this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, ee).subscribe((s) => {
1312
+ this.findAnotherScrollEntries(), t(this, zt).current || this.enable(), t(this, ee).subscribe((s) => {
1309
1313
  t(this, x).damping = s.current;
1310
1314
  }), t(this, se).subscribe((s) => {
1311
1315
  t(this, x).mass = s.current;
1312
1316
  }), t(this, ie).subscribe((s) => {
1313
1317
  t(this, x).stiffness = s.current;
1314
1318
  }), t(this, re).subscribe((s) => {
1315
- s.previous && o(this, m, Ds).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
1316
- }), t(this, Vt).subscribe((s) => {
1319
+ s.previous && o(this, m, Os).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
1320
+ }), t(this, zt).subscribe((s) => {
1317
1321
  s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1318
- }), t(this, At).subscribe(() => {
1322
+ }), t(this, It).subscribe(() => {
1319
1323
  e && !t(this, y) && this.resize();
1320
- }), t(this, zt).subscribe(() => {
1324
+ }), t(this, At).subscribe(() => {
1321
1325
  e && !t(this, y) && this.resize();
1322
1326
  }), t(this, I).subscribe((s) => {
1323
1327
  o(this, m, de).call(this, s);
@@ -1327,20 +1331,20 @@ class Fi extends ss {
1327
1331
  o(this, m, de).call(this, s);
1328
1332
  }), t(this, H).subscribe((s) => {
1329
1333
  o(this, m, de).call(this, s);
1330
- }), t(this, Mt).subscribe((s) => {
1334
+ }), t(this, Ft).subscribe((s) => {
1331
1335
  o(this, m, de).call(this, s);
1332
1336
  }), t(this, k).subscribe((s) => {
1333
1337
  o(this, m, de).call(this, s);
1334
- }), t(this, It).subscribe((s) => {
1338
+ }), t(this, Mt).subscribe((s) => {
1335
1339
  t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
1336
- }), t(this, ct).subscribe((s) => {
1337
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1338
1340
  }), t(this, lt).subscribe((s) => {
1341
+ t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1342
+ }), t(this, ct).subscribe((s) => {
1339
1343
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, ft)));
1340
1344
  }), t(this, _).subscribe((s) => {
1341
1345
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
1342
- }), t(this, Ft).subscribe((s) => {
1343
- t(this, y) || o(this, m, Rs).call(this);
1346
+ }), t(this, Tt).subscribe((s) => {
1347
+ t(this, y) || o(this, m, Ds).call(this);
1344
1348
  }), t(this, at).subscribe((s) => {
1345
1349
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, R)));
1346
1350
  }), t(this, dt).subscribe((s) => {
@@ -1352,17 +1356,17 @@ class Fi extends ss {
1352
1356
  r(this, ne, !1);
1353
1357
  return;
1354
1358
  }
1355
- o(this, m, Rs).call(this);
1359
+ o(this, m, Ds).call(this);
1356
1360
  }), this.scrollElement.addEventListener(
1357
1361
  "scrollSectionsChange",
1358
1362
  this.findAnotherScrollEntries
1359
- ), this.scrollElement.addEventListener("scrollResize", this.resize), pt.subscribe(t(this, es), xs.SCROLL + 1), this.scrollElement.onScroll(t(this, Ae)), e = !0;
1363
+ ), this.scrollElement.addEventListener("scrollResize", this.resize), pt.subscribe(t(this, ss), Ls.SCROLL + 1), this.scrollElement.onScroll(t(this, Ie)), e = !0;
1360
1364
  }
1361
1365
  disconnectedCallback() {
1362
- pt.unsubscribe(t(this, es)), this.scrollElement.offScroll(t(this, Ae)), this.scrollElement.removeEventListener(
1366
+ pt.unsubscribe(t(this, ss)), this.scrollElement.offScroll(t(this, Ie)), this.scrollElement.removeEventListener(
1363
1367
  "scrollSectionsChange",
1364
1368
  this.findAnotherScrollEntries
1365
- ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, Vt).close(), t(this, zt).close(), t(this, At).close(), t(this, It).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Mt).close(), t(this, k).close(), t(this, ct).close(), t(this, lt).close(), t(this, _).close(), t(this, Ft).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1369
+ ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, zt).close(), t(this, At).close(), t(this, It).close(), t(this, Mt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Ft).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Tt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1366
1370
  }
1367
1371
  removeVar(e) {
1368
1372
  e && t(this, S).style.removeProperty(`--${e}`);
@@ -1374,65 +1378,65 @@ class Fi extends ss {
1374
1378
  }
1375
1379
  }
1376
1380
  getDistance() {
1377
- return t(this, he) + t(this, ts);
1381
+ return t(this, he) + t(this, es);
1378
1382
  }
1379
1383
  getStart() {
1380
- return t(this, Tt) - t(this, ts);
1384
+ return t(this, Rt) - t(this, es);
1381
1385
  }
1382
1386
  }
1383
- ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), Vt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), k = new WeakMap(), ct = new WeakMap(), lt = new WeakMap(), _ = new WeakMap(), Ft = new WeakMap(), Ve = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), _e = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), he = new WeakMap(), ts = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), ze = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), ne = new WeakMap(), m = new WeakSet(), _s = function() {
1384
- t(this, w).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1387
+ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Ft = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Tt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Rt = new WeakMap(), he = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Dt = new WeakMap(), y = new WeakMap(), ne = new WeakMap(), m = new WeakSet(), ti = function() {
1388
+ t(this, w).current = !0, t(this, W).current = !1, r(this, Dt, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1385
1389
  t(this, k).current
1386
1390
  ), t(this, k).current && t(this, S).classList.remove(
1387
1391
  t(this, k).current
1388
1392
  ), t(this, I).current && t(this, S).classList.add(t(this, I).current);
1389
- }, ti = function() {
1390
- t(this, W).current = !0, t(this, w).current = !1, r(this, Rt, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
1393
+ }, ei = function() {
1394
+ t(this, W).current = !0, t(this, w).current = !1, r(this, Dt, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
1391
1395
  t(this, $).current
1392
1396
  ), t(this, B).current && t(this, S).classList.remove(
1393
1397
  t(this, B).current
1394
1398
  ), t(this, H).current && t(this, S).classList.add(t(this, H).current);
1395
- }, ei = function() {
1399
+ }, si = function() {
1396
1400
  t(this, w).current = !0, t(this, N).current = !0, t(this, tt).current = !1, t(this, $).current && t(this, S).classList.add(
1397
1401
  t(this, $).current
1398
1402
  );
1399
- }, si = function() {
1403
+ }, ii = function() {
1400
1404
  t(this, w).current = !0, t(this, et).current = !0, t(this, Z).current = !1, t(this, B).current && t(this, S).classList.add(
1401
1405
  t(this, B).current
1402
1406
  );
1403
- }, ii = function() {
1407
+ }, ri = function() {
1404
1408
  t(this, W).current = !0, t(this, tt).current = !0, t(this, N).current = !1, t(this, k).current && t(this, S).classList.add(
1405
1409
  t(this, k).current
1406
1410
  );
1407
- }, ri = function() {
1411
+ }, hi = function() {
1408
1412
  t(this, W).current = !0, t(this, Z).current = !0, t(this, et).current = !1, t(this, k).current && t(this, S).classList.add(
1409
1413
  t(this, k).current
1410
1414
  );
1411
- }, es = new WeakMap(), Ae = new WeakMap(), Rs = function() {
1412
- const e = t(this, x)[t(this, Ve).current];
1413
- this.setVar(t(this, ct).current, e), r(this, ft, e / t(this, M) || 0), this.setVar(t(this, lt).current, t(this, ft)), t(this, _).current && this.setVar(t(this, _).current, this.progressArc);
1415
+ }, ss = new WeakMap(), Ie = new WeakMap(), Ds = function() {
1416
+ const e = t(this, x)[t(this, ze).current];
1417
+ this.setVar(t(this, lt).current, e), r(this, ft, e / t(this, M) || 0), this.setVar(t(this, ct).current, t(this, ft)), t(this, _).current && this.setVar(t(this, _).current, this.progressArc);
1414
1418
  }, de = function(e) {
1415
1419
  if (t(this, y)) {
1416
1420
  e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
1417
1421
  return;
1418
1422
  }
1419
1423
  e.current && t(this, w).current ? (e.previous && t(this, S).classList.remove(e.previous), t(this, S).classList.add(e.current)) : !e.current && e.previous && t(this, S).classList.remove(e.previous);
1420
- }, hi = function(...e) {
1424
+ }, ni = function(...e) {
1421
1425
  e.forEach((s) => {
1422
1426
  s && t(this, S).classList.remove(s);
1423
1427
  });
1424
- }, ni = function(...e) {
1428
+ }, oi = function(...e) {
1425
1429
  e.forEach((s) => {
1426
1430
  s && t(this, S).style.removeProperty(`--${s}`);
1427
1431
  });
1428
- }, Ds = function() {
1429
- o(this, m, hi).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Mt).current, t(this, k).current), o(this, m, ni).call(this, t(this, ct).current, t(this, lt).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1432
+ }, Os = function() {
1433
+ o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Ft).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1430
1434
  };
1431
- q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Fi);
1432
- class Ti extends $s {
1435
+ q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ti);
1436
+ class Ri extends Bs {
1433
1437
  handleClick(n) {
1434
1438
  this.scrollElement.setPosition(
1435
- this.scrollElement.vertical ? os(this) : cs(this),
1439
+ this.scrollElement.vertical ? ls(this) : cs(this),
1436
1440
  n
1437
1441
  );
1438
1442
  }
@@ -1443,30 +1447,30 @@ class Ti extends $s {
1443
1447
  super.disconnectedCallback();
1444
1448
  }
1445
1449
  }
1446
- q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ti);
1447
- var Cs;
1448
- const Bs = class Bs extends ss {
1450
+ q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ri);
1451
+ var Ps;
1452
+ const Ws = class Ws extends is {
1449
1453
  constructor() {
1450
1454
  super(...arguments);
1451
- i(this, Cs, () => {
1455
+ i(this, Ps, () => {
1452
1456
  const e = this.scrollElement.counter.current + 1, s = parseInt(this.getAttribute("pad") || "0");
1453
1457
  this.textContent = e.toString().padStart(s, "0");
1454
1458
  });
1455
1459
  }
1456
1460
  connectedCallback() {
1457
- return Vs(this, null, function* () {
1458
- ks(Bs.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Cs));
1461
+ return zs(this, null, function* () {
1462
+ Vs(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.counter.subscribe(t(this, Ps));
1459
1463
  });
1460
1464
  }
1461
1465
  disconnectedCallback() {
1462
- this.scrollElement.counter.unsubscribe(t(this, Cs));
1466
+ this.scrollElement.counter.unsubscribe(t(this, Ps));
1463
1467
  }
1464
1468
  };
1465
- Cs = new WeakMap();
1466
- let Os = Bs;
1467
- q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Os);
1469
+ Ps = new WeakMap();
1470
+ let Hs = Ws;
1471
+ q && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Hs);
1468
1472
  var oe;
1469
- const Ws = class Ws extends ss {
1473
+ const Ns = class Ns extends is {
1470
1474
  constructor() {
1471
1475
  super(...arguments);
1472
1476
  i(this, oe, () => {
@@ -1475,8 +1479,8 @@ const Ws = class Ws extends ss {
1475
1479
  });
1476
1480
  }
1477
1481
  connectedCallback() {
1478
- return Vs(this, null, function* () {
1479
- ks(Ws.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
1482
+ return zs(this, null, function* () {
1483
+ Vs(Ns.prototype, this, "connectedCallback").call(this), this.scrollElement.sectionsInViewCSSProperty.subscribe(
1480
1484
  t(this, oe)
1481
1485
  ), this.scrollElement.addEventListener(
1482
1486
  "scrollSectionsChange",
@@ -1494,16 +1498,16 @@ const Ws = class Ws extends ss {
1494
1498
  }
1495
1499
  };
1496
1500
  oe = new WeakMap();
1497
- let Hs = Ws;
1498
- q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", Hs);
1501
+ let $s = Ns;
1502
+ q && !customElements.get("e-scroll-total") && customElements.define("e-scroll-total", $s);
1499
1503
  export {
1500
- Mi as ScrollBulletButtonsElement,
1501
- Os as ScrollCounterElement,
1502
- zs as ScrollElement,
1503
- Ti as ScrollSectionButtonElement,
1504
- Fi as ScrollSegmentElement,
1505
- zi as ScrollSetButtonElement,
1506
- Ai as ScrollStepButtonElement,
1507
- Hs as ScrollTotalElement,
1508
- Vi as ScrollbarElement
1504
+ Fi as ScrollBulletButtonsElement,
1505
+ Hs as ScrollCounterElement,
1506
+ As as ScrollElement,
1507
+ Ri as ScrollSectionButtonElement,
1508
+ Ti as ScrollSegmentElement,
1509
+ Ai as ScrollSetButtonElement,
1510
+ Ii as ScrollStepButtonElement,
1511
+ $s as ScrollTotalElement,
1512
+ zi as ScrollbarElement
1509
1513
  };