aptechka 0.44.0 → 0.44.2
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/Animation-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +21 -21
- package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +11 -0
- package/lib/scroll-segment/ScrollSegmentElement.d.ts +78 -0
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.d.ts +2 -79
- package/lib/scroll-segment/index.js +193 -164
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
package/lib/utils/index.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { d as ue } from "../
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { c as
|
|
19
|
-
import { g as lt,
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { a as D, p as M } from "../attributes-69we3byR.js";
|
|
2
|
+
import { a as p } from "../index-euf5anj6.js";
|
|
3
|
+
import { i as N } from "../index-euf5anj6.js";
|
|
4
|
+
import { a as F, c as j, f as H, m as U } from "../canvas-DeZ0SLUJ.js";
|
|
5
|
+
import { g as $, n as q, s as K } from "../coordinates-CgdGoSYs.js";
|
|
6
|
+
import { g as u, f as m } from "../dom-CVWzyXPH.js";
|
|
7
|
+
import { b as G, a as J } from "../dom-CVWzyXPH.js";
|
|
8
|
+
import { f as Y, p as Z, h as X, a as _, d as ee, k as te, o as se, b as ae, i as oe, m as ne, g as re, q as ie, c as ce, j as le, n as ue, l as fe } from "../easings-Bni3YAAW.js";
|
|
9
|
+
import { d as me } from "../events-CsVF98U6.js";
|
|
10
|
+
import { c as ge, d as xe } from "../file-GHShUlue.js";
|
|
11
|
+
import { d as be, t as ye } from "../function-C10DGppn.js";
|
|
12
|
+
import { s as Ie } from "../gestures-D2Fdra_G.js";
|
|
13
|
+
import { c as Te, s as Se } from "../jss-BQSxj7Ls.js";
|
|
14
|
+
import { a as d } from "../layout-DpZo-I0y.js";
|
|
15
|
+
import { g as Ee, b as Oe, c as Pe } from "../layout-DpZo-I0y.js";
|
|
16
|
+
import { e as Ae, f as Qe, c as Re, d as De, l as Me, m as Ve, r as Ne, b as ze, a as Fe, s as je } from "../math-BOBiC4TN.js";
|
|
17
|
+
import { l as Ue, n as ke, p as $e, r as qe, t as Ke } from "../polyfills-CxfUK5OU.js";
|
|
18
|
+
import { c as Ge, d as Je, i as Le, b as Ye, a as Ze, m as Xe, e as _e, o as et, p as tt } from "../object-D6MVWB4l.js";
|
|
19
|
+
import { c as at, a as ot, g as nt, i as rt, k as it, s as ct, t as lt, u as ut } from "../string-f0Dnk0L1.js";
|
|
20
|
+
import { g as pt, a as mt } from "../style-j2TwriJ_.js";
|
|
21
|
+
import { c as gt, n as xt, p as ht, s as bt, u as yt } from "../url-CfcHdBT6.js";
|
|
22
|
+
function b(t, e, ...s) {
|
|
23
|
+
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
e = e %
|
|
27
|
-
const
|
|
28
|
-
for (let
|
|
29
|
-
const n = (
|
|
30
|
-
|
|
25
|
+
function y(t, e) {
|
|
26
|
+
const s = t.length;
|
|
27
|
+
e = e % s;
|
|
28
|
+
const a = new Array(s);
|
|
29
|
+
for (let o = 0; o < s; o++) {
|
|
30
|
+
const n = (o + e) % s;
|
|
31
|
+
a[n] = t[o];
|
|
31
32
|
}
|
|
32
|
-
return
|
|
33
|
+
return a;
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function C(t, e = 2) {
|
|
35
36
|
if (!+t) return "0 Bytes";
|
|
36
|
-
const
|
|
37
|
+
const s = 1024, a = e < 0 ? 0 : e, o = [
|
|
37
38
|
"Bytes",
|
|
38
39
|
"KiB",
|
|
39
40
|
"MiB",
|
|
@@ -43,10 +44,10 @@ function y(t, e = 2) {
|
|
|
43
44
|
"EiB",
|
|
44
45
|
"ZiB",
|
|
45
46
|
"YiB"
|
|
46
|
-
], n = Math.floor(Math.log(t) / Math.log(
|
|
47
|
-
return `${parseFloat((t / Math.pow(
|
|
47
|
+
], n = Math.floor(Math.log(t) / Math.log(s));
|
|
48
|
+
return `${parseFloat((t / Math.pow(s, n)).toFixed(a))} ${o[n]}`;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function I(t) {
|
|
50
51
|
if (navigator.clipboard)
|
|
51
52
|
navigator.clipboard.writeText(t).then(() => {
|
|
52
53
|
console.log("Text copied to clipboard successfully!");
|
|
@@ -58,36 +59,36 @@ function b(t) {
|
|
|
58
59
|
e.value = t, e.style.position = "fixed", e.style.top = "0", e.style.left = "0", document.body.appendChild(e), e.select();
|
|
59
60
|
try {
|
|
60
61
|
document.execCommand("copy") ? console.log("Text copied to clipboard successfully!") : console.error("Failed to copy text to clipboard.");
|
|
61
|
-
} catch (
|
|
62
|
-
console.error("Failed to copy text to clipboard:",
|
|
62
|
+
} catch (s) {
|
|
63
|
+
console.error("Failed to copy text to clipboard:", s);
|
|
63
64
|
}
|
|
64
65
|
document.body.removeChild(e);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function v(t, e) {
|
|
68
69
|
return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
|
|
69
70
|
}
|
|
70
71
|
function T(t, e) {
|
|
71
72
|
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
return
|
|
74
|
+
function f(t, e) {
|
|
75
|
+
const s = t.style.getPropertyValue(e);
|
|
76
|
+
if (s) {
|
|
77
|
+
const a = s.toString();
|
|
78
|
+
return a.startsWith("var") ? f(t, a.slice(4, -1)) : a;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
function S(...t) {
|
|
81
82
|
const e = {};
|
|
82
|
-
return Array.from(document.styleSheets).forEach((
|
|
83
|
-
Array.from(
|
|
84
|
-
|
|
85
|
-
const n =
|
|
86
|
-
n && (e[
|
|
83
|
+
return Array.from(document.styleSheets).forEach((s) => {
|
|
84
|
+
Array.from(s.cssRules).forEach((a) => {
|
|
85
|
+
a instanceof CSSStyleRule && a.selectorText === ":root" && t.forEach((o) => {
|
|
86
|
+
const n = f(a, o);
|
|
87
|
+
n && (e[o] = n);
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
|
-
}), t.forEach((
|
|
90
|
-
e[
|
|
90
|
+
}), t.forEach((s) => {
|
|
91
|
+
e[s] || console.warn(`variable named ${s} not found`);
|
|
91
92
|
}), e;
|
|
92
93
|
}
|
|
93
94
|
function w(t) {
|
|
@@ -105,120 +106,134 @@ function O(t) {
|
|
|
105
106
|
}, t);
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function P(t, {
|
|
109
110
|
behaviour: e = "instant",
|
|
110
|
-
offset:
|
|
111
|
-
center:
|
|
111
|
+
offset: s = 0,
|
|
112
|
+
center: a = !1
|
|
112
113
|
} = {}) {
|
|
113
114
|
var n;
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
const r =
|
|
115
|
+
const o = u(t);
|
|
116
|
+
if (o) {
|
|
117
|
+
const r = m(o), i = d(o), c = (typeof s == "number" ? s : ((n = u(s)) == null ? void 0 : n.offsetHeight) || 0) * -1, l = a ? innerHeight / 2 * -1 + o.offsetHeight / 2 : 0;
|
|
117
118
|
r == null || r.scroll({
|
|
118
|
-
top:
|
|
119
|
+
top: i + c + l,
|
|
119
120
|
behavior: e
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function B(t, e) {
|
|
124
125
|
if (t) {
|
|
125
|
-
const
|
|
126
|
-
return
|
|
126
|
+
const a = t.content.cloneNode(!0).firstElementChild;
|
|
127
|
+
return a && (e == null || e(a)), a;
|
|
127
128
|
}
|
|
128
129
|
return null;
|
|
129
130
|
}
|
|
131
|
+
function A(t, e, s, a) {
|
|
132
|
+
let o, n = !1, r = 0;
|
|
133
|
+
const i = () => {
|
|
134
|
+
clearInterval(o), a != null && a.restartCounter && (r = 0), n && (o = setInterval(() => {
|
|
135
|
+
s(r++);
|
|
136
|
+
}, e));
|
|
137
|
+
}, c = p.subscribe(t, (l) => {
|
|
138
|
+
n = l.isIntersecting, i();
|
|
139
|
+
});
|
|
140
|
+
return () => {
|
|
141
|
+
c(), clearInterval(o);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
130
144
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
Ae as calculateDistance,
|
|
146
|
+
Qe as calculateDistanceWithRadius,
|
|
147
|
+
at as camelToKebab,
|
|
148
|
+
ot as capitalize,
|
|
149
|
+
gt as changeHistory,
|
|
150
|
+
Re as clamp,
|
|
151
|
+
Ge as cloneDeep,
|
|
152
|
+
B as cloneTemplateContent,
|
|
153
|
+
Je as compareObjects,
|
|
154
|
+
F as contain,
|
|
155
|
+
I as copyTextToClipboard,
|
|
156
|
+
j as cover,
|
|
157
|
+
ge as createJSONAndSave,
|
|
158
|
+
Te as createStylesheet,
|
|
159
|
+
De as damp,
|
|
160
|
+
be as debounce,
|
|
147
161
|
E as decode,
|
|
148
|
-
|
|
162
|
+
me as dispatchEvent,
|
|
149
163
|
T as dotCircleCollision,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
v as dotRectCollision,
|
|
165
|
+
xe as downloadURI,
|
|
166
|
+
Y as easeInCubic,
|
|
167
|
+
Z as easeInExpo,
|
|
168
|
+
X as easeInOutCubic,
|
|
169
|
+
_ as easeInOutExpo,
|
|
170
|
+
ee as easeInOutQuad,
|
|
171
|
+
te as easeInOutQuart,
|
|
172
|
+
se as easeInOutQuint,
|
|
173
|
+
ae as easeInQuad,
|
|
174
|
+
oe as easeInQuart,
|
|
175
|
+
ne as easeInQuint,
|
|
176
|
+
re as easeOutCubic,
|
|
177
|
+
ie as easeOutExpo,
|
|
178
|
+
ce as easeOutQuad,
|
|
179
|
+
le as easeOutQuart,
|
|
180
|
+
ue as easeOutQuint,
|
|
167
181
|
w as encode,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
182
|
+
G as findParentElement,
|
|
183
|
+
m as findScrollParentElement,
|
|
184
|
+
H as fixPosition,
|
|
185
|
+
C as formatBytes,
|
|
186
|
+
nt as generateId,
|
|
187
|
+
J as getAllParentElements,
|
|
188
|
+
Ee as getCumulativeOffsetLeft,
|
|
189
|
+
d as getCumulativeOffsetTop,
|
|
190
|
+
Oe as getCumulativePosition,
|
|
191
|
+
u as getElement,
|
|
192
|
+
pt as getElementTransitionDurationMS,
|
|
193
|
+
mt as getElementTransitionDurationS,
|
|
194
|
+
$ as getPointerPosition,
|
|
181
195
|
S as getRootVariables,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
196
|
+
Pe as getStickyOffset,
|
|
197
|
+
b as insert,
|
|
198
|
+
N as isBrowser,
|
|
199
|
+
Le as isESClass,
|
|
200
|
+
Ye as isNullish,
|
|
201
|
+
Ze as isObject,
|
|
202
|
+
rt as isUppercase,
|
|
203
|
+
it as kebabToCamel,
|
|
204
|
+
Me as lerp,
|
|
205
|
+
fe as linear,
|
|
206
|
+
Ue as loopNumber,
|
|
207
|
+
Ve as mapRange,
|
|
208
|
+
U as measureText,
|
|
209
|
+
Xe as mergeDeep,
|
|
210
|
+
_e as mixin,
|
|
211
|
+
q as normalize,
|
|
212
|
+
xt as normalizeBase,
|
|
213
|
+
ke as nullishCoalescing,
|
|
214
|
+
et as omit,
|
|
215
|
+
D as parseAttribute,
|
|
216
|
+
M as parseAttributeValue,
|
|
217
|
+
ht as parseSearchParameters,
|
|
218
|
+
tt as pick,
|
|
219
|
+
$e as preciseNumber,
|
|
220
|
+
Ne as round,
|
|
221
|
+
qe as roundNumberTo,
|
|
222
|
+
K as screenToCartesian,
|
|
223
|
+
P as scrollToElement,
|
|
224
|
+
A as setIntervalOnIntersection,
|
|
225
|
+
Ie as setupDrag,
|
|
226
|
+
y as shiftArray,
|
|
227
|
+
ze as smootherstep,
|
|
228
|
+
Fe as smoothstep,
|
|
229
|
+
ct as snakeToDotted,
|
|
230
|
+
bt as splitPath,
|
|
231
|
+
je as step,
|
|
232
|
+
Se as styleToString,
|
|
233
|
+
ye as throttle,
|
|
234
|
+
lt as toPascalCase,
|
|
235
|
+
Ke as toStep,
|
|
236
|
+
ut as uncapitalize,
|
|
237
|
+
yt as updateSearchParameter,
|
|
223
238
|
O as wait
|
|
224
239
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type SetIntervalOnIntersectionCallback = (counter: number) => void;
|
|
2
|
+
export interface SetIntervalOnIntersectionOptions {
|
|
3
|
+
restartCounter?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function setIntervalOnIntersection(element: HTMLElement, delay: number, callback: SetIntervalOnIntersectionCallback, options?: SetIntervalOnIntersectionOptions): () => void;
|
package/lib/utils/url.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface SplitPathOptions {
|
|
2
|
+
base?: string;
|
|
3
|
+
trailingSlash?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function splitPath(value: string, { base, trailingSlash }?: SplitPathOptions): {
|
|
2
6
|
leaf: string;
|
|
3
7
|
pathname: string;
|
|
4
8
|
parameters: string;
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var d=e=>{throw TypeError(e)};var h=(e,s,t)=>s.has(e)||d("Cannot "+t);var r=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(h(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const b=require("../index-Cqw2NKev.cjs"),p=require("../events-KVanG9sR.cjs"),o=require("../ticker/index.cjs");var i,n,a;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,n,!1);u(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),p.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,a)),r(this,n)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,n,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,n,!0)),o.ticker.subscribe(r(this,a))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,a)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,n=new WeakMap,a=new WeakMap;b.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",m);exports.VideoElement=m;
|
package/lib/video/index.js
CHANGED
|
@@ -5,11 +5,12 @@ var l = (e, s, t) => s.has(e) || h("Cannot " + t);
|
|
|
5
5
|
var r = (e, s, t) => (l(e, s, "read from private field"), t ? t.call(e) : s.get(e)), o = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, m) => (l(e, s, "write to private field"), m ? m.call(e, t) : s.set(e, t), t);
|
|
6
6
|
import { SourceElement as d } from "../source/index.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import {
|
|
8
|
+
import "../Store-D2xCXENW.js";
|
|
9
|
+
import { i as p } from "../index-euf5anj6.js";
|
|
10
|
+
import { d as E } from "../events-CsVF98U6.js";
|
|
10
11
|
import { ticker as u } from "../ticker/index.js";
|
|
11
12
|
var i, a, n;
|
|
12
|
-
class
|
|
13
|
+
class f extends d {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
15
16
|
o(this, i, 0);
|
|
@@ -17,7 +18,7 @@ class E extends d {
|
|
|
17
18
|
o(this, n, () => {
|
|
18
19
|
this.classList.add(`state-${this.consumerElement.readyState}`);
|
|
19
20
|
const t = this.consumerElement.readyState / 4;
|
|
20
|
-
t > r(this, i) && c(this, i, t),
|
|
21
|
+
t > r(this, i) && c(this, i, t), E(this, "videoReadyStateChange", {
|
|
21
22
|
detail: {
|
|
22
23
|
readyState: this.consumerElement.readyState,
|
|
23
24
|
progress: r(this, i)
|
|
@@ -49,7 +50,7 @@ class E extends d {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
i = new WeakMap(), a = new WeakMap(), n = new WeakMap();
|
|
52
|
-
customElements.get("e-video")
|
|
53
|
+
p && !customElements.get("e-video") && customElements.define("e-video", f);
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
f as VideoElement
|
|
55
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-Cqw2NKev.cjs"),R=require("../function-MthRj-GJ.cjs");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
|
|
@@ -4,7 +4,7 @@ var h = (s) => {
|
|
|
4
4
|
var c = (s, e, i) => e.has(s) || h("Cannot " + i);
|
|
5
5
|
var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
|
|
6
6
|
import { Notifier as m } from "../notifier/index.js";
|
|
7
|
-
import { i as p } from "../
|
|
7
|
+
import { i as p } from "../index-euf5anj6.js";
|
|
8
8
|
import { d as z } from "../function-C10DGppn.js";
|
|
9
9
|
var r, o, d;
|
|
10
10
|
class b extends m {
|
package/lib/youtube/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),
|
|
1
|
+
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const L=require("../index-Cqw2NKev.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DhgS_iFl.cjs");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
|
package/lib/youtube/index.js
CHANGED
|
@@ -5,10 +5,11 @@ var b = (s, r, t) => r.has(s) || L("Cannot " + t);
|
|
|
5
5
|
var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
|
|
6
6
|
import { SourceElement as g } from "../source/index.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
8
|
+
import "../Store-D2xCXENW.js";
|
|
9
|
+
import { i as v } from "../index-euf5anj6.js";
|
|
10
|
+
import { d as T } from "../events-CsVF98U6.js";
|
|
11
|
+
import { g as V } from "../string-f0Dnk0L1.js";
|
|
12
|
+
var i, c, n, p, l, m, f, R, y, I;
|
|
12
13
|
const d = class d extends g {
|
|
13
14
|
constructor() {
|
|
14
15
|
super();
|
|
@@ -31,7 +32,7 @@ const d = class d extends g {
|
|
|
31
32
|
}));
|
|
32
33
|
});
|
|
33
34
|
o(this, m, () => {
|
|
34
|
-
u(this, p, !0), E(this, y,
|
|
35
|
+
u(this, p, !0), E(this, y, I).call(this);
|
|
35
36
|
});
|
|
36
37
|
o(this, f, (t) => {
|
|
37
38
|
var a, h;
|
|
@@ -39,8 +40,8 @@ const d = class d extends g {
|
|
|
39
40
|
});
|
|
40
41
|
o(this, R, () => {
|
|
41
42
|
});
|
|
42
|
-
u(this, c, "yt-" +
|
|
43
|
-
d.__apiReady = !0,
|
|
43
|
+
u(this, c, "yt-" + V(10)), d.__apiReady || (window.onYouTubeIframeAPIReady = () => {
|
|
44
|
+
d.__apiReady = !0, T(window, "youTubeIframeAPIReady");
|
|
44
45
|
}), this.addEventListener("sourceCapture", () => {
|
|
45
46
|
this.hasAttribute("capture-autoplay") && (e(this, p) ? e(this, i).playVideo() : u(this, n, !0));
|
|
46
47
|
}), this.addEventListener("sourceRelease", () => {
|
|
@@ -63,19 +64,19 @@ const d = class d extends g {
|
|
|
63
64
|
const A = document.getElementsByTagName("script")[0];
|
|
64
65
|
(a = A.parentNode) == null || a.insertBefore(h, A);
|
|
65
66
|
}
|
|
66
|
-
e(this, i) ? E(this, y,
|
|
67
|
+
e(this, i) ? E(this, y, I).call(this) : d.__apiReady ? e(this, l).call(this) : addEventListener("youTubeIframeAPIReady", e(this, l));
|
|
67
68
|
} else e(this, i) && e(this, i).stopVideo();
|
|
68
69
|
}
|
|
69
70
|
disconnectedCallback() {
|
|
70
71
|
super.disconnectedCallback(), e(this, i) && e(this, i).destroy(), removeEventListener("youTubeIframeAPIReady", e(this, l));
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(),
|
|
74
|
+
i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), I = function() {
|
|
74
75
|
var t, a;
|
|
75
76
|
this.currentURL && (this.currentURL.startsWith("http") ? e(this, i).loadVideoByUrl(this.currentURL) : e(this, i).loadVideoById(this.currentURL)), e(this, n) ? e(this, i).playVideo() : e(this, i).stopVideo(), u(this, n, !1), (a = (t = this.consumerElement).onload) == null || a.call(t, new Event("load"));
|
|
76
77
|
}, d.__apiReady = !1;
|
|
77
|
-
let
|
|
78
|
-
customElements.get("e-youtube")
|
|
78
|
+
let w = d;
|
|
79
|
+
v && !customElements.get("e-youtube") && customElements.define("e-youtube", w);
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
w as YouTubeElement
|
|
81
82
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-C2J4Q87x.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-BANSrI_m.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
|