aptechka 0.43.4 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +45 -45
- 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/Morph.d.ts +11 -2
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +263 -211
- 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 +6 -5
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +57 -56
- 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-CfcHdBT6.js +49 -0
- 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 +15 -2
- 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-CHQeS8b5.cjs +0 -1
- package/lib/url-DqQuzXwT.js +0 -37
package/lib/morph/index.js
CHANGED
|
@@ -1,282 +1,334 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var vt = (r, e) => (e = Symbol[r]) ? e : Symbol.for("Symbol." + r), Et = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var d = (
|
|
4
|
+
var rt = (r, e, s) => e.has(r) || Et("Cannot " + s);
|
|
5
|
+
var t = (r, e, s) => (rt(r, e, "read from private field"), s ? s.call(r) : e.get(r)), o = (r, e, s) => e.has(r) ? Et("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, s), a = (r, e, s, n) => (rt(r, e, "write to private field"), n ? n.call(r, s) : e.set(r, s), s), A = (r, e, s) => (rt(r, e, "access private method"), s);
|
|
6
|
+
var O = (r, e, s) => new Promise((n, c) => {
|
|
7
|
+
var d = (f) => {
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
} catch (
|
|
11
|
-
|
|
9
|
+
p(s.next(f));
|
|
10
|
+
} catch (C) {
|
|
11
|
+
c(C);
|
|
12
12
|
}
|
|
13
|
-
},
|
|
13
|
+
}, b = (f) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
15
|
+
p(s.throw(f));
|
|
16
|
+
} catch (C) {
|
|
17
|
+
c(C);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
}, p = (f) => f.done ? n(f.value) : Promise.resolve(f.value).then(d, b);
|
|
20
|
+
p((s = s.apply(r, e)).next());
|
|
21
21
|
});
|
|
22
|
-
var
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
22
|
+
var St = (r, e, s) => (e = r[vt("asyncIterator")]) ? e.call(r) : (r = r[vt("iterator")](), e = {}, s = (n, c) => (c = r[n]) && (e[n] = (d) => new Promise((b, p, f) => (d = c.call(r, d), f = d.done, Promise.resolve(d.value).then((C) => b({ value: C, done: f }), p)))), s("next"), s("return"), e);
|
|
23
|
+
import { loading as wt } from "../loading/index.js";
|
|
24
|
+
import { i as At } from "../index-euf5anj6.js";
|
|
25
|
+
import { d as st } from "../events-CsVF98U6.js";
|
|
26
|
+
import { n as Dt, c as bt, s as zt } from "../url-CfcHdBT6.js";
|
|
27
|
+
import { f as Rt } from "../dom-CVWzyXPH.js";
|
|
28
|
+
var M, h, L, _, v, B, W, Y, j, x, K, D;
|
|
29
|
+
class yt {
|
|
30
|
+
constructor(e, s) {
|
|
31
|
+
o(this, M);
|
|
32
|
+
o(this, h);
|
|
33
|
+
o(this, L);
|
|
34
|
+
o(this, _);
|
|
35
|
+
o(this, v, null);
|
|
36
|
+
o(this, B, !1);
|
|
37
|
+
o(this, W, !1);
|
|
38
|
+
o(this, Y, !1);
|
|
39
|
+
o(this, j);
|
|
40
|
+
o(this, x);
|
|
41
|
+
o(this, K, (e) => {
|
|
42
|
+
e.preventDefault(), t(this, M).links.forEach((n) => {
|
|
43
|
+
var c;
|
|
44
|
+
t(this, L) === t(n, L) || (c = t(n, x)) != null && c.includes(t(this, L)) ? t(n, h).classList.add("clicked") : t(n, h).classList.remove("clicked");
|
|
45
|
+
});
|
|
46
|
+
let s;
|
|
47
|
+
t(this, v) && (s = {
|
|
48
|
+
x: t(this, v).scrollLeft,
|
|
49
|
+
y: t(this, v).scrollTop,
|
|
50
|
+
selector: t(this, v).id ? "#" + t(this, v).id : ""
|
|
51
|
+
}), t(this, M).navigate(t(this, L), {
|
|
52
|
+
historyAction: t(this, _),
|
|
53
|
+
state: t(this, j),
|
|
54
|
+
saveScrollState: s,
|
|
55
|
+
saveDocumentState: t(this, B),
|
|
56
|
+
restoreDocumentState: t(this, Y),
|
|
57
|
+
restoreScrollState: t(this, W)
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
o(this, D, () => {
|
|
61
|
+
t(this, M).prefetch(t(this, L)), t(this, h).removeEventListener("pointerenter", t(this, D));
|
|
62
62
|
});
|
|
63
|
-
var
|
|
64
|
-
|
|
63
|
+
var b, p;
|
|
64
|
+
a(this, M, s), a(this, h, e), a(this, L, t(this, h).getAttribute("href") || "/"), a(this, _, t(this, h).getAttribute(
|
|
65
65
|
"data-history-action"
|
|
66
|
-
) || "push")
|
|
67
|
-
const n =
|
|
68
|
-
|
|
66
|
+
) || "push");
|
|
67
|
+
const n = t(this, h).getAttribute(
|
|
68
|
+
"data-save-scroll-state"
|
|
69
|
+
);
|
|
70
|
+
typeof n == "string" && (n === "" ? a(this, v, Rt(t(this, h))) : a(this, v, document.getElementById(n))), a(this, B, t(this, h).hasAttribute(
|
|
71
|
+
"data-save-document-state"
|
|
72
|
+
)), a(this, Y, t(this, h).hasAttribute(
|
|
73
|
+
"data-restore-document-state"
|
|
74
|
+
)), a(this, W, t(this, h).hasAttribute(
|
|
75
|
+
"data-restore-scroll-state"
|
|
76
|
+
)), a(this, j, t(this, h).getAttribute("data-state") || void 0), t(this, h).addEventListener("click", t(this, K));
|
|
77
|
+
const c = s.normalizePath(t(this, L)), d = s.normalizePath(location.pathname);
|
|
78
|
+
a(this, x, (b = t(this, h).getAttribute("data-match-paths")) == null ? void 0 : b.split(",").map((f) => s.normalizePath(f.trim()).pathname)), t(this, h).hasAttribute("data-include") ? d.pathname.includes(c.pathname) && t(this, h).classList.add("current") : c.pathname === d.pathname || (p = t(this, x)) != null && p.includes(d.pathname) ? (t(this, h).classList.add("current"), t(this, h).classList.add("clicked")) : t(this, h).classList.remove("clicked"), t(this, h).hasAttribute("data-prefetch") && t(this, h).addEventListener("pointerenter", t(this, D));
|
|
69
79
|
}
|
|
70
80
|
get element() {
|
|
71
|
-
return
|
|
81
|
+
return t(this, h);
|
|
72
82
|
}
|
|
73
83
|
destroy() {
|
|
74
|
-
|
|
84
|
+
t(this, h).removeEventListener("click", t(this, K)), t(this, h).removeEventListener("pointerenter", t(this, D)), t(this, h).classList.remove("current");
|
|
75
85
|
}
|
|
76
86
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
M = new WeakMap(), h = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), v = new WeakMap(), B = new WeakMap(), W = new WeakMap(), Y = new WeakMap(), j = new WeakMap(), x = new WeakMap(), K = new WeakMap(), D = new WeakMap();
|
|
88
|
+
class Pt extends HTMLElement {
|
|
89
|
+
connectedCallback() {
|
|
90
|
+
const e = {
|
|
91
|
+
"aria-live": "assertive",
|
|
92
|
+
"aria-atomic": "true",
|
|
93
|
+
style: "position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"
|
|
94
|
+
};
|
|
95
|
+
for (const [s, n] of Object.entries(e))
|
|
96
|
+
this.setAttribute(s, n);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
At && !customElements.get("morph-announcer") && customElements.define("morph-announcer", Pt);
|
|
100
|
+
var V, G, J, Q, z, S, it, k, P, E, U, X, H, w, R, I, T, m, ot, ht, Tt, ct, nt;
|
|
101
|
+
class Yt {
|
|
102
|
+
constructor(e) {
|
|
103
|
+
o(this, m);
|
|
104
|
+
o(this, V, null);
|
|
105
|
+
o(this, G, null);
|
|
106
|
+
o(this, J, null);
|
|
107
|
+
o(this, Q, !1);
|
|
108
|
+
o(this, z, null);
|
|
109
|
+
o(this, S, []);
|
|
110
|
+
o(this, it, new DOMParser());
|
|
111
|
+
o(this, k, /* @__PURE__ */ new Map());
|
|
112
|
+
o(this, P);
|
|
113
|
+
o(this, E, null);
|
|
114
|
+
o(this, U);
|
|
115
|
+
o(this, X);
|
|
116
|
+
o(this, H, []);
|
|
117
|
+
o(this, w);
|
|
118
|
+
o(this, R);
|
|
119
|
+
o(this, I, !1);
|
|
120
|
+
o(this, T, null);
|
|
121
|
+
o(this, nt, (e) => {
|
|
122
|
+
var s;
|
|
123
|
+
(s = e.state) != null && s.path && (a(this, I, !0), this.navigate(e.state.path, { historyAction: "none" }), a(this, I, !1));
|
|
98
124
|
});
|
|
99
|
-
if (
|
|
100
|
-
|
|
125
|
+
if (At) {
|
|
126
|
+
a(this, V, Dt(e == null ? void 0 : e.base)), a(this, G, (e == null ? void 0 : e.waitForHeadToLoad) !== !1), a(this, J, (e == null ? void 0 : e.cachePages) !== !1), a(this, Q, (e == null ? void 0 : e.trailingSlash) || !1), a(this, z, A(this, m, ht).call(this, document.body));
|
|
101
127
|
const s = this.normalizePath(
|
|
102
128
|
location.pathname + location.hash
|
|
103
129
|
);
|
|
104
|
-
|
|
130
|
+
a(this, E, s.pathname), document.documentElement.setAttribute(
|
|
105
131
|
"data-current-pathname",
|
|
106
|
-
|
|
132
|
+
t(this, E)
|
|
107
133
|
), document.documentElement.setAttribute(
|
|
108
134
|
"data-current-leaf",
|
|
109
135
|
s.leaf
|
|
110
|
-
), this.findLinks(), addEventListener("popstate",
|
|
111
|
-
"replace",
|
|
112
|
-
|
|
113
|
-
s.parameters,
|
|
114
|
-
s.hash
|
|
115
|
-
),
|
|
136
|
+
), this.findLinks(), addEventListener("popstate", t(this, nt)), bt({
|
|
137
|
+
action: "replace",
|
|
138
|
+
pathname: t(this, E),
|
|
139
|
+
searchParameters: s.parameters,
|
|
140
|
+
hash: s.hash
|
|
141
|
+
}), t(this, z).map((n) => [...n.children]).flat().forEach((n) => {
|
|
116
142
|
n instanceof HTMLElement && n.classList.add("current");
|
|
117
|
-
}),
|
|
143
|
+
}), a(this, T, new Pt());
|
|
118
144
|
}
|
|
119
145
|
}
|
|
120
146
|
get currentPathname() {
|
|
121
|
-
return
|
|
147
|
+
return t(this, E);
|
|
122
148
|
}
|
|
123
149
|
get previousPathname() {
|
|
124
|
-
return
|
|
150
|
+
return t(this, U);
|
|
125
151
|
}
|
|
126
152
|
get currentState() {
|
|
127
|
-
return
|
|
153
|
+
return t(this, X);
|
|
128
154
|
}
|
|
129
155
|
get links() {
|
|
130
|
-
return
|
|
156
|
+
return t(this, S);
|
|
131
157
|
}
|
|
132
|
-
normalizePath(
|
|
133
|
-
return
|
|
158
|
+
normalizePath(e) {
|
|
159
|
+
return zt(e, {
|
|
160
|
+
base: t(this, V),
|
|
161
|
+
trailingSlash: t(this, Q)
|
|
162
|
+
});
|
|
134
163
|
}
|
|
135
|
-
prefetch(
|
|
136
|
-
return
|
|
137
|
-
const s = this.normalizePath(
|
|
138
|
-
return
|
|
164
|
+
prefetch(e) {
|
|
165
|
+
return O(this, null, function* () {
|
|
166
|
+
const s = this.normalizePath(e);
|
|
167
|
+
return A(this, m, ot).call(this, s.pathname);
|
|
139
168
|
});
|
|
140
169
|
}
|
|
141
|
-
navigate(
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
170
|
+
navigate(f) {
|
|
171
|
+
return O(this, arguments, function* (e, {
|
|
172
|
+
historyAction: s = "push",
|
|
173
|
+
state: n,
|
|
174
|
+
saveScrollState: c,
|
|
175
|
+
saveDocumentState: d,
|
|
176
|
+
restoreDocumentState: b,
|
|
177
|
+
restoreScrollState: p
|
|
178
|
+
} = {}) {
|
|
179
|
+
var lt;
|
|
180
|
+
if (t(this, H).length)
|
|
145
181
|
return;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
182
|
+
t(this, I) || (b || a(this, R, void 0), p || a(this, w, void 0));
|
|
183
|
+
const C = this.normalizePath(e);
|
|
184
|
+
let { pathname: l, hash: Ct, parameters: Mt, leaf: kt } = C;
|
|
185
|
+
if (t(this, P) === l || t(this, E) === l)
|
|
149
186
|
return;
|
|
150
|
-
|
|
151
|
-
const
|
|
187
|
+
a(this, X, n), a(this, P, l);
|
|
188
|
+
const Z = t(this, k).has(l);
|
|
152
189
|
try {
|
|
153
|
-
|
|
154
|
-
let
|
|
190
|
+
wt.add("__morph");
|
|
191
|
+
let $ = !0;
|
|
155
192
|
if (this.preprocessor)
|
|
156
193
|
try {
|
|
157
|
-
yield new Promise((i,
|
|
158
|
-
var
|
|
159
|
-
(
|
|
194
|
+
yield new Promise((i, g) => {
|
|
195
|
+
var y;
|
|
196
|
+
(y = this.preprocessor) == null || y.call(this, { pathname: l, resolve: i, reject: g, isCached: Z, state: n });
|
|
160
197
|
});
|
|
161
198
|
} catch (i) {
|
|
162
|
-
i ? console.error(i) : console.log("Route change canceled"),
|
|
199
|
+
i ? console.error(i) : console.log("Route change canceled"), $ = !1;
|
|
163
200
|
}
|
|
164
|
-
if (
|
|
201
|
+
if (!$ || t(this, P) !== l)
|
|
165
202
|
return;
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
203
|
+
const N = (t(this, R) || t(this, k).get(l) || (yield A(this, m, ot).call(this, l))).cloneNode(!0);
|
|
204
|
+
if (t(this, P) !== l)
|
|
168
205
|
return;
|
|
169
|
-
if (
|
|
170
|
-
|
|
206
|
+
if (a(this, R, d ? document.cloneNode(!0) : void 0), N.title)
|
|
207
|
+
t(this, T).textContent = N.title;
|
|
171
208
|
else {
|
|
172
|
-
const i =
|
|
173
|
-
|
|
209
|
+
const i = N.querySelector("h1"), g = (i == null ? void 0 : i.innerText) || (i == null ? void 0 : i.textContent) || l;
|
|
210
|
+
t(this, T).textContent = g;
|
|
174
211
|
}
|
|
175
|
-
document.body.appendChild(
|
|
176
|
-
const
|
|
177
|
-
pathname:
|
|
178
|
-
isCached:
|
|
212
|
+
document.body.appendChild(t(this, T));
|
|
213
|
+
const dt = {
|
|
214
|
+
pathname: l,
|
|
215
|
+
isCached: Z,
|
|
179
216
|
state: n,
|
|
180
|
-
newDocument:
|
|
217
|
+
newDocument: N
|
|
181
218
|
};
|
|
182
|
-
|
|
183
|
-
detail:
|
|
219
|
+
st(document, "morphStart", {
|
|
220
|
+
detail: dt
|
|
184
221
|
});
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
),
|
|
188
|
-
|
|
222
|
+
const ut = Array.from(document.head.children), mt = Array.from(
|
|
223
|
+
N.head.children
|
|
224
|
+
), ft = A(this, m, Tt).call(this, ut, mt), Ht = A(this, m, ct).call(this, ut, ft), tt = A(this, m, ct).call(this, mt, ft);
|
|
225
|
+
tt.forEach((i, g) => {
|
|
189
226
|
if (i.tagName === "SCRIPT" && i.getAttribute("src")) {
|
|
190
|
-
const
|
|
191
|
-
|
|
227
|
+
const y = document.createElement("script");
|
|
228
|
+
y.type = "module", y.src = i.getAttribute("src"), tt[g] = y;
|
|
192
229
|
}
|
|
193
|
-
}),
|
|
230
|
+
}), tt.forEach((i) => {
|
|
194
231
|
document.head.appendChild(i);
|
|
195
232
|
});
|
|
196
|
-
const
|
|
233
|
+
const at = tt.filter(
|
|
197
234
|
(i) => !i.hasAttribute("data-no-waiting") && (i.tagName === "STYLE" || i.tagName === "SCRIPT" || i.tagName === "LINK") && i.getAttribute("rel") !== "canonical"
|
|
198
235
|
);
|
|
199
|
-
|
|
200
|
-
let
|
|
236
|
+
t(this, G) && at.length && (yield new Promise((i) => O(this, null, function* () {
|
|
237
|
+
let g = 0;
|
|
201
238
|
try {
|
|
202
|
-
for (var
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
239
|
+
for (var y = St(at), gt, q, Lt; gt = !(q = yield y.next()).done; gt = !1) {
|
|
240
|
+
const et = q.value;
|
|
241
|
+
et.onload = () => {
|
|
242
|
+
g++, g === at.length && i();
|
|
206
243
|
};
|
|
207
244
|
}
|
|
208
|
-
} catch (
|
|
209
|
-
|
|
245
|
+
} catch (q) {
|
|
246
|
+
Lt = [q];
|
|
210
247
|
} finally {
|
|
211
248
|
try {
|
|
212
|
-
|
|
249
|
+
gt && (q = y.return) && (yield q.call(y));
|
|
213
250
|
} finally {
|
|
214
|
-
if (
|
|
215
|
-
throw
|
|
251
|
+
if (Lt)
|
|
252
|
+
throw Lt[0];
|
|
216
253
|
}
|
|
217
254
|
}
|
|
218
255
|
})));
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
i.hasAttribute("data-permanent") || (i.tagName === "SCRIPT" || i.tagName === "STYLE" || i.getAttribute("rel") === "stylesheet" ?
|
|
222
|
-
}),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
256
|
+
const pt = [];
|
|
257
|
+
Ht.forEach((i) => {
|
|
258
|
+
i.hasAttribute("data-permanent") || (i.tagName === "SCRIPT" || i.tagName === "STYLE" || i.getAttribute("rel") === "stylesheet" ? pt.push(i) : i.remove());
|
|
259
|
+
}), a(this, U, t(this, E)), a(this, E, l), bt({
|
|
260
|
+
action: s,
|
|
261
|
+
pathname: l,
|
|
262
|
+
searchParameters: Mt,
|
|
263
|
+
hash: Ct
|
|
264
|
+
});
|
|
265
|
+
const Nt = A(this, m, ht).call(this, N.body);
|
|
266
|
+
t(this, z).forEach((i, g) => {
|
|
267
|
+
const y = Nt[g++], gt = getComputedStyle(i).getPropertyValue("--morph-duration"), q = [...y.childNodes];
|
|
268
|
+
if (gt) {
|
|
269
|
+
const Lt = [...i.childNodes];
|
|
270
|
+
if (Lt.forEach((u) => {
|
|
271
|
+
u instanceof HTMLElement && u.classList.add("old");
|
|
272
|
+
}), q.forEach((u) => {
|
|
273
|
+
u instanceof HTMLElement && (u.classList.remove("current"), u.classList.add("new"));
|
|
274
|
+
}), i.prepend(...q), t(this, w)) {
|
|
275
|
+
const u = document.querySelector(
|
|
276
|
+
t(this, w).selector
|
|
277
|
+
);
|
|
278
|
+
u && u.scroll({
|
|
279
|
+
top: t(this, w).y,
|
|
280
|
+
left: t(this, w).x,
|
|
281
|
+
behavior: "auto"
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
setTimeout(() => {
|
|
285
|
+
q.forEach((u) => {
|
|
286
|
+
u instanceof HTMLElement && u.classList.add("in");
|
|
235
287
|
});
|
|
236
288
|
}, 10);
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
pathname:
|
|
240
|
-
isCached:
|
|
289
|
+
const et = {
|
|
290
|
+
morphElement: i,
|
|
291
|
+
pathname: l,
|
|
292
|
+
isCached: Z,
|
|
241
293
|
state: n
|
|
242
294
|
};
|
|
243
|
-
|
|
244
|
-
detail:
|
|
295
|
+
st(document, "morphNewChildrenAdded", {
|
|
296
|
+
detail: et
|
|
245
297
|
});
|
|
246
|
-
const
|
|
298
|
+
const xt = new Promise((u) => {
|
|
247
299
|
setTimeout(() => {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}),
|
|
251
|
-
detail:
|
|
252
|
-
}),
|
|
253
|
-
}, (parseFloat(
|
|
300
|
+
Lt.forEach((F) => F.remove()), q.forEach((F) => {
|
|
301
|
+
F instanceof HTMLElement && (F.classList.remove("new", "in"), F.classList.add("current"));
|
|
302
|
+
}), st(document, "morphOldChildrenRemoved", {
|
|
303
|
+
detail: et
|
|
304
|
+
}), u();
|
|
305
|
+
}, (parseFloat(gt) || 0) * 1e3 + 10);
|
|
254
306
|
});
|
|
255
|
-
|
|
307
|
+
t(this, H).push(xt);
|
|
256
308
|
} else
|
|
257
|
-
i.innerHTML = "", i.append(...
|
|
258
|
-
}), yield Promise.all(
|
|
259
|
-
detail:
|
|
260
|
-
}),
|
|
261
|
-
} catch (
|
|
262
|
-
console.error(
|
|
309
|
+
i.innerHTML = "", i.append(...q);
|
|
310
|
+
}), yield Promise.all(t(this, H)), pt.forEach((i) => i.remove()), a(this, H, []), a(this, w, c), this.findLinks(), document.documentElement.setAttribute("data-current-pathname", l), document.documentElement.setAttribute("data-current-leaf", kt), t(this, T).remove(), (lt = this.postprocessor) == null || lt.call(this, { pathname: l, isCached: Z, state: n }), st(document, "morphComplete", {
|
|
311
|
+
detail: dt
|
|
312
|
+
}), wt.complete("__morph");
|
|
313
|
+
} catch ($) {
|
|
314
|
+
console.error($);
|
|
263
315
|
}
|
|
264
|
-
|
|
316
|
+
a(this, P, void 0);
|
|
265
317
|
});
|
|
266
318
|
}
|
|
267
|
-
addLink(
|
|
268
|
-
|
|
319
|
+
addLink(e) {
|
|
320
|
+
t(this, S).push(new yt(e, this));
|
|
269
321
|
}
|
|
270
|
-
addLinks(
|
|
271
|
-
|
|
322
|
+
addLinks(e) {
|
|
323
|
+
e.forEach((s) => {
|
|
272
324
|
this.addLink(s);
|
|
273
325
|
});
|
|
274
326
|
}
|
|
275
|
-
removeLink(
|
|
276
|
-
|
|
327
|
+
removeLink(e) {
|
|
328
|
+
a(this, S, t(this, S).filter((s) => s.element === e ? (s.destroy(), !1) : !0));
|
|
277
329
|
}
|
|
278
330
|
findLinks() {
|
|
279
|
-
const
|
|
331
|
+
const e = [
|
|
280
332
|
...document.documentElement.querySelectorAll("a")
|
|
281
333
|
].filter(
|
|
282
334
|
(s) => {
|
|
@@ -284,33 +336,33 @@ class Ht {
|
|
|
284
336
|
return ((n = s.getAttribute("href")) == null ? void 0 : n.startsWith("/")) && !s.hasAttribute("download") && !s.hasAttribute("data-morph-skip") && !s.closest("[data-morph-skip]");
|
|
285
337
|
}
|
|
286
338
|
);
|
|
287
|
-
|
|
339
|
+
t(this, S).forEach((s) => s.destroy()), a(this, S, e.map((s) => new yt(s, this)));
|
|
288
340
|
}
|
|
289
341
|
}
|
|
290
|
-
|
|
291
|
-
return
|
|
292
|
-
const s =
|
|
342
|
+
V = new WeakMap(), G = new WeakMap(), J = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), S = new WeakMap(), it = new WeakMap(), k = new WeakMap(), P = new WeakMap(), E = new WeakMap(), U = new WeakMap(), X = new WeakMap(), H = new WeakMap(), w = new WeakMap(), R = new WeakMap(), I = new WeakMap(), T = new WeakMap(), m = new WeakSet(), ot = function(e) {
|
|
343
|
+
return O(this, null, function* () {
|
|
344
|
+
const s = t(this, k).get(e);
|
|
293
345
|
if (s)
|
|
294
346
|
return s;
|
|
295
|
-
const
|
|
296
|
-
return
|
|
347
|
+
const c = yield (yield fetch(e)).text(), d = t(this, it).parseFromString(c, "text/html");
|
|
348
|
+
return t(this, J) && t(this, k).set(e, d), d;
|
|
297
349
|
});
|
|
298
|
-
},
|
|
299
|
-
const s = [...
|
|
300
|
-
return s.length ? s : [
|
|
301
|
-
},
|
|
302
|
-
return
|
|
350
|
+
}, ht = function(e) {
|
|
351
|
+
const s = [...e.querySelectorAll("[data-morph]")];
|
|
352
|
+
return s.length ? s : [e];
|
|
353
|
+
}, Tt = function(e, s) {
|
|
354
|
+
return e.filter(
|
|
303
355
|
(n) => s.find(
|
|
304
|
-
(
|
|
356
|
+
(c) => c.outerHTML === n.outerHTML
|
|
305
357
|
)
|
|
306
358
|
);
|
|
307
|
-
},
|
|
308
|
-
return
|
|
359
|
+
}, ct = function(e, s) {
|
|
360
|
+
return e.filter(
|
|
309
361
|
(n) => !s.find(
|
|
310
|
-
(
|
|
362
|
+
(c) => c.outerHTML === n.outerHTML
|
|
311
363
|
)
|
|
312
364
|
);
|
|
313
|
-
},
|
|
365
|
+
}, nt = new WeakMap();
|
|
314
366
|
export {
|
|
315
|
-
|
|
367
|
+
Yt as Morph
|
|
316
368
|
};
|