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