aptechka 0.54.2 → 0.54.3

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.
@@ -15,7 +15,7 @@ var c = (a, r, e) => r in a ? O(a, r, { enumerable: !0, configurable: !0, writab
15
15
  }, g = (a, r) => b(a, x(r));
16
16
  var A = (a, r, e) => r.has(a) || f("Cannot " + e);
17
17
  var m = (a, r, e) => (A(a, r, "read from private field"), e ? e.call(a) : r.get(a)), n = (a, r, e) => r.has(a) ? f("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e), u = (a, r, e, i) => (A(a, r, "write to private field"), i ? i.call(a, e) : r.set(a, e), e);
18
- import { l as h, e as T } from "./easings-BEmRlrDd.js";
18
+ import { l as h, e as T } from "./easings-Bni3YAAW.js";
19
19
  import { c as q } from "./math-BOBiC4TN.js";
20
20
  import { p as w } from "./number-DwCxt_Ck.js";
21
21
  import { n as z } from "./polyfills-DJrTJQky.js";
@@ -1,6 +1,6 @@
1
1
  import { A as r } from "../Animation-eO5_LIJl.js";
2
2
  import { D as m } from "../Damped-GyAS-U-z.js";
3
- import { T as t } from "../Tweened-BWPx3jJR.js";
3
+ import { T as t } from "../Tweened-BSC-evuL.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -8,8 +8,8 @@ import { i as b } from "../index-euf5anj6.js";
8
8
  import { g as J } from "../dom-CVWzyXPH.js";
9
9
  import { ticker as A } from "../ticker/index.js";
10
10
  import "../Store-swP_0ymB.js";
11
- import { a as te } from "../easings-BEmRlrDd.js";
12
- import { T as ie } from "../Tweened-BWPx3jJR.js";
11
+ import { b as te } from "../easings-Bni3YAAW.js";
12
+ import { T as ie } from "../Tweened-BSC-evuL.js";
13
13
  import { s as se } from "../gestures-CcXV6fCp.js";
14
14
  import { p as he } from "../number-DwCxt_Ck.js";
15
15
  import { TICK_ORDER as ae } from "../order/index.js";
@@ -18,21 +18,21 @@ const n = (e) => e, s = (e) => e * e, a = (e) => e * (2 - e), r = (e) => e < 0.5
18
18
  linear: n
19
19
  }, Symbol.toStringTag, { value: "Module" }));
20
20
  export {
21
- s as a,
22
- a as b,
23
- r as c,
24
- u as d,
21
+ g as a,
22
+ s as b,
23
+ a as c,
24
+ r as d,
25
25
  x as e,
26
- o as f,
27
- c as g,
28
- O as h,
29
- i,
30
- I as j,
31
- Q as k,
26
+ u as f,
27
+ o as g,
28
+ c as h,
29
+ O as i,
30
+ i as j,
31
+ I as k,
32
32
  n as l,
33
- b as m,
34
- l as n,
35
- p as o,
36
- d as p,
37
- g as q
33
+ Q as m,
34
+ b as n,
35
+ l as o,
36
+ p,
37
+ d as q
38
38
  };
