aptechka 0.43.4 → 0.44.1

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 (105) hide show
  1. package/lib/Animation-D1lL_XhF.cjs +1 -0
  2. package/lib/Animation-Je56LXXj.js +106 -0
  3. package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
  4. package/lib/Damped-BbJjFOLH.cjs +1 -0
  5. package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
  6. package/lib/Store-DRp_K37w.cjs +1 -0
  7. package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
  8. package/lib/Tweened-Dk1UNPSH.cjs +1 -0
  9. package/lib/accordion/index.cjs +1 -1
  10. package/lib/accordion/index.js +45 -45
  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 +2 -2
  15. package/lib/canvas/index.cjs +1 -1
  16. package/lib/canvas/index.js +11 -11
  17. package/lib/class-linked-status/index.cjs +1 -1
  18. package/lib/class-linked-status/index.js +12 -11
  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 +7 -6
  23. package/lib/custom-scrollbar/index.cjs +1 -1
  24. package/lib/custom-scrollbar/index.js +13 -12
  25. package/lib/dev/index.cjs +1 -1
  26. package/lib/dev/index.js +7 -6
  27. package/lib/device/index.cjs +1 -1
  28. package/lib/device/index.js +2 -2
  29. package/lib/element-resizer/index.cjs +1 -1
  30. package/lib/element-resizer/index.js +1 -1
  31. package/lib/en3/index.cjs +1 -1
  32. package/lib/en3/index.js +9 -8
  33. package/lib/iframe/index.cjs +1 -1
  34. package/lib/iframe/index.js +6 -5
  35. package/lib/image/index.cjs +1 -1
  36. package/lib/image/index.js +5 -4
  37. package/lib/index-Cqw2NKev.cjs +1 -0
  38. package/lib/index-euf5anj6.js +64 -0
  39. package/lib/intersector/index.cjs +1 -1
  40. package/lib/intersector/index.js +4 -61
  41. package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
  42. package/lib/jss-B_mh4mIw.cjs +1 -0
  43. package/lib/ladder/index.cjs +1 -1
  44. package/lib/ladder/index.js +35 -34
  45. package/lib/layout-box/index.cjs +1 -1
  46. package/lib/layout-box/index.js +1 -1
  47. package/lib/loading/index.cjs +1 -1
  48. package/lib/loading/index.js +10 -9
  49. package/lib/masonry-layout/index.cjs +1 -1
  50. package/lib/masonry-layout/index.js +17 -16
  51. package/lib/media/index.cjs +1 -1
  52. package/lib/media/index.js +7 -6
  53. package/lib/morph/Morph.d.ts +11 -2
  54. package/lib/morph/MorphAnnouncer.d.ts +0 -1
  55. package/lib/morph/index.cjs +1 -1
  56. package/lib/morph/index.js +263 -211
  57. package/lib/need_redo_tweaker/index.cjs +3 -3
  58. package/lib/need_redo_tweaker/index.js +260 -260
  59. package/lib/pointer/index.cjs +1 -1
  60. package/lib/pointer/index.js +34 -33
  61. package/lib/popover/index.cjs +1 -1
  62. package/lib/popover/index.js +25 -25
  63. package/lib/router/index.cjs +1 -1
  64. package/lib/router/index.js +6 -5
  65. package/lib/scroll/index.cjs +1 -1
  66. package/lib/scroll/index.js +278 -278
  67. package/lib/scroll-segment/index.cjs +1 -1
  68. package/lib/scroll-segment/index.js +57 -56
  69. package/lib/sequence/index.cjs +1 -1
  70. package/lib/sequence/index.js +6 -6
  71. package/lib/size-element/index.cjs +1 -1
  72. package/lib/size-element/index.js +12 -11
  73. package/lib/slicer/SlicerElement.d.ts +2 -2
  74. package/lib/slicer/index.cjs +2 -2
  75. package/lib/slicer/index.js +10 -9
  76. package/lib/source/index.cjs +2 -2
  77. package/lib/source/index.js +2 -2
  78. package/lib/store/index.cjs +1 -1
  79. package/lib/store/index.js +13 -12
  80. package/lib/ticker/index.cjs +1 -1
  81. package/lib/ticker/index.js +1 -1
  82. package/lib/url-CLvdjbII.cjs +1 -0
  83. package/lib/url-CfcHdBT6.js +49 -0
  84. package/lib/utils/index.cjs +1 -1
  85. package/lib/utils/index.d.ts +1 -0
  86. package/lib/utils/index.js +163 -148
  87. package/lib/utils/timeouts.d.ts +5 -0
  88. package/lib/utils/url.d.ts +15 -2
  89. package/lib/video/index.cjs +1 -1
  90. package/lib/video/index.js +7 -6
  91. package/lib/window-resizer/index.cjs +1 -1
  92. package/lib/window-resizer/index.js +1 -1
  93. package/lib/youtube/index.cjs +1 -1
  94. package/lib/youtube/index.js +13 -12
  95. package/package.json +1 -1
  96. package/lib/Animation-CMiBKrwE.cjs +0 -1
  97. package/lib/Animation-DPRlQfW2.js +0 -105
  98. package/lib/Damped-CHZ314Rn.cjs +0 -1
  99. package/lib/Store-C2J4Q87x.cjs +0 -1
  100. package/lib/Tweened-Dn6CMA-p.cjs +0 -1
  101. package/lib/browser-0zX67oeU.js +0 -4
  102. package/lib/browser-CpzFX2xg.cjs +0 -1
  103. package/lib/jss-GJLvaNfT.cjs +0 -1
  104. package/lib/url-CHQeS8b5.cjs +0 -1
  105. package/lib/url-DqQuzXwT.js +0 -37
