aptechka 0.82.5 → 0.83.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-DxtCzFP3.js → Animation-BzTjZIE-.js} +2 -2
- package/lib/{Animation-jmvFcNfM.cjs → Animation-C39Ah-LM.cjs} +1 -1
- package/lib/{Composed-DtS09lSU.js → Composed-C-mnUGX6.js} +2 -2
- package/lib/{Composed-CSeUTRCg.cjs → Composed-RFcm2x5c.cjs} +1 -1
- package/lib/{Damped-DMnIOXpC.js → Damped-CRusiRIV.js} +2 -2
- package/lib/{Damped-77Urmi3q.cjs → Damped-Prr0iKu1.cjs} +1 -1
- package/lib/{DerivedArray-B8A0-8uT.cjs → DerivedArray-DdCR-Oy7.cjs} +1 -1
- package/lib/{DerivedArray-DG9iR0mf.js → DerivedArray-opbeygTL.js} +1 -1
- package/lib/{DragControls-BlL26P1V.cjs → DragControls-8rNZwQrs.cjs} +1 -1
- package/lib/{DragControls-DCC8iEOR.js → DragControls-DBNdMBA4.js} +4 -4
- package/lib/{LocalLinks-Bua7BGRF.cjs → LocalLinks-BxhSFv_Q.cjs} +1 -1
- package/lib/{LocalLinks-TQkTpAMx.js → LocalLinks-DRAQ-fxE.js} +3 -3
- package/lib/{PageAnnouncerElement-sfh0_4vl.js → PageAnnouncerElement-0LxZjtVH.js} +1 -1
- package/lib/{PageAnnouncerElement-C4k2kDJ5.cjs → PageAnnouncerElement-AQ0Ja6HM.cjs} +1 -1
- package/lib/{PageScroll-cQ3B5-6N.js → PageScroll-0LxFblry.js} +1 -1
- package/lib/{PageScroll-C7QBpx0G.cjs → PageScroll-BXJUQwG7.cjs} +1 -1
- package/lib/{SourceElement-TzgPNQOd.cjs → SourceElement-BHqPFbna.cjs} +1 -1
- package/lib/{SourceElement-BQ7g2KWK.js → SourceElement-DjbHjynf.js} +2 -2
- package/lib/{Store-1JrMCgdX.cjs → Store-Blf4msDz.cjs} +1 -1
- package/lib/{Store-CgQ3ReoB.js → Store-ZThXYBQd.js} +1 -1
- package/lib/{Tweened-lT68VACv.js → Tweened-Bw1Cn1PJ.js} +2 -2
- package/lib/{Tweened-CXQrFQth.cjs → Tweened-DWtk9E-O.cjs} +1 -1
- package/lib/{Viewport-Cx50Hufs.cjs → Viewport-BxCr0GlB.cjs} +1 -1
- package/lib/{Viewport-DGnJ31b4.js → Viewport-Dt-d9DPi.js} +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/api-fetcher/index.cjs +1 -0
- package/lib/api-fetcher/index.d.ts +16 -0
- package/lib/api-fetcher/index.js +100 -0
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/dom-BETkVSSZ.js +82 -0
- package/lib/dom-CBLlqORw.cjs +1 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- 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-CKTweR3M.cjs → index-OE2INULi.cjs} +1 -1
- package/lib/{index-LReFyN6i.js → index-e9eDuagL.js} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.js +6 -6
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +1 -1
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +294 -301
- package/lib/{morph-BQErz7qP.js → morph-D_ybmXWR.js} +8 -8
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +1 -1
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +1 -1
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.cjs +1 -1
- 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.cjs +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/render-1u700s93.js +212 -0
- package/lib/render-BIOfUddT.cjs +1 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +6 -6
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -8
- package/lib/{scroll-DxcPU0vk.cjs → scroll-BA2WnUrb.cjs} +1 -1
- package/lib/{scroll-jcbHDexr.js → scroll-DY5senkF.js} +2 -2
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +1 -1
- package/lib/scroll-kit/index.cjs +1 -1
- 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.cjs +1 -1
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +6 -6
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +3 -3
- package/lib/{stylesheet-BcwbfhBp.cjs → stylesheet-5_o7PFzM.cjs} +1 -1
- package/lib/{stylesheet-DbHOxtjw.js → stylesheet-DdBzowZY.js} +1 -1
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/url-CHgcNwJ1.cjs +1 -0
- package/lib/url-CYgo5vrG.js +113 -0
- package/lib/utils/dom.d.ts +3 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +142 -137
- 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.cjs +1 -1
- 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 +13 -5
- package/lib/dom-BIeVMHfK.js +0 -57
- package/lib/dom-hTEdqeoj.cjs +0 -1
- package/lib/render-B3Hf-O7M.js +0 -205
- package/lib/render-BWjKu0M_.cjs +0 -1
- package/lib/url-CPgw9bd5.cjs +0 -1
- package/lib/url-DAl-mgbC.js +0 -97
package/lib/store/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as s, a as o, s as a } from "../Store-
|
|
2
|
-
import { C as i, D as m, R as p } from "../Composed-
|
|
3
|
-
import { D as d } from "../DerivedArray-
|
|
1
|
+
import { S as s, a as o, s as a } from "../Store-ZThXYBQd.js";
|
|
2
|
+
import { C as i, D as m, R as p } from "../Composed-C-mnUGX6.js";
|
|
3
|
+
import { D as d } from "../DerivedArray-opbeygTL.js";
|
|
4
4
|
export {
|
|
5
5
|
i as Composed,
|
|
6
6
|
m as Derived,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("construct-style-sheets-polyfill");const i=require("./index-
|
|
1
|
+
"use strict";require("construct-style-sheets-polyfill");const i=require("./index-OE2INULi.cjs"),o=require("./string-DUXXtU8v.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${o.camelToKebab(r)}: ${n};`}return e}function c(t){if(i.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(typeof t=="string"?t:s(t)),e}return null}exports.createStylesheet=c;exports.styleToString=s;
|
package/lib/ticker/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-
|
|
1
|
+
"use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-OE2INULi.cjs"),j=require("../dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");var g,u,v,k,b,m,w,l,d,y,A;class C{constructor(e,s){r(this,g);r(this,u);r(this,v);r(this,k,0);r(this,b,0);r(this,m,0);r(this,w,0);r(this,l,0);r(this,d,!1);r(this,y,null);r(this,A,e=>{const s=e[0];t(this,d,s.isIntersecting),i(this,d)&&t(this,w,i(this,k))});if(t(this,g,e),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&L.isBrowser){const n=j.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(i(this,A))),i(this,y).observe(n))}else t(this,d,!0)}get callback(){return i(this,g)}get order(){return i(this,v)}sync(e){t(this,b,e-i(this,l))}tick(e){if(t(this,k,e),t(this,l,Math.max(0,e-i(this,b))),i(this,m)||t(this,m,e),i(this,u))if(i(this,l)>=1e3/i(this,u))t(this,b,e-i(this,l)%i(this,u));else return;else t(this,b,e);i(this,d)&&i(this,g).call(this,{timeBetweenFrames:i(this,l),timestamp:e,subscribeTimestamp:i(this,m),timeElapsedSinceSubscription:e-i(this,m),timeElapsedSinceIntersection:e-i(this,w)})}destroy(){var e;(e=i(this,y))==null||e.disconnect()}}g=new WeakMap,u=new WeakMap,v=new WeakMap,k=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,A=new WeakMap;var T,f,a,F,c,o,P,x,S,q;class O{constructor(){r(this,o);r(this,T,0);r(this,f,0);r(this,a);r(this,F,!1);r(this,c,[]);r(this,S,e=>{if(i(this,F)){t(this,F,!1),t(this,T,e-i(this,f));for(const s of i(this,c))s.sync(i(this,f))}t(this,a,requestAnimationFrame(i(this,S))),t(this,f,e-i(this,T));for(const s of i(this,c))s.tick(i(this,f))});r(this,q,()=>{document.hidden&&t(this,F,!0)});L.isBrowser&&document.addEventListener("visibilitychange",i(this,q))}subscribe(e,s){if(!i(this,c).find(n=>n.callback===e)){const n=new C(e,s);n.sync(performance.now()),i(this,c).push(n),t(this,c,i(this,c).sort((M,V)=>M.order-V.order))}return E(this,o,P).call(this),()=>this.unsubscribe(e)}unsubscribe(e){const s=i(this,c).filter(n=>n.callback===e);s.length&&(s.forEach(n=>n.destroy()),t(this,c,i(this,c).filter(n=>n.callback!==e)),i(this,c).length||E(this,o,x).call(this))}destroy(){L.isBrowser&&(E(this,o,x).call(this),document.removeEventListener("visibilitychange",i(this,q)))}}T=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,o=new WeakSet,P=function(){i(this,c).length&&!i(this,a)&&t(this,a,requestAnimationFrame(i(this,S)))},x=function(){i(this,a)&&(cancelAnimationFrame(i(this,a)),t(this,a,void 0))},S=new WeakMap,q=new WeakMap;const D=new O;exports.Ticker=O;exports.ticker=D;
|
package/lib/ticker/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var B = (h) => {
|
|
|
3
3
|
};
|
|
4
4
|
var x = (h, s, e) => s.has(h) || B("Cannot " + e);
|
|
5
5
|
var i = (h, s, e) => (x(h, s, "read from private field"), e ? e.call(h) : s.get(h)), r = (h, s, e) => s.has(h) ? B("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(h) : s.set(h, e), t = (h, s, e, n) => (x(h, s, "write to private field"), n ? n.call(h, e) : s.set(h, e), e), A = (h, s, e) => (x(h, s, "access private method"), e);
|
|
6
|
-
import { i as I } from "../index-
|
|
7
|
-
import { g as C } from "../dom-
|
|
6
|
+
import { i as I } from "../index-e9eDuagL.js";
|
|
7
|
+
import { g as C } from "../dom-BETkVSSZ.js";
|
|
8
8
|
import "construct-style-sheets-polyfill";
|
|
9
9
|
var g, m, v, k, u, b, w, l, f, F, L;
|
|
10
10
|
class D {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var U=Object.defineProperty,y=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var m=(t,e,r)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))$.call(e,r)&&m(t,r,e[r]);if(p)for(var r of p(e))W.call(e,r)&&m(t,r,e[r]);return t},g=(t,e)=>y(t,w(e));function j(t,{base:e="",trailingSlash:r=!1,mergeParams:n,removeParams:s}={}){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const i=t.split("#"),l=i[0].split("?");let a=l[0].startsWith("/")?l[0]:"/"+l[0];r?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;let c=l[1]||"";if(n){const o=new URLSearchParams(c),P=new URLSearchParams(n);for(const[h,R]of P)o.has(h)||o.set(h,R);s==null||s.split(",").forEach(h=>{o.has(h)&&o.delete(h)}),c=o.toString()}const u=e+a,f=i[1],L=`${u}${c?"?"+c:""}${f?"#"+f:""}`;return{leaf:a,pathname:u,parameters:c,hash:f,path:L}}function z(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function O(t){if(t.action==="none")return;const e=t==null?void 0:t.searchParameters,r=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",n=e?e.startsWith("?")?e:"?"+e:"",s=`${t.pathname}${n}${r}`,i=g(S({},t.state),{path:s});t.action==="push"?history.pushState(i,"",s):t.action==="replace"&&history.replaceState(i,"",s)}function A(t){const e=new URLSearchParams(t),r={};for(const[n,s]of e)r[n]=s;return r}function k(t,e){const r=new URL(location.href),n=(e==null?void 0:e.toString())||"";r.searchParams.set(t,n),history.replaceState(history.state,"",r.href)}function d(t,e,r){t.setAttribute(e,new URL(t.getAttribute(e),r).pathname)}function T(t,e){t.querySelectorAll('[href^="./"], [href^="../"]').forEach(r=>d(r,"href",e)),t.querySelectorAll('[src^="./"], [src^="../"]').forEach(r=>d(r,"src",e))}function E(t,{base:e="",trailingSlash:r=!1}={}){e=e.replace(/^\/|\/$/g,"");const n=typeof t=="string"?t.replace(/^\/|\/$/g,""):t.pathname.replace(/^\/|\/$/g,"");let s="";return n.includes(e)?s=`/${n}`:s=`${e}/${n}`,r&&!s.endsWith("/")&&(s+="/"),new URL(s,location.origin)}function q(t){try{const e=new URL(t);if(window.location.origin===e.origin)return e.pathname===window.location.pathname?!e.hash:!0}catch(e){}return!1}function B(t){if(!t)return"";const e=new URLSearchParams;for(const[r,n]of Object.entries(t))n!=null&&n!==!1&&n!==""&&e.append(r,String(n));return e.toString()}function H(t){const e={};for(const[r,n]of t.entries())n!=null&&(e[r]=n);return e}exports.changeHistory=O;exports.isLocalUrl=q;exports.normalizeBase=z;exports.normalizeRelativeURLs=T;exports.normalizeURL=E;exports.parseSearchParameters=A;exports.searchParamsObjectToString=B;exports.searchParamsToObject=H;exports.splitPath=j;exports.updateSearchParameter=k;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var R = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var p = Object.getOwnPropertySymbols;
|
|
4
|
+
var P = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var S = (t, e, n) => e in t ? R(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, g = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
P.call(e, n) && S(t, n, e[n]);
|
|
8
|
+
if (p)
|
|
9
|
+
for (var n of p(e))
|
|
10
|
+
W.call(e, n) && S(t, n, e[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, d = (t, e) => U(t, $(e));
|
|
13
|
+
function k(t, {
|
|
14
|
+
base: e = "",
|
|
15
|
+
trailingSlash: n = !1,
|
|
16
|
+
mergeParams: s,
|
|
17
|
+
removeParams: r
|
|
18
|
+
} = {}) {
|
|
19
|
+
e = e.endsWith("/") ? e.slice(0, -1) : e, t = t.replace(e, ""), t.startsWith("/") && (t = t.slice(1));
|
|
20
|
+
const i = t.split("#"), f = i[0].split("?");
|
|
21
|
+
let a = f[0].startsWith("/") ? f[0] : "/" + f[0];
|
|
22
|
+
n ? a = !a.endsWith("/") && a !== "/" ? a + "/" : a : a = a.endsWith("/") && a !== "/" ? a.slice(0, -1) : a;
|
|
23
|
+
let o = f[1] || "";
|
|
24
|
+
if (s) {
|
|
25
|
+
const c = new URLSearchParams(o), w = new URLSearchParams(s);
|
|
26
|
+
for (const [h, L] of w)
|
|
27
|
+
c.has(h) || c.set(h, L);
|
|
28
|
+
r == null || r.split(",").forEach((h) => {
|
|
29
|
+
c.has(h) && c.delete(h);
|
|
30
|
+
}), o = c.toString();
|
|
31
|
+
}
|
|
32
|
+
const u = e + a, l = i[1], y = `${u}${o ? "?" + o : ""}${l ? "#" + l : ""}`;
|
|
33
|
+
return {
|
|
34
|
+
leaf: a,
|
|
35
|
+
pathname: u,
|
|
36
|
+
parameters: o,
|
|
37
|
+
hash: l,
|
|
38
|
+
path: y
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function O(t = "/") {
|
|
42
|
+
return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
|
|
43
|
+
}
|
|
44
|
+
function z(t) {
|
|
45
|
+
if (t.action === "none")
|
|
46
|
+
return;
|
|
47
|
+
const e = t == null ? void 0 : t.searchParameters, n = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", s = e ? e.startsWith("?") ? e : "?" + e : "", r = `${t.pathname}${s}${n}`, i = d(g({}, t.state), { path: r });
|
|
48
|
+
t.action === "push" ? history.pushState(i, "", r) : t.action === "replace" && history.replaceState(i, "", r);
|
|
49
|
+
}
|
|
50
|
+
function E(t) {
|
|
51
|
+
const e = new URLSearchParams(t), n = {};
|
|
52
|
+
for (const [s, r] of e)
|
|
53
|
+
n[s] = r;
|
|
54
|
+
return n;
|
|
55
|
+
}
|
|
56
|
+
function q(t, e) {
|
|
57
|
+
const n = new URL(location.href), s = (e == null ? void 0 : e.toString()) || "";
|
|
58
|
+
n.searchParams.set(t, s), history.replaceState(history.state, "", n.href);
|
|
59
|
+
}
|
|
60
|
+
function m(t, e, n) {
|
|
61
|
+
t.setAttribute(e, new URL(t.getAttribute(e), n).pathname);
|
|
62
|
+
}
|
|
63
|
+
function x(t, e) {
|
|
64
|
+
t.querySelectorAll('[href^="./"], [href^="../"]').forEach(
|
|
65
|
+
(n) => m(n, "href", e)
|
|
66
|
+
), t.querySelectorAll('[src^="./"], [src^="../"]').forEach(
|
|
67
|
+
(n) => m(n, "src", e)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function T(t, {
|
|
71
|
+
base: e = "",
|
|
72
|
+
trailingSlash: n = !1
|
|
73
|
+
} = {}) {
|
|
74
|
+
e = e.replace(/^\/|\/$/g, "");
|
|
75
|
+
const s = typeof t == "string" ? t.replace(/^\/|\/$/g, "") : t.pathname.replace(/^\/|\/$/g, "");
|
|
76
|
+
let r = "";
|
|
77
|
+
return s.includes(e) ? r = `/${s}` : r = `${e}/${s}`, n && !r.endsWith("/") && (r += "/"), new URL(r, location.origin);
|
|
78
|
+
}
|
|
79
|
+
function B(t) {
|
|
80
|
+
try {
|
|
81
|
+
const e = new URL(t);
|
|
82
|
+
if (window.location.origin === e.origin)
|
|
83
|
+
return e.pathname === window.location.pathname ? !e.hash : !0;
|
|
84
|
+
} catch (e) {
|
|
85
|
+
}
|
|
86
|
+
return !1;
|
|
87
|
+
}
|
|
88
|
+
function H(t) {
|
|
89
|
+
if (!t)
|
|
90
|
+
return "";
|
|
91
|
+
const e = new URLSearchParams();
|
|
92
|
+
for (const [n, s] of Object.entries(t))
|
|
93
|
+
s != null && s !== !1 && s !== "" && e.append(n, String(s));
|
|
94
|
+
return e.toString();
|
|
95
|
+
}
|
|
96
|
+
function C(t) {
|
|
97
|
+
const e = {};
|
|
98
|
+
for (const [n, s] of t.entries())
|
|
99
|
+
s != null && (e[n] = s);
|
|
100
|
+
return e;
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
O as a,
|
|
104
|
+
x as b,
|
|
105
|
+
z as c,
|
|
106
|
+
k as d,
|
|
107
|
+
C as e,
|
|
108
|
+
B as i,
|
|
109
|
+
T as n,
|
|
110
|
+
E as p,
|
|
111
|
+
H as s,
|
|
112
|
+
q as u
|
|
113
|
+
};
|
package/lib/utils/dom.d.ts
CHANGED
|
@@ -5,3 +5,6 @@ export declare function findScrollParentElement(node: Node | null, _initial?: No
|
|
|
5
5
|
export declare function getAllParentElements(node: Node): HTMLElement[];
|
|
6
6
|
export declare function traverseNodes(node: Node, callback: (node: Node) => void): void;
|
|
7
7
|
export declare function traverseShadowRoots(root: Element, callback: (element: Element) => void, includeShadowRoots?: boolean): void;
|
|
8
|
+
export declare function intersectElements(elements: Array<Element>, elementsToIntersect: Array<Element>): Element[];
|
|
9
|
+
export declare function excludeElements(elements: Array<Element>, elementsToExclude: Array<Element>): Element[];
|
|
10
|
+
export declare function createScriptElement(element: HTMLScriptElement): HTMLScriptElement;
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../attributes-Bf2svn4j.cjs"),y=require("../index-OE2INULi.cjs"),C=require("../canvas-CU5Xjahf.cjs"),b=require("../coordinates-D8Np3cPD.cjs"),v=require("../custom-elements-Dh4TWRDJ.cjs"),d=require("../dom-CBLlqORw.cjs"),s=require("../easings-GegIwET5.cjs"),D=require("../element-yhcBhsho.cjs"),q=require("../events-KVanG9sR.cjs"),P=require("../file-DSpfWdd9.cjs"),N=require("../function-MthRj-GJ.cjs"),w=require("../gestures-C7gbKx11.cjs"),S=require("../stylesheet-5_o7PFzM.cjs"),O=require("../layout-Ctc2p3uz.cjs"),l=require("../math-GDWEqu7y.cjs"),M=require("../metadata-BcYZ5w3T.cjs"),a=require("../morph-B6sGhLCi.cjs"),p=require("../number-ChAm68cm.cjs"),m=require("../object-baN9pgbU.cjs"),A=require("../polyfills-Df4r-ETT.cjs"),x=require("../scroll-BA2WnUrb.cjs"),c=require("../string-DUXXtU8v.cjs"),R=require("../style-At6aDoqG.cjs"),u=require("../url-CHgcNwJ1.cjs");function Q(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function B(t,e){const n=t.length;e=e%n;const r=new Array(n);for(let o=0;o<n;o++){const i=(o+e)%n;r[i]=t[o]}return r}function U(t,e=2){if(!+t)return"0 Bytes";const n=1024,r=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,i)).toFixed(r))} ${o[i]}`}function z(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard successfully!")}).catch(e=>{console.error("Failed to copy text to clipboard:",e)});else{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",document.body.appendChild(e),e.select();try{document.execCommand("copy")?console.log("Text copied to clipboard successfully!"):console.error("Failed to copy text to clipboard.")}catch(n){console.error("Failed to copy text to clipboard:",n)}document.body.removeChild(e)}}function V(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function j(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function L(t,e){let n=!1;const{x:r,y:o}=t;for(let i=0,E=e.length-1;i<e.length;E=i++){const T=e[i].x,f=e[i].y,h=e[E].x,g=e[E].y;f>o!=g>o&&r<(h-T)*(o-f)/(g-f)+T&&(n=!n)}return n}function _(t,e){const n=t.style.getPropertyValue(e);if(n){const r=n.toString();return r.startsWith("var")?_(t,r.slice(4,-1)):r}}function Y(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(r=>{r instanceof CSSStyleRule&&r.selectorText===":root"&&t.forEach(o=>{const i=_(r,o);i&&(e[o]=i)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function k(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function F(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}const $=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,H=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function K(t){let e,n;return H.test(t)?(e=`mailto:${t.trim()}`,n="email"):$.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n,contact:t}}function W(t,e){if(t){const r=t.content.cloneNode(!0).firstElementChild;return r&&(e==null||e(r)),r}return null}function Z(t,e,n,r){let o,i=!1,E=0;const T=()=>{clearInterval(o),r!=null&&r.restartCounter&&(E=0),i&&(o=setInterval(()=>{n(E++)},e))},f=y.intersector.subscribe(t,h=>{i=h.isIntersecting,T()});return()=>{f(),clearInterval(o)}}exports.parseAttribute=I.parseAttribute;exports.parseAttributeValue=I.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=C.contain;exports.cover=C.cover;exports.fixPosition=C.fixPosition;exports.measureText=C.measureText;exports.getPointerPosition=b.getPointerPosition;exports.normalize=b.normalize;exports.screenToCartesian=b.screenToCartesian;exports.whenDefined=v.whenDefined;exports.createScriptElement=d.createScriptElement;exports.excludeElements=d.excludeElements;exports.findParentElement=d.findParentElement;exports.findScrollParentElement=d.findScrollParentElement;exports.getAllParentElements=d.getAllParentElements;exports.getElement=d.getElement;exports.intersectElements=d.intersectElements;exports.traverseNodes=d.traverseNodes;exports.traverseShadowRoots=d.traverseShadowRoots;exports.easeInCubic=s.easeInCubic;exports.easeInExpo=s.easeInExpo;exports.easeInOutCubic=s.easeInOutCubic;exports.easeInOutExpo=s.easeInOutExpo;exports.easeInOutQuad=s.easeInOutQuad;exports.easeInOutQuart=s.easeInOutQuart;exports.easeInOutQuint=s.easeInOutQuint;exports.easeInQuad=s.easeInQuad;exports.easeInQuart=s.easeInQuart;exports.easeInQuint=s.easeInQuint;exports.easeOutCubic=s.easeOutCubic;exports.easeOutExpo=s.easeOutExpo;exports.easeOutQuad=s.easeOutQuad;exports.easeOutQuart=s.easeOutQuart;exports.easeOutQuint=s.easeOutQuint;exports.linear=s.linear;exports.isElementVisible=D.isElementVisible;exports.dispatchEvent=q.dispatchEvent;exports.createJSONAndSave=P.createJSONAndSave;exports.downloadURI=P.downloadURI;exports.debounce=N.debounce;exports.throttle=N.throttle;exports.setupDrag=w.setupDrag;exports.createStylesheet=S.createStylesheet;exports.styleToString=S.styleToString;exports.getCumulativeOffsetLeft=O.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=O.getCumulativeOffsetTop;exports.getCumulativePosition=O.getCumulativePosition;exports.getStickyOffset=O.getStickyOffset;exports.calculateDistance=l.calculateDistance;exports.calculateDistanceWithRadius=l.calculateDistanceWithRadius;exports.clamp=l.clamp;exports.damp=l.damp;exports.lerp=l.lerp;exports.mapRange=l.mapRange;exports.round=l.round;exports.smootherstep=l.smootherstep;exports.smoothstep=l.smoothstep;exports.step=l.step;exports.formatMediaDuration=M.formatMediaDuration;exports.ACTION_CREATE=a.ACTION_CREATE;exports.ACTION_PRESERVE=a.ACTION_PRESERVE;exports.ACTION_REMOVE=a.ACTION_REMOVE;exports.ACTION_REMOVE_ATTR=a.ACTION_REMOVE_ATTR;exports.ACTION_REPLACE=a.ACTION_REPLACE;exports.ACTION_SET_ATTR=a.ACTION_SET_ATTR;exports.ACTION_SKIP=a.ACTION_SKIP;exports.ACTION_UPDATE=a.ACTION_UPDATE;exports.NODE_TYPE_COMMENT=a.NODE_TYPE_COMMENT;exports.NODE_TYPE_DOCUMENT=a.NODE_TYPE_DOCUMENT;exports.NODE_TYPE_ELEMENT=a.NODE_TYPE_ELEMENT;exports.NODE_TYPE_TEXT=a.NODE_TYPE_TEXT;exports.diff=a.diff;exports.morph=a.morph;exports.patch=a.patch;exports.beautifyNumber=p.beautifyNumber;exports.loopNumber=p.loopNumber;exports.preciseNumber=p.preciseNumber;exports.roundNumberTo=p.roundNumberTo;exports.toStep=p.toStep;exports.cloneDeep=m.cloneDeep;exports.compareObjects=m.compareObjects;exports.isESClass=m.isESClass;exports.isNullish=m.isNullish;exports.isObject=m.isObject;exports.mergeDeep=m.mergeDeep;exports.mixin=m.mixin;exports.omit=m.omit;exports.pick=m.pick;exports.nullishCoalescing=A.nullishCoalescing;exports.requestIdleCallback=A.requestIdleCallback;exports.scrollToElement=x.scrollToElement;exports.wait=x.wait;exports.camelToKebab=c.camelToKebab;exports.capitalize=c.capitalize;exports.declension=c.declension;exports.decodeHtmlEntities=c.decodeHtmlEntities;exports.generateId=c.generateId;exports.isUppercase=c.isUppercase;exports.kebabToCamel=c.kebabToCamel;exports.snakeToDotted=c.snakeToDotted;exports.toPascalCase=c.toPascalCase;exports.uncapitalize=c.uncapitalize;exports.getElementTransitionDurationMS=R.getElementTransitionDurationMS;exports.getElementTransitionDurationS=R.getElementTransitionDurationS;exports.changeHistory=u.changeHistory;exports.isLocalUrl=u.isLocalUrl;exports.normalizeBase=u.normalizeBase;exports.normalizeRelativeURLs=u.normalizeRelativeURLs;exports.normalizeURL=u.normalizeURL;exports.parseSearchParameters=u.parseSearchParameters;exports.searchParamsObjectToString=u.searchParamsObjectToString;exports.searchParamsToObject=u.searchParamsToObject;exports.splitPath=u.splitPath;exports.updateSearchParameter=u.updateSearchParameter;exports.cloneTemplateContent=W;exports.copyTextToClipboard=z;exports.decode=F;exports.dotCircleCollision=j;exports.dotPolygonCollision=L;exports.dotRectCollision=V;exports.encode=k;exports.formatBytes=U;exports.getRootVariables=Y;exports.insert=Q;exports.setIntervalOnIntersection=Z;exports.shiftArray=B;exports.tryCreateHrefFromContact=K;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { a as _, p as D } from "../attributes-69we3byR.js";
|
|
2
|
-
import { a as d } from "../index-
|
|
3
|
-
import { i as B } from "../index-
|
|
4
|
-
import { a as
|
|
2
|
+
import { a as d } from "../index-e9eDuagL.js";
|
|
3
|
+
import { i as B } from "../index-e9eDuagL.js";
|
|
4
|
+
import { a as z, c as Q, f as U, m as V } from "../canvas-DeZ0SLUJ.js";
|
|
5
5
|
import { g as F, n as L, s as k } from "../coordinates-CgdGoSYs.js";
|
|
6
6
|
import { w as q } from "../custom-elements-DBnCK7Zx.js";
|
|
7
|
-
import {
|
|
8
|
-
import { d as
|
|
9
|
-
import { i as
|
|
10
|
-
import { d as
|
|
11
|
-
import { c as
|
|
12
|
-
import { d as
|
|
13
|
-
import { s as
|
|
14
|
-
import { c as
|
|
15
|
-
import { g as
|
|
16
|
-
import { e as
|
|
17
|
-
import { f as
|
|
18
|
-
import { A as
|
|
19
|
-
import { b as
|
|
20
|
-
import { c as
|
|
21
|
-
import { n as
|
|
22
|
-
import { s as
|
|
23
|
-
import { c as
|
|
24
|
-
import { g as
|
|
25
|
-
import { c as
|
|
7
|
+
import { c as K, e as Z, b as W, f as G, a as J, g as X, i as ee, t as te, d as se } from "../dom-BETkVSSZ.js";
|
|
8
|
+
import { d as oe, o as re, g as ne, q as ie, c as ce, j as le, n as ue, a as fe, h as de, k as me, f as pe, p as xe, b as Ee, i as he, m as Te, l as be } from "../easings-BEmRlrDd.js";
|
|
9
|
+
import { i as Ce } from "../element-CGVl1jA-.js";
|
|
10
|
+
import { d as Oe } from "../events-CsVF98U6.js";
|
|
11
|
+
import { c as Ae, d as Pe } from "../file-GHShUlue.js";
|
|
12
|
+
import { d as Ne, t as ve } from "../function-C10DGppn.js";
|
|
13
|
+
import { s as we } from "../gestures-CcXV6fCp.js";
|
|
14
|
+
import { c as De, s as Me } from "../stylesheet-DdBzowZY.js";
|
|
15
|
+
import { g as je, a as ze, c as Qe, b as Ue } from "../layout-BSMtwCga.js";
|
|
16
|
+
import { e as $e, f as Fe, c as Le, d as ke, l as Ye, m as qe, r as He, b as Ke, a as Ze, s as We } from "../math-BOBiC4TN.js";
|
|
17
|
+
import { f as Je } from "../metadata-jfowcCyz.js";
|
|
18
|
+
import { A as et, k as tt, e as st, i as at, f as ot, h as rt, j as nt, g as it, b as ct, c as lt, N as ut, a as ft, d as dt, m as mt, p as pt } from "../morph-D_ybmXWR.js";
|
|
19
|
+
import { b as Et, l as ht, p as Tt, r as bt, t as gt } from "../number-CumqY64S.js";
|
|
20
|
+
import { c as yt, d as Ot, i as It, b as At, a as Pt, m as St, e as Nt, o as vt, p as Rt } from "../object-CcMK4y_r.js";
|
|
21
|
+
import { n as _t, r as Dt } from "../polyfills-DJrTJQky.js";
|
|
22
|
+
import { s as Bt, w as jt } from "../scroll-DY5senkF.js";
|
|
23
|
+
import { c as Qt, a as Ut, b as Vt, d as $t, g as Ft, i as Lt, k as kt, s as Yt, t as qt, u as Ht } from "../string-BlMQbe8b.js";
|
|
24
|
+
import { g as Zt, a as Wt } from "../style-j2TwriJ_.js";
|
|
25
|
+
import { c as Jt, i as Xt, a as es, b as ts, n as ss, p as as, s as os, e as rs, d as ns, u as is } from "../url-CYgo5vrG.js";
|
|
26
26
|
function h(t, e, ...s) {
|
|
27
27
|
return [...t.slice(0, e), ...s, ...t.slice(e)];
|
|
28
28
|
}
|
|
@@ -75,7 +75,7 @@ function C(t, e) {
|
|
|
75
75
|
function y(t, e) {
|
|
76
76
|
return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function O(t, e) {
|
|
79
79
|
let s = !1;
|
|
80
80
|
const { x: a, y: o } = t;
|
|
81
81
|
for (let r = 0, n = e.length - 1; r < e.length; n = r++) {
|
|
@@ -91,7 +91,7 @@ function f(t, e) {
|
|
|
91
91
|
return a.startsWith("var") ? f(t, a.slice(4, -1)) : a;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function I(...t) {
|
|
95
95
|
const e = {};
|
|
96
96
|
return Array.from(document.styleSheets).forEach((s) => {
|
|
97
97
|
Array.from(s.cssRules).forEach((a) => {
|
|
@@ -108,23 +108,23 @@ function A(t) {
|
|
|
108
108
|
const e = window.atob(t);
|
|
109
109
|
return decodeURIComponent(window.escape(e));
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function P(t) {
|
|
112
112
|
const e = window.unescape(encodeURIComponent(t));
|
|
113
113
|
return window.btoa(e);
|
|
114
114
|
}
|
|
115
115
|
const m = /^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/, p = /^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;
|
|
116
|
-
function
|
|
116
|
+
function S(t) {
|
|
117
117
|
let e, s;
|
|
118
118
|
return p.test(t) ? (e = `mailto:${t.trim()}`, s = "email") : m.test(t) && (e = `tel:${t.replace(/[^0-9\\.\\+]+/g, "")}`, s = "phone"), { href: e, type: s, contact: t };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function N(t, e) {
|
|
121
121
|
if (t) {
|
|
122
122
|
const a = t.content.cloneNode(!0).firstElementChild;
|
|
123
123
|
return a && (e == null || e(a)), a;
|
|
124
124
|
}
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function v(t, e, s, a) {
|
|
128
128
|
let o, r = !1, n = 0;
|
|
129
129
|
const c = () => {
|
|
130
130
|
clearInterval(o), a != null && a.restartCounter && (n = 0), r && (o = setInterval(() => {
|
|
@@ -138,127 +138,132 @@ function R(t, e, s, a) {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
141
|
+
et as ACTION_CREATE,
|
|
142
|
+
tt as ACTION_PRESERVE,
|
|
143
|
+
st as ACTION_REMOVE,
|
|
144
|
+
at as ACTION_REMOVE_ATTR,
|
|
145
|
+
ot as ACTION_REPLACE,
|
|
146
|
+
rt as ACTION_SET_ATTR,
|
|
147
|
+
nt as ACTION_SKIP,
|
|
148
|
+
it as ACTION_UPDATE,
|
|
149
|
+
ct as NODE_TYPE_COMMENT,
|
|
150
|
+
lt as NODE_TYPE_DOCUMENT,
|
|
151
|
+
ut as NODE_TYPE_ELEMENT,
|
|
152
|
+
ft as NODE_TYPE_TEXT,
|
|
153
|
+
Et as beautifyNumber,
|
|
154
|
+
$e as calculateDistance,
|
|
155
|
+
Fe as calculateDistanceWithRadius,
|
|
156
|
+
Qt as camelToKebab,
|
|
157
|
+
Ut as capitalize,
|
|
158
|
+
Jt as changeHistory,
|
|
159
|
+
Le as clamp,
|
|
160
|
+
yt as cloneDeep,
|
|
161
|
+
N as cloneTemplateContent,
|
|
162
|
+
Ot as compareObjects,
|
|
163
|
+
z as contain,
|
|
164
164
|
g as copyTextToClipboard,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
165
|
+
Q as cover,
|
|
166
|
+
Ae as createJSONAndSave,
|
|
167
|
+
K as createScriptElement,
|
|
168
|
+
De as createStylesheet,
|
|
169
|
+
ke as damp,
|
|
170
|
+
Ne as debounce,
|
|
171
|
+
Vt as declension,
|
|
172
|
+
P as decode,
|
|
173
|
+
$t as decodeHtmlEntities,
|
|
174
|
+
dt as diff,
|
|
175
|
+
Oe as dispatchEvent,
|
|
175
176
|
y as dotCircleCollision,
|
|
176
|
-
|
|
177
|
+
O as dotPolygonCollision,
|
|
177
178
|
C as dotRectCollision,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
179
|
+
Pe as downloadURI,
|
|
180
|
+
oe as easeInCubic,
|
|
181
|
+
re as easeInExpo,
|
|
182
|
+
ne as easeInOutCubic,
|
|
183
|
+
ie as easeInOutExpo,
|
|
184
|
+
ce as easeInOutQuad,
|
|
185
|
+
le as easeInOutQuart,
|
|
186
|
+
ue as easeInOutQuint,
|
|
187
|
+
fe as easeInQuad,
|
|
188
|
+
de as easeInQuart,
|
|
189
|
+
me as easeInQuint,
|
|
190
|
+
pe as easeOutCubic,
|
|
191
|
+
xe as easeOutExpo,
|
|
192
|
+
Ee as easeOutQuad,
|
|
193
|
+
he as easeOutQuart,
|
|
194
|
+
Te as easeOutQuint,
|
|
194
195
|
A as encode,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
Z as excludeElements,
|
|
197
|
+
W as findParentElement,
|
|
198
|
+
G as findScrollParentElement,
|
|
199
|
+
U as fixPosition,
|
|
198
200
|
b as formatBytes,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
Je as formatMediaDuration,
|
|
202
|
+
Ft as generateId,
|
|
203
|
+
J as getAllParentElements,
|
|
204
|
+
je as getCumulativeOffsetLeft,
|
|
205
|
+
ze as getCumulativeOffsetTop,
|
|
206
|
+
Qe as getCumulativePosition,
|
|
207
|
+
X as getElement,
|
|
208
|
+
Zt as getElementTransitionDurationMS,
|
|
209
|
+
Wt as getElementTransitionDurationS,
|
|
208
210
|
F as getPointerPosition,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
I as getRootVariables,
|
|
212
|
+
Ue as getStickyOffset,
|
|
211
213
|
h as insert,
|
|
214
|
+
ee as intersectElements,
|
|
212
215
|
B as isBrowser,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
216
|
+
It as isESClass,
|
|
217
|
+
Ce as isElementVisible,
|
|
218
|
+
Xt as isLocalUrl,
|
|
219
|
+
At as isNullish,
|
|
220
|
+
Pt as isObject,
|
|
221
|
+
Lt as isUppercase,
|
|
222
|
+
kt as kebabToCamel,
|
|
223
|
+
Ye as lerp,
|
|
224
|
+
be as linear,
|
|
225
|
+
ht as loopNumber,
|
|
226
|
+
qe as mapRange,
|
|
227
|
+
V as measureText,
|
|
228
|
+
St as mergeDeep,
|
|
229
|
+
Nt as mixin,
|
|
230
|
+
mt as morph,
|
|
228
231
|
L as normalize,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
es as normalizeBase,
|
|
233
|
+
ts as normalizeRelativeURLs,
|
|
234
|
+
ss as normalizeURL,
|
|
235
|
+
_t as nullishCoalescing,
|
|
236
|
+
vt as omit,
|
|
234
237
|
_ as parseAttribute,
|
|
235
238
|
D as parseAttributeValue,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
as as parseSearchParameters,
|
|
240
|
+
pt as patch,
|
|
241
|
+
Rt as pick,
|
|
242
|
+
Tt as preciseNumber,
|
|
243
|
+
Dt as requestIdleCallback,
|
|
244
|
+
He as round,
|
|
245
|
+
bt as roundNumberTo,
|
|
243
246
|
k as screenToCartesian,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
Bt as scrollToElement,
|
|
248
|
+
os as searchParamsObjectToString,
|
|
249
|
+
rs as searchParamsToObject,
|
|
250
|
+
v as setIntervalOnIntersection,
|
|
251
|
+
we as setupDrag,
|
|
247
252
|
T as shiftArray,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
Ke as smootherstep,
|
|
254
|
+
Ze as smoothstep,
|
|
255
|
+
Yt as snakeToDotted,
|
|
256
|
+
ns as splitPath,
|
|
257
|
+
We as step,
|
|
258
|
+
Me as styleToString,
|
|
259
|
+
ve as throttle,
|
|
260
|
+
qt as toPascalCase,
|
|
261
|
+
gt as toStep,
|
|
262
|
+
te as traverseNodes,
|
|
263
|
+
se as traverseShadowRoots,
|
|
264
|
+
S as tryCreateHrefFromContact,
|
|
265
|
+
Ht as uncapitalize,
|
|
266
|
+
is as updateSearchParameter,
|
|
267
|
+
jt as wait,
|
|
263
268
|
q as whenDefined
|
|
264
269
|
};
|
package/lib/utils/url.d.ts
CHANGED
|
@@ -34,3 +34,9 @@ export declare function normalizeURL(url: URL | string, { base, trailingSlash, }
|
|
|
34
34
|
trailingSlash?: boolean;
|
|
35
35
|
}): URL;
|
|
36
36
|
export declare function isLocalUrl(href: string): boolean;
|
|
37
|
+
export declare function searchParamsObjectToString(parameters?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}): string;
|
|
40
|
+
export declare function searchParamsToObject(params: URLSearchParams): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-
|
|
1
|
+
"use strict";var d=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||d("Cannot "+e);var i=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>s.has(t)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,m)=>(E(t,s,"write to private field"),m?m.call(t,e):s.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../SourceElement-BHqPFbna.cjs");require("../window-resizer/index.cjs");require("../Store-Blf4msDz.cjs");const f=require("../index-OE2INULi.cjs"),y=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");const h=require("../ticker/index.cjs");var r,u,c,o,l;class p extends b.SourceElement{constructor(){super(...arguments);a(this,r,0);a(this,u,!1);a(this,c,this);a(this,o,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e!==i(this,r)&&y.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}}),e>i(this,r)&&n(this,r,e),this.consumerElement.readyState===4&&(h.ticker.unsubscribe(i(this,o)),i(this,u)&&this.sourceManager.current&&this.consumerElement.play())});a(this,l,()=>{this.hasAttribute("click-controls")&&(this.consumerElement.paused?this.consumerElement.play():this.hasAttribute("controls")||this.consumerElement.pause())})}connectedCallback(){super.connectedCallback();const e=this.getAttribute("click-controls");e&&(e==="parent"?n(this,c,this.parentElement):n(this,c,document.querySelector(e)||this)),this.addEventListener("sourceCapture",()=>{n(this,u,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():n(this,u,!0)),h.ticker.subscribe(i(this,o))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&this.consumerElement.pause(),this.hasAttribute("release-pause")&&this.consumerElement.pause(),this.hasAttribute("release-stop")&&(this.consumerElement.pause(),this.consumerElement.currentTime=0),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")}),i(this,c).addEventListener("click",i(this,l))}disconnectedCallback(){super.disconnectedCallback(),h.ticker.unsubscribe(i(this,o)),n(this,r,0),i(this,c).removeEventListener("click",i(this,l))}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||"",e&&this.hasAttribute("volume")&&(this.consumerElement.volume=parseFloat(this.getAttribute("volume")||"1"))}}r=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakMap,l=new WeakMap;f.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",p);exports.VideoElement=p;
|
package/lib/video/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var d = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var p = (t, s, e) => s.has(t) || d("Cannot " + e);
|
|
5
5
|
var i = (t, s, e) => (p(t, s, "read from private field"), e ? e.call(t) : s.get(t)), c = (t, s, e) => s.has(t) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), a = (t, s, e, m) => (p(t, s, "write to private field"), m ? m.call(t, e) : s.set(t, e), e);
|
|
6
|
-
import { a as E } from "../SourceElement-
|
|
6
|
+
import { a as E } from "../SourceElement-DjbHjynf.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as f } from "../index-
|
|
8
|
+
import "../Store-ZThXYBQd.js";
|
|
9
|
+
import { i as f } from "../index-e9eDuagL.js";
|
|
10
10
|
import { d as b } from "../events-CsVF98U6.js";
|
|
11
11
|
import "construct-style-sheets-polyfill";
|
|
12
12
|
import { ticker as h } from "../ticker/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-
|
|
1
|
+
"use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-OE2INULi.cjs"),R=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,e=>{t(this,r)||(c(this,r,!0),t(this,d).call(this,e))});u(this,d,R.debounce(e=>{this.notify(e),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(e,o){const z=super.subscribe(e,o);return t(this,r)||e(),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 = (e) => {
|
|
|
4
4
|
var c = (e, i, s) => i.has(e) || h("Cannot " + s);
|
|
5
5
|
var t = (e, i, s) => (c(e, i, "read from private field"), s ? s.call(e) : i.get(e)), u = (e, i, s) => i.has(e) ? h("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), f = (e, i, s, n) => (c(e, i, "write to private field"), n ? n.call(e, s) : i.set(e, s), s);
|
|
6
6
|
import { Notifier as p } from "../notifier/index.js";
|
|
7
|
-
import { i as w } from "../index-
|
|
7
|
+
import { i as w } from "../index-e9eDuagL.js";
|
|
8
8
|
import { d as z } from "../function-C10DGppn.js";
|
|
9
9
|
import "construct-style-sheets-polyfill";
|
|
10
10
|
var r, o, d;
|