aptechka 0.13.1 → 0.15.0

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