aptechka 0.71.26 → 0.71.27

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,20 +1,20 @@
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 ci = Object.defineProperty;
2
+ var qs = Object.getOwnPropertySymbols, li = 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 ? ci(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(li(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));
@@ -32,57 +32,57 @@ var Vs = (d, n, e) => new Promise((s, h) => {
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 cs, g as ls, 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
49
  import { scrollEntries as ce } from "../scroll-entries/index.js";
50
- import { cssUnitParser as Ks } from "../css-unit-parser/index.js";
50
+ import { cssUnitParser as Zs } from "../css-unit-parser/index.js";
51
51
  import { CSSProperty as c } from "../css-property/index.js";
52
- import { d as Ei } from "../Viewport-DA10iWAO.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, Dt, pe, Ot, Fe;
58
+ class ki {
59
59
  constructor(n, e, s) {
60
60
  i(this, Ot);
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
68
  i(this, Dt, 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), ce.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);
@@ -100,7 +100,7 @@ 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 ? cs(t(this, p)) : ls(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;
@@ -111,7 +111,7 @@ class Li {
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) {
@@ -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, Ot, Fe).call(this, "index", n);
131
131
  }
132
132
  setCurrentIndex(n) {
133
- o(this, Ot, Me).call(this, "current-index", n);
133
+ o(this, Ot, 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, Ot, 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, Ot, 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, Ot, 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(), Dt = new WeakMap(), pe = new WeakMap(), Ot = 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,8 +184,8 @@ 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, Ht, mt, St, gt, J, $t, Bt, vt, Wt, me, Q, V, Se, ge, ve, ye, De, Ce, X, Pe, Nt, Y, qt, yt, Ee, Gt, we, xe, Ut, Kt, Zt, b, Oe, G, a, ds, fs, L, P, U, it, jt, rt, F, z, He, Ct, Pt, Et, K, $e, Jt, Qt, Le, ht, A, Be, wt, ke, We, l, 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
191
  i(this, l);
@@ -226,7 +226,7 @@ class zs extends HTMLElement {
226
226
  i(this, ge, new c(this, "--mass", 0));
227
227
  i(this, ve, new c(this, "--stiffness", 0));
228
228
  i(this, ye, new c(this, "--mouse-drag", !1));
229
- i(this, Re, new c(
229
+ i(this, De, new c(
230
230
  this,
231
231
  "--section-distance-scale",
232
232
  0.5
@@ -266,15 +266,16 @@ class zs extends HTMLElement {
266
266
  "--focus-duration",
267
267
  3e3
268
268
  ));
269
+ i(this, xe, new c(this, "--shift-limit", 0));
269
270
  i(this, Ut, new c(this, "--disabled", !1));
270
271
  i(this, Kt, new c(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, He, 0);
287
288
  i(this, Ct, 0);
288
289
  i(this, Pt, !1);
289
290
  i(this, Et, !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, Be, null);
298
299
  i(this, wt, []);
299
- i(this, Le, !1);
300
- i(this, Be);
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
+ i(this, ps, () => {
309
310
  if (!t(this, Pt) || t(this, K) || t(this, Et))
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, l, 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, l, _s).call(this), ce.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, l, 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,15 +333,15 @@ 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, l, 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) {
@@ -350,33 +351,33 @@ class zs extends HTMLElement {
350
351
  duration: t(this, Bt).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, l, 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
+ i(this, ms, xs(() => {
363
364
  const e = t(this, wt).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, l, 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
  ));
@@ -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);
@@ -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, l, Rs).call(this, "current");
483
487
  }
484
488
  get targetScrollValue() {
485
- return o(this, l, Ts).call(this, "target");
489
+ return o(this, l, 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,7 +520,7 @@ 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() {
@@ -529,7 +533,7 @@ class zs extends HTMLElement {
529
533
  return t(this, Pt);
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, l, 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, l, 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 le = o(this, l, ns).call(this), Me = t(this, a)[le];
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, l, 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(Math.min(e, this.distance), 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 ? cs(this) : ls(this)), r(this, fs, this.vertical ? cs(t(this, b)) : ls(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;
@@ -645,26 +649,26 @@ 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, 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, ws).call(this) : o(this, l, 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
+ ce.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);
668
+ })), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
669
+ o(this, l, Is).call(this);
666
670
  }), t(this, Ht).subscribe(() => {
667
- o(this, l, As).call(this);
671
+ o(this, l, Is).call(this);
668
672
  }), t(this, Wt).subscribe((e) => {
669
673
  t(this, it).axis = e.current ? "max" : t(this, D).current;
670
674
  }), t(this, me).subscribe((e) => {
@@ -672,15 +676,15 @@ class zs extends HTMLElement {
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, l, hs).call(this) : o(this, l, 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, l, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, l, 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, l, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, l, Te).call(this));
680
684
  }), t(this, Q).subscribe((e) => {
681
685
  t(this, A) && (t(this, T).call(this), o(this, l, 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);
684
688
  }), t(this, Se).subscribe((e) => {
685
689
  t(this, f).damping = e.current;
686
690
  }), t(this, ge).subscribe((e) => {
@@ -706,53 +710,53 @@ class zs extends HTMLElement {
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, l, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, l, 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, l, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, l, Fs).call(this));
716
+ }), 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, De).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, 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, 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, De).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, 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, l, 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() {
722
+ 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(), De = 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(), 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(), Ct = new WeakMap(), Pt = new WeakMap(), Et = 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(), wt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), l = new WeakSet(), Is = function() {
719
723
  const e = t(this, D).current, s = t(this, Ht).current ? "-reverse" : "";
720
724
  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));
725
+ }, hs = function() {
726
+ o(this, l, 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
731
  }), t(this, T).call(this), o(this, l, ae).call(this);
728
- }, Fe = function() {
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, Et) || (r(this, Et, !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, Pt) || (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, Et) && (r(this, Et, !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, l, 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, l, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
747
+ }, Fs = function() {
748
+ t(this, K) && (r(this, K, !1), ce.register(this), this.tryResplit(), o(this, l, 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) {
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) {
751
755
  t(this, Nt).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;
@@ -770,10 +774,10 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), mt
770
774
  h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
771
775
  const g = e - this.limit - 1 + t(this, yt).current, v = e + s, C = this.sections.length - v;
772
776
  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);
777
+ }), t(this, ms).call(this);
774
778
  }
775
779
  }
776
- }, Ys = function() {
780
+ }, _s = function() {
777
781
  if (t(this, Y).current) {
778
782
  const e = Math.floor(t(this, wt).length / 2);
779
783
  t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
@@ -785,59 +789,59 @@ 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 le = t(this, Le) ? C.size * g * -1 * 0.4 : 0, Me = C.position;
798
+ this.overscroll && Me === 0 && e && (Me = t(this, Ct));
799
+ let rs = Math.abs(Me + le - 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, xt, Lt, 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
826
  i(this, xt, !1);
823
827
  i(this, Lt, 0);
824
- i(this, qe, 0);
825
828
  i(this, Ge, 0);
829
+ i(this, Ue, 0);
826
830
  i(this, Yt, () => {
827
831
  r(this, xt, this.offsetWidth > this.offsetHeight);
828
832
  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);
833
+ 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, Ge, e - t(this, Lt)), 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, xt) ? 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, xt) ? 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
  () => {
@@ -849,7 +853,7 @@ class Vi extends ss {
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(), xt = new WeakMap(), Lt = 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 c(this, "--behaviour", "smooth"));
907
+ i(this, je, new c(
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 c(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,37 +919,37 @@ 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 c(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 kt, Xe;
948
+ class Ii extends Bs {
945
949
  constructor() {
946
950
  super(...arguments);
947
951
  i(this, kt, new c(this, "--step", 1));
948
- i(this, Qe, () => {
952
+ i(this, Xe, () => {
949
953
  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");
950
954
  });
951
955
  }
@@ -954,68 +958,68 @@ class Ai extends $s {
954
958
  }
955
959
  connectedCallback() {
956
960
  super.connectedCallback(), this.scrollElement && (t(this, kt).subscribe(() => {
957
- t(this, Qe).call(this);
961
+ t(this, Xe).call(this);
958
962
  }), t(this, kt).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
968
  super.disconnectedCallback(), t(this, kt).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
+ kt = 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, Vt, zt, At, It, I, H, $, B, Mt, k, ct, lt, _, Ft, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Tt, he, es, x, ft, R, M, j, Ae, Rt, 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);
@@ -1056,7 +1060,7 @@ class Fi extends ss {
1056
1060
  i(this, lt);
1057
1061
  i(this, _);
1058
1062
  i(this, Ft);
1059
- i(this, Ve);
1063
+ i(this, ze);
1060
1064
  i(this, ut);
1061
1065
  i(this, at);
1062
1066
  i(this, dt);
@@ -1066,22 +1070,22 @@ 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
1075
  i(this, Tt);
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);
1083
+ i(this, Ae);
1080
1084
  i(this, Rt);
1081
1085
  i(this, y);
1082
1086
  i(this, ne);
1083
- i(this, es);
1084
- i(this, Ae);
1087
+ i(this, ss);
1088
+ i(this, Ie);
1085
1089
  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(
1086
1090
  this,
1087
1091
  "--distance-offset",
@@ -1117,27 +1121,27 @@ class Fi extends ss {
1117
1121
  this,
1118
1122
  "--progress-arc-mult",
1119
1123
  1
1120
- )), r(this, Ve, new c(
1124
+ )), r(this, ze, new c(
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 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, ts, []), r(this, S, this), r(this, Tt, 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, Rt, !1), r(this, y, !0), r(this, ne, !1), this.resize = () => {
1129
+ r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? cs(this, this.scrollElement) : ls(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(() => {
1134
+ 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, Ae, !0), t(this, Ie).call(this);
1135
+ }, this.findAnotherScrollEntries = xs(() => {
1132
1136
  const e = ce.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() {
@@ -1180,7 +1184,7 @@ class Fi extends ss {
1180
1184
  return t(this, Ft);
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);
@@ -1256,18 +1260,18 @@ class Fi extends ss {
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, Rt) && t(this, It).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, 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, 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, Rt, !1), r(this, y, !0), o(this, m, Os).call(this);
1271
1275
  }
1272
1276
  enable() {
1273
1277
  r(this, y, !1);
@@ -1303,7 +1307,7 @@ 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, 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, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1307
1311
  let e = !1;
1308
1312
  this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, ee).subscribe((s) => {
1309
1313
  t(this, x).damping = s.current;
@@ -1312,7 +1316,7 @@ class Fi extends ss {
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);
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);
1316
1320
  }), t(this, Vt).subscribe((s) => {
1317
1321
  s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1318
1322
  }), t(this, At).subscribe(() => {
@@ -1340,7 +1344,7 @@ class Fi extends ss {
1340
1344
  }), t(this, _).subscribe((s) => {
1341
1345
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
1342
1346
  }), t(this, Ft).subscribe((s) => {
1343
- t(this, y) || o(this, m, Rs).call(this);
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,14 +1356,14 @@ 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
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, 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();
@@ -1374,42 +1378,42 @@ 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, Tt) - 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() {
1387
+ 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(), 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(), Tt = 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(), Rt = new WeakMap(), y = new WeakMap(), ne = new WeakMap(), m = new WeakSet(), ti = function() {
1384
1388
  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(
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() {
1393
+ }, ei = function() {
1390
1394
  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(
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];
1415
+ }, ss = new WeakMap(), Ie = new WeakMap(), Ds = function() {
1416
+ const e = t(this, x)[t(this, ze).current];
1413
1417
  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);
1414
1418
  }, de = function(e) {
1415
1419
  if (t(this, y)) {
@@ -1417,22 +1421,22 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
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, Mt).current, t(this, k).current), o(this, m, oi).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);
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 ? cs(this) : ls(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
  };