aptechka 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-C4tLEBGM.js → Animation-DxtCzFP3.js} +2 -2
- package/lib/{Composed-BB1MtFiT.js → Composed-DtS09lSU.js} +2 -2
- package/lib/{Damped-DVG5nrYV.js → Damped-DMnIOXpC.js} +2 -2
- package/lib/{DerivedArray-D3scYQdp.js → DerivedArray-DG9iR0mf.js} +1 -1
- package/lib/{DragControls-Cm_88cLt.js → DragControls-DCC8iEOR.js} +4 -4
- package/lib/LocalLinks-Bua7BGRF.cjs +1 -0
- package/lib/LocalLinks-TQkTpAMx.js +62 -0
- package/lib/PageAnnouncerElement-C4k2kDJ5.cjs +1 -0
- package/lib/PageAnnouncerElement-sfh0_4vl.js +24 -0
- package/lib/PageScroll-C7QBpx0G.cjs +1 -0
- package/lib/PageScroll-cQ3B5-6N.js +62 -0
- package/lib/SourceElement-BQ7g2KWK.js +260 -0
- package/lib/SourceElement-TzgPNQOd.cjs +5 -0
- package/lib/{Store-BtVtCGLk.js → Store-CgQ3ReoB.js} +1 -1
- package/lib/{Tweened-C1lnK6n9.js → Tweened-lT68VACv.js} +2 -2
- package/lib/{Viewport-DbN_JWBM.js → Viewport-DGnJ31b4.js} +2 -2
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.js +2 -2
- package/lib/cache/Cache.d.ts +8 -0
- package/lib/cache/index.cjs +1 -0
- package/lib/cache/index.d.ts +1 -0
- package/lib/cache/index.js +37 -0
- package/lib/canvas/index.js +2 -2
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.js +1 -1
- package/lib/{dom-fgxIeFxm.js → dom-BIeVMHfK.js} +2 -2
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.js +2 -2
- package/lib/history/History.d.ts +10 -0
- package/lib/history/index.cjs +1 -0
- package/lib/history/index.d.ts +1 -0
- package/lib/history/index.js +34 -0
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-JqYHGoo6.js → index-LReFyN6i.js} +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/index.js +6 -6
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.js +1 -1
- package/lib/local-links/LocalLinks.d.ts +17 -0
- package/lib/local-links/index.cjs +1 -0
- package/lib/local-links/index.d.ts +1 -0
- package/lib/local-links/index.js +4 -0
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.js +2 -2
- package/lib/metadata-BcYZ5w3T.cjs +1 -0
- package/lib/metadata-jfowcCyz.js +12 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +141 -140
- package/lib/morph-B6sGhLCi.cjs +1 -0
- package/lib/morph-BQErz7qP.js +242 -0
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +4 -4
- package/lib/{object-D6MVWB4l.js → object-CcMK4y_r.js} +12 -10
- package/lib/object-baN9pgbU.cjs +1 -0
- package/lib/page-announcer/PageAnnouncerElement.d.ts +10 -0
- package/lib/page-announcer/index.cjs +1 -0
- package/lib/page-announcer/index.d.ts +1 -0
- package/lib/page-announcer/index.js +4 -0
- package/lib/page-scroll/PageScroll.d.ts +23 -0
- package/lib/page-scroll/index.cjs +1 -0
- package/lib/page-scroll/index.d.ts +1 -0
- package/lib/page-scroll/index.js +4 -0
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -3
- package/lib/radio/index.js +1 -1
- package/lib/{render-CMQbWthg.js → render-CiA0mn5V.js} +3 -3
- package/lib/router/Route.d.ts +1 -2
- package/lib/router/Router.d.ts +18 -23
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/index.js +183 -249
- package/lib/scroll/index.js +8 -8
- package/lib/scroll-entries/index.js +1 -1
- package/lib/{scroll-7JSxRKFK.js → scroll-jcbHDexr.js} +2 -2
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/source/SourceElement.d.ts +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/spa/SPA.d.ts +29 -0
- package/lib/spa/index.cjs +1 -0
- package/lib/spa/index.d.ts +1 -0
- package/lib/spa/index.js +130 -0
- package/lib/store/index.js +3 -3
- package/lib/{stylesheet-JlRFfJIc.js → stylesheet-DbHOxtjw.js} +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/url-CPgw9bd5.cjs +1 -0
- package/lib/url-DAl-mgbC.js +97 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +141 -120
- package/lib/utils/morph.d.ts +49 -0
- package/lib/utils/object.d.ts +1 -1
- package/lib/utils/url.d.ts +6 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +49 -1
- package/lib/SourceElement-BBfaAgwe.cjs +0 -5
- package/lib/SourceElement-BiNNtaz9.js +0 -265
- package/lib/object-CCiXnER2.cjs +0 -1
- package/lib/router/Link.d.ts +0 -8
- package/lib/url-CoUSEREU.cjs +0 -1
- package/lib/url-IGj2LgDW.js +0 -66
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
var X = (l) => {
|
|
2
|
-
throw TypeError(l);
|
|
3
|
-
};
|
|
4
|
-
var Z = (l, a, e) => a.has(l) || X("Cannot " + e);
|
|
5
|
-
var t = (l, a, e) => (Z(l, a, "read from private field"), e ? e.call(l) : a.get(l)), i = (l, a, e) => a.has(l) ? X("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(l) : a.set(l, e), s = (l, a, e, h) => (Z(l, a, "write to private field"), h ? h.call(l, e) : a.set(l, e), e), F = (l, a, e) => (Z(l, a, "access private method"), e);
|
|
6
|
-
import { ElementLinkedStore as st } from "./element-linked-store/index.js";
|
|
7
|
-
import { i as it } from "./index-JqYHGoo6.js";
|
|
8
|
-
import { d as w } from "./events-CsVF98U6.js";
|
|
9
|
-
import { k as Y } from "./string-BlMQbe8b.js";
|
|
10
|
-
import "construct-style-sheets-polyfill";
|
|
11
|
-
import { loading as J } from "./loading/index.js";
|
|
12
|
-
import { RESIZE_ORDER as rt } from "./order/index.js";
|
|
13
|
-
import { windowResizer as tt } from "./window-resizer/index.js";
|
|
14
|
-
import { S as at } from "./Store-BtVtCGLk.js";
|
|
15
|
-
var C, S, z, x, m, p, q;
|
|
16
|
-
class nt {
|
|
17
|
-
constructor(a) {
|
|
18
|
-
i(this, C);
|
|
19
|
-
i(this, S);
|
|
20
|
-
i(this, z);
|
|
21
|
-
i(this, x);
|
|
22
|
-
i(this, m);
|
|
23
|
-
i(this, p);
|
|
24
|
-
i(this, q);
|
|
25
|
-
s(this, C, a);
|
|
26
|
-
let e = a.split(".");
|
|
27
|
-
const h = /\b\d{1,2}x\b/g, n = e.find((y) => y.match(h) && parseInt(y));
|
|
28
|
-
s(this, z, n ? parseInt(n) : 1), n && (e = e.slice(0, -1)), s(this, S, e.length > 1 ? e.slice(0, -1).join(".") : e.join("."));
|
|
29
|
-
const o = /\d+max/g, d = /\d+min/g, N = /\d+mar/g, U = /\d+mir/g, W = e.find((y) => y.match(o)), u = e.find((y) => y.match(d)), L = e.find((y) => y.match(N)), Q = e.find((y) => y.match(U));
|
|
30
|
-
L ? (s(this, m, parseInt(L)), s(this, p, "max"), s(this, x, `(max-aspect-ratio: ${t(this, m)})`)) : Q ? (s(this, m, parseInt(Q)), s(this, p, "max"), s(this, x, `(min-aspect-ratio: ${t(this, m)})`)) : W ? (s(this, m, parseInt(W)), s(this, p, "max"), s(this, x, `(max-width: ${t(this, m)}px)`)) : u ? (s(this, m, parseInt(u)), s(this, x, `(min-width: ${t(this, m)}px)`), s(this, p, "min")) : (s(this, m, 0), s(this, x, `(min-width: ${t(this, m)}px)`), s(this, p, "min")), s(this, S, t(this, S).replace(
|
|
31
|
-
`.${t(this, m)}${t(this, p)}`,
|
|
32
|
-
""
|
|
33
|
-
)), s(this, q, e[e.length - 1] === t(this, S) ? "" : "." + e[e.length - 1]), s(this, q, t(this, q).replace(
|
|
34
|
-
`.${t(this, m)}${t(this, p)}`,
|
|
35
|
-
""
|
|
36
|
-
));
|
|
37
|
-
}
|
|
38
|
-
get url() {
|
|
39
|
-
return t(this, C);
|
|
40
|
-
}
|
|
41
|
-
get name() {
|
|
42
|
-
return t(this, S);
|
|
43
|
-
}
|
|
44
|
-
get density() {
|
|
45
|
-
return t(this, z);
|
|
46
|
-
}
|
|
47
|
-
get query() {
|
|
48
|
-
return t(this, x);
|
|
49
|
-
}
|
|
50
|
-
get extension() {
|
|
51
|
-
return t(this, q);
|
|
52
|
-
}
|
|
53
|
-
get queryType() {
|
|
54
|
-
return t(this, p);
|
|
55
|
-
}
|
|
56
|
-
get queryValue() {
|
|
57
|
-
return t(this, m);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
C = new WeakMap(), S = new WeakMap(), z = new WeakMap(), x = new WeakMap(), m = new WeakMap(), p = new WeakMap(), q = new WeakMap();
|
|
61
|
-
var v;
|
|
62
|
-
class et {
|
|
63
|
-
constructor(a, e) {
|
|
64
|
-
i(this, v);
|
|
65
|
-
s(this, v, /* @__PURE__ */ new Map());
|
|
66
|
-
const h = (e == null ? void 0 : e.mediaBuckets) !== !1, n = typeof a == "string" ? h ? a.trim().split(",").map((u) => u.trim()).filter((u) => !!u) : [a] : a, o = [];
|
|
67
|
-
n.forEach((u) => {
|
|
68
|
-
const L = new nt(u);
|
|
69
|
-
o.push([L.query, L]);
|
|
70
|
-
});
|
|
71
|
-
const d = o.filter((u) => u[1].queryType.includes("max")).sort((u, L) => L[1].queryValue - u[1].queryValue), N = o.filter((u) => u[1].queryType.includes("min") && u[1].queryValue !== 0).sort((u, L) => u[1].queryValue - L[1].queryValue), U = o.filter((u) => u[0] === "(min-width: 0px)");
|
|
72
|
-
(U ? [...U, ...d, ...N] : [...d, ...N]).forEach((u) => {
|
|
73
|
-
t(this, v).has(u[0]) || t(this, v).set(u[0], []), t(this, v).get(u[0]).push(u[1]);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
get mediaBuckets() {
|
|
77
|
-
return t(this, v);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
v = new WeakMap();
|
|
81
|
-
var k, $;
|
|
82
|
-
class ht extends at {
|
|
83
|
-
constructor(e) {
|
|
84
|
-
super(void 0);
|
|
85
|
-
i(this, k);
|
|
86
|
-
i(this, $, () => {
|
|
87
|
-
let e;
|
|
88
|
-
t(this, k).mediaBuckets.forEach((o, d) => {
|
|
89
|
-
matchMedia(d).matches && (e = o);
|
|
90
|
-
});
|
|
91
|
-
let h, n = 0;
|
|
92
|
-
e == null || e.forEach((o) => {
|
|
93
|
-
o.density > n && o.density <= Math.max(devicePixelRatio, 1) && (n = o.density, h = o);
|
|
94
|
-
}), e != null && e.length && !h && (h = e[0]), this.current = h;
|
|
95
|
-
});
|
|
96
|
-
s(this, k, new et(e.srcset, e.sourceSetOptions));
|
|
97
|
-
}
|
|
98
|
-
updateSource(e) {
|
|
99
|
-
s(this, k, new et(e.srcset, e.sourceSetOptions)), t(this, $).call(this);
|
|
100
|
-
}
|
|
101
|
-
close() {
|
|
102
|
-
super.close(), this.disconnect();
|
|
103
|
-
}
|
|
104
|
-
connect() {
|
|
105
|
-
tt.subscribe(t(this, $), rt.SOURCE_MANAGER), t(this, $).call(this);
|
|
106
|
-
}
|
|
107
|
-
disconnect() {
|
|
108
|
-
tt.unsubscribe(t(this, $));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
k = new WeakMap(), $ = new WeakMap();
|
|
112
|
-
function ot(l) {
|
|
113
|
-
if (isNaN(l)) return "0:00";
|
|
114
|
-
const a = Math.floor(Math.max(0, l)), e = Math.floor(a / 3600), h = Math.floor(a % 3600 / 60), o = (a % 60).toString().padStart(2, "0");
|
|
115
|
-
if (e > 0) {
|
|
116
|
-
const d = h.toString().padStart(2, "0");
|
|
117
|
-
return `${e}:${d}:${o}`;
|
|
118
|
-
} else
|
|
119
|
-
return `${h}:${o}`;
|
|
120
|
-
}
|
|
121
|
-
let ct = 0;
|
|
122
|
-
var f, r, I, E, b, g, B, A, c, O, R, M, P, T, j, G, D, K, _, H, V;
|
|
123
|
-
class xt extends HTMLElement {
|
|
124
|
-
constructor(e) {
|
|
125
|
-
super();
|
|
126
|
-
i(this, T);
|
|
127
|
-
i(this, f, null);
|
|
128
|
-
i(this, r, null);
|
|
129
|
-
i(this, I, this);
|
|
130
|
-
i(this, E, !1);
|
|
131
|
-
i(this, b, !1);
|
|
132
|
-
i(this, g, !1);
|
|
133
|
-
i(this, B, "");
|
|
134
|
-
i(this, A, "");
|
|
135
|
-
i(this, c, new st(this, {
|
|
136
|
-
loading: !1,
|
|
137
|
-
loaded: !1,
|
|
138
|
-
error: !1,
|
|
139
|
-
clear: !1,
|
|
140
|
-
playing: !1,
|
|
141
|
-
metadata: !1
|
|
142
|
-
}));
|
|
143
|
-
i(this, O, null);
|
|
144
|
-
i(this, R);
|
|
145
|
-
i(this, M, null);
|
|
146
|
-
i(this, P);
|
|
147
|
-
i(this, G, (e) => {
|
|
148
|
-
const h = e[0];
|
|
149
|
-
t(this, g) && (!t(this, b) || this.hasAttribute("reload-source")) && h.isIntersecting && this.triggerLazyLoad(), h.isIntersecting ? w(this, "sourceCapture", { custom: !0 }) : (this.hasAttribute("reload-source") && (F(this, T, j).call(this, void 0), s(this, b, !1)), w(this, "sourceRelease", { custom: !0 }));
|
|
150
|
-
});
|
|
151
|
-
i(this, D, () => {
|
|
152
|
-
t(this, c).set("loaded", !0), t(this, c).set("error", !1), t(this, c).set("loading", !1), !t(this, g) && !t(this, E) && J.complete(t(this, A)), w(this, "sourceLoaded", { custom: !0 });
|
|
153
|
-
const e = getComputedStyle(this).getPropertyValue("--clear-duration");
|
|
154
|
-
e ? s(this, R, setTimeout(() => {
|
|
155
|
-
t(this, c).set("clear", !0);
|
|
156
|
-
}, parseFloat(e) * 1e3)) : t(this, c).set("clear", !0), s(this, E, !0);
|
|
157
|
-
});
|
|
158
|
-
i(this, K, (e) => {
|
|
159
|
-
t(this, c).set("loaded", !1), t(this, c).set("error", !0), t(this, c).set("loading", !1), !t(this, g) && !t(this, E) && J.error(t(this, A)), w(this, "sourceError", { custom: !0 }), s(this, E, !0);
|
|
160
|
-
});
|
|
161
|
-
i(this, _, () => {
|
|
162
|
-
t(this, c).set("playing", !0), w(this, "sourcePlay", { custom: !0 });
|
|
163
|
-
});
|
|
164
|
-
i(this, H, () => {
|
|
165
|
-
t(this, c).set("playing", !1), w(this, "sourcePause", { custom: !0 });
|
|
166
|
-
});
|
|
167
|
-
i(this, V, () => {
|
|
168
|
-
const e = t(this, r);
|
|
169
|
-
(e.tagName === "VIDEO" || e.tagName === "AUDIO") && e.readyState >= 1 && (t(this, c).set("metadata", !0), w(this, "sourceMetadataLoaded", { custom: !0 }), this.querySelectorAll("[data-source-duration]").forEach((h) => {
|
|
170
|
-
h.textContent = ot(e.duration);
|
|
171
|
-
}));
|
|
172
|
-
});
|
|
173
|
-
s(this, P, e == null ? void 0 : e.sourceSetOptions), it && window.IntersectionObserver && s(this, O, new IntersectionObserver(
|
|
174
|
-
t(this, G)
|
|
175
|
-
)), t(this, c).subscribe((h) => {
|
|
176
|
-
var o;
|
|
177
|
-
const n = (o = this.getAttribute("data-global-play-class")) == null ? void 0 : o.split(
|
|
178
|
-
","
|
|
179
|
-
);
|
|
180
|
-
n != null && n.length && (h.current.playing ? n.forEach((d) => {
|
|
181
|
-
document.documentElement.classList.add(d.trim());
|
|
182
|
-
}) : n.forEach((d) => {
|
|
183
|
-
document.documentElement.classList.remove(d.trim());
|
|
184
|
-
}));
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
get consumerElement() {
|
|
188
|
-
return t(this, r);
|
|
189
|
-
}
|
|
190
|
-
get consumerHolderElement() {
|
|
191
|
-
return t(this, I);
|
|
192
|
-
}
|
|
193
|
-
get sourceManager() {
|
|
194
|
-
return t(this, f);
|
|
195
|
-
}
|
|
196
|
-
get status() {
|
|
197
|
-
return t(this, c);
|
|
198
|
-
}
|
|
199
|
-
get isLazy() {
|
|
200
|
-
return t(this, g);
|
|
201
|
-
}
|
|
202
|
-
get currentURL() {
|
|
203
|
-
return t(this, M);
|
|
204
|
-
}
|
|
205
|
-
get isFirstLoadHappened() {
|
|
206
|
-
return t(this, E);
|
|
207
|
-
}
|
|
208
|
-
triggerLazyLoad() {
|
|
209
|
-
!t(this, b) && t(this, f).current && t(this, f).current !== t(this, f).previous && (s(this, b, !0), F(this, T, j).call(this, t(this, f).current));
|
|
210
|
-
}
|
|
211
|
-
connectedCallback() {
|
|
212
|
-
s(this, B, `source-consumer-${++ct}`);
|
|
213
|
-
const e = this.getAttribute("srcset") || "", h = this.hasAttribute("notify") ? this.closest(this.getAttribute("notify")) : null;
|
|
214
|
-
h && t(this, c).addElement(h), s(this, I, this.querySelector("[data-consumer-holder]") || this), this.querySelectorAll(".source-consumer").forEach((n) => n == null ? void 0 : n.remove()), s(this, r, this.createConsumer()), t(this, r).style.cssText = `
|
|
215
|
-
display: block;
|
|
216
|
-
width: 100%;
|
|
217
|
-
height: 100%;
|
|
218
|
-
`, t(this, r).classList.add("source-consumer"), t(this, r).addEventListener("play", t(this, _)), t(this, r).addEventListener("pause", t(this, H)), t(this, r).addEventListener(
|
|
219
|
-
"loadedmetadata",
|
|
220
|
-
t(this, V)
|
|
221
|
-
), t(this, V).call(this), this.classList.contains("MaskedVideo__video__element") && console.log(), Array.from(this.attributes).forEach((n) => {
|
|
222
|
-
if (n.name !== "srcset") {
|
|
223
|
-
const o = n.nodeValue || "", d = Y(n.name);
|
|
224
|
-
d in t(this, r) && (t(this, r)[d] = o || !0);
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
for (const n in this.dataset) {
|
|
228
|
-
const o = this.dataset[n], d = Y(n);
|
|
229
|
-
d in t(this, r) && (t(this, r)[d] = o ? o === "false" ? !1 : o : !0);
|
|
230
|
-
}
|
|
231
|
-
t(this, I).appendChild(t(this, r)), s(this, f, new ht({
|
|
232
|
-
srcset: e,
|
|
233
|
-
sourceSetOptions: t(this, P)
|
|
234
|
-
})), s(this, g, this.hasAttribute("lazy")), t(this, f).subscribe((n) => {
|
|
235
|
-
(!t(this, g) || t(this, g) && t(this, b)) && F(this, T, j).call(this, n.current);
|
|
236
|
-
}), t(this, f).connect(), t(this, O).observe(this);
|
|
237
|
-
}
|
|
238
|
-
disconnectedCallback() {
|
|
239
|
-
var e;
|
|
240
|
-
clearTimeout(t(this, R)), t(this, O).disconnect(), (e = t(this, f)) == null || e.close(), t(this, r) && (this.consumeSource(null), t(this, r).removeEventListener("play", t(this, _)), t(this, r).removeEventListener("pause", t(this, H)), t(this, r).removeEventListener(
|
|
241
|
-
"loadedmetadata",
|
|
242
|
-
t(this, V)
|
|
243
|
-
), t(this, r).onloadeddata = null, t(this, r).onload = null, t(this, r).onerror = null, t(this, r).onerror = null, t(this, r).remove()), s(this, E, !1), s(this, b, !1), t(this, c).reset();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
f = new WeakMap(), r = new WeakMap(), I = new WeakMap(), E = new WeakMap(), b = new WeakMap(), g = new WeakMap(), B = new WeakMap(), A = new WeakMap(), c = new WeakMap(), O = new WeakMap(), R = new WeakMap(), M = new WeakMap(), P = new WeakMap(), T = new WeakSet(), j = function(e) {
|
|
247
|
-
if (clearTimeout(t(this, R)), t(this, r).onloadeddata = null, t(this, r).onload = null, t(this, r).onerror = null, t(this, c).set("loaded", !1), t(this, c).set("error", !1), t(this, c).set("loading", !1), t(this, c).set("clear", !1), t(this, c).set("playing", !1), t(this, c).set("metadata", !1), e) {
|
|
248
|
-
s(this, A, `${t(this, B)}-${e.url}`);
|
|
249
|
-
const h = this.hasAttribute("keep-source-parameters");
|
|
250
|
-
t(this, c).set("loading", !0), s(this, M, h ? e.url : e.name + e.extension), this.consumeSource(t(this, M)), !t(this, g) && !t(this, E) && J.add(t(this, A)), t(this, r).onloadeddata = () => {
|
|
251
|
-
t(this, D).call(this);
|
|
252
|
-
}, t(this, r).onload = () => {
|
|
253
|
-
t(this, D).call(this);
|
|
254
|
-
}, t(this, r).onerror = () => {
|
|
255
|
-
t(this, K).call(this, t(this, M));
|
|
256
|
-
};
|
|
257
|
-
} else
|
|
258
|
-
s(this, M, null), this.consumeSource(null);
|
|
259
|
-
}, G = new WeakMap(), D = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), V = new WeakMap();
|
|
260
|
-
export {
|
|
261
|
-
nt as S,
|
|
262
|
-
xt as a,
|
|
263
|
-
et as b,
|
|
264
|
-
ht as c
|
|
265
|
-
};
|
package/lib/object-CCiXnER2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=f(e[r]));return t}function c(e,t,r=s){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),c(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((p,y)=>i(p,n[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function l(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function o(e,t){const r={};for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=f;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=c;exports.mixin=O;exports.omit=o;exports.pick=l;
|
package/lib/router/Link.d.ts
DELETED
package/lib/url-CoUSEREU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty,$=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var p=(t,s,e)=>s in t?m(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,P=(t,s)=>{for(var e in s||(s={}))L.call(s,e)&&p(t,e,s[e]);if(S)for(var e of S(s))R.call(s,e)&&p(t,e,s[e]);return t},W=(t,s)=>$(t,w(s));function U(t,{base:s="",trailingSlash:e=!1,mergeParams:n,removeParams:r}={}){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const h=t.split("#"),f=h[0].split("?");let a=f[0].startsWith("/")?f[0]:"/"+f[0];e?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;let i=f[1]||"";if(n){const c=new URLSearchParams(i),d=new URLSearchParams(n);for(const[o,g]of d)c.has(o)||c.set(o,g);console.log(r),r==null||r.split(",").forEach(o=>{c.has(o)&&c.delete(o)}),i=c.toString()}const u=s+a,l=h[1],y=`${u}${i?"?"+i:""}${l?"#"+l:""}`;return{leaf:a,pathname:u,parameters:i,hash:l,path:y}}function k(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function z(t){if(t.action==="none")return;const s=t==null?void 0:t.searchParameters,e=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",n=s?s.startsWith("?")?s:"?"+s:"",r=`${t.pathname}${n}${e}`,h=W(P({},t.state),{path:r});t.action==="push"?history.pushState(h,"",r):t.action==="replace"&&history.replaceState(h,"",r)}function B(t){const s=new URLSearchParams(t),e={};for(const[n,r]of s)e[n]=r;return e}function H(t,s){const e=new URL(location.href),n=(s==null?void 0:s.toString())||"";e.searchParams.set(t,n),history.replaceState(history.state,"",e.href)}exports.changeHistory=z;exports.normalizeBase=k;exports.parseSearchParameters=B;exports.splitPath=U;exports.updateSearchParameter=H;
|
package/lib/url-IGj2LgDW.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var g = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
-
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var p = Object.getOwnPropertySymbols;
|
|
4
|
-
var R = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var S = (t, s, n) => s in t ? g(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n, W = (t, s) => {
|
|
6
|
-
for (var n in s || (s = {}))
|
|
7
|
-
R.call(s, n) && S(t, n, s[n]);
|
|
8
|
-
if (p)
|
|
9
|
-
for (var n of p(s))
|
|
10
|
-
U.call(s, n) && S(t, n, s[n]);
|
|
11
|
-
return t;
|
|
12
|
-
}, y = (t, s) => w(t, L(s));
|
|
13
|
-
function x(t, {
|
|
14
|
-
base: s = "",
|
|
15
|
-
trailingSlash: n = !1,
|
|
16
|
-
mergeParams: r,
|
|
17
|
-
removeParams: a
|
|
18
|
-
} = {}) {
|
|
19
|
-
s = s.endsWith("/") ? s.slice(0, -1) : s, t = t.replace(s, ""), t.startsWith("/") && (t = t.slice(1));
|
|
20
|
-
const h = t.split("#"), f = h[0].split("?");
|
|
21
|
-
let e = f[0].startsWith("/") ? f[0] : "/" + f[0];
|
|
22
|
-
n ? e = !e.endsWith("/") && e !== "/" ? e + "/" : e : e = e.endsWith("/") && e !== "/" ? e.slice(0, -1) : e;
|
|
23
|
-
let i = f[1] || "";
|
|
24
|
-
if (r) {
|
|
25
|
-
const c = new URLSearchParams(i), P = new URLSearchParams(r);
|
|
26
|
-
for (const [o, $] of P)
|
|
27
|
-
c.has(o) || c.set(o, $);
|
|
28
|
-
console.log(a), a == null || a.split(",").forEach((o) => {
|
|
29
|
-
c.has(o) && c.delete(o);
|
|
30
|
-
}), i = c.toString();
|
|
31
|
-
}
|
|
32
|
-
const u = s + e, l = h[1], d = `${u}${i ? "?" + i : ""}${l ? "#" + l : ""}`;
|
|
33
|
-
return {
|
|
34
|
-
leaf: e,
|
|
35
|
-
pathname: u,
|
|
36
|
-
parameters: i,
|
|
37
|
-
hash: l,
|
|
38
|
-
path: d
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function j(t = "/") {
|
|
42
|
-
return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
|
|
43
|
-
}
|
|
44
|
-
function z(t) {
|
|
45
|
-
if (t.action === "none")
|
|
46
|
-
return;
|
|
47
|
-
const s = t == null ? void 0 : t.searchParameters, n = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", r = s ? s.startsWith("?") ? s : "?" + s : "", a = `${t.pathname}${r}${n}`, h = y(W({}, t.state), { path: a });
|
|
48
|
-
t.action === "push" ? history.pushState(h, "", a) : t.action === "replace" && history.replaceState(h, "", a);
|
|
49
|
-
}
|
|
50
|
-
function B(t) {
|
|
51
|
-
const s = new URLSearchParams(t), n = {};
|
|
52
|
-
for (const [r, a] of s)
|
|
53
|
-
n[r] = a;
|
|
54
|
-
return n;
|
|
55
|
-
}
|
|
56
|
-
function E(t, s) {
|
|
57
|
-
const n = new URL(location.href), r = (s == null ? void 0 : s.toString()) || "";
|
|
58
|
-
n.searchParams.set(t, r), history.replaceState(history.state, "", n.href);
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
z as c,
|
|
62
|
-
j as n,
|
|
63
|
-
B as p,
|
|
64
|
-
x as s,
|
|
65
|
-
E as u
|
|
66
|
-
};
|