@@ -16,7 +16,7 @@ var Le = (p, n, e) => n.has(p) || Be("Cannot " + e);
16
16
  var t = (p, n, e) => (Le(p, n, "read from private field"), e ? e.call(p) : n.get(p)), s = (p, n, e) => n.has(p) ? Be("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(p) : n.set(p, e), h = (p, n, e, i) => (Le(p, n, "write to private field"), i ? i.call(p, e) : n.set(p, e), e), c = (p, n, e) => (Le(p, n, "access private method"), e);
17
17
  import { S as Qe } from "../Store-swP_0ymB.js";
18
18
  import { i as H } from "../index-euf5anj6.js";
19
- import { q as Xe } from "../easings-BEmRlrDd.js";
19
+ import { a as Xe } from "../easings-Bni3YAAW.js";
20
20
  import { d as re } from "../events-CsVF98U6.js";
21
21
  import { d as ze } from "../function-C10DGppn.js";
22
22
  import { c as Ne } from "../jss-DtnXPEnq.js";
@@ -26,7 +26,7 @@ import { p as Ye, l as ts } from "../number-DwCxt_Ck.js";
26
26
  import "../ticker/index.js";
27
27
  import { TICK_ORDER as es, RESIZE_ORDER as Ae } from "../order/index.js";
28
28
  import { D as ss } from "../Damped-GyAS-U-z.js";
29
- import { T as is } from "../Tweened-BWPx3jJR.js";
29
+ import { T as is } from "../Tweened-BSC-evuL.js";
30
30
  import { WheelControls as rs, KeyboardControls as ns, DragControls as hs, AutoplayControls as os } from "../controls/index.js";
31
31
  import { windowResizer as Ht } from "../window-resizer/index.js";
32
32
  import { scrollEntries as vt } from "../scroll-entries/index.js";
@@ -0,0 +1,4 @@
1
+ export declare function tryCreateHrefFromContact(contact: string): {
2
+ href: string | undefined;
3
+ type: "email" | "phone" | undefined;
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../attributes-Bf2svn4j.cjs"),y=require("../index-Cqw2NKev.cjs"),d=require("../canvas-CU5Xjahf.cjs"),g=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),r=require("../easings-GegIwET5.cjs"),w=require("../events-KVanG9sR.cjs"),C=require("../file-DSpfWdd9.cjs"),I=require("../function-MthRj-GJ.cjs"),Q=require("../gestures-C7gbKx11.cjs"),O=require("../jss-CRBgdvJ3.cjs"),m=require("../layout-Ctc2p3uz.cjs"),i=require("../math-GDWEqu7y.cjs"),f=require("../number-0243DApo.cjs"),l=require("../object-CCiXnER2.cjs"),T=require("../polyfills-Df4r-ETT.cjs"),S=require("../scroll-DAhSpkhR.cjs"),c=require("../string-DUXXtU8v.cjs"),E=require("../style-At6aDoqG.cjs"),u=require("../url-D1CgmwZ_.cjs");function B(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function D(t,e){const n=t.length;e=e%n;const o=new Array(n);for(let s=0;s<n;s++){const a=(s+e)%n;o[a]=t[s]}return o}function A(t,e=2){if(!+t)return"0 Bytes";const n=1024,o=e<0?0:e,s=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],a=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,a)).toFixed(o))} ${s[a]}`}function R(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 N(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 x(t,e){const n=t.style.getPropertyValue(e);if(n){const o=n.toString();return o.startsWith("var")?x(t,o.slice(4,-1)):o}}function M(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(o=>{o instanceof CSSStyleRule&&o.selectorText===":root"&&t.forEach(s=>{const a=x(o,s);a&&(e[s]=a)})})}),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 V(t,e){if(t){const o=t.content.cloneNode(!0).firstElementChild;return o&&(e==null||e(o)),o}return null}function U(t,e,n,o){let s,a=!1,b=0;const v=()=>{clearInterval(s),o!=null&&o.restartCounter&&(b=0),a&&(s=setInterval(()=>{n(b++)},e))},P=y.intersector.subscribe(t,q=>{a=q.isIntersecting,v()});return()=>{P(),clearInterval(s)}}exports.parseAttribute=h.parseAttribute;exports.parseAttributeValue=h.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=d.contain;exports.cover=d.cover;exports.fixPosition=d.fixPosition;exports.measureText=d.measureText;exports.getPointerPosition=g.getPointerPosition;exports.normalize=g.normalize;exports.screenToCartesian=g.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=r.easeInCubic;exports.easeInExpo=r.easeInExpo;exports.easeInOutCubic=r.easeInOutCubic;exports.easeInOutExpo=r.easeInOutExpo;exports.easeInOutQuad=r.easeInOutQuad;exports.easeInOutQuart=r.easeInOutQuart;exports.easeInOutQuint=r.easeInOutQuint;exports.easeInQuad=r.easeInQuad;exports.easeInQuart=r.easeInQuart;exports.easeInQuint=r.easeInQuint;exports.easeOutCubic=r.easeOutCubic;exports.easeOutExpo=r.easeOutExpo;exports.easeOutQuad=r.easeOutQuad;exports.easeOutQuart=r.easeOutQuart;exports.easeOutQuint=r.easeOutQuint;exports.linear=r.linear;exports.dispatchEvent=w.dispatchEvent;exports.createJSONAndSave=C.createJSONAndSave;exports.downloadURI=C.downloadURI;exports.debounce=I.debounce;exports.throttle=I.throttle;exports.setupDrag=Q.setupDrag;exports.createStylesheet=O.createStylesheet;exports.styleToString=O.styleToString;exports.getCumulativeOffsetLeft=m.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=m.getCumulativeOffsetTop;exports.getCumulativePosition=m.getCumulativePosition;exports.getStickyOffset=m.getStickyOffset;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.loopNumber=f.loopNumber;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.toStep=f.toStep;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=T.nullishCoalescing;exports.requestIdleCallback=T.requestIdleCallback;exports.scrollToElement=S.scrollToElement;exports.wait=S.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=E.getElementTransitionDurationMS;exports.getElementTransitionDurationS=E.getElementTransitionDurationS;exports.changeHistory=u.changeHistory;exports.normalizeBase=u.normalizeBase;exports.parseSearchParameters=u.parseSearchParameters;exports.splitPath=u.splitPath;exports.updateSearchParameter=u.updateSearchParameter;exports.cloneTemplateContent=V;exports.copyTextToClipboard=R;exports.decode=k;exports.dotCircleCollision=z;exports.dotRectCollision=N;exports.encode=j;exports.formatBytes=A;exports.getRootVariables=M;exports.insert=B;exports.setIntervalOnIntersection=U;exports.shiftArray=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../attributes-Bf2svn4j.cjs"),y=require("../index-Cqw2NKev.cjs"),d=require("../canvas-CU5Xjahf.cjs"),g=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),r=require("../easings-GegIwET5.cjs"),w=require("../events-KVanG9sR.cjs"),C=require("../file-DSpfWdd9.cjs"),I=require("../function-MthRj-GJ.cjs"),Q=require("../gestures-C7gbKx11.cjs"),O=require("../jss-CRBgdvJ3.cjs"),m=require("../layout-Ctc2p3uz.cjs"),i=require("../math-GDWEqu7y.cjs"),f=require("../number-0243DApo.cjs"),c=require("../object-CCiXnER2.cjs"),T=require("../polyfills-Df4r-ETT.cjs"),x=require("../scroll-DAhSpkhR.cjs"),l=require("../string-DUXXtU8v.cjs"),S=require("../style-At6aDoqG.cjs"),u=require("../url-D1CgmwZ_.cjs");function A(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function B(t,e){const n=t.length;e=e%n;const o=new Array(n);for(let s=0;s<n;s++){const a=(s+e)%n;o[a]=t[s]}return o}function D(t,e=2){if(!+t)return"0 Bytes";const n=1024,o=e<0?0:e,s=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],a=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,a)).toFixed(o))} ${s[a]}`}function R(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 z(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function N(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.style.getPropertyValue(e);if(n){const o=n.toString();return o.startsWith("var")?E(t,o.slice(4,-1)):o}}function M(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(o=>{o instanceof CSSStyleRule&&o.selectorText===":root"&&t.forEach(s=>{const a=E(o,s);a&&(e[s]=a)})})}),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)}const F=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,V=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function $(t){let e,n;return V.test(t)?(e=`mailto:${t.trim()}`,n="email"):F.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n}}function H(t,e){if(t){const o=t.content.cloneNode(!0).firstElementChild;return o&&(e==null||e(o)),o}return null}function U(t,e,n,o){let s,a=!1,b=0;const v=()=>{clearInterval(s),o!=null&&o.restartCounter&&(b=0),a&&(s=setInterval(()=>{n(b++)},e))},P=y.intersector.subscribe(t,q=>{a=q.isIntersecting,v()});return()=>{P(),clearInterval(s)}}exports.parseAttribute=h.parseAttribute;exports.parseAttributeValue=h.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=d.contain;exports.cover=d.cover;exports.fixPosition=d.fixPosition;exports.measureText=d.measureText;exports.getPointerPosition=g.getPointerPosition;exports.normalize=g.normalize;exports.screenToCartesian=g.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=r.easeInCubic;exports.easeInExpo=r.easeInExpo;exports.easeInOutCubic=r.easeInOutCubic;exports.easeInOutExpo=r.easeInOutExpo;exports.easeInOutQuad=r.easeInOutQuad;exports.easeInOutQuart=r.easeInOutQuart;exports.easeInOutQuint=r.easeInOutQuint;exports.easeInQuad=r.easeInQuad;exports.easeInQuart=r.easeInQuart;exports.easeInQuint=r.easeInQuint;exports.easeOutCubic=r.easeOutCubic;exports.easeOutExpo=r.easeOutExpo;exports.easeOutQuad=r.easeOutQuad;exports.easeOutQuart=r.easeOutQuart;exports.easeOutQuint=r.easeOutQuint;exports.linear=r.linear;exports.dispatchEvent=w.dispatchEvent;exports.createJSONAndSave=C.createJSONAndSave;exports.downloadURI=C.downloadURI;exports.debounce=I.debounce;exports.throttle=I.throttle;exports.setupDrag=Q.setupDrag;exports.createStylesheet=O.createStylesheet;exports.styleToString=O.styleToString;exports.getCumulativeOffsetLeft=m.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=m.getCumulativeOffsetTop;exports.getCumulativePosition=m.getCumulativePosition;exports.getStickyOffset=m.getStickyOffset;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.loopNumber=f.loopNumber;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.toStep=f.toStep;exports.cloneDeep=c.cloneDeep;exports.compareObjects=c.compareObjects;exports.isESClass=c.isESClass;exports.isNullish=c.isNullish;exports.isObject=c.isObject;exports.mergeDeep=c.mergeDeep;exports.mixin=c.mixin;exports.omit=c.omit;exports.pick=c.pick;exports.nullishCoalescing=T.nullishCoalescing;exports.requestIdleCallback=T.requestIdleCallback;exports.scrollToElement=x.scrollToElement;exports.wait=x.wait;exports.camelToKebab=l.camelToKebab;exports.capitalize=l.capitalize;exports.declension=l.declension;exports.decodeHtmlEntities=l.decodeHtmlEntities;exports.generateId=l.generateId;exports.isUppercase=l.isUppercase;exports.kebabToCamel=l.kebabToCamel;exports.snakeToDotted=l.snakeToDotted;exports.toPascalCase=l.toPascalCase;exports.uncapitalize=l.uncapitalize;exports.getElementTransitionDurationMS=S.getElementTransitionDurationMS;exports.getElementTransitionDurationS=S.getElementTransitionDurationS;exports.changeHistory=u.changeHistory;exports.normalizeBase=u.normalizeBase;exports.parseSearchParameters=u.parseSearchParameters;exports.splitPath=u.splitPath;exports.updateSearchParameter=u.updateSearchParameter;exports.cloneTemplateContent=H;exports.copyTextToClipboard=R;exports.decode=k;exports.dotCircleCollision=N;exports.dotRectCollision=z;exports.encode=j;exports.formatBytes=D;exports.getRootVariables=M;exports.insert=A;exports.setIntervalOnIntersection=U;exports.shiftArray=B;exports.tryCreateHrefFromContact=$;
@@ -14,6 +14,7 @@ export * from './events';
14
14
  export * from './file';
15
15
  export * from './function';
16
16
  export * from './gestures';
17
+ export * from './href';
17
18
  export * from './jss';
18
19
  export * from './layout';
19
20
  export * from './math';
@@ -1,40 +1,40 @@
1
- import { a as w, p as O } from "../attributes-69we3byR.js";
1
+ import { a as B, p as A } from "../attributes-69we3byR.js";
2
2
  import { a as f } from "../index-euf5anj6.js";
3
- import { i as B } from "../index-euf5anj6.js";
4
- import { a as Q, c as R, f as D, m as M } from "../canvas-DeZ0SLUJ.js";
5
- import { g as z, n as F, s as V } from "../coordinates-CgdGoSYs.js";
6
- import { b as k, f as U, a as q, g as $ } from "../dom-CVWzyXPH.js";
7
- import { d as K, o as W, g as G, q as J, c as L, j as Y, n as Z, a as X, h as _, k as ee, f as te, p as ae, b as se, i as oe, m as re, l as ne } from "../easings-BEmRlrDd.js";
8
- import { d as ce } from "../events-CsVF98U6.js";
9
- import { c as ue, d as fe } from "../file-GHShUlue.js";
10
- import { d as de, t as me } from "../function-C10DGppn.js";
11
- import { s as ge } from "../gestures-CcXV6fCp.js";
12
- import { c as he, s as ye } from "../jss-DtnXPEnq.js";
13
- import { g as Ie, a as ve, b as Ee, c as Se } from "../layout-DpZo-I0y.js";
14
- import { e as we, f as Oe, c as Pe, d as Be, l as Ae, m as Qe, r as Re, b as De, a as Me, s as Ne } from "../math-BOBiC4TN.js";
15
- import { l as Fe, p as Ve, r as je, t as ke } from "../number-DwCxt_Ck.js";
16
- import { c as qe, d as $e, i as He, b as Ke, a as We, m as Ge, e as Je, o as Le, p as Ye } from "../object-D6MVWB4l.js";
17
- import { n as Xe, r as _e } from "../polyfills-DJrTJQky.js";
18
- import { s as tt, w as at } from "../scroll-Benkuq-t.js";
19
- import { c as ot, a as rt, b as nt, d as it, g as ct, i as lt, k as ut, s as ft, t as pt, u as dt } from "../string-BlMQbe8b.js";
20
- import { g as xt, a as gt } from "../style-j2TwriJ_.js";
21
- import { c as ht, n as yt, p as Ct, s as It, u as vt } from "../url-B6BNcw6_.js";
22
- function d(t, e, ...a) {
23
- return [...t.slice(0, e), ...a, ...t.slice(e)];
3
+ import { i as Q } from "../index-euf5anj6.js";
4
+ import { a as z, c as M, f as $, m as F } from "../canvas-DeZ0SLUJ.js";
5
+ import { g as V, n as j, s as k } from "../coordinates-CgdGoSYs.js";
6
+ import { b as q, f as H, a as Z, g as K } from "../dom-CVWzyXPH.js";
7
+ import { f as G, p as J, h as L, a as Y, d as X, k as _, o as ee, b as te, i as se, m as ae, g as oe, q as re, c as ne, j as ie, n as ce, l as le } from "../easings-Bni3YAAW.js";
8
+ import { d as fe } from "../events-CsVF98U6.js";
9
+ import { c as pe, d as me } from "../file-GHShUlue.js";
10
+ import { d as ge, t as he } from "../function-C10DGppn.js";
11
+ import { s as ye } from "../gestures-CcXV6fCp.js";
12
+ import { c as Ie, s as ve } from "../jss-DtnXPEnq.js";
13
+ import { g as Ee, a as Se, b as Te, c as Oe } from "../layout-DpZo-I0y.js";
14
+ import { e as Be, f as Ae, c as Re, d as Qe, l as De, m as ze, r as Me, b as $e, a as Fe, s as Ne } from "../math-BOBiC4TN.js";
15
+ import { l as je, p as ke, r as Ue, t as qe } from "../number-DwCxt_Ck.js";
16
+ import { c as Ze, d as Ke, i as We, b as Ge, a as Je, m as Le, e as Ye, o as Xe, p as _e } from "../object-D6MVWB4l.js";
17
+ import { n as tt, r as st } from "../polyfills-DJrTJQky.js";
18
+ import { s as ot, w as rt } from "../scroll-Benkuq-t.js";
19
+ import { c as it, a as ct, b as lt, d as ut, g as ft, i as dt, k as pt, s as mt, t as xt, u as gt } from "../string-BlMQbe8b.js";
20
+ import { g as bt, a as yt } from "../style-j2TwriJ_.js";
21
+ import { c as It, n as vt, p as wt, s as Et, u as St } from "../url-B6BNcw6_.js";
22
+ function x(t, e, ...s) {
23
+ return [...t.slice(0, e), ...s, ...t.slice(e)];
24
24
  }
25
- function m(t, e) {
26
- const a = t.length;
27
- e = e % a;
28
- const s = new Array(a);
29
- for (let o = 0; o < a; o++) {
30
- const r = (o + e) % a;
31
- s[r] = t[o];
25
+ function g(t, e) {
26
+ const s = t.length;
27
+ e = e % s;
28
+ const a = new Array(s);
29
+ for (let o = 0; o < s; o++) {
30
+ const r = (o + e) % s;
31
+ a[r] = t[o];
32
32
  }
33
- return s;
33
+ return a;
34
34
  }
35
- function x(t, e = 2) {
35
+ function h(t, e = 2) {
36
36
  if (!+t) return "0 Bytes";
37
- const a = 1024, s = e < 0 ? 0 : e, o = [
37
+ const s = 1024, a = e < 0 ? 0 : e, o = [
38
38
  "Bytes",
39
39
  "KiB",
40
40
  "MiB",
@@ -44,10 +44,10 @@ function x(t, e = 2) {
44
44
  "EiB",
45
45
  "ZiB",
46
46
  "YiB"
47
- ], r = Math.floor(Math.log(t) / Math.log(a));
48
- return `${parseFloat((t / Math.pow(a, r)).toFixed(s))} ${o[r]}`;
47
+ ], r = Math.floor(Math.log(t) / Math.log(s));
48
+ return `${parseFloat((t / Math.pow(s, r)).toFixed(a))} ${o[r]}`;
49
49
  }
50
- function g(t) {
50
+ function b(t) {
51
51
  if (navigator.clipboard)
52
52
  navigator.clipboard.writeText(t).then(() => {
53
53
  console.log("Text copied to clipboard successfully!");
@@ -59,58 +59,63 @@ function g(t) {
59
59
  e.value = t, e.style.position = "fixed", e.style.top = "0", e.style.left = "0", document.body.appendChild(e), e.select();
60
60
  try {
61
61
  document.execCommand("copy") ? console.log("Text copied to clipboard successfully!") : console.error("Failed to copy text to clipboard.");
62
- } catch (a) {
63
- console.error("Failed to copy text to clipboard:", a);
62
+ } catch (s) {
63
+ console.error("Failed to copy text to clipboard:", s);
64
64
  }
65
65
  document.body.removeChild(e);
66
66
  }
67
67
  }
68
- function b(t, e) {
68
+ function y(t, e) {
69
69
  return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
70
70
  }
71
- function h(t, e) {
71
+ function C(t, e) {
72
72
  return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
73
73
  }
74
74
  function i(t, e) {
75
- const a = t.style.getPropertyValue(e);
76
- if (a) {
77
- const s = a.toString();
78
- return s.startsWith("var") ? i(t, s.slice(4, -1)) : s;
75
+ const s = t.style.getPropertyValue(e);
76
+ if (s) {
77
+ const a = s.toString();
78
+ return a.startsWith("var") ? i(t, a.slice(4, -1)) : a;
79
79
  }
80
80
  }
81
- function y(...t) {
81
+ function I(...t) {
82
82
  const e = {};
83
- return Array.from(document.styleSheets).forEach((a) => {
84
- Array.from(a.cssRules).forEach((s) => {
85
- s instanceof CSSStyleRule && s.selectorText === ":root" && t.forEach((o) => {
86
- const r = i(s, o);
83
+ return Array.from(document.styleSheets).forEach((s) => {
84
+ Array.from(s.cssRules).forEach((a) => {
85
+ a instanceof CSSStyleRule && a.selectorText === ":root" && t.forEach((o) => {
86
+ const r = i(a, o);
87
87
  r && (e[o] = r);
88
88
  });
89
89
  });
90
- }), t.forEach((a) => {
91
- e[a] || console.warn(`variable named ${a} not found`);
90
+ }), t.forEach((s) => {
91
+ e[s] || console.warn(`variable named ${s} not found`);
92
92
  }), e;
93
93
  }
94
- function C(t) {
94
+ function v(t) {
95
95
  const e = window.atob(t);
96
96
  return decodeURIComponent(window.escape(e));
97
97
  }
98
- function I(t) {
98
+ function w(t) {
99
99
  const e = window.unescape(encodeURIComponent(t));
100
100
  return window.btoa(e);
101
101
  }
102
- function v(t, e) {
102
+ const d = /^(\+?\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,}$/;
103
+ function E(t) {
104
+ let e, s;
105
+ return p.test(t) ? (e = `mailto:${t.trim()}`, s = "email") : d.test(t) && (e = `tel:${t.replace(/[^0-9\\.\\+]+/g, "")}`, s = "phone"), { href: e, type: s };
106
+ }
107
+ function S(t, e) {
103
108
  if (t) {
104
- const s = t.content.cloneNode(!0).firstElementChild;
105
- return s && (e == null || e(s)), s;
109
+ const a = t.content.cloneNode(!0).firstElementChild;
110
+ return a && (e == null || e(a)), a;
106
111
  }
107
112
  return null;
108
113
  }
109
- function E(t, e, a, s) {
114
+ function T(t, e, s, a) {
110
115
  let o, r = !1, n = 0;
111
116
  const c = () => {
112
- clearInterval(o), s != null && s.restartCounter && (n = 0), r && (o = setInterval(() => {
113
- a(n++);
117
+ clearInterval(o), a != null && a.restartCounter && (n = 0), r && (o = setInterval(() => {
118
+ s(n++);
114
119
  }, e));
115
120
  }, l = f.subscribe(t, (u) => {
116
121
  r = u.isIntersecting, c();
@@ -120,101 +125,102 @@ function E(t, e, a, s) {
120
125
  };
121
126
  }
122
127
  export {
123
- we as calculateDistance,
124
- Oe as calculateDistanceWithRadius,
125
- ot as camelToKebab,
126
- rt as capitalize,
127
- ht as changeHistory,
128
- Pe as clamp,
129
- qe as cloneDeep,
130
- v as cloneTemplateContent,
131
- $e as compareObjects,
132
- Q as contain,
133
- g as copyTextToClipboard,
134
- R as cover,
135
- ue as createJSONAndSave,
136
- he as createStylesheet,
137
- Be as damp,
138
- de as debounce,
139
- nt as declension,
140
- I as decode,
141
- it as decodeHtmlEntities,
142
- ce as dispatchEvent,
143
- h as dotCircleCollision,
144
- b as dotRectCollision,
145
- fe as downloadURI,
146
- K as easeInCubic,
147
- W as easeInExpo,
148
- G as easeInOutCubic,
149
- J as easeInOutExpo,
150
- L as easeInOutQuad,
151
- Y as easeInOutQuart,
152
- Z as easeInOutQuint,
153
- X as easeInQuad,
154
- _ as easeInQuart,
155
- ee as easeInQuint,
156
- te as easeOutCubic,
157
- ae as easeOutExpo,
158
- se as easeOutQuad,
159
- oe as easeOutQuart,
160
- re as easeOutQuint,
161
- C as encode,
162
- k as findParentElement,
163
- U as findScrollParentElement,
164
- D as fixPosition,
165
- x as formatBytes,
166
- ct as generateId,
167
- q as getAllParentElements,
168
- Ie as getCumulativeOffsetLeft,
169
- ve as getCumulativeOffsetTop,
170
- Ee as getCumulativePosition,
171
- $ as getElement,
172
- xt as getElementTransitionDurationMS,
173
- gt as getElementTransitionDurationS,
174
- z as getPointerPosition,
175
- y as getRootVariables,
176
- Se as getStickyOffset,
177
- d as insert,
178
- B as isBrowser,
179
- He as isESClass,
180
- Ke as isNullish,
181
- We as isObject,
182
- lt as isUppercase,
183
- ut as kebabToCamel,
184
- Ae as lerp,
185
- ne as linear,
186
- Fe as loopNumber,
187
- Qe as mapRange,
188
- M as measureText,
189
- Ge as mergeDeep,
190
- Je as mixin,
191
- F as normalize,
192
- yt as normalizeBase,
193
- Xe as nullishCoalescing,
194
- Le as omit,
195
- w as parseAttribute,
196
- O as parseAttributeValue,
197
- Ct as parseSearchParameters,
198
- Ye as pick,
199
- Ve as preciseNumber,
200
- _e as requestIdleCallback,
201
- Re as round,
202
- je as roundNumberTo,
203
- V as screenToCartesian,
204
- tt as scrollToElement,
205
- E as setIntervalOnIntersection,
206
- ge as setupDrag,
207
- m as shiftArray,
208
- De as smootherstep,
209
- Me as smoothstep,
210
- ft as snakeToDotted,
211
- It as splitPath,
128
+ Be as calculateDistance,
129
+ Ae as calculateDistanceWithRadius,
130
+ it as camelToKebab,
131
+ ct as capitalize,
132
+ It as changeHistory,
133
+ Re as clamp,
134
+ Ze as cloneDeep,
135
+ S as cloneTemplateContent,
136
+ Ke as compareObjects,
137
+ z as contain,
138
+ b as copyTextToClipboard,
139
+ M as cover,
140
+ pe as createJSONAndSave,
141
+ Ie as createStylesheet,
142
+ Qe as damp,
143
+ ge as debounce,
144
+ lt as declension,
145
+ w as decode,
146
+ ut as decodeHtmlEntities,
147
+ fe as dispatchEvent,
148
+ C as dotCircleCollision,
149
+ y as dotRectCollision,
150
+ me as downloadURI,
151
+ G as easeInCubic,
152
+ J as easeInExpo,
153
+ L as easeInOutCubic,
154
+ Y as easeInOutExpo,
155
+ X as easeInOutQuad,
156
+ _ as easeInOutQuart,
157
+ ee as easeInOutQuint,
158
+ te as easeInQuad,
159
+ se as easeInQuart,
160
+ ae as easeInQuint,
161
+ oe as easeOutCubic,
162
+ re as easeOutExpo,
163
+ ne as easeOutQuad,
164
+ ie as easeOutQuart,
165
+ ce as easeOutQuint,
166
+ v as encode,
167
+ q as findParentElement,
168
+ H as findScrollParentElement,
169
+ $ as fixPosition,
170
+ h as formatBytes,
171
+ ft as generateId,
172
+ Z as getAllParentElements,
173
+ Ee as getCumulativeOffsetLeft,
174
+ Se as getCumulativeOffsetTop,
175
+ Te as getCumulativePosition,
176
+ K as getElement,
177
+ bt as getElementTransitionDurationMS,
178
+ yt as getElementTransitionDurationS,
179
+ V as getPointerPosition,
180
+ I as getRootVariables,
181
+ Oe as getStickyOffset,
182
+ x as insert,
183
+ Q as isBrowser,
184
+ We as isESClass,
185
+ Ge as isNullish,
186
+ Je as isObject,
187
+ dt as isUppercase,
188
+ pt as kebabToCamel,
189
+ De as lerp,
190
+ le as linear,
191
+ je as loopNumber,
192
+ ze as mapRange,
193
+ F as measureText,
194
+ Le as mergeDeep,
195
+ Ye as mixin,
196
+ j as normalize,
197
+ vt as normalizeBase,
198
+ tt as nullishCoalescing,
199
+ Xe as omit,
200
+ B as parseAttribute,
201
+ A as parseAttributeValue,
202
+ wt as parseSearchParameters,
203
+ _e as pick,
204
+ ke as preciseNumber,
205
+ st as requestIdleCallback,
206
+ Me as round,
207
+ Ue as roundNumberTo,
208
+ k as screenToCartesian,
209
+ ot as scrollToElement,
210
+ T as setIntervalOnIntersection,
211
+ ye as setupDrag,
212
+ g as shiftArray,
213
+ $e as smootherstep,
214
+ Fe as smoothstep,
215
+ mt as snakeToDotted,
216
+ Et as splitPath,
212
217
  Ne as step,
213
- ye as styleToString,
214
- me as throttle,
215
- pt as toPascalCase,
216
- ke as toStep,
217
- dt as uncapitalize,
218
- vt as updateSearchParameter,
219
- at as wait
218
+ ve as styleToString,
219
+ he as throttle,
220
+ xt as toPascalCase,
221
+ qe as toStep,
222
+ E as tryCreateHrefFromContact,
223
+ gt as uncapitalize,
224
+ St as updateSearchParameter,
225
+ rt as wait
220
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.54.2",
3
+ "version": "0.54.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"