aptechka 0.4.40 → 0.4.42
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/morph/Morph.d.ts +1 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +98 -92
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +122 -115
- package/package.json +1 -1
package/lib/morph/Morph.d.ts
CHANGED
package/lib/morph/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var rt=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var J=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)};var
|
|
1
|
+
"use strict";var rt=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var J=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)};var i=(n,t,e)=>(J(n,t,"read from private field"),e?e.call(n):t.get(n)),o=(n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},c=(n,t,e,r)=>(J(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e);var p=(n,t,e)=>(J(n,t,"access private method"),e);var T=(n,t,e)=>new Promise((r,s)=>{var h=d=>{try{u(e.next(d))}catch(m){s(m)}},f=d=>{try{u(e.throw(d))}catch(m){s(m)}},u=d=>d.done?r(d.value):Promise.resolve(d.value).then(h,f);u((e=e.apply(n,t)).next())});var ot=(n,t,e)=>(t=n[rt("asyncIterator")])?t.call(n):(n=n[rt("iterator")](),t={},e=(r,s)=>(s=n[r])&&(t[r]=h=>new Promise((f,u,d)=>(h=s.call(n,h),d=h.done,Promise.resolve(h.value).then(m=>f({value:m,done:d}),u)))),e("next"),e("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("../notifier/index.cjs"),mt=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var P,l,w,H,N,M;class pt{constructor(t,e){o(this,P,void 0);o(this,l,void 0);o(this,w,void 0);o(this,H,void 0);o(this,N,t=>{t.preventDefault(),i(this,P).navigate(i(this,w),i(this,H))});o(this,M,()=>{i(this,P).prefetch(i(this,w)),i(this,l).removeEventListener("pointerenter",i(this,M))});var f;c(this,P,e),c(this,l,t),c(this,w,i(this,l).getAttribute("href")||"/"),c(this,H,i(this,l).getAttribute("data-history-action")||"push"),i(this,l).addEventListener("click",i(this,N));const r=e.normalizePath(i(this,w)),s=e.normalizePath(location.pathname),h=(f=i(this,l).getAttribute("data-match-paths"))==null?void 0:f.split(",").map(u=>e.normalizePath(u.trim()).pathname);i(this,l).hasAttribute("data-include")?s.pathname.includes(r.pathname)&&i(this,l).classList.add("current"):(r.pathname===s.pathname||h!=null&&h.includes(s.pathname))&&i(this,l).classList.add("current"),i(this,l).hasAttribute("data-prefetch")&&i(this,l).addEventListener("pointerenter",i(this,M))}destroy(){i(this,l).removeEventListener("click",i(this,N)),i(this,l).removeEventListener("pointerenter",i(this,M)),i(this,l).classList.remove("current")}}P=new WeakMap,l=new WeakMap,w=new WeakMap,H=new WeakMap,N=new WeakMap,M=new WeakMap;var g,S,C,k,z,$,y,v,L,W,q,x,Q,D,U,R,V,j,ht,F,X,B;class gt{constructor(t){o(this,x);o(this,D);o(this,R);o(this,j);o(this,F);o(this,g,null);o(this,S,null);o(this,C,null);o(this,k,null);o(this,z,[]);o(this,$,new DOMParser);o(this,y,new Map);o(this,v,void 0);o(this,L,null);o(this,W,new at.Notifier);o(this,q,new at.Notifier);o(this,B,t=>{t.state&&this.navigate(t.state,"none")});mt.isBrowser&&(c(this,g,(t==null?void 0:t.base)||"/"),t!=null&&t.base?(c(this,g,t.base),t.base.endsWith("/")||c(this,g,i(this,g)+"/")):c(this,g,"/"),c(this,S,(t==null?void 0:t.waitForHeadToLoad)!==!1),c(this,C,(t==null?void 0:t.cachePages)!==!1),c(this,k,p(this,R,V).call(this,document.body)),c(this,L,this.normalizePath(location.pathname).pathname),document.documentElement.setAttribute("data-current-pathname",i(this,L)),p(this,D,U).call(this),addEventListener("popstate",i(this,B)))}get currentPathname(){return i(this,L)}normalizePath(t){t=t.replace(i(this,g),""),t.startsWith("/")&&(t=t.slice(1));const e=t.split("#"),r=e[0].split("?"),s=r[0].endsWith("/")?r[0].slice(0,-1):r[0],h=i(this,g)+s,f=r==null?void 0:r[1],u=e==null?void 0:e[1];return{leaf:s,pathname:h,parameters:f,hash:u}}beforeNavigationEvent(t){return i(this,W).subscribe(t)}afterNavigationEvent(t){return i(this,q).subscribe(t)}prefetch(t){return T(this,null,function*(){const e=this.normalizePath(t);return p(this,x,Q).call(this,e.pathname)})}navigate(t,e="push"){return T(this,null,function*(){var d;const r=this.normalizePath(t);let{pathname:s,hash:h,parameters:f}=r;if(i(this,v)===s||i(this,L)===s)return;c(this,v,s);const u=i(this,y).has(s);try{let m=!0;if(i(this,W).notify({pathname:s,isCached:u}),this.preprocessor)try{yield new Promise((a,E)=>{var b;(b=this.preprocessor)==null||b.call(this,{pathname:s,resolve:a,reject:E,isCached:u})})}catch(a){a?console.error(a):console.log("Route change canceled"),m=!1}if(!m||i(this,v)!==s)return;const Z=i(this,y).get(s)||(yield p(this,x,Q).call(this,s));if(i(this,v)!==s)return;const tt=Array.from(document.head.children),et=Array.from(Z.head.cloneNode(!0).children),it=p(this,j,ht).call(this,tt,et),ct=p(this,F,X).call(this,tt,it),I=p(this,F,X).call(this,et,it);ct.forEach(a=>{a.hasAttribute("data-permanent")||a.remove()}),I.forEach((a,E)=>{if(a.tagName==="SCRIPT"&&a.getAttribute("src")){const b=document.createElement("script");b.type="module",b.src=a.getAttribute("src"),I[E]=b}}),I.forEach(a=>{document.head.appendChild(a)});const K=I.filter(a=>a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK");i(this,S)&&K.length&&(yield new Promise(a=>T(this,null,function*(){let E=0;try{for(var b=ot(K),ft,Y,A;ft=!(Y=yield b.next()).done;ft=!1){const _=Y.value;_.onload=()=>{E++,E===K.length&&a()}}}catch(Y){A=[Y]}finally{try{ft&&(Y=b.return)&&(yield Y.call(b))}finally{if(A)throw A[0]}}}))),c(this,L,s);const O=f||location.search,lt=h?h.startsWith("#")?h:"#"+h:"",ut=O?O.startsWith("?")?O:"?"+O:"",st=`${s}${lt}${ut}`;e==="push"?history.pushState(s,"",st):e==="replace"&&history.replaceState(s,"",st);const dt=p(this,R,V).call(this,Z.body.cloneNode(!0));i(this,k).forEach((a,E)=>{const b=dt[E];let ft=[...a.childNodes],Y=[...b.childNodes];ft.forEach(A=>{if(A instanceof HTMLElement){const _=A.hasAttribute("data-remain");let nt;Y=Y.filter(G=>G instanceof HTMLElement&&G.outerHTML===A.outerHTML?(nt=G,!1):!0),_&&nt||A.remove()}else A.remove()}),a.append(...Y)}),p(this,D,U).call(this),document.documentElement.setAttribute("data-current-pathname",s),(d=this.postprocessor)==null||d.call(this,{pathname:s,isCached:u}),i(this,q).notify({pathname:s,isCached:u})}catch(m){console.error(m)}c(this,v,void 0)})}}g=new WeakMap,S=new WeakMap,C=new WeakMap,k=new WeakMap,z=new WeakMap,$=new WeakMap,y=new WeakMap,v=new WeakMap,L=new WeakMap,W=new WeakMap,q=new WeakMap,x=new WeakSet,Q=function(t){return T(this,null,function*(){const e=i(this,y).get(t);if(e)return e;const s=yield(yield fetch(t)).text(),h=i(this,$).parseFromString(s,"text/html");return i(this,C)&&i(this,y).set(t,h),h})},D=new WeakSet,U=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(e=>{var r;return(r=e.getAttribute("href"))==null?void 0:r.startsWith("/")});i(this,z).forEach(e=>e.destroy()),c(this,z,t.map(e=>new pt(e,this)))},R=new WeakSet,V=function(t){return[...t.querySelectorAll("[data-morph]")]},j=new WeakSet,ht=function(t,e){return t.filter(r=>e.find(s=>s.outerHTML===r.outerHTML))},F=new WeakSet,X=function(t,e){return t.filter(r=>!e.find(s=>s.outerHTML===r.outerHTML))},B=new WeakMap;exports.Morph=gt;
|
package/lib/morph/index.js
CHANGED
|
@@ -3,184 +3,190 @@ var Q = (n, t, e) => {
|
|
|
3
3
|
if (!t.has(n))
|
|
4
4
|
throw TypeError("Cannot " + e);
|
|
5
5
|
};
|
|
6
|
-
var s = (n, t, e) => (Q(n, t, "read from private field"), e ? e.call(n) : t.get(n)),
|
|
6
|
+
var s = (n, t, e) => (Q(n, t, "read from private field"), e ? e.call(n) : t.get(n)), a = (n, t, e) => {
|
|
7
7
|
if (t.has(n))
|
|
8
8
|
throw TypeError("Cannot add the same private member more than once");
|
|
9
9
|
t instanceof WeakSet ? t.add(n) : t.set(n, e);
|
|
10
10
|
}, c = (n, t, e, r) => (Q(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e);
|
|
11
11
|
var p = (n, t, e) => (Q(n, t, "access private method"), e);
|
|
12
|
-
var
|
|
13
|
-
var h = (
|
|
12
|
+
var H = (n, t, e) => new Promise((r, i) => {
|
|
13
|
+
var h = (d) => {
|
|
14
14
|
try {
|
|
15
|
-
u(e.next(
|
|
15
|
+
u(e.next(d));
|
|
16
16
|
} catch (m) {
|
|
17
17
|
i(m);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, f = (d) => {
|
|
20
20
|
try {
|
|
21
|
-
u(e.throw(
|
|
21
|
+
u(e.throw(d));
|
|
22
22
|
} catch (m) {
|
|
23
23
|
i(m);
|
|
24
24
|
}
|
|
25
|
-
}, u = (
|
|
25
|
+
}, u = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(h, f);
|
|
26
26
|
u((e = e.apply(n, t)).next());
|
|
27
27
|
});
|
|
28
|
-
var
|
|
29
|
-
import { Notifier as
|
|
28
|
+
var at = (n, t, e) => (t = n[rt("asyncIterator")]) ? t.call(n) : (n = n[rt("iterator")](), t = {}, e = (r, i) => (i = n[r]) && (t[r] = (h) => new Promise((f, u, d) => (h = i.call(n, h), d = h.done, Promise.resolve(h.value).then((m) => f({ value: m, done: d }), u)))), e("next"), e("return"), t);
|
|
29
|
+
import { Notifier as ot } from "../notifier/index.js";
|
|
30
30
|
import { i as mt } from "../browser-0zX67oeU.js";
|
|
31
31
|
import "../path-data-polyfill-DgeDWYeI.js";
|
|
32
|
-
var
|
|
32
|
+
var P, l, w, T, N, A;
|
|
33
33
|
class pt {
|
|
34
34
|
constructor(t, e) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
t.preventDefault(), s(this,
|
|
35
|
+
a(this, P, void 0);
|
|
36
|
+
a(this, l, void 0);
|
|
37
|
+
a(this, w, void 0);
|
|
38
|
+
a(this, T, void 0);
|
|
39
|
+
a(this, N, (t) => {
|
|
40
|
+
t.preventDefault(), s(this, P).navigate(s(this, w), s(this, T));
|
|
41
41
|
});
|
|
42
|
-
|
|
43
|
-
s(this,
|
|
42
|
+
a(this, A, () => {
|
|
43
|
+
s(this, P).prefetch(s(this, w)), s(this, l).removeEventListener("pointerenter", s(this, A));
|
|
44
44
|
});
|
|
45
|
-
var
|
|
46
|
-
c(this,
|
|
45
|
+
var f;
|
|
46
|
+
c(this, P, e), c(this, l, t), c(this, w, s(this, l).getAttribute("href") || "/"), c(this, T, s(this, l).getAttribute(
|
|
47
47
|
"data-history-action"
|
|
48
48
|
) || "push"), s(this, l).addEventListener("click", s(this, N));
|
|
49
|
-
const r = e.normalizePath(s(this,
|
|
50
|
-
s(this, l).hasAttribute("data-include") ? i.pathname.includes(r.pathname) && s(this, l).classList.add("current") : (r.pathname === i.pathname || h != null && h.includes(i.pathname)) && s(this, l).classList.add("current"), s(this, l).hasAttribute("data-prefetch") && s(this, l).addEventListener("pointerenter", s(this,
|
|
49
|
+
const r = e.normalizePath(s(this, w)), i = e.normalizePath(location.pathname), h = (f = s(this, l).getAttribute("data-match-paths")) == null ? void 0 : f.split(",").map((u) => e.normalizePath(u.trim()).pathname);
|
|
50
|
+
s(this, l).hasAttribute("data-include") ? i.pathname.includes(r.pathname) && s(this, l).classList.add("current") : (r.pathname === i.pathname || h != null && h.includes(i.pathname)) && s(this, l).classList.add("current"), s(this, l).hasAttribute("data-prefetch") && s(this, l).addEventListener("pointerenter", s(this, A));
|
|
51
51
|
}
|
|
52
52
|
destroy() {
|
|
53
|
-
s(this, l).removeEventListener("click", s(this, N)), s(this, l).removeEventListener("pointerenter", s(this,
|
|
53
|
+
s(this, l).removeEventListener("click", s(this, N)), s(this, l).removeEventListener("pointerenter", s(this, A)), s(this, l).classList.remove("current");
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
var E, C, S, k,
|
|
56
|
+
P = new WeakMap(), l = new WeakMap(), w = new WeakMap(), T = new WeakMap(), N = new WeakMap(), A = new WeakMap();
|
|
57
|
+
var E, C, S, k, z, O, y, v, b, W, x, D, U, R, V, F, X, B, ht, I, Z, K;
|
|
58
58
|
class bt {
|
|
59
59
|
constructor(t) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
a(this, D);
|
|
61
|
+
a(this, R);
|
|
62
|
+
a(this, F);
|
|
63
|
+
a(this, B);
|
|
64
|
+
a(this, I);
|
|
65
|
+
a(this, E, null);
|
|
66
|
+
a(this, C, null);
|
|
67
|
+
a(this, S, null);
|
|
68
|
+
a(this, k, null);
|
|
69
|
+
a(this, z, []);
|
|
70
|
+
a(this, O, new DOMParser());
|
|
71
|
+
a(this, y, /* @__PURE__ */ new Map());
|
|
72
|
+
a(this, v, void 0);
|
|
73
|
+
a(this, b, null);
|
|
74
|
+
a(this, W, new ot());
|
|
75
|
+
a(this, x, new ot());
|
|
76
|
+
a(this, K, (t) => {
|
|
77
77
|
t.state && this.navigate(t.state, "none");
|
|
78
78
|
});
|
|
79
|
-
mt && (c(this, E, (t == null ? void 0 : t.base) || "/"), t != null && t.base ? (c(this, E, t.base), t.base.endsWith("/") || c(this, E, s(this, E) + "/")) : c(this, E, "/"), c(this, C, (t == null ? void 0 : t.waitForHeadToLoad) !== !1), c(this, S, (t == null ? void 0 : t.cachePages) !== !1), c(this, k, p(this, F, X).call(this, document.body)), c(this,
|
|
79
|
+
mt && (c(this, E, (t == null ? void 0 : t.base) || "/"), t != null && t.base ? (c(this, E, t.base), t.base.endsWith("/") || c(this, E, s(this, E) + "/")) : c(this, E, "/"), c(this, C, (t == null ? void 0 : t.waitForHeadToLoad) !== !1), c(this, S, (t == null ? void 0 : t.cachePages) !== !1), c(this, k, p(this, F, X).call(this, document.body)), c(this, b, this.normalizePath(location.pathname).pathname), document.documentElement.setAttribute(
|
|
80
|
+
"data-current-pathname",
|
|
81
|
+
s(this, b)
|
|
82
|
+
), p(this, R, V).call(this), addEventListener("popstate", s(this, K)));
|
|
83
|
+
}
|
|
84
|
+
get currentPathname() {
|
|
85
|
+
return s(this, b);
|
|
80
86
|
}
|
|
81
87
|
normalizePath(t) {
|
|
82
88
|
t = t.replace(s(this, E), ""), t.startsWith("/") && (t = t.slice(1));
|
|
83
|
-
const e = t.split("#"), r = e[0].split("?"), i = r[0].endsWith("/") ? r[0].slice(0, -1) : r[0], h = s(this, E) + i,
|
|
89
|
+
const e = t.split("#"), r = e[0].split("?"), i = r[0].endsWith("/") ? r[0].slice(0, -1) : r[0], h = s(this, E) + i, f = r == null ? void 0 : r[1], u = e == null ? void 0 : e[1];
|
|
84
90
|
return {
|
|
85
91
|
leaf: i,
|
|
86
92
|
pathname: h,
|
|
87
|
-
parameters:
|
|
93
|
+
parameters: f,
|
|
88
94
|
hash: u
|
|
89
95
|
};
|
|
90
96
|
}
|
|
91
97
|
beforeNavigationEvent(t) {
|
|
92
|
-
return s(this,
|
|
98
|
+
return s(this, W).subscribe(t);
|
|
93
99
|
}
|
|
94
100
|
afterNavigationEvent(t) {
|
|
95
101
|
return s(this, x).subscribe(t);
|
|
96
102
|
}
|
|
97
103
|
prefetch(t) {
|
|
98
|
-
return
|
|
104
|
+
return H(this, null, function* () {
|
|
99
105
|
const e = this.normalizePath(t);
|
|
100
106
|
return p(this, D, U).call(this, e.pathname);
|
|
101
107
|
});
|
|
102
108
|
}
|
|
103
109
|
navigate(t, e = "push") {
|
|
104
|
-
return
|
|
105
|
-
var
|
|
110
|
+
return H(this, null, function* () {
|
|
111
|
+
var d;
|
|
106
112
|
const r = this.normalizePath(t);
|
|
107
|
-
let { pathname: i, hash: h, parameters:
|
|
108
|
-
if (s(this, v) === i || s(this,
|
|
113
|
+
let { pathname: i, hash: h, parameters: f } = r;
|
|
114
|
+
if (s(this, v) === i || s(this, b) === i)
|
|
109
115
|
return;
|
|
110
116
|
c(this, v, i);
|
|
111
|
-
const u = s(this,
|
|
117
|
+
const u = s(this, y).has(i);
|
|
112
118
|
try {
|
|
113
119
|
let m = !0;
|
|
114
|
-
if (s(this,
|
|
120
|
+
if (s(this, W).notify({
|
|
115
121
|
pathname: i,
|
|
116
122
|
isCached: u
|
|
117
123
|
}), this.preprocessor)
|
|
118
124
|
try {
|
|
119
|
-
yield new Promise((
|
|
125
|
+
yield new Promise((o, g) => {
|
|
120
126
|
var L;
|
|
121
|
-
(L = this.preprocessor) == null || L.call(this, { pathname: i, resolve:
|
|
127
|
+
(L = this.preprocessor) == null || L.call(this, { pathname: i, resolve: o, reject: g, isCached: u });
|
|
122
128
|
});
|
|
123
|
-
} catch (
|
|
124
|
-
|
|
129
|
+
} catch (o) {
|
|
130
|
+
o ? console.error(o) : console.log("Route change canceled"), m = !1;
|
|
125
131
|
}
|
|
126
132
|
if (!m || s(this, v) !== i)
|
|
127
133
|
return;
|
|
128
|
-
const _ = s(this,
|
|
134
|
+
const _ = s(this, y).get(i) || (yield p(this, D, U).call(this, i));
|
|
129
135
|
if (s(this, v) !== i)
|
|
130
136
|
return;
|
|
131
137
|
const tt = Array.from(document.head.children), et = Array.from(
|
|
132
138
|
_.head.cloneNode(!0).children
|
|
133
139
|
), st = p(this, B, ht).call(this, tt, et), ct = p(this, I, Z).call(this, tt, st), $ = p(this, I, Z).call(this, et, st);
|
|
134
|
-
ct.forEach((
|
|
135
|
-
|
|
136
|
-
}), $.forEach((
|
|
137
|
-
if (
|
|
140
|
+
ct.forEach((o) => {
|
|
141
|
+
o.hasAttribute("data-permanent") || o.remove();
|
|
142
|
+
}), $.forEach((o, g) => {
|
|
143
|
+
if (o.tagName === "SCRIPT" && o.getAttribute("src")) {
|
|
138
144
|
const L = document.createElement("script");
|
|
139
|
-
L.type = "module", L.src =
|
|
145
|
+
L.type = "module", L.src = o.getAttribute("src"), $[g] = L;
|
|
140
146
|
}
|
|
141
|
-
}), $.forEach((
|
|
142
|
-
document.head.appendChild(
|
|
147
|
+
}), $.forEach((o) => {
|
|
148
|
+
document.head.appendChild(o);
|
|
143
149
|
});
|
|
144
150
|
const Y = $.filter(
|
|
145
|
-
(
|
|
151
|
+
(o) => o.tagName === "STYLE" || o.tagName === "SCRIPT" || o.tagName === "LINK"
|
|
146
152
|
);
|
|
147
|
-
s(this, C) && Y.length && (yield new Promise((
|
|
153
|
+
s(this, C) && Y.length && (yield new Promise((o) => H(this, null, function* () {
|
|
148
154
|
let g = 0;
|
|
149
155
|
try {
|
|
150
|
-
for (var L =
|
|
156
|
+
for (var L = at(Y), ft, j, M; ft = !(j = yield L.next()).done; ft = !1) {
|
|
151
157
|
const G = j.value;
|
|
152
158
|
G.onload = () => {
|
|
153
|
-
g++, g === Y.length &&
|
|
159
|
+
g++, g === Y.length && o();
|
|
154
160
|
};
|
|
155
161
|
}
|
|
156
162
|
} catch (j) {
|
|
157
|
-
|
|
163
|
+
M = [j];
|
|
158
164
|
} finally {
|
|
159
165
|
try {
|
|
160
|
-
|
|
166
|
+
ft && (j = L.return) && (yield j.call(L));
|
|
161
167
|
} finally {
|
|
162
|
-
if (
|
|
163
|
-
throw
|
|
168
|
+
if (M)
|
|
169
|
+
throw M[0];
|
|
164
170
|
}
|
|
165
171
|
}
|
|
166
|
-
}))), c(this,
|
|
167
|
-
const q =
|
|
172
|
+
}))), c(this, b, i);
|
|
173
|
+
const q = f || location.search, lt = h ? h.startsWith("#") ? h : "#" + h : "", ut = q ? q.startsWith("?") ? q : "?" + q : "", it = `${i}${lt}${ut}`;
|
|
168
174
|
e === "push" ? history.pushState(i, "", it) : e === "replace" && history.replaceState(i, "", it);
|
|
169
|
-
const
|
|
170
|
-
s(this, k).forEach((
|
|
171
|
-
const L =
|
|
172
|
-
let
|
|
173
|
-
|
|
174
|
-
if (
|
|
175
|
-
const G =
|
|
175
|
+
const dt = p(this, F, X).call(this, _.body.cloneNode(!0));
|
|
176
|
+
s(this, k).forEach((o, g) => {
|
|
177
|
+
const L = dt[g];
|
|
178
|
+
let ft = [...o.childNodes], j = [...L.childNodes];
|
|
179
|
+
ft.forEach((M) => {
|
|
180
|
+
if (M instanceof HTMLElement) {
|
|
181
|
+
const G = M.hasAttribute("data-remain");
|
|
176
182
|
let nt;
|
|
177
183
|
j = j.filter(
|
|
178
|
-
(J) => J instanceof HTMLElement && J.outerHTML ===
|
|
179
|
-
), G && nt ||
|
|
184
|
+
(J) => J instanceof HTMLElement && J.outerHTML === M.outerHTML ? (nt = J, !1) : !0
|
|
185
|
+
), G && nt || M.remove();
|
|
180
186
|
} else
|
|
181
|
-
|
|
182
|
-
}),
|
|
183
|
-
}), p(this, R, V).call(this), (
|
|
187
|
+
M.remove();
|
|
188
|
+
}), o.append(...j);
|
|
189
|
+
}), p(this, R, V).call(this), document.documentElement.setAttribute("data-current-pathname", i), (d = this.postprocessor) == null || d.call(this, { pathname: i, isCached: u }), s(this, x).notify({ pathname: i, isCached: u });
|
|
184
190
|
} catch (m) {
|
|
185
191
|
console.error(m);
|
|
186
192
|
}
|
|
@@ -188,13 +194,13 @@ class bt {
|
|
|
188
194
|
});
|
|
189
195
|
}
|
|
190
196
|
}
|
|
191
|
-
E = new WeakMap(), C = new WeakMap(), S = new WeakMap(), k = new WeakMap(),
|
|
192
|
-
return
|
|
193
|
-
const e = s(this,
|
|
197
|
+
E = new WeakMap(), C = new WeakMap(), S = new WeakMap(), k = new WeakMap(), z = new WeakMap(), O = new WeakMap(), y = new WeakMap(), v = new WeakMap(), b = new WeakMap(), W = new WeakMap(), x = new WeakMap(), D = new WeakSet(), U = function(t) {
|
|
198
|
+
return H(this, null, function* () {
|
|
199
|
+
const e = s(this, y).get(t);
|
|
194
200
|
if (e)
|
|
195
201
|
return e;
|
|
196
202
|
const i = yield (yield fetch(t)).text(), h = s(this, O).parseFromString(i, "text/html");
|
|
197
|
-
return s(this, S) && s(this,
|
|
203
|
+
return s(this, S) && s(this, y).set(t, h), h;
|
|
198
204
|
});
|
|
199
205
|
}, R = new WeakSet(), V = function() {
|
|
200
206
|
const t = [
|
|
@@ -203,7 +209,7 @@ E = new WeakMap(), C = new WeakMap(), S = new WeakMap(), k = new WeakMap(), W =
|
|
|
203
209
|
var r;
|
|
204
210
|
return (r = e.getAttribute("href")) == null ? void 0 : r.startsWith("/");
|
|
205
211
|
});
|
|
206
|
-
s(this,
|
|
212
|
+
s(this, z).forEach((e) => e.destroy()), c(this, z, t.map((e) => new pt(e, this)));
|
|
207
213
|
}, F = new WeakSet(), X = function(t) {
|
|
208
214
|
return [...t.querySelectorAll("[data-morph]")];
|
|
209
215
|
}, B = new WeakSet(), ht = function(t, e) {
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),h=require("../canvas-CU5Xjahf.cjs"),b=require("../coordinates-D8Np3cPD.cjs"),g=require("../dom-JBOkFLTh.cjs"),i=require("../easings-DsS5-Kqc.cjs"),T=require("../events-Crwi8fz6.cjs"),q=require("../file-EevnUtRj.cjs"),x=require("../function-MthRj-GJ.cjs"),D=require("../gestures-DHLrn6Q8.cjs"),C=require("../layout-8ryRAMGJ.cjs"),c=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),l=require("../object-CCiXnER2.cjs"),Q=require("../polyfills-CrcS4RcO.cjs"),p=require("../string-DhgS_iFl.cjs"),E=require("../style-At6aDoqG.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");function A(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function M(t,e){const n=t.length;e=e%n;const s=new Array(n);for(let o=0;o<n;o++){const r=(o+e)%n;s[r]=t[o]}return s}function R(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function z(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function v(t,e){const n=t.styleMap.get(e);if(n){const s=n.toString();return s.startsWith("var")?v(t,s.slice(4,-1)):s}}function N(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(o=>{const r=v(s,o);r&&(e[o]=r)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function j(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function k(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function w(t,{pathSelector:e="path"}={}){const n=document.createElement(null);n.innerHTML=t;const s=n.firstElementChild,r=s.querySelector(e).getPathData(),a=s.getAttribute("viewBox").split(" ").map(m=>m.trim()),u={x:parseInt(a[0]),y:parseInt(a[1]),width:parseInt(a[2]),height:parseInt(a[3])},d=Math.min(u.width,u.height);return r.forEach(m=>{m.values=m.values.map(f=>f/d)}),r}function V(t,e,n,s,o){const r=[];for(let a=0;a<=1;a+=1/o){const u=Math.pow(1-a,3)*t.x+3*Math.pow(1-a,2)*a*e.x+3*(1-a)*Math.pow(a,2)*n.x+Math.pow(a,3)*s.x,d=Math.pow(1-a,3)*t.y+3*Math.pow(1-a,2)*a*e.y+3*(1-a)*Math.pow(a,2)*n.y+Math.pow(a,3)*s.y;r.push({x:u,y:d})}return r}function B(t,e){const n=(e==null?void 0:e.segments)||20,s=w(t,e);let o=[];for(let r=0;r<s.length-1;r++){const{type:a,values:u}=s[r];if(a==="M"&&r===0)o.push({x:u[0],y:u[1]});else if(a==="C"){const d=o[o.length-1],m={x:u[0],y:u[1]},f={x:u[2],y:u[3]},I={x:u[4],y:u[5]},P=V(d,m,f,I,n);o=[...o,...P]}}return o}exports.parseAttribute=y.parseAttribute;exports.parseAttributeValue=y.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=h.contain;exports.cover=h.cover;exports.fixPosition=h.fixPosition;exports.measureText=h.measureText;exports.getPointerPosition=b.getPointerPosition;exports.normalize=b.normalize;exports.screenToCartesian=b.screenToCartesian;exports.findParentElement=g.findParentElement;exports.findScrollParentElement=g.findScrollParentElement;exports.getAllParentElements=g.getAllParentElements;exports.getElement=g.getElement;exports.easeInCubic=i.easeInCubic;exports.easeInExpo=i.easeInExpo;exports.easeInOutCubic=i.easeInOutCubic;exports.easeInOutExpo=i.easeInOutExpo;exports.easeInOutQuad=i.easeInOutQuad;exports.easeInOutQuart=i.easeInOutQuart;exports.easeInOutQuint=i.easeInOutQuint;exports.easeInQuad=i.easeInQuad;exports.easeInQuart=i.easeInQuart;exports.easeInQuint=i.easeInQuint;exports.easeOutCubic=i.easeOutCubic;exports.easeOutExpo=i.easeOutExpo;exports.easeOutQuad=i.easeOutQuad;exports.easeOutQuart=i.easeOutQuart;exports.easeOutQuint=i.easeOutQuint;exports.linear=i.linear;exports.dispatchSizeChangeEvent=T.dispatchSizeChangeEvent;exports.createJSONAndSave=q.createJSONAndSave;exports.debounce=x.debounce;exports.throttle=x.throttle;exports.setupDrag=D.setupDrag;exports.getCumulativeOffsetLeft=C.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=C.getCumulativeOffsetTop;exports.getCumulativePosition=C.getCumulativePosition;exports.calculateDistance=c.calculateDistance;exports.calculateDistanceWithRadius=c.calculateDistanceWithRadius;exports.clamp=c.clamp;exports.damp=c.damp;exports.lerp=c.lerp;exports.mapRange=c.mapRange;exports.round=c.round;exports.smootherstep=c.smootherstep;exports.smoothstep=c.smoothstep;exports.step=c.step;exports.preciseNumber=O.preciseNumber;exports.roundNumberTo=O.roundNumberTo;exports.cloneDeep=l.cloneDeep;exports.compareObjects=l.compareObjects;exports.isESClass=l.isESClass;exports.isNullish=l.isNullish;exports.isObject=l.isObject;exports.mergeDeep=l.mergeDeep;exports.mixin=l.mixin;exports.omit=l.omit;exports.pick=l.pick;exports.nullishCoalescing=Q.nullishCoalescing;exports.camelToKebab=p.camelToKebab;exports.capitalize=p.capitalize;exports.generateId=p.generateId;exports.isUppercase=p.isUppercase;exports.kebabToCamel=p.kebabToCamel;exports.snakeToDotted=p.snakeToDotted;exports.toPascalCase=p.toPascalCase;exports.uncapitalize=p.uncapitalize;exports.getElementTransitionDurationMS=E.getElementTransitionDurationMS;exports.getElementTransitionDurationS=E.getElementTransitionDurationS;exports.decode=k;exports.dotCircleCollision=z;exports.dotRectCollision=R;exports.encode=j;exports.getPathData=w;exports.getPoints=B;exports.getRootVariables=N;exports.insert=A;exports.shiftArray=M;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,174 +1,181 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as M, p as P } from "../attributes-69we3byR.js";
|
|
2
2
|
import { i as T } from "../browser-0zX67oeU.js";
|
|
3
|
-
import { a as
|
|
4
|
-
import { g as B, n as N, s as
|
|
5
|
-
import { f as q, b as L, a as
|
|
6
|
-
import { c as K, n as
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as
|
|
9
|
-
import { d as
|
|
10
|
-
import { s as
|
|
11
|
-
import { g as
|
|
12
|
-
import { e as
|
|
13
|
-
import { p as
|
|
14
|
-
import { c as
|
|
3
|
+
import { a as Q, c as R, f as z, m as k } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as B, n as N, s as V } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as q, b as L, a as W, g as H } from "../dom-0S_WDL4g.js";
|
|
6
|
+
import { c as K, n as $, f as F, p as G, b as X, i as Y, m as Z, e as _, g as ee, j as te, d as ae, o as se, a as ne, h as oe, k as re, l as ie } from "../easings-BKi40vHz.js";
|
|
7
|
+
import { d as ue } from "../events-_C2CztxR.js";
|
|
8
|
+
import { c as pe } from "../file-lxi_oXJf.js";
|
|
9
|
+
import { d as me, t as he } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as xe } from "../gestures-D2Fdra_G.js";
|
|
11
|
+
import { g as be, a as we, b as ye } from "../layout-HoBT_Da2.js";
|
|
12
|
+
import { e as ve, f as Ee, c as Ie, d as Oe, l as Se, m as Me, r as Pe, b as Ae, a as Te, s as De } from "../math-BOBiC4TN.js";
|
|
13
|
+
import { p as Re, r as ze } from "../number-Bo5RdrA1.js";
|
|
14
|
+
import { c as je, d as Be, i as Ne, b as Ve, a as Ue, m as qe, e as Le, o as We, p as He } from "../object-D6MVWB4l.js";
|
|
15
15
|
import { n as Ke } from "../polyfills-DJUYczFm.js";
|
|
16
|
-
import { c as
|
|
17
|
-
import { a as
|
|
16
|
+
import { c as Fe, a as Ge, g as Xe, i as Ye, k as Ze, s as _e, t as et, u as tt } from "../string-f0Dnk0L1.js";
|
|
17
|
+
import { a as st, g as nt } from "../style-CklEF62D.js";
|
|
18
18
|
import "../path-data-polyfill-DgeDWYeI.js";
|
|
19
|
-
function
|
|
20
|
-
return [...t.slice(0, e), ...
|
|
19
|
+
function g(t, e, ...a) {
|
|
20
|
+
return [...t.slice(0, e), ...a, ...t.slice(e)];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
e = e %
|
|
25
|
-
const n = new Array(
|
|
26
|
-
for (let o = 0; o <
|
|
27
|
-
const r = (o + e) %
|
|
22
|
+
function b(t, e) {
|
|
23
|
+
const a = t.length;
|
|
24
|
+
e = e % a;
|
|
25
|
+
const n = new Array(a);
|
|
26
|
+
for (let o = 0; o < a; o++) {
|
|
27
|
+
const r = (o + e) % a;
|
|
28
28
|
n[r] = t[o];
|
|
29
29
|
}
|
|
30
30
|
return n;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function w(t, e) {
|
|
33
33
|
return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function y(t, e) {
|
|
36
36
|
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function p(t, e) {
|
|
39
|
+
const a = t.styleMap.get(e);
|
|
40
|
+
if (a) {
|
|
41
|
+
const n = a.toString();
|
|
42
|
+
return n.startsWith("var") ? p(t, n.slice(4, -1)) : n;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function C(...t) {
|
|
39
46
|
const e = {};
|
|
40
|
-
return Array.from(document.styleSheets).forEach((
|
|
41
|
-
Array.from(
|
|
47
|
+
return Array.from(document.styleSheets).forEach((a) => {
|
|
48
|
+
Array.from(a.cssRules).forEach((n) => {
|
|
42
49
|
n instanceof CSSStyleRule && n.selectorText === ":root" && t.forEach((o) => {
|
|
43
|
-
const r = n
|
|
44
|
-
r && (e[o] = r
|
|
50
|
+
const r = p(n, o);
|
|
51
|
+
r && (e[o] = r);
|
|
45
52
|
});
|
|
46
53
|
});
|
|
47
|
-
}), t.forEach((
|
|
48
|
-
e[
|
|
54
|
+
}), t.forEach((a) => {
|
|
55
|
+
e[a] || console.warn(`variable named ${a} not found`);
|
|
49
56
|
}), e;
|
|
50
57
|
}
|
|
51
|
-
function
|
|
58
|
+
function v(t) {
|
|
52
59
|
const e = window.atob(t);
|
|
53
60
|
return decodeURIComponent(window.escape(e));
|
|
54
61
|
}
|
|
55
|
-
function
|
|
62
|
+
function E(t) {
|
|
56
63
|
const e = window.unescape(encodeURIComponent(t));
|
|
57
64
|
return window.btoa(e);
|
|
58
65
|
}
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
const n =
|
|
63
|
-
x: parseInt(
|
|
64
|
-
y: parseInt(
|
|
65
|
-
width: parseInt(
|
|
66
|
-
height: parseInt(
|
|
66
|
+
function h(t, { pathSelector: e = "path" } = {}) {
|
|
67
|
+
const a = document.createElement(null);
|
|
68
|
+
a.innerHTML = t;
|
|
69
|
+
const n = a.firstElementChild, r = n.querySelector(e).getPathData(), s = n.getAttribute("viewBox").split(" ").map((c) => c.trim()), i = {
|
|
70
|
+
x: parseInt(s[0]),
|
|
71
|
+
y: parseInt(s[1]),
|
|
72
|
+
width: parseInt(s[2]),
|
|
73
|
+
height: parseInt(s[3])
|
|
67
74
|
}, u = Math.min(i.width, i.height);
|
|
68
75
|
return r.forEach((c) => {
|
|
69
76
|
c.values = c.values.map((l) => l / u);
|
|
70
77
|
}), r;
|
|
71
78
|
}
|
|
72
|
-
function
|
|
79
|
+
function d(t, e, a, n, o) {
|
|
73
80
|
const r = [];
|
|
74
|
-
for (let
|
|
75
|
-
const i = Math.pow(1 -
|
|
81
|
+
for (let s = 0; s <= 1; s += 1 / o) {
|
|
82
|
+
const i = Math.pow(1 - s, 3) * t.x + 3 * Math.pow(1 - s, 2) * s * e.x + 3 * (1 - s) * Math.pow(s, 2) * a.x + Math.pow(s, 3) * n.x, u = Math.pow(1 - s, 3) * t.y + 3 * Math.pow(1 - s, 2) * s * e.y + 3 * (1 - s) * Math.pow(s, 2) * a.y + Math.pow(s, 3) * n.y;
|
|
76
83
|
r.push({ x: i, y: u });
|
|
77
84
|
}
|
|
78
85
|
return r;
|
|
79
86
|
}
|
|
80
|
-
function
|
|
81
|
-
const
|
|
87
|
+
function I(t, e) {
|
|
88
|
+
const a = (e == null ? void 0 : e.segments) || 20, n = h(t, e);
|
|
82
89
|
let o = [];
|
|
83
90
|
for (let r = 0; r < n.length - 1; r++) {
|
|
84
|
-
const { type:
|
|
85
|
-
if (
|
|
91
|
+
const { type: s, values: i } = n[r];
|
|
92
|
+
if (s === "M" && r === 0)
|
|
86
93
|
o.push({ x: i[0], y: i[1] });
|
|
87
|
-
else if (
|
|
88
|
-
const u = o[o.length - 1], c = { x: i[0], y: i[1] }, l = { x: i[2], y: i[3] },
|
|
89
|
-
o = [...o, ...
|
|
94
|
+
else if (s === "C") {
|
|
95
|
+
const u = o[o.length - 1], c = { x: i[0], y: i[1] }, l = { x: i[2], y: i[3] }, f = { x: i[4], y: i[5] }, m = d(u, c, l, f, a);
|
|
96
|
+
o = [...o, ...m];
|
|
90
97
|
}
|
|
91
98
|
}
|
|
92
99
|
return o;
|
|
93
100
|
}
|
|
94
101
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
ve as calculateDistance,
|
|
103
|
+
Ee as calculateDistanceWithRadius,
|
|
104
|
+
Fe as camelToKebab,
|
|
105
|
+
Ge as capitalize,
|
|
106
|
+
Ie as clamp,
|
|
107
|
+
je as cloneDeep,
|
|
101
108
|
Be as compareObjects,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Q as contain,
|
|
110
|
+
R as cover,
|
|
111
|
+
pe as createJSONAndSave,
|
|
112
|
+
Oe as damp,
|
|
113
|
+
me as debounce,
|
|
114
|
+
E as decode,
|
|
115
|
+
ue as dispatchSizeChangeEvent,
|
|
116
|
+
y as dotCircleCollision,
|
|
117
|
+
w as dotRectCollision,
|
|
111
118
|
K as easeInCubic,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
$ as easeInExpo,
|
|
120
|
+
F as easeInOutCubic,
|
|
121
|
+
G as easeInOutExpo,
|
|
122
|
+
X as easeInOutQuad,
|
|
123
|
+
Y as easeInOutQuart,
|
|
124
|
+
Z as easeInOutQuint,
|
|
125
|
+
_ as easeInQuad,
|
|
126
|
+
ee as easeInQuart,
|
|
127
|
+
te as easeInQuint,
|
|
128
|
+
ae as easeOutCubic,
|
|
129
|
+
se as easeOutExpo,
|
|
130
|
+
ne as easeOutQuad,
|
|
124
131
|
oe as easeOutQuart,
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
re as easeOutQuint,
|
|
133
|
+
v as encode,
|
|
127
134
|
q as findParentElement,
|
|
128
135
|
L as findScrollParentElement,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
z as fixPosition,
|
|
137
|
+
Xe as generateId,
|
|
138
|
+
W as getAllParentElements,
|
|
139
|
+
be as getCumulativeOffsetLeft,
|
|
140
|
+
we as getCumulativeOffsetTop,
|
|
141
|
+
ye as getCumulativePosition,
|
|
135
142
|
H as getElement,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
st as getElementTransitionDurationMS,
|
|
144
|
+
nt as getElementTransitionDurationS,
|
|
145
|
+
h as getPathData,
|
|
139
146
|
B as getPointerPosition,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
147
|
+
I as getPoints,
|
|
148
|
+
C as getRootVariables,
|
|
149
|
+
g as insert,
|
|
143
150
|
T as isBrowser,
|
|
144
151
|
Ne as isESClass,
|
|
145
|
-
|
|
152
|
+
Ve as isNullish,
|
|
146
153
|
Ue as isObject,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
Ye as isUppercase,
|
|
155
|
+
Ze as kebabToCamel,
|
|
156
|
+
Se as lerp,
|
|
157
|
+
ie as linear,
|
|
158
|
+
Me as mapRange,
|
|
159
|
+
k as measureText,
|
|
153
160
|
qe as mergeDeep,
|
|
154
161
|
Le as mixin,
|
|
155
162
|
N as normalize,
|
|
156
163
|
Ke as nullishCoalescing,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
We as omit,
|
|
165
|
+
M as parseAttribute,
|
|
166
|
+
P as parseAttributeValue,
|
|
160
167
|
He as pick,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
Re as preciseNumber,
|
|
169
|
+
Pe as round,
|
|
170
|
+
ze as roundNumberTo,
|
|
171
|
+
V as screenToCartesian,
|
|
172
|
+
xe as setupDrag,
|
|
173
|
+
b as shiftArray,
|
|
174
|
+
Ae as smootherstep,
|
|
168
175
|
Te as smoothstep,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
_e as snakeToDotted,
|
|
177
|
+
De as step,
|
|
178
|
+
he as throttle,
|
|
179
|
+
et as toPascalCase,
|
|
180
|
+
tt as uncapitalize
|
|
174
181
|
};
|