@@ -14,51 +14,51 @@ var Ee = (a, h, e) => h in a ? Me(a, h, { enumerable: !0, configurable: !0, writ
14
14
  };
15
15
  var de = (a, h, e) => h.has(a) || xe("Cannot " + e);
16
16
  var t = (a, h, e) => (de(a, h, "read from private field"), e ? e.call(a) : h.get(a)), s = (a, h, e) => h.has(a) ? xe("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(a) : h.set(a, e), r = (a, h, e, i) => (de(a, h, "write to private field"), i ? i.call(a, e) : h.set(a, e), e), c = (a, h, e) => (de(a, h, "access private method"), e);
17
- import { S as Re } from "../Store-Cm3LPXlx.js";
18
- import { i as ae } from "../browser-0zX67oeU.js";
17
+ import { S as Re } from "../Store-D2xCXENW.js";
18
+ import { i as H } from "../index-euf5anj6.js";
19
19
  import { a as He } from "../easings-Bni3YAAW.js";
20
- import { d as he } from "../events-CsVF98U6.js";
21
- import { c as ke } from "../jss-CjccJC-K.js";
20
+ import { d as oe } from "../events-CsVF98U6.js";
21
+ import { c as ke } from "../jss-BQSxj7Ls.js";
22
22
  import { a as pe, g as fe } from "../layout-DpZo-I0y.js";
23
23
  import { c as ze } from "../math-BOBiC4TN.js";
24
24
  import { l as Be } from "../polyfills-CxfUK5OU.js";
25
25
  import "../ticker/index.js";
26
26
  import { TICK_ORDER as We, RESIZE_ORDER as me } from "../order/index.js";
27
- import { D as Fe } from "../Damped-DxylD27S.js";
28
- import { T as $e } from "../Tweened-p5hYr6lL.js";
27
+ import { D as Fe } from "../Damped-BMmEn7PH.js";
28
+ import { T as $e } from "../Tweened-BNCj14Jz.js";
29
29
  import { WheelControls as Ne, KeyboardControls as qe, DragControls as Ue, AutoplayControls as Ge } from "../controls/index.js";
30
- import { windowResizer as kt } from "../window-resizer/index.js";
31
- import { scrollEntries as bt } from "../scroll-entries/index.js";
30
+ import { windowResizer as zt } from "../window-resizer/index.js";
31
+ import { scrollEntries as St } from "../scroll-entries/index.js";
32
32
  import { cssUnitParser as Le } from "../css-unit-parser/index.js";
33
33
  import { CSSProperty as p } from "../css-property/index.js";
34
34
  import { device as Ke } from "../device/index.js";
35
- import { elementResizer as Zt } from "../element-resizer/index.js";
35
+ import { elementResizer as jt } from "../element-resizer/index.js";
36
36
  import { s as _e } from "../gestures-D2Fdra_G.js";
37
37
  import { b as Ie } from "../dom-CVWzyXPH.js";
38
38
  import { d as Ze } from "../function-C10DGppn.js";
39
39
  import { ScrollSegmentElement as je } from "../scroll-segment/index.js";
40
- var b, Jt, g, St, H, J;
40
+ var b, Qt, g, gt, B, Q;
41
41
  class Je {
42
42
  constructor(h, e, i) {
43
43
  s(this, b);
44
- s(this, Jt);
44
+ s(this, Qt);
45
45
  s(this, g);
46
- s(this, St, 0);
47
- s(this, H, 0);
48
- s(this, J, null);
49
- r(this, b, h), r(this, Jt, e), r(this, g, i), bt.register(t(this, b));
46
+ s(this, gt, 0);
47
+ s(this, B, 0);
48
+ s(this, Q, null);
49
+ r(this, b, h), r(this, Qt, e), r(this, g, i), St.register(t(this, b));
50
50
  }
51
51
  get index() {
52
- return t(this, Jt);
52
+ return t(this, Qt);
53
53
  }
54
54
  get size() {
55
- return t(this, St);
55
+ return t(this, gt);
56
56
  }
57
57
  get position() {
58
- return t(this, H);
58
+ return t(this, B);
59
59
  }
60
60
  destroy() {
61
- bt.unregister(t(this, b)), this.unsetTransform();
61
+ St.unregister(t(this, b)), this.unsetTransform();
62
62
  }
63
63
  unsetTransform() {
64
64
  t(this, b).style.transform = "", this.mark(null), this.setSize();
@@ -67,30 +67,30 @@ class Je {
67
67
  h ? (t(this, b).style.setProperty("--size", h + "px"), t(this, g).axisCSSProperty.current === "x" ? (t(this, b).style.width = h + "px", t(this, b).style.height = "") : (t(this, b).style.height = h + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
68
68
  }
69
69
  resize() {
70
- r(this, St, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, H, t(this, g).vertical ? pe(t(this, b)) : fe(t(this, b))), r(this, H, t(this, H) - t(this, g).contentPosition);
70
+ r(this, gt, t(this, g).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, B, t(this, g).vertical ? pe(t(this, b)) : fe(t(this, b))), r(this, B, t(this, B) - t(this, g).contentPosition);
71
71
  }
72
72
  transform() {
73
73
  let h = 0;
74
74
  const e = t(this, g).viewportSize * t(this, g).sectionDistanceScaleCSSProperty.current;
75
- t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this, H) + t(this, St) < t(this, g).currentScrollValue && (h = t(this, g).distance * -1 - t(this, g).gap), bt.update(
75
+ t(this, g).loopCSSProperty.current && t(this, g).overscroll && t(this, B) + t(this, gt) < t(this, g).currentScrollValue && (h = t(this, g).distance * -1 - t(this, g).gap), St.update(
76
76
  t(this, b),
77
77
  t(this, g).axisCSSProperty.current,
78
78
  h
79
79
  );
80
- const i = t(this, g).currentScrollValue + h, n = t(this, H) - t(this, g).viewportSize - e, d = t(this, H) + t(this, St) + e, m = ze(i, n, d);
80
+ const i = t(this, g).currentScrollValue + h, n = t(this, B) - t(this, g).viewportSize - e, d = t(this, B) + t(this, gt) + e, m = ze(i, n, d);
81
81
  t(this, g).vertical ? t(this, b).style.transform = `translate3d(0px, ${m * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${m * -1}px, 0px, 0px)`;
82
82
  }
83
83
  mark(h) {
84
- t(this, J) !== h && (t(this, J) && t(this, b).classList.remove(t(this, J)), h && t(this, b).classList.add(h), r(this, J, h), he(t(this, b), "scrollSectionMarkChange", {
84
+ t(this, Q) !== h && (t(this, Q) && t(this, b).classList.remove(t(this, Q)), h && t(this, b).classList.add(h), r(this, Q, h), oe(t(this, b), "scrollSectionMarkChange", {
85
85
  composed: !0,
86
86
  detail: {
87
- mark: t(this, J)
87
+ mark: t(this, Q)
88
88
  },
89
89
  custom: !0
90
90
  }));
91
91
  }
92
92
  }
93
- b = new WeakMap(), Jt = new WeakMap(), g = new WeakMap(), St = new WeakMap(), H = new WeakMap(), J = new WeakMap();
93
+ b = new WeakMap(), Qt = new WeakMap(), g = new WeakMap(), gt = new WeakMap(), B = new WeakMap(), Q = new WeakMap();
94
94
  const Qe = ke({
95
95
  ":host": {
96
96
  position: "relative",
@@ -129,118 +129,118 @@ const Qe = ke({
129
129
  flexShrink: "0"
130
130
  }
131
131
  });
132
- var u, gt, P, Q, B, W, F, A, X, Y, $, tt, vt, D, y, yt, Ct, wt, Et, zt, T, xt, et, M, st, N, it, Pt, rt, nt, ht, f, It, l, Qt, Xt, v, S, k, V, ot, O, w, E, Tt, lt, q, U, ct, At, at, G, Dt, R, x, o, be, _t, Lt, oe, le, Se, ge, z, Mt, Te, Vt, Yt, ve, ye, mt, ce, te;
133
- class jt extends HTMLElement {
132
+ var u, vt, P, X, W, F, $, A, Y, tt, N, et, yt, D, y, Ct, wt, Et, xt, It, T, Pt, st, M, it, q, rt, Lt, nt, ht, ot, f, Tt, l, Xt, Yt, v, S, k, V, lt, O, w, E, At, ct, U, G, at, Dt, ut, K, Mt, R, x, o, be, Zt, kt, le, ce, Se, ge, z, Vt, Te, Ot, te, ve, ye, bt, ae, ee;
133
+ class Jt extends HTMLElement {
134
134
  constructor() {
135
135
  super();
136
136
  s(this, o);
137
137
  s(this, u, null);
138
- s(this, gt, new p(this, "--controls", !0));
138
+ s(this, vt, new p(this, "--controls", !0));
139
139
  s(this, P, new p(this, "--axis", "y"));
140
- s(this, Q, new p(this, "--reverse", !1));
141
- s(this, B, new p(this, "--direction", 0));
142
- s(this, W, new p(this, "--pages", 0, {
140
+ s(this, X, new p(this, "--reverse", !1));
141
+ s(this, W, new p(this, "--direction", 0));
142
+ s(this, F, new p(this, "--pages", 0, {
143
143
  validate: (e) => Math.max(0, e - 1)
144
144
  }));
145
- s(this, F, new p(this, "--split", !1));
145
+ s(this, $, new p(this, "--split", !1));
146
146
  s(this, A, new p(this, "--sectional", !1));
147
- s(this, X, new p(
147
+ s(this, Y, new p(
148
148
  this,
149
149
  "--tween-easing",
150
150
  !1
151
151
  ));
152
- s(this, Y, new p(
152
+ s(this, tt, new p(
153
153
  this,
154
154
  "--tween-duration",
155
155
  !1
156
156
  ));
157
- s(this, $, new p(this, "--auto-size", !1));
158
- s(this, tt, new p(
157
+ s(this, N, new p(this, "--auto-size", !1));
158
+ s(this, et, new p(
159
159
  this,
160
160
  "--wheel-max-delta",
161
161
  !1
162
162
  ));
163
- s(this, vt, new p(this, "--drag-inertion", 1));
163
+ s(this, yt, new p(this, "--drag-inertion", 1));
164
164
  s(this, D, new p(
165
165
  this,
166
166
  "--sections-in-view",
167
167
  1
168
168
  ));
169
169
  s(this, y, new p(this, "--loop", !1));
170
- s(this, yt, new p(this, "--damping", 20));
171
- s(this, Ct, new p(this, "--mass", 0));
172
- s(this, wt, new p(this, "--stiffness", 0));
173
- s(this, Et, new p(this, "--mouse-drag", !1));
174
- s(this, zt, new p(
170
+ s(this, Ct, new p(this, "--damping", 20));
171
+ s(this, wt, new p(this, "--mass", 0));
172
+ s(this, Et, new p(this, "--stiffness", 0));
173
+ s(this, xt, new p(this, "--mouse-drag", !1));
174
+ s(this, It, new p(
175
175
  this,
176
176
  "--section-distance-scale",
177
177
  0.5
178
178
  ));
179
179
  s(this, T, new p(this, "--autoplay", 0));
180
- s(this, xt, new p(
180
+ s(this, Pt, new p(
181
181
  this,
182
182
  "--autoplay-pause-duration",
183
183
  0
184
184
  ));
185
- s(this, et, new p(
185
+ s(this, st, new p(
186
186
  this,
187
187
  "--autoplay-user-direction",
188
188
  !1
189
189
  ));
190
190
  s(this, M, new p(this, "--classes", !1));
191
- s(this, st, new p(
191
+ s(this, it, new p(
192
192
  this,
193
193
  "--current-index-start-offset",
194
194
  0
195
195
  ));
196
- s(this, N, new p(
196
+ s(this, q, new p(
197
197
  this,
198
198
  "--current-index-end-offset",
199
199
  0
200
200
  ));
201
- s(this, it, new p(this, "--focus-delay", 0));
202
- s(this, Pt, new p(
201
+ s(this, rt, new p(this, "--focus-delay", 0));
202
+ s(this, Lt, new p(
203
203
  this,
204
204
  "--focus-duration",
205
205
  3e3
206
206
  ));
207
- s(this, rt, new p(this, "--disabled", !1));
208
- s(this, nt, new p(this, "--hibernate", !1));
209
- s(this, ht, null);
207
+ s(this, nt, new p(this, "--disabled", !1));
208
+ s(this, ht, new p(this, "--hibernate", !1));
209
+ s(this, ot, null);
210
210
  s(this, f, null);
211
- s(this, It, null);
211
+ s(this, Tt, null);
212
212
  s(this, l, []);
213
- s(this, Qt, 0);
214
213
  s(this, Xt, 0);
214
+ s(this, Yt, 0);
215
215
  s(this, v, 0);
216
216
  s(this, S, 0);
217
217
  s(this, k, 0);
218
218
  s(this, V, null);
219
- s(this, ot, null);
219
+ s(this, lt, null);
220
220
  s(this, O, null);
221
221
  s(this, w, null);
222
222
  s(this, E, new Re(0));
223
- s(this, Tt, 0);
224
- s(this, lt, 0);
225
- s(this, q, !1);
226
- s(this, U, !0);
227
- s(this, ct, !0);
228
- s(this, At);
229
- s(this, at);
230
- s(this, G, new $e());
231
- s(this, Dt, !1);
223
+ s(this, At, 0);
224
+ s(this, ct, 0);
225
+ s(this, U, !1);
226
+ s(this, G, !0);
227
+ s(this, at, !0);
228
+ s(this, Dt);
229
+ s(this, ut);
230
+ s(this, K, new $e());
231
+ s(this, Mt, !1);
232
232
  s(this, R, null);
233
233
  s(this, x, !1);
234
234
  s(this, z, () => {
235
- if (t(this, nt).current)
235
+ if (t(this, ht).current)
236
236
  return;
237
237
  t(this, u).unlistenAnimationFrame();
238
238
  const e = this.currentScrollValue / t(this, S) || 0, i = t(this, E).current;
239
- if (r(this, Qt, this.vertical ? pe(this) : fe(this)), r(this, Xt, this.vertical ? pe(t(this, f)) : fe(t(this, f))), r(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, k, Le.parse(
239
+ if (r(this, Xt, this.vertical ? pe(this) : fe(this)), r(this, Yt, this.vertical ? pe(t(this, f)) : fe(t(this, f))), r(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, k, Le.parse(
240
240
  getComputedStyle(t(this, f)).rowGap
241
241
  )) : r(this, k, Le.parse(
242
242
  getComputedStyle(t(this, f)).columnGap
243
- )), t(this, $).current && t(this, l).length) {
243
+ )), t(this, N).current && t(this, l).length) {
244
244
  const n = t(this, D).current, d = (t(this, v) - t(this, k) * (n - 1)) / n;
245
245
  t(this, l).forEach((m) => {
246
246
  m.setSize(d);
@@ -251,8 +251,8 @@ class jt extends HTMLElement {
251
251
  });
252
252
  if (t(this, l).forEach((n) => {
253
253
  n.resize();
254
- }), t(this, W).current) {
255
- r(this, S, t(this, v) * t(this, W).current);
254
+ }), t(this, F).current) {
255
+ r(this, S, t(this, v) * t(this, F).current);
256
256
  const n = t(this, S) + t(this, v);
257
257
  this.vertical ? (t(this, f).style.width = n + "px", t(this, f).style.height = "100%") : (t(this, f).style.height = n + "px", t(this, f).style.width = "100%");
258
258
  } else
@@ -263,9 +263,9 @@ class jt extends HTMLElement {
263
263
  }
264
264
  if (t(this, y).current && t(this, l).length) {
265
265
  const n = t(this, l)[t(this, l).length - 1], d = n.position + n.size - t(this, v), m = t(this, S) - d;
266
- r(this, lt, n.position + n.size + m);
266
+ r(this, ct, n.position + n.size + m);
267
267
  } else
268
- r(this, lt, t(this, S));
268
+ r(this, ct, t(this, S));
269
269
  if (t(this, A).current && t(this, l).length) {
270
270
  const n = t(this, l)[i];
271
271
  t(this, u).set(n.position, {
@@ -275,108 +275,108 @@ class jt extends HTMLElement {
275
275
  t(this, u).set(e * t(this, S), {
276
276
  equalize: !0
277
277
  });
278
- r(this, q, (this.vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth) > t(this, v)), this.classList.toggle("has-overflow", t(this, q)), t(this, q) ? t(this, rt).current || c(this, o, le).call(this) : c(this, o, oe).call(this), t(this, Mt).call(this);
278
+ r(this, U, (this.vertical ? t(this, f).offsetHeight : t(this, f).offsetWidth) > t(this, v)), this.classList.toggle("has-overflow", t(this, U)), t(this, U) ? t(this, nt).current || c(this, o, ce).call(this) : c(this, o, le).call(this), t(this, Vt).call(this);
279
279
  });
280
- s(this, Mt, () => {
281
- if (!t(this, q) || t(this, ct) || t(this, U))
280
+ s(this, Vt, () => {
281
+ if (!t(this, U) || t(this, at) || t(this, G))
282
282
  return;
283
283
  const e = this.currentScrollValue;
284
- if (r(this, Tt, Math.max(0, e - t(this, S))), t(this, l).length) {
284
+ if (r(this, At, Math.max(0, e - t(this, S))), t(this, l).length) {
285
285
  for (let i = 0; i < t(this, l).length; i++)
286
286
  t(this, l)[i].transform();
287
- t(this, E).current = c(this, o, ce).call(this);
287
+ t(this, E).current = c(this, o, ae).call(this);
288
288
  } else
289
289
  this.vertical ? t(this, f).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, f).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
290
- bt.update(
290
+ St.update(
291
291
  this,
292
292
  t(this, P).current,
293
293
  e
294
294
  );
295
295
  });
296
- s(this, Vt, (e, i) => {
297
- t(this, gt).current && (c(this, o, ve).call(this, Math.sign(i) || 1), t(this, Yt).call(this, e, i));
296
+ s(this, Ot, (e, i) => {
297
+ t(this, vt).current && (c(this, o, ve).call(this, Math.sign(i) || 1), t(this, te).call(this, e, i));
298
298
  });
299
- s(this, Yt, (e, i) => {
300
- if (t(this, B).current) {
301
- if (t(this, B).current < 0 && i > 0)
299
+ s(this, te, (e, i) => {
300
+ if (t(this, W).current) {
301
+ if (t(this, W).current < 0 && i > 0)
302
302
  return;
303
- if (t(this, B).current > 0 && i < 0)
303
+ if (t(this, W).current > 0 && i < 0)
304
304
  return;
305
305
  }
306
- if (t(this, at) || t(this, G).unlistenAnimationFrame(), !t(this, T).current && t(this, it).current && (clearInterval(t(this, At)), r(this, At, setTimeout(() => {
307
- const n = t(this, l)[c(this, o, ce).call(this)];
306
+ if (t(this, ut) || t(this, K).unlistenAnimationFrame(), !t(this, T).current && t(this, rt).current && (clearInterval(t(this, Dt)), r(this, Dt, setTimeout(() => {
307
+ const n = t(this, l)[c(this, o, ae).call(this)];
308
308
  n && this.scrollToSection(n.index, {
309
309
  tween: {
310
- duration: t(this, Pt).current,
310
+ duration: t(this, Lt).current,
311
311
  easing: He
312
312
  }
313
313
  });
314
- }, t(this, it).current))), !(e.includes("drag") && !Ke.isTouch && !t(this, Et).current)) {
314
+ }, t(this, rt).current))), !(e.includes("drag") && !Ke.isTouch && !t(this, xt).current)) {
315
315
  if (t(this, A).current && e !== "drag") {
316
316
  const n = Math.sign(i);
317
317
  if (t(this, l).length) {
318
318
  const d = {
319
- tween: t(this, X).current || t(this, Y).current ? {
320
- easing: t(this, X).current || "easeInOutCubic",
321
- duration: t(this, Y).current || 500
319
+ tween: t(this, Y).current || t(this, tt).current ? {
320
+ easing: t(this, Y).current || "easeInOutCubic",
321
+ duration: t(this, tt).current || 500
322
322
  } : void 0
323
323
  };
324
- t(this, Dt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
324
+ t(this, Mt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
325
325
  } else
326
326
  t(this, u).shift(n * t(this, v));
327
327
  } else
328
328
  t(this, u).shift(i);
329
- r(this, Dt, e === "drag");
329
+ r(this, Mt, e === "drag");
330
330
  }
331
331
  });
332
- s(this, te, () => {
332
+ s(this, ee, () => {
333
333
  r(this, x, !0), this.hibernatedCSSProperty.current || c(this, o, ge).call(this);
334
334
  });
335
- if (ae) {
335
+ if (H) {
336
336
  const e = this.attachShadow({ mode: "open" });
337
337
  e.adoptedStyleSheets = [Qe];
338
338
  const i = document.createElement("div");
339
- i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this, ht, document.createElement("div")), t(this, ht).className = "content-wrapper", r(this, f, document.createElement("div")), t(this, f).className = "content", r(this, It, document.createElement("slot")), t(this, f).appendChild(t(this, It)), t(this, ht).appendChild(t(this, f)), e.appendChild(t(this, ht));
339
+ i.className = "static", i.innerHTML = '<slot name="static"></slot>', e.appendChild(i), r(this, ot, document.createElement("div")), t(this, ot).className = "content-wrapper", r(this, f, document.createElement("div")), t(this, f).className = "content", r(this, Tt, document.createElement("slot")), t(this, f).appendChild(t(this, Tt)), t(this, ot).appendChild(t(this, f)), e.appendChild(t(this, ot));
340
340
  }
341
341
  }
342
342
  get damped() {
343
343
  return t(this, u);
344
344
  }
345
345
  get controlsCSSProperty() {
346
- return t(this, gt);
346
+ return t(this, vt);
347
347
  }
348
348
  get axisCSSProperty() {
349
349
  return t(this, P);
350
350
  }
351
351
  get reverseCSSProperty() {
352
- return t(this, Q);
352
+ return t(this, X);
353
353
  }
354
354
  get directionCSSProperty() {
355
- return t(this, B);
355
+ return t(this, W);
356
356
  }
357
357
  get pagesCSSProperty() {
358
- return t(this, W);
358
+ return t(this, F);
359
359
  }
360
360
  get splitCSSProperty() {
361
- return t(this, F);
361
+ return t(this, $);
362
362
  }
363
363
  get sectionalCSSProperty() {
364
364
  return t(this, A);
365
365
  }
366
366
  get easingCSSProperty() {
367
- return t(this, X);
367
+ return t(this, Y);
368
368
  }
369
369
  get durationCSSProperty() {
370
- return t(this, Y);
370
+ return t(this, tt);
371
371
  }
372
372
  get autoSizeCSSProperty() {
373
- return t(this, $);
373
+ return t(this, N);
374
374
  }
375
375
  get wheelMaxDeltaCSSProperty() {
376
- return t(this, tt);
376
+ return t(this, et);
377
377
  }
378
378
  get dragInertionCSSProperty() {
379
- return t(this, vt);
379
+ return t(this, yt);
380
380
  }
381
381
  get sectionsInViewCSSProperty() {
382
382
  return t(this, D);
@@ -385,49 +385,49 @@ class jt extends HTMLElement {
385
385
  return t(this, y);
386
386
  }
387
387
  get dampingCSSProperty() {
388
- return t(this, yt);
388
+ return t(this, Ct);
389
389
  }
390
390
  get massCSSProperty() {
391
- return t(this, Ct);
391
+ return t(this, wt);
392
392
  }
393
393
  get stiffnessCSSProperty() {
394
- return t(this, wt);
394
+ return t(this, Et);
395
395
  }
396
396
  get mouseDragCSSProperty() {
397
- return t(this, Et);
397
+ return t(this, xt);
398
398
  }
399
399
  get sectionDistanceScaleCSSProperty() {
400
- return t(this, zt);
400
+ return t(this, It);
401
401
  }
402
402
  get autoplayCSSProperty() {
403
403
  return t(this, T);
404
404
  }
405
405
  get autoplayPauseDurationCSSProperty() {
406
- return t(this, xt);
406
+ return t(this, Pt);
407
407
  }
408
408
  get autoplayUserDirectionCSSProperty() {
409
- return t(this, et);
409
+ return t(this, st);
410
410
  }
411
411
  get classesCSSProperty() {
412
412
  return t(this, M);
413
413
  }
414
414
  get currentIndexStartOffsetCSSProperty() {
415
- return t(this, st);
415
+ return t(this, it);
416
416
  }
417
417
  get currentIndexEndOffsetCSSProperty() {
418
- return t(this, N);
418
+ return t(this, q);
419
419
  }
420
420
  get focusDelayCSSProperty() {
421
- return t(this, it);
421
+ return t(this, rt);
422
422
  }
423
423
  get focusDurationCSSProperty() {
424
- return t(this, Pt);
424
+ return t(this, Lt);
425
425
  }
426
426
  get disabledCSSProperty() {
427
- return t(this, rt);
427
+ return t(this, nt);
428
428
  }
429
429
  get hibernatedCSSProperty() {
430
- return t(this, nt);
430
+ return t(this, ht);
431
431
  }
432
432
  get currentScrollValue() {
433
433
  return c(this, o, ye).call(this, "current");
@@ -436,7 +436,7 @@ class jt extends HTMLElement {
436
436
  return c(this, o, ye).call(this, "target");
437
437
  }
438
438
  get contentWrapperElement() {
439
- return t(this, ht);
439
+ return t(this, ot);
440
440
  }
441
441
  get contentElement() {
442
442
  return t(this, f);
@@ -445,10 +445,10 @@ class jt extends HTMLElement {
445
445
  return t(this, l);
446
446
  }
447
447
  get position() {
448
- return t(this, Qt);
448
+ return t(this, Xt);
449
449
  }
450
450
  get contentPosition() {
451
- return t(this, Xt);
451
+ return t(this, Yt);
452
452
  }
453
453
  get viewportSize() {
454
454
  return t(this, v);
@@ -468,16 +468,16 @@ class jt extends HTMLElement {
468
468
  );
469
469
  }
470
470
  get distance() {
471
- return t(this, lt);
471
+ return t(this, ct);
472
472
  }
473
473
  get loopDistance() {
474
- return t(this, y).current ? t(this, lt) + t(this, k) : t(this, lt);
474
+ return t(this, y).current ? t(this, ct) + t(this, k) : t(this, ct);
475
475
  }
476
476
  get hasOverflow() {
477
- return t(this, q);
477
+ return t(this, U);
478
478
  }
479
479
  get overscroll() {
480
- return t(this, Tt);
480
+ return t(this, At);
481
481
  }
482
482
  get scrollLine() {
483
483
  return t(this, R);
@@ -521,7 +521,7 @@ class jt extends HTMLElement {
521
521
  const n = t(this, E).current, d = c(this, o, Te).call(this, e), m = t(this, l)[n], C = t(this, l)[d];
522
522
  if (m && C) {
523
523
  let I = 0;
524
- const ue = c(this, o, ce).call(this), Kt = t(this, l)[ue], De = Kt ? this.targetScrollValue - Kt.position : 0;
524
+ const ue = c(this, o, ae).call(this), _t = t(this, l)[ue], De = _t ? this.targetScrollValue - _t.position : 0;
525
525
  t(this, y).current ? d === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : d === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - De, i);
526
526
  }
527
527
  }
@@ -529,8 +529,8 @@ class jt extends HTMLElement {
529
529
  t(this, l).length && this.scrollToSection(t(this, E).current + e, i);
530
530
  }
531
531
  setPosition(e, i) {
532
- c(this, o, ve).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, at) || (t(this, G).set(t(this, u).current, { equalize: !0 }), t(this, G).set(e, Pe({}, i.tween)), r(this, at, setTimeout(() => {
533
- r(this, at, void 0);
532
+ c(this, o, ve).call(this, Math.sign(e) || 1), i != null && i.tween ? t(this, ut) || (t(this, K).set(t(this, u).current, { equalize: !0 }), t(this, K).set(e, Pe({}, i.tween)), r(this, ut, setTimeout(() => {
533
+ r(this, ut, void 0);
534
534
  }, i.tween.duration || 0))) : t(this, u).set(e, {
535
535
  equalize: (i == null ? void 0 : i.behaviour) === "instant"
536
536
  });
@@ -539,101 +539,101 @@ class jt extends HTMLElement {
539
539
  this.setPosition(t(this, u).target + e, i);
540
540
  }
541
541
  connectedCallback() {
542
- bt.register(this), r(this, u, new Fe(0, {
542
+ St.register(this), r(this, u, new Fe(0, {
543
543
  damping: 0.01,
544
544
  min: 0,
545
545
  order: We.SCROLL
546
- })), this.setAttribute("tabindex", "0"), r(this, V, new Ne({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this, Vt)), r(this, ot, new qe({
546
+ })), this.setAttribute("tabindex", "0"), r(this, V, new Ne({ element: t(this, f) })), t(this, V).changeEvent.subscribe(t(this, Ot)), r(this, lt, new qe({
547
547
  element: this
548
- })), t(this, ot).changeEvent.subscribe(
549
- t(this, Vt)
550
- ), r(this, O, new Ue({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this, Vt)), r(this, w, new Ge({
548
+ })), t(this, lt).changeEvent.subscribe(
549
+ t(this, Ot)
550
+ ), r(this, O, new Ue({ element: t(this, f) })), t(this, O).changeEvent.subscribe(t(this, Ot)), r(this, w, new Ge({
551
551
  culling: this
552
- })), t(this, w).changeEvent.subscribe(t(this, Yt)), t(this, P).subscribe(() => {
552
+ })), t(this, w).changeEvent.subscribe(t(this, te)), t(this, P).subscribe(() => {
553
553
  c(this, o, be).call(this);
554
- }), t(this, Q).subscribe(() => {
554
+ }), t(this, X).subscribe(() => {
555
555
  c(this, o, be).call(this);
556
- }), t(this, tt).subscribe((e) => {
556
+ }), t(this, et).subscribe((e) => {
557
557
  t(this, V).axis = e.current ? "max" : t(this, P).current;
558
- }), t(this, vt).subscribe((e) => {
558
+ }), t(this, yt).subscribe((e) => {
559
559
  t(this, O).inertion = typeof e.current == "number" ? e.current : 1;
560
- }), t(this, W).subscribe(() => {
560
+ }), t(this, F).subscribe(() => {
561
561
  t(this, x) && t(this, z).call(this);
562
- }), t(this, F).subscribe(({ current: e }) => {
563
- t(this, x) && (e ? c(this, o, _t).call(this) : c(this, o, Lt).call(this));
562
+ }), t(this, $).subscribe(({ current: e }) => {
563
+ t(this, x) && (e ? c(this, o, Zt).call(this) : c(this, o, kt).call(this));
564
564
  }), t(this, A).subscribe((e) => {
565
- t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
566
- }), t(this, $).subscribe((e) => {
567
- t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
565
+ t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o, Zt).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, kt).call(this));
566
+ }), t(this, N).subscribe((e) => {
567
+ t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o, Zt).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, kt).call(this));
568
568
  }), t(this, D).subscribe((e) => {
569
- t(this, x) && (t(this, z).call(this), c(this, o, mt).call(this));
569
+ t(this, x) && (t(this, z).call(this), c(this, o, bt).call(this));
570
570
  }), t(this, y).subscribe((e) => {
571
- e.current ? (t(this, x) && (t(this, l).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, Tt, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
572
- }), t(this, yt).subscribe((e) => {
573
- t(this, u).damping = e.current;
571
+ e.current ? (t(this, x) && (t(this, l).length || (t(this, $).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, At, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
574
572
  }), t(this, Ct).subscribe((e) => {
575
- t(this, u).mass = e.current;
573
+ t(this, u).damping = e.current;
576
574
  }), t(this, wt).subscribe((e) => {
575
+ t(this, u).mass = e.current;
576
+ }), t(this, Et).subscribe((e) => {
577
577
  t(this, u).stiffness = e.current;
578
578
  }), t(this, T).subscribe((e) => {
579
- t(this, w).speed = e.current, !t(this, U) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
580
- }), t(this, et).subscribe((e) => {
579
+ t(this, w).speed = e.current, !t(this, G) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
580
+ }), t(this, st).subscribe((e) => {
581
581
  e.current || (t(this, w).direction = 1);
582
582
  }), t(this, M).subscribe((e) => {
583
- t(this, x) && c(this, o, mt).call(this);
584
- }), t(this, st).subscribe((e) => {
585
- t(this, x) && t(this, M).current && c(this, o, mt).call(this);
586
- }), t(this, N).subscribe((e) => {
587
- t(this, x) && t(this, M).current && c(this, o, mt).call(this);
583
+ t(this, x) && c(this, o, bt).call(this);
584
+ }), t(this, it).subscribe((e) => {
585
+ t(this, x) && t(this, M).current && c(this, o, bt).call(this);
586
+ }), t(this, q).subscribe((e) => {
587
+ t(this, x) && t(this, M).current && c(this, o, bt).call(this);
588
588
  }), t(this, u).isRunning.subscribe((e) => {
589
589
  this.classList.toggle("active", e.current);
590
590
  }), t(this, E).subscribe((e) => {
591
- t(this, l).length && c(this, o, mt).call(this);
592
- }), t(this, G).subscribe((e) => {
593
- t(this, G).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
594
- }), t(this, rt).subscribe((e) => {
595
- e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, oe).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, le).call(this));
591
+ t(this, l).length && c(this, o, bt).call(this);
592
+ }), t(this, K).subscribe((e) => {
593
+ t(this, K).isRunning.current && t(this, u).set(e.current, { equalize: !0 });
596
594
  }), t(this, nt).subscribe((e) => {
595
+ e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, le).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, ce).call(this));
596
+ }), t(this, ht).subscribe((e) => {
597
597
  e.current && !e.previous ? (this.classList.add("hibernated"), c(this, o, Se).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), c(this, o, ge).call(this));
598
- }), t(this, gt).observe(), t(this, P).observe(), t(this, Q).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, A).observe(), t(this, X).observe(), t(this, Y).observe(), t(this, $).observe(), t(this, tt).observe(), t(this, vt).observe(), t(this, D).observe(), t(this, y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, zt).observe(), t(this, T).observe(), t(this, T).observe(), t(this, xt).observe(), t(this, et).observe(), t(this, M).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, Pt).observe(), t(this, rt).observe(), t(this, nt).observe(), kt.subscribe(t(this, te), me.LAST);
598
+ }), t(this, vt).observe(), t(this, P).observe(), t(this, X).observe(), t(this, W).observe(), t(this, F).observe(), t(this, $).observe(), t(this, A).observe(), t(this, Y).observe(), t(this, tt).observe(), t(this, N).observe(), t(this, et).observe(), t(this, yt).observe(), t(this, D).observe(), t(this, y).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, xt).observe(), t(this, It).observe(), t(this, T).observe(), t(this, T).observe(), t(this, Pt).observe(), t(this, st).observe(), t(this, M).observe(), t(this, it).observe(), t(this, q).observe(), t(this, rt).observe(), t(this, Lt).observe(), t(this, nt).observe(), t(this, ht).observe(), zt.subscribe(t(this, ee), me.LAST);
599
599
  }
600
600
  disconnectedCallback() {
601
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, gt).unobserve(), t(this, P).unobserve(), t(this, Q).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, A).unobserve(), t(this, X).unobserve(), t(this, Y).unobserve(), t(this, $).unobserve(), t(this, tt).unobserve(), t(this, vt).unobserve(), t(this, D).unobserve(), t(this, y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, Et).unobserve(), t(this, zt).unobserve(), t(this, T).unobserve(), t(this, xt).unobserve(), t(this, et).unobserve(), t(this, M).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, Pt).unobserve(), t(this, rt).unobserve(), t(this, nt).unobserve(), kt.unsubscribe(t(this, te)), c(this, o, Se).call(this);
601
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, vt).unobserve(), t(this, P).unobserve(), t(this, X).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, $).unobserve(), t(this, A).unobserve(), t(this, Y).unobserve(), t(this, tt).unobserve(), t(this, N).unobserve(), t(this, et).unobserve(), t(this, yt).unobserve(), t(this, D).unobserve(), t(this, y).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, Et).unobserve(), t(this, xt).unobserve(), t(this, It).unobserve(), t(this, T).unobserve(), t(this, Pt).unobserve(), t(this, st).unobserve(), t(this, M).unobserve(), t(this, it).unobserve(), t(this, q).unobserve(), t(this, rt).unobserve(), t(this, Lt).unobserve(), t(this, nt).unobserve(), t(this, ht).unobserve(), zt.unsubscribe(t(this, ee)), c(this, o, Se).call(this);
602
602
  }
603
603
  }
604
- u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), A = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), $ = new WeakMap(), tt = new WeakMap(), vt = new WeakMap(), D = new WeakMap(), y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), T = new WeakMap(), xt = new WeakMap(), et = new WeakMap(), M = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), Pt = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), ht = new WeakMap(), f = new WeakMap(), It = new WeakMap(), l = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), ot = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), Tt = new WeakMap(), lt = new WeakMap(), q = new WeakMap(), U = new WeakMap(), ct = new WeakMap(), At = new WeakMap(), at = new WeakMap(), G = new WeakMap(), Dt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
605
- const e = t(this, P).current, i = t(this, Q).current ? "-reverse" : "";
606
- t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, tt).current ? "max" : e, t(this, ot).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
607
- }, _t = function() {
608
- c(this, o, Lt).call(this), t(this, It).assignedElements().forEach((e, i) => {
604
+ u = new WeakMap(), vt = new WeakMap(), P = new WeakMap(), X = new WeakMap(), W = new WeakMap(), F = new WeakMap(), $ = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), N = new WeakMap(), et = new WeakMap(), yt = new WeakMap(), D = new WeakMap(), y = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), It = new WeakMap(), T = new WeakMap(), Pt = new WeakMap(), st = new WeakMap(), M = new WeakMap(), it = new WeakMap(), q = new WeakMap(), rt = new WeakMap(), Lt = new WeakMap(), nt = new WeakMap(), ht = new WeakMap(), ot = new WeakMap(), f = new WeakMap(), Tt = new WeakMap(), l = new WeakMap(), Xt = new WeakMap(), Yt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), lt = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), At = new WeakMap(), ct = new WeakMap(), U = new WeakMap(), G = new WeakMap(), at = new WeakMap(), Dt = new WeakMap(), ut = new WeakMap(), K = new WeakMap(), Mt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
605
+ const e = t(this, P).current, i = t(this, X).current ? "-reverse" : "";
606
+ t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, et).current ? "max" : e, t(this, lt).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
607
+ }, Zt = function() {
608
+ c(this, o, kt).call(this), t(this, Tt).assignedElements().forEach((e, i) => {
609
609
  e instanceof HTMLElement && t(this, l).push(new Je(e, i, this));
610
- }), t(this, f).style.transform = "", he(this, "scrollSectionsChange", {
610
+ }), t(this, f).style.transform = "", oe(this, "scrollSectionsChange", {
611
611
  custom: !0,
612
612
  composed: !0
613
- }), t(this, z).call(this), c(this, o, mt).call(this);
614
- }, Lt = function() {
613
+ }), t(this, z).call(this), c(this, o, bt).call(this);
614
+ }, kt = function() {
615
615
  t(this, l).forEach((e) => {
616
616
  e.destroy();
617
- }), r(this, l, []), t(this, E).reset(), t(this, u).reset(), he(this, "scrollSectionsChange", {
617
+ }), r(this, l, []), t(this, E).reset(), t(this, u).reset(), oe(this, "scrollSectionsChange", {
618
618
  custom: !0,
619
619
  composed: !0
620
620
  });
621
- }, oe = function() {
622
- t(this, U) || (r(this, U, !0), t(this, u).unsubscribe(t(this, Mt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, At)), clearInterval(t(this, at)), t(this, G).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, ot).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, q) || this.sections.forEach((e) => {
621
+ }, le = function() {
622
+ t(this, G) || (r(this, G, !0), t(this, u).unsubscribe(t(this, Vt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Dt)), clearInterval(t(this, ut)), t(this, K).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, lt).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, U) || this.sections.forEach((e) => {
623
623
  e.unsetTransform();
624
624
  }));
625
- }, le = function() {
626
- t(this, U) && (r(this, U, !1), t(this, u).subscribe(t(this, Mt)), t(this, V).connect(), t(this, ot).connect(), t(this, O).connect(), t(this, T).current && t(this, w).connect());
625
+ }, ce = function() {
626
+ t(this, G) && (r(this, G, !1), t(this, u).subscribe(t(this, Vt)), t(this, V).connect(), t(this, lt).connect(), t(this, O).connect(), t(this, T).current && t(this, w).connect());
627
627
  }, Se = function() {
628
- t(this, ct) || (r(this, ct, !0), kt.unsubscribe(t(this, z)), Zt.unsubscribe(t(this, z)), c(this, o, oe).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? c(this, o, Lt).call(this) : (t(this, E).reset(), t(this, u).reset()), bt.unregister(this));
628
+ t(this, at) || (r(this, at, !0), zt.unsubscribe(t(this, z)), jt.unsubscribe(t(this, z)), c(this, o, le).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? c(this, o, kt).call(this) : (t(this, E).reset(), t(this, u).reset()), St.unregister(this));
629
629
  }, ge = function() {
630
- t(this, ct) && (r(this, ct, !1), bt.register(this), (t(this, y).current || t(this, F).current || t(this, y).current || t(this, $).current || t(this, A).current) && c(this, o, _t).call(this), c(this, o, le).call(this), kt.subscribe(t(this, z), me.SCROLL), Zt.subscribe(this, t(this, z)));
631
- }, z = new WeakMap(), Mt = new WeakMap(), Te = function(e) {
630
+ t(this, at) && (r(this, at, !1), St.register(this), (t(this, y).current || t(this, $).current || t(this, y).current || t(this, N).current || t(this, A).current) && c(this, o, Zt).call(this), c(this, o, ce).call(this), zt.subscribe(t(this, z), me.SCROLL), jt.subscribe(this, t(this, z)));
631
+ }, z = new WeakMap(), Vt = new WeakMap(), Te = function(e) {
632
632
  let i = t(this, E).current;
633
633
  return t(this, y).current ? i = Be(e, t(this, l).length) : i = ze(e, 0, this.limit), i;
634
- }, Vt = new WeakMap(), Yt = new WeakMap(), ve = function(e = 1) {
635
- t(this, et).current && (t(this, w).direction = e), t(this, T).current && t(this, w).pauseAndContinue(
636
- t(this, xt).current,
634
+ }, Ot = new WeakMap(), te = new WeakMap(), ve = function(e = 1) {
635
+ t(this, st).current && (t(this, w).direction = e), t(this, T).current && t(this, w).pauseAndContinue(
636
+ t(this, Pt).current,
637
637
  this.sectionalCSSProperty.current
638
638
  );
639
639
  }, ye = function(e = "current") {
@@ -642,82 +642,82 @@ u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B =
642
642
  return i < 0 ? t(this, S) + i + t(this, v) + t(this, k) : i;
643
643
  } else
644
644
  return t(this, u)[e];
645
- }, mt = function() {
645
+ }, bt = function() {
646
646
  if (t(this, l).length) {
647
- const e = t(this, E).current + t(this, st).current;
648
- if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null), he(this, "scrollLine", {
647
+ const e = t(this, E).current + t(this, it).current;
648
+ if (e === 0 ? r(this, R, "start") : e === this.limit ? r(this, R, "end") : r(this, R, null), oe(this, "scrollLine", {
649
649
  detail: { line: t(this, R) }
650
650
  }), t(this, M).current) {
651
651
  this.classList.remove("end", "start"), t(this, R) && this.classList.add(t(this, R));
652
- const i = t(this, D).current + t(this, N).current;
652
+ const i = t(this, D).current + t(this, q).current;
653
653
  t(this, l).forEach((n, d) => {
654
- const m = e - this.limit - 1 + t(this, N).current, C = e + i, I = this.sections.length - C;
654
+ const m = e - this.limit - 1 + t(this, q).current, C = e + i, I = this.sections.length - C;
655
655
  d >= e && d < C || d <= m ? n.mark("current") : d >= C && d < C + I / 2 || d <= m + i ? n.mark("next") : n.mark("previous");
656
656
  });
657
657
  }
658
658
  }
659
659
  }, // TODO: Учитывать loop
660
- ce = function() {
660
+ ae = function() {
661
661
  let e = this.targetScrollValue, i = 1 / 0, n = 0;
662
662
  const d = t(this, u).direction;
663
663
  for (let m = 0; m < t(this, l).length; m++) {
664
664
  const C = t(this, l)[m];
665
- let I = t(this, Dt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
666
- const Kt = Math.abs(ue + I - e);
667
- Kt < i && (i = Kt, n = m);
665
+ let I = t(this, Mt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
666
+ const _t = Math.abs(ue + I - e);
667
+ _t < i && (i = _t, n = m);
668
668
  }
669
669
  return n;
670
- }, te = new WeakMap();
671
- customElements.get("e-scroll") || customElements.define("e-scroll", jt);
672
- var ee;
670
+ }, ee = new WeakMap();
671
+ H && !customElements.get("e-scroll") && customElements.define("e-scroll", Jt);
672
+ var se;
673
673
  class Ce extends HTMLElement {
674
674
  constructor() {
675
675
  super(...arguments);
676
- s(this, ee, null);
676
+ s(this, se, null);
677
677
  }
678
678
  get scrollElement() {
679
- return t(this, ee);
679
+ return t(this, se);
680
680
  }
681
681
  connectedCallback() {
682
- const e = Ie(this, jt);
683
- e instanceof jt ? r(this, ee, e) : console.error(this, "e-scroll not found");
682
+ const e = Ie(this, Jt);
683
+ e instanceof Jt ? r(this, se, e) : console.error(this, "e-scroll not found");
684
684
  }
685
685
  }
686
- ee = new WeakMap();
687
- var ut, L, K, _, Ot, Rt, dt, Ht, se, ie;
686
+ se = new WeakMap();
687
+ var dt, L, _, Z, Rt, Ht, pt, Bt, ie, re;
688
688
  class Xe extends Ce {
689
689
  constructor() {
690
690
  super();
691
- s(this, ut, null);
691
+ s(this, dt, null);
692
692
  s(this, L, null);
693
- s(this, K, !1);
694
- s(this, _, 0);
695
- s(this, Ot, 0);
693
+ s(this, _, !1);
694
+ s(this, Z, 0);
696
695
  s(this, Rt, 0);
697
- s(this, dt, () => {
698
- r(this, K, this.offsetWidth > this.offsetHeight);
699
- const e = t(this, K) ? this.offsetWidth : this.offsetHeight;
700
- r(this, _, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, _, Math.max(t(this, _), 30)), t(this, K) ? (t(this, L).style.width = t(this, _) + "px", t(this, L).style.height = "100%") : (t(this, L).style.width = "100%", t(this, L).style.height = t(this, _) + "px"), r(this, Ot, e - t(this, _)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ht).call(this);
696
+ s(this, Ht, 0);
697
+ s(this, pt, () => {
698
+ r(this, _, this.offsetWidth > this.offsetHeight);
699
+ const e = t(this, _) ? this.offsetWidth : this.offsetHeight;
700
+ r(this, Z, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Z, Math.max(t(this, Z), 30)), t(this, _) ? (t(this, L).style.width = t(this, Z) + "px", t(this, L).style.height = "100%") : (t(this, L).style.width = "100%", t(this, L).style.height = t(this, Z) + "px"), r(this, Rt, e - t(this, Z)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Bt).call(this);
701
701
  });
702
- s(this, Ht, () => {
703
- r(this, Rt, this.scrollElement.currentProgress * t(this, Ot)), t(this, K) ? t(this, L).style.transform = `translate3d(${t(this, Rt)}px, 0px, 0px)` : t(this, L).style.transform = `translate3d(0px, ${t(this, Rt)}px, 0px)`;
702
+ s(this, Bt, () => {
703
+ r(this, Ht, this.scrollElement.currentProgress * t(this, Rt)), t(this, _) ? t(this, L).style.transform = `translate3d(${t(this, Ht)}px, 0px, 0px)` : t(this, L).style.transform = `translate3d(0px, ${t(this, Ht)}px, 0px)`;
704
704
  });
705
- s(this, se, () => {
705
+ s(this, ie, () => {
706
706
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
707
707
  });
708
- s(this, ie, (e) => {
708
+ s(this, re, (e) => {
709
709
  document.documentElement.classList.add("grabbing"), _e(
710
710
  (d) => {
711
- const m = t(this, K) ? d.x : d.y, C = this.scrollElement.distance / t(this, Ot), I = (m - n) * C;
711
+ const m = t(this, _) ? d.x : d.y, C = this.scrollElement.distance / t(this, Rt), I = (m - n) * C;
712
712
  this.scrollElement.setPosition(i + I);
713
713
  },
714
714
  () => {
715
715
  document.documentElement.classList.remove("grabbing");
716
716
  }
717
717
  );
718
- const i = this.scrollElement.damped.target, n = t(this, K) ? e.x : e.y;
718
+ const i = this.scrollElement.damped.target, n = t(this, _) ? e.x : e.y;
719
719
  });
720
- if (ae) {
720
+ if (H) {
721
721
  const e = this.attachShadow({ mode: "open" });
722
722
  e.adoptedStyleSheets = [
723
723
  ke({
@@ -749,7 +749,7 @@ class Xe extends Ce {
749
749
  touchAction: "none"
750
750
  }
751
751
  })
752
- ], r(this, ut, document.createElement("slot")), t(this, ut).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, ut));
752
+ ], r(this, dt, document.createElement("slot")), t(this, dt).innerHTML = '<div class="default-thumb"></div>', e.appendChild(t(this, dt));
753
753
  }
754
754
  }
755
755
  get thumbElement() {
@@ -757,28 +757,28 @@ class Xe extends Ce {
757
757
  }
758
758
  connectedCallback() {
759
759
  super.connectedCallback(), this.setAttribute("drag-dead-zone", "");
760
- const e = t(this, ut).assignedElements()[0] || t(this, ut).firstElementChild;
761
- r(this, L, e), t(this, L).addEventListener("pointerdown", t(this, ie)), kt.subscribe(t(this, dt), me.SCROLL), Zt.subscribe(this, t(this, dt)), Zt.subscribe(this.scrollElement, t(this, dt)), this.scrollElement.onScroll(t(this, Ht)), this.scrollElement.axisCSSProperty.subscribe(t(this, se));
760
+ const e = t(this, dt).assignedElements()[0] || t(this, dt).firstElementChild;
761
+ r(this, L, e), t(this, L).addEventListener("pointerdown", t(this, re)), zt.subscribe(t(this, pt), me.SCROLL), jt.subscribe(this, t(this, pt)), jt.subscribe(this.scrollElement, t(this, pt)), this.scrollElement.onScroll(t(this, Bt)), this.scrollElement.axisCSSProperty.subscribe(t(this, ie));
762
762
  }
763
763
  disconnectedCallback() {
764
- this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, L).removeEventListener("pointerdown", t(this, ie)), kt.unsubscribe(t(this, dt)), Zt.unsubscribe(t(this, dt)), this.scrollElement.offScroll(t(this, Ht)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, se));
764
+ this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, L).removeEventListener("pointerdown", t(this, re)), zt.unsubscribe(t(this, pt)), jt.unsubscribe(t(this, pt)), this.scrollElement.offScroll(t(this, Bt)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, ie));
765
765
  }
766
766
  }
767
- ut = new WeakMap(), L = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), dt = new WeakMap(), Ht = new WeakMap(), se = new WeakMap(), ie = new WeakMap();
768
- customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Xe);
769
- var Bt, Wt, Ft;
767
+ dt = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), Rt = new WeakMap(), Ht = new WeakMap(), pt = new WeakMap(), Bt = new WeakMap(), ie = new WeakMap(), re = new WeakMap();
768
+ H && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", Xe);
769
+ var Wt, Ft, $t;
770
770
  class Ae extends Ce {
771
771
  constructor() {
772
772
  super();
773
- s(this, Bt, new p(this, "--behaviour", "smooth"));
774
- s(this, Wt, new p(
773
+ s(this, Wt, new p(this, "--behaviour", "smooth"));
774
+ s(this, Ft, new p(
775
775
  this,
776
776
  "--tween-easing",
777
777
  !1
778
778
  ));
779
- s(this, Ft, new p(this, "--tween-duration", 0));
780
- ae && this.addEventListener("click", () => {
781
- const e = t(this, Bt).current, i = t(this, Wt).current, n = t(this, Ft).current;
779
+ s(this, $t, new p(this, "--tween-duration", 0));
780
+ H && this.addEventListener("click", () => {
781
+ const e = t(this, Wt).current, i = t(this, Ft).current, n = t(this, $t).current;
782
782
  this.handleClick({
783
783
  behaviour: e,
784
784
  tween: i || n ? { easing: i, duration: n } : void 0
@@ -786,130 +786,130 @@ class Ae extends Ce {
786
786
  });
787
787
  }
788
788
  connectedCallback() {
789
- super.connectedCallback(), t(this, Bt).observe(), t(this, Wt).observe(), t(this, Ft).observe();
789
+ super.connectedCallback(), t(this, Wt).observe(), t(this, Ft).observe(), t(this, $t).observe();
790
790
  }
791
791
  disconnectedCallback() {
792
- t(this, Bt).close(), t(this, Wt).close(), t(this, Ft).close();
792
+ t(this, Wt).close(), t(this, Ft).close(), t(this, $t).close();
793
793
  }
794
794
  }
795
- Bt = new WeakMap(), Wt = new WeakMap(), Ft = new WeakMap();
796
- var $t;
795
+ Wt = new WeakMap(), Ft = new WeakMap(), $t = new WeakMap();
796
+ var Nt;
797
797
  class Ye extends Ae {
798
798
  constructor() {
799
799
  super(...arguments);
800
- s(this, $t, new p(this, "--set", 1));
800
+ s(this, Nt, new p(this, "--set", 1));
801
801
  }
802
802
  handleClick(e) {
803
- this.scrollElement.scrollToSection(t(this, $t).current, e);
803
+ this.scrollElement.scrollToSection(t(this, Nt).current, e);
804
804
  }
805
805
  connectedCallback() {
806
- super.connectedCallback(), t(this, $t).observe();
806
+ super.connectedCallback(), t(this, Nt).observe();
807
807
  }
808
808
  disconnectedCallback() {
809
- super.disconnectedCallback(), t(this, $t).close();
809
+ super.disconnectedCallback(), t(this, Nt).close();
810
810
  }
811
811
  }
812
- $t = new WeakMap();
813
- customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Ye);
814
- var Z, Nt;
812
+ Nt = new WeakMap();
813
+ H && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ye);
814
+ var j, qt;
815
815
  class ts extends Ae {
816
816
  constructor() {
817
817
  super(...arguments);
818
- s(this, Z, new p(this, "--step", 1));
819
- s(this, Nt, () => {
820
- this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Z).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Z).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
818
+ s(this, j, new p(this, "--step", 1));
819
+ s(this, qt, () => {
820
+ this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, j).current > 0 && this.scrollElement.scrollLine === "end" || t(this, j).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
821
821
  });
822
822
  }
823
823
  handleClick(e) {
824
- this.scrollElement.shiftSections(t(this, Z).current, e);
824
+ this.scrollElement.shiftSections(t(this, j).current, e);
825
825
  }
826
826
  connectedCallback() {
827
- super.connectedCallback(), this.scrollElement && (t(this, Z).subscribe(() => {
828
- t(this, Nt).call(this);
829
- }), t(this, Z).observe(), this.scrollElement.addEventListener(
827
+ super.connectedCallback(), this.scrollElement && (t(this, j).subscribe(() => {
828
+ t(this, qt).call(this);
829
+ }), t(this, j).observe(), this.scrollElement.addEventListener(
830
830
  "scrollLine",
831
- t(this, Nt)
832
- ), t(this, Nt).call(this));
831
+ t(this, qt)
832
+ ), t(this, qt).call(this));
833
833
  }
834
834
  disconnectedCallback() {
835
- super.disconnectedCallback(), t(this, Z).close(), this.removeAttribute("disabled");
835
+ super.disconnectedCallback(), t(this, j).close(), this.removeAttribute("disabled");
836
836
  }
837
837
  }
838
- Z = new WeakMap(), Nt = new WeakMap();
839
- customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", ts);
840
- var j, pt, qt, re, ne, Ut;
838
+ j = new WeakMap(), qt = new WeakMap();
839
+ H && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", ts);
840
+ var J, ft, Ut, ne, he, Gt;
841
841
  class es {
842
842
  constructor(h, e, i) {
843
- s(this, j, null);
844
- s(this, pt, null);
845
- s(this, qt, null);
846
- s(this, re, null);
847
- s(this, ne, () => {
848
- t(this, pt).scrollToSection(t(this, qt), {
849
- behaviour: t(this, re)
843
+ s(this, J, null);
844
+ s(this, ft, null);
845
+ s(this, Ut, null);
846
+ s(this, ne, null);
847
+ s(this, he, () => {
848
+ t(this, ft).scrollToSection(t(this, Ut), {
849
+ behaviour: t(this, ne)
850
850
  });
851
851
  });
852
- s(this, Ut, () => {
853
- t(this, j).classList.toggle(
852
+ s(this, Gt, () => {
853
+ t(this, J).classList.toggle(
854
854
  "current",
855
- t(this, pt).counter.current === t(this, qt)
855
+ t(this, ft).counter.current === t(this, Ut)
856
856
  );
857
857
  });
858
- ae && (r(this, j, document.createElement("button")), r(this, pt, h), r(this, re, i), r(this, qt, e), t(this, j).addEventListener("click", t(this, ne)), t(this, pt).counter.subscribe(t(this, Ut)), t(this, Ut).call(this));
858
+ H && (r(this, J, document.createElement("button")), r(this, ft, h), r(this, ne, i), r(this, Ut, e), t(this, J).addEventListener("click", t(this, he)), t(this, ft).counter.subscribe(t(this, Gt)), t(this, Gt).call(this));
859
859
  }
860
860
  get element() {
861
- return t(this, j);
861
+ return t(this, J);
862
862
  }
863
863
  destroy() {
864
- t(this, j).removeEventListener("click", t(this, ne)), t(this, pt).counter.unsubscribe(t(this, Ut)), t(this, j).remove();
864
+ t(this, J).removeEventListener("click", t(this, he)), t(this, ft).counter.unsubscribe(t(this, Gt)), t(this, J).remove();
865
865
  }
866
866
  }
867
- j = new WeakMap(), pt = new WeakMap(), qt = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), Ut = new WeakMap();
868
- var ft, Gt;
867
+ J = new WeakMap(), ft = new WeakMap(), Ut = new WeakMap(), ne = new WeakMap(), he = new WeakMap(), Gt = new WeakMap();
868
+ var mt, Kt;
869
869
  class ss extends Ce {
870
870
  constructor() {
871
871
  super(...arguments);
872
- s(this, ft, []);
873
- s(this, Gt, Ze(() => {
874
- t(this, ft).forEach((e) => e.destroy()), r(this, ft, []);
872
+ s(this, mt, []);
873
+ s(this, Kt, Ze(() => {
874
+ t(this, mt).forEach((e) => e.destroy()), r(this, mt, []);
875
875
  for (let e = 0; e < this.scrollElement.sections.length; e++) {
876
876
  const i = new es(
877
877
  this.scrollElement,
878
878
  e,
879
879
  this.getAttribute("behaviour") || "smooth"
880
880
  );
881
- this.appendChild(i.element), t(this, ft).push(i);
881
+ this.appendChild(i.element), t(this, mt).push(i);
882
882
  }
883
883
  }, 0));
884
884
  }
885
885
  connectedCallback() {
886
886
  super.connectedCallback(), this.scrollElement.addEventListener(
887
887
  "sectionsChange",
888
- t(this, Gt)
889
- ), t(this, Gt).call(this);
888
+ t(this, Kt)
889
+ ), t(this, Kt).call(this);
890
890
  }
891
891
  disconnectedCallback() {
892
892
  this.scrollElement.removeEventListener(
893
893
  "sectionsChange",
894
- t(this, Gt)
895
- ), t(this, ft).forEach((e) => e.destroy()), r(this, ft, []);
894
+ t(this, Kt)
895
+ ), t(this, mt).forEach((e) => e.destroy()), r(this, mt, []);
896
896
  }
897
897
  }
898
- ft = new WeakMap(), Gt = new WeakMap();
899
- customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", ss);
898
+ mt = new WeakMap(), Kt = new WeakMap();
899
+ H && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", ss);
900
900
  class is extends je {
901
901
  connectedCallback() {
902
- const h = Ie(this, jt);
903
- h instanceof jt ? (this.scrollContainer = h, this.scrollContainer.addEventListener(
902
+ const h = Ie(this, Jt);
903
+ h instanceof Jt ? (this.scrollContainer = h, this.scrollContainer.addEventListener(
904
904
  "scrollSectionsChange",
905
905
  this.findAnotherScrollEntries
906
906
  )) : console.error(this, "e-scroll not found");
907
907
  }
908
908
  }
909
- customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", is);
909
+ H && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", is);
910
910
  export {
911
911
  ss as ScrollBulletButtonsElement,
912
- jt as ScrollElement,
912
+ Jt as ScrollElement,
913
913
  is as ScrollSegmentElement,
914
914
  Ye as ScrollSetButtonElement,
915
915
  ts as ScrollStepButtonElement,