aptechka 0.51.9 → 0.51.11

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.
@@ -1 +1 @@
1
- "use strict";var I=s=>{throw TypeError(s)};var p=(s,i,t)=>i.has(s)||I("Cannot "+t);var e=(s,i,t)=>(p(s,i,"read from private field"),t?t.call(s):i.get(s)),n=(s,i,t)=>i.has(s)?I("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),c=(s,i,t,r)=>(p(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),m=(s,i,t)=>(p(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../attribute/index.cjs"),q=require("../index-Cqw2NKev.cjs"),C=require("../events-KVanG9sR.cjs"),H=require("../style-At6aDoqG.cjs");var d,l,f,h,E,u,o,x,A,y,b,M;class S{constructor(i,t){n(this,o);n(this,d,null);n(this,l,null);n(this,f,null);n(this,h,null);n(this,E);n(this,u,!1);n(this,A,()=>{e(this,u)?this.close():this.open()});n(this,y,()=>{e(this,u)&&(m(this,o,b).call(this,0,!0),m(this,o,b).call(this,e(this,o,x)))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(c(this,d,i),c(this,l,t),c(this,f,t.firstElementChild),c(this,h,t.lastElementChild),e(this,h).style.overflow="hidden",e(this,d).axisAttribute.current==="y"?e(this,h).style.height="0px":e(this,h).style.width="0px",addEventListener("resize",e(this,y)),e(this,f).addEventListener("click",e(this,A)),e(this,l).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,l))}get element(){return e(this,l)}destroy(){e(this,f)&&(e(this,l).classList.remove("opened","triggered"),e(this,l).removeAttribute("data-opened"),e(this,f).style.cursor="",m(this,o,b).call(this,void 0),removeEventListener("resize",e(this,y)),e(this,f).removeEventListener("click",e(this,A)),clearTimeout(e(this,E)))}open(i){i!=null&&i.skipTransition&&m(this,o,M).call(this),e(this,d).multipleAttribute.current||e(this,d).closeAll({exclude:e(this,l)}),c(this,u,!0),clearTimeout(e(this,E)),e(this,l).classList.add("triggered"),m(this,o,b).call(this,e(this,o,x)),setTimeout(()=>{e(this,l).classList.add("opened"),e(this,l).setAttribute("data-opened",""),c(this,E,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},H.getElementTransitionDurationMS(e(this,h))))},0),C.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u)}})}close(i){i!=null&&i.skipTransition&&m(this,o,M).call(this),clearTimeout(e(this,E)),c(this,u,!1),e(this,l).classList.remove("opened"),m(this,o,b).call(this,0),c(this,E,setTimeout(()=>{e(this,l).classList.remove("triggered"),window.dispatchEvent(new Event("resize"))},H.getElementTransitionDurationMS(e(this,h)))),C.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u)}})}}d=new WeakMap,l=new WeakMap,f=new WeakMap,h=new WeakMap,E=new WeakMap,u=new WeakMap,o=new WeakSet,x=function(){return e(this,d).axisAttribute.current==="x"?e(this,h).scrollWidth:e(this,h).scrollHeight},A=new WeakMap,y=new WeakMap,b=function(i,t=!1){t&&(e(this,h).style.transition="all 0s",setTimeout(()=>{e(this,h).style.transition=""}));const r=e(this,d).axisAttribute.current==="x"?"width":"height";i!=null?e(this,h).style[r]=`${i}px`:e(this,h).style[r]=""},M=function(){e(this,h).style.transition="all 0s",setTimeout(()=>{e(this,h).style.transition=""},50)};var v,T,a,g,L,k;class O extends HTMLElement{constructor(){super();n(this,L);n(this,v,new z.Attribute(this,"axis","y"));n(this,T,new z.Attribute(this,"multiple",!1));n(this,a,[]);n(this,g,null);q.isBrowser&&c(this,g,new MutationObserver(t=>{t.forEach(r=>{r.removedNodes.forEach(w=>{w instanceof HTMLElement&&this.removeItem(w)}),r.addedNodes.forEach(w=>{w instanceof HTMLElement&&this.createItem(w)})})}))}get axisAttribute(){return e(this,v)}get multipleAttribute(){return e(this,T)}createItem(t){e(this,a).find(r=>r.element===t)||e(this,a).push(new S(this,t))}removeItem(t){c(this,a,e(this,a).filter(r=>{if(r.element!==t)return!0;r.destroy()}))}closeAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.close(t)})}openAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.open(t)})}connectedCallback(){e(this,v).observe(),e(this,T).observe(),e(this,g).observe(e(this,L,k),{childList:!0}),c(this,a,[...e(this,L,k).children].map(t=>{if(t instanceof HTMLElement)return new S(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,v).unobserve(),e(this,T).unobserve(),e(this,g).disconnect()}}v=new WeakMap,T=new WeakMap,a=new WeakMap,g=new WeakMap,L=new WeakSet,k=function(){return this.shadowRoot?this.shadowRoot:this};q.isBrowser&&!customElements.get("e-accordion")&&customElements.define("e-accordion",O);exports.AccordionElement=O;
1
+ "use strict";var I=s=>{throw TypeError(s)};var p=(s,i,t)=>i.has(s)||I("Cannot "+t);var e=(s,i,t)=>(p(s,i,"read from private field"),t?t.call(s):i.get(s)),l=(s,i,t)=>i.has(s)?I("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),c=(s,i,t,r)=>(p(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),m=(s,i,t)=>(p(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../attribute/index.cjs"),q=require("../index-Cqw2NKev.cjs"),C=require("../events-KVanG9sR.cjs"),H=require("../style-At6aDoqG.cjs");var d,h,f,n,E,u,o,x,A,y,b,M;class S{constructor(i,t){l(this,o);l(this,d,null);l(this,h,null);l(this,f,null);l(this,n,null);l(this,E);l(this,u,!1);l(this,A,()=>{e(this,u)?this.close():this.open()});l(this,y,()=>{e(this,u)&&(m(this,o,b).call(this,0,!0),m(this,o,b).call(this,e(this,o,x)))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(c(this,d,i),c(this,h,t),c(this,f,t.firstElementChild),c(this,n,t.lastElementChild),e(this,n).style.overflow="hidden",e(this,d).axisAttribute.current==="y"?e(this,n).style.height="0px":e(this,n).style.width="0px",addEventListener("resize",e(this,y)),e(this,f).addEventListener("click",e(this,A)),e(this,h).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,h))}get element(){return e(this,h)}destroy(){e(this,f)&&(e(this,h).classList.remove("opened","triggered"),e(this,h).removeAttribute("data-opened"),e(this,f).style.cursor="",m(this,o,b).call(this,void 0),removeEventListener("resize",e(this,y)),e(this,f).removeEventListener("click",e(this,A)),clearTimeout(e(this,E)))}open(i){i!=null&&i.skipTransition&&m(this,o,M).call(this),e(this,d).multipleAttribute.current||e(this,d).closeAll({exclude:e(this,h)}),c(this,u,!0),clearTimeout(e(this,E)),e(this,h).classList.add("triggered"),m(this,o,b).call(this,e(this,o,x)),setTimeout(()=>{e(this,h).classList.add("opened"),e(this,h).setAttribute("data-opened",""),c(this,E,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},H.getElementTransitionDurationMS(e(this,n))))},0),C.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u),element:e(this,h)}})}close(i){i!=null&&i.skipTransition&&m(this,o,M).call(this),clearTimeout(e(this,E)),c(this,u,!1),e(this,h).classList.remove("opened"),m(this,o,b).call(this,0),c(this,E,setTimeout(()=>{e(this,h).classList.remove("triggered"),window.dispatchEvent(new Event("resize"))},H.getElementTransitionDurationMS(e(this,n)))),C.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u),element:e(this,h)}})}}d=new WeakMap,h=new WeakMap,f=new WeakMap,n=new WeakMap,E=new WeakMap,u=new WeakMap,o=new WeakSet,x=function(){return e(this,d).axisAttribute.current==="x"?e(this,n).scrollWidth:e(this,n).scrollHeight},A=new WeakMap,y=new WeakMap,b=function(i,t=!1){t&&(e(this,n).style.transition="all 0s",setTimeout(()=>{e(this,n).style.transition=""}));const r=e(this,d).axisAttribute.current==="x"?"width":"height";i!=null?e(this,n).style[r]=`${i}px`:e(this,n).style[r]=""},M=function(){e(this,n).style.transition="all 0s",setTimeout(()=>{e(this,n).style.transition=""},50)};var v,T,a,g,L,k;class O extends HTMLElement{constructor(){super();l(this,L);l(this,v,new z.Attribute(this,"axis","y"));l(this,T,new z.Attribute(this,"multiple",!1));l(this,a,[]);l(this,g,null);q.isBrowser&&c(this,g,new MutationObserver(t=>{t.forEach(r=>{r.removedNodes.forEach(w=>{w instanceof HTMLElement&&this.removeItem(w)}),r.addedNodes.forEach(w=>{w instanceof HTMLElement&&this.createItem(w)})})}))}get axisAttribute(){return e(this,v)}get multipleAttribute(){return e(this,T)}createItem(t){e(this,a).find(r=>r.element===t)||e(this,a).push(new S(this,t))}removeItem(t){c(this,a,e(this,a).filter(r=>{if(r.element!==t)return!0;r.destroy()}))}closeAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.close(t)})}openAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.open(t)})}connectedCallback(){e(this,v).observe(),e(this,T).observe(),e(this,g).observe(e(this,L,k),{childList:!0}),c(this,a,[...e(this,L,k).children].map(t=>{if(t instanceof HTMLElement)return new S(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,v).unobserve(),e(this,T).unobserve(),e(this,g).disconnect()}}v=new WeakMap,T=new WeakMap,a=new WeakMap,g=new WeakMap,L=new WeakSet,k=function(){return this.shadowRoot?this.shadowRoot:this};q.isBrowser&&!customElements.get("e-accordion")&&customElements.define("e-accordion",O);exports.AccordionElement=O;
@@ -7,6 +7,7 @@ export interface AccordionToggleOptions {
7
7
  export interface AccordionEvents {
8
8
  accordionItemToggle: CustomEvent<{
9
9
  opened: boolean;
10
+ element: HTMLElement;
10
11
  }>;
11
12
  }
12
13
  export declare class AccordionElement extends HTMLElement {
@@ -2,82 +2,84 @@ var M = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
4
  var x = (s, i, t) => i.has(s) || M("Cannot " + t);
5
- var e = (s, i, t) => (x(s, i, "read from private field"), t ? t.call(s) : i.get(s)), l = (s, i, t) => i.has(s) ? M("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), a = (s, i, t, r) => (x(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t), m = (s, i, t) => (x(s, i, "access private method"), t);
5
+ var e = (s, i, t) => (x(s, i, "read from private field"), t ? t.call(s) : i.get(s)), n = (s, i, t) => i.has(s) ? M("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), a = (s, i, t, r) => (x(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t), m = (s, i, t) => (x(s, i, "access private method"), t);
6
6
  import { Attribute as z } from "../attribute/index.js";
7
7
  import { i as R } from "../index-euf5anj6.js";
8
8
  import { d as C } from "../events-CsVF98U6.js";
9
9
  import { g as H } from "../style-j2TwriJ_.js";
10
- var d, n, f, h, E, u, o, y, w, L, v, k;
10
+ var d, h, f, l, E, u, o, y, w, L, v, k;
11
11
  class S {
12
12
  constructor(i, t) {
13
- l(this, o);
14
- l(this, d, null);
15
- l(this, n, null);
16
- l(this, f, null);
17
- l(this, h, null);
18
- l(this, E);
19
- l(this, u, !1);
20
- l(this, w, () => {
13
+ n(this, o);
14
+ n(this, d, null);
15
+ n(this, h, null);
16
+ n(this, f, null);
17
+ n(this, l, null);
18
+ n(this, E);
19
+ n(this, u, !1);
20
+ n(this, w, () => {
21
21
  e(this, u) ? this.close() : this.open();
22
22
  });
23
- l(this, L, () => {
23
+ n(this, L, () => {
24
24
  e(this, u) && (m(this, o, v).call(this, 0, !0), m(this, o, v).call(this, e(this, o, y)));
25
25
  });
26
- t.firstElementChild instanceof HTMLElement && t.lastElementChild instanceof HTMLElement ? (a(this, d, i), a(this, n, t), a(this, f, t.firstElementChild), a(this, h, t.lastElementChild), e(this, h).style.overflow = "hidden", e(this, d).axisAttribute.current === "y" ? e(this, h).style.height = "0px" : e(this, h).style.width = "0px", addEventListener("resize", e(this, L)), e(this, f).addEventListener("click", e(this, w)), e(this, n).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : i.removeItem(e(this, n));
26
+ t.firstElementChild instanceof HTMLElement && t.lastElementChild instanceof HTMLElement ? (a(this, d, i), a(this, h, t), a(this, f, t.firstElementChild), a(this, l, t.lastElementChild), e(this, l).style.overflow = "hidden", e(this, d).axisAttribute.current === "y" ? e(this, l).style.height = "0px" : e(this, l).style.width = "0px", addEventListener("resize", e(this, L)), e(this, f).addEventListener("click", e(this, w)), e(this, h).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : i.removeItem(e(this, h));
27
27
  }
28
28
  get element() {
29
- return e(this, n);
29
+ return e(this, h);
30
30
  }
31
31
  destroy() {
32
- e(this, f) && (e(this, n).classList.remove("opened", "triggered"), e(this, n).removeAttribute("data-opened"), e(this, f).style.cursor = "", m(this, o, v).call(this, void 0), removeEventListener("resize", e(this, L)), e(this, f).removeEventListener("click", e(this, w)), clearTimeout(e(this, E)));
32
+ e(this, f) && (e(this, h).classList.remove("opened", "triggered"), e(this, h).removeAttribute("data-opened"), e(this, f).style.cursor = "", m(this, o, v).call(this, void 0), removeEventListener("resize", e(this, L)), e(this, f).removeEventListener("click", e(this, w)), clearTimeout(e(this, E)));
33
33
  }
34
34
  open(i) {
35
- i != null && i.skipTransition && m(this, o, k).call(this), e(this, d).multipleAttribute.current || e(this, d).closeAll({ exclude: e(this, n) }), a(this, u, !0), clearTimeout(e(this, E)), e(this, n).classList.add("triggered"), m(this, o, v).call(this, e(this, o, y)), setTimeout(() => {
36
- e(this, n).classList.add("opened"), e(this, n).setAttribute("data-opened", ""), a(this, E, setTimeout(() => {
35
+ i != null && i.skipTransition && m(this, o, k).call(this), e(this, d).multipleAttribute.current || e(this, d).closeAll({ exclude: e(this, h) }), a(this, u, !0), clearTimeout(e(this, E)), e(this, h).classList.add("triggered"), m(this, o, v).call(this, e(this, o, y)), setTimeout(() => {
36
+ e(this, h).classList.add("opened"), e(this, h).setAttribute("data-opened", ""), a(this, E, setTimeout(() => {
37
37
  window.dispatchEvent(new Event("resize"));
38
- }, H(e(this, h))));
38
+ }, H(e(this, l))));
39
39
  }, 0), C(this.element, "accordionItemToggle", {
40
40
  bubbles: !0,
41
41
  composed: !0,
42
42
  detail: {
43
- opened: e(this, u)
43
+ opened: e(this, u),
44
+ element: e(this, h)
44
45
  }
45
46
  });
46
47
  }
47
48
  close(i) {
48
- i != null && i.skipTransition && m(this, o, k).call(this), clearTimeout(e(this, E)), a(this, u, !1), e(this, n).classList.remove("opened"), m(this, o, v).call(this, 0), a(this, E, setTimeout(() => {
49
- e(this, n).classList.remove("triggered"), window.dispatchEvent(new Event("resize"));
50
- }, H(e(this, h)))), C(this.element, "accordionItemToggle", {
49
+ i != null && i.skipTransition && m(this, o, k).call(this), clearTimeout(e(this, E)), a(this, u, !1), e(this, h).classList.remove("opened"), m(this, o, v).call(this, 0), a(this, E, setTimeout(() => {
50
+ e(this, h).classList.remove("triggered"), window.dispatchEvent(new Event("resize"));
51
+ }, H(e(this, l)))), C(this.element, "accordionItemToggle", {
51
52
  bubbles: !0,
52
53
  composed: !0,
53
54
  detail: {
54
- opened: e(this, u)
55
+ opened: e(this, u),
56
+ element: e(this, h)
55
57
  }
56
58
  });
57
59
  }
58
60
  }
59
- d = new WeakMap(), n = new WeakMap(), f = new WeakMap(), h = new WeakMap(), E = new WeakMap(), u = new WeakMap(), o = new WeakSet(), y = function() {
60
- return e(this, d).axisAttribute.current === "x" ? e(this, h).scrollWidth : e(this, h).scrollHeight;
61
+ d = new WeakMap(), h = new WeakMap(), f = new WeakMap(), l = new WeakMap(), E = new WeakMap(), u = new WeakMap(), o = new WeakSet(), y = function() {
62
+ return e(this, d).axisAttribute.current === "x" ? e(this, l).scrollWidth : e(this, l).scrollHeight;
61
63
  }, w = new WeakMap(), L = new WeakMap(), v = function(i, t = !1) {
62
- t && (e(this, h).style.transition = "all 0s", setTimeout(() => {
63
- e(this, h).style.transition = "";
64
+ t && (e(this, l).style.transition = "all 0s", setTimeout(() => {
65
+ e(this, l).style.transition = "";
64
66
  }));
65
67
  const r = e(this, d).axisAttribute.current === "x" ? "width" : "height";
66
- i != null ? e(this, h).style[r] = `${i}px` : e(this, h).style[r] = "";
68
+ i != null ? e(this, l).style[r] = `${i}px` : e(this, l).style[r] = "";
67
69
  }, k = function() {
68
- e(this, h).style.transition = "all 0s", setTimeout(() => {
69
- e(this, h).style.transition = "";
70
+ e(this, l).style.transition = "all 0s", setTimeout(() => {
71
+ e(this, l).style.transition = "";
70
72
  }, 50);
71
73
  };
72
74
  var b, T, c, g, A, I;
73
75
  class N extends HTMLElement {
74
76
  constructor() {
75
77
  super();
76
- l(this, A);
77
- l(this, b, new z(this, "axis", "y"));
78
- l(this, T, new z(this, "multiple", !1));
79
- l(this, c, []);
80
- l(this, g, null);
78
+ n(this, A);
79
+ n(this, b, new z(this, "axis", "y"));
80
+ n(this, T, new z(this, "multiple", !1));
81
+ n(this, c, []);
82
+ n(this, g, null);
81
83
  R && a(this, g, new MutationObserver((t) => {
82
84
  t.forEach((r) => {
83
85
  r.removedNodes.forEach((p) => {
@@ -1 +1 @@
1
- "use strict";var _=r=>{throw TypeError(r)};var V=(r,n,e)=>n.has(r)||_("Cannot "+e);var t=(r,n,e)=>(V(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>n.has(r)?_("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(r):n.set(r,e),i=(r,n,e,h)=>(V(r,n,"write to private field"),h?h.call(r,e):n.set(r,e),e),C=(r,n,e)=>(V(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../notifier/index.cjs"),w=require("../index-Cqw2NKev.cjs"),Z=require("../dom-JBOkFLTh.cjs"),T=require("../ticker/index.cjs");require("../Store-GokLe_g-.cjs");const p=require("../easings-GegIwET5.cjs"),ee=require("../Tweened-DpJDlbj9.cjs"),te=require("../gestures-C7gbKx11.cjs"),ie=require("../number-0243DApo.cjs"),se=require("../order/index.cjs");var j;class O{constructor(){s(this,j,new $.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var g,c,u,W;class he extends O{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,W,e=>{const h=e.shiftKey?-1:1;let a;e.code==="Space"?a=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a,e))});w.isBrowser&&(i(this,g,e!=null&&e.element&&Z.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,g).addEventListener("keydown",t(this,W))}disconnect(){w.isBrowser&&t(this,g).removeEventListener("keydown",t(this,W))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,W=new WeakMap;var y,M,X,Y,d,B,m,b,U,G,A,K,D;class re extends O{constructor(e){super();s(this,b);s(this,y);s(this,M);s(this,X);s(this,Y);s(this,d);s(this,B);s(this,m);s(this,A);s(this,K);s(this,D);this.direction=1,i(this,d,new ee.Tweened(0,{easing:p.easeInQuad})),i(this,m,!1),i(this,A,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,y)*this.direction*(1-t(this,d).current),h)}),i(this,K,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,y))*this.direction*(1-t(this,d).current),null)}),i(this,D,()=>{t(this,M)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,y,(e==null?void 0:e.speed)||1),i(this,M,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,M,e),t(this,m)&&C(this,b,U).call(this)}set speed(e){i(this,y,e),t(this,m)&&C(this,b,U).call(this)}connect(){t(this,m)||(i(this,m,!0),C(this,b,U).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),C(this,b,G).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,B)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,B,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}y=new WeakMap,M=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,B=new WeakMap,m=new WeakMap,b=new WeakSet,U=function(){C(this,b,G).call(this),t(this,M)?i(this,Y,setInterval(t(this,K),Math.abs(t(this,y)))):T.ticker.subscribe(t(this,A),t(this,X)),document.addEventListener("visibilitychange",t(this,D))},G=function(){clearInterval(t(this,Y)),T.ticker.unsubscribe(t(this,A)),clearTimeout(t(this,B)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,D))},A=new WeakMap,K=new WeakMap,D=new WeakMap;var I,k,H,N;class ne extends O{constructor(e){super();s(this,I,null);s(this,k);s(this,H);s(this,N,e=>{let h=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),h=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const a=Date.now();if(a-t(this,H)>40&&(h=100*Math.sign(h)),i(this,H,a),Math.abs(h)<100||t(this,k))return;this.changeEvent.notify("wheel",h,e),i(this,k,setTimeout(()=>{i(this,k,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,H,Date.now()),w.isBrowser&&i(this,I,e!=null&&e.element&&Z.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,I).addEventListener("wheel",t(this,N),{passive:!1})}disconnect(){w.isBrowser&&(t(this,I).removeEventListener("wheel",t(this,N)),clearTimeout(t(this,k)))}}I=new WeakMap,k=new WeakMap,H=new WeakMap,N=new WeakMap;var v,P,o,l,q,E,z,S,x;const L=class L extends O{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,q);s(this,E);s(this,z);s(this,S);s(this,x);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,q,[]),i(this,E,0),i(this,z,h=>{Math.abs(t(this,E))>2&&h.preventDefault()}),i(this,S,h=>{if(i(this,E,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||T.ticker.unsubscribe(t(this,x));let a=h,Q=!1;document.documentElement.classList.add("grabbing");let R=0,F=0;te.setupDrag(f=>{t(L,v)&&t(L,v)!==t(this,o)||(R=a.x-f.x,F=a.y-f.y,this.axis==="x"?(i(this,E,f.x-h.x),i(this,l,R)):(i(this,E,f.y-h.y),i(this,l,F)),a=f,Q=this.axis==="x"&&Math.abs(R)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(R),Q&&(document.documentElement.classList.add("dragging"),i(L,v,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(L,v,null),Q&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),T.ticker.subscribe(t(this,x),{order:se.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,x,()=>{Math.floor(Math.abs(t(this,l)))||T.ticker.unsubscribe(t(this,x)),i(this,l,t(this,l)*.95),i(this,l,ie.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&Z.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,q,[...t(this,P).querySelectorAll("a")]),t(this,q).forEach(e=>{e.addEventListener("click",t(this,z))}),t(this,o).addEventListener("pointerdown",t(this,S)))}disconnect(){w.isBrowser&&(t(this,q).forEach(e=>{e.removeEventListener("click",t(this,z))}),t(this,o).removeEventListener("pointerdown",t(this,S)),T.ticker.unsubscribe(t(this,x)))}};v=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,q=new WeakMap,E=new WeakMap,z=new WeakMap,S=new WeakMap,x=new WeakMap,s(L,v,null);let J=L;exports.AutoplayControls=re;exports.Controls=O;exports.DragControls=J;exports.KeyboardControls=he;exports.WheelControls=ne;
1
+ "use strict";var p=r=>{throw TypeError(r)};var V=(r,n,e)=>n.has(r)||p("Cannot "+e);var t=(r,n,e)=>(V(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>n.has(r)?p("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(r):n.set(r,e),i=(r,n,e,h)=>(V(r,n,"write to private field"),h?h.call(r,e):n.set(r,e),e),C=(r,n,e)=>(V(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("../notifier/index.cjs"),w=require("../index-Cqw2NKev.cjs"),Z=require("../dom-JBOkFLTh.cjs"),T=require("../ticker/index.cjs");require("../Store-GokLe_g-.cjs");const te=require("../easings-GegIwET5.cjs"),ie=require("../Tweened-DpJDlbj9.cjs"),se=require("../gestures-C7gbKx11.cjs"),he=require("../number-0243DApo.cjs"),re=require("../order/index.cjs");var j;class O{constructor(){s(this,j,new ee.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var g,c,u,W;class ne extends O{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,W,e=>{const h=e.shiftKey?-1:1;let a;e.code==="Space"?a=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a,e))});w.isBrowser&&(i(this,g,e!=null&&e.element&&Z.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,g).addEventListener("keydown",t(this,W))}disconnect(){w.isBrowser&&t(this,g).removeEventListener("keydown",t(this,W))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,W=new WeakMap;var y,M,X,Y,d,B,m,b,U,G,A,K,D;class ae extends O{constructor(e){super();s(this,b);s(this,y);s(this,M);s(this,X);s(this,Y);s(this,d);s(this,B);s(this,m);s(this,A);s(this,K);s(this,D);this.direction=1,i(this,d,new ie.Tweened(0,{easing:te.easeInQuad})),i(this,m,!1),i(this,A,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,y)*this.direction*(1-t(this,d).current),h)}),i(this,K,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,y))*this.direction*(1-t(this,d).current),null)}),i(this,D,()=>{t(this,M)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,y,(e==null?void 0:e.speed)||1),i(this,M,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,M,e),t(this,m)&&C(this,b,U).call(this)}set speed(e){i(this,y,e),t(this,m)&&C(this,b,U).call(this)}connect(){t(this,m)||(i(this,m,!0),C(this,b,U).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),C(this,b,G).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,B)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,B,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}y=new WeakMap,M=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,B=new WeakMap,m=new WeakMap,b=new WeakSet,U=function(){C(this,b,G).call(this),t(this,M)?i(this,Y,setInterval(t(this,K),Math.abs(t(this,y)))):T.ticker.subscribe(t(this,A),t(this,X)),document.addEventListener("visibilitychange",t(this,D))},G=function(){clearInterval(t(this,Y)),T.ticker.unsubscribe(t(this,A)),clearTimeout(t(this,B)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,D))},A=new WeakMap,K=new WeakMap,D=new WeakMap;var I,k,H,N;class le extends O{constructor(e){super();s(this,I,null);s(this,k);s(this,H);s(this,N,e=>{let h=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),h=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const a=Date.now();if(a-t(this,H)>40&&(h=100*Math.sign(h)),i(this,H,a),Math.abs(h)<100||t(this,k))return;this.changeEvent.notify("wheel",h,e),i(this,k,setTimeout(()=>{i(this,k,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,H,Date.now()),w.isBrowser&&i(this,I,e!=null&&e.element&&Z.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,I).addEventListener("wheel",t(this,N),{passive:!1})}disconnect(){w.isBrowser&&(t(this,I).removeEventListener("wheel",t(this,N)),clearTimeout(t(this,k)))}}I=new WeakMap,k=new WeakMap,H=new WeakMap,N=new WeakMap;var v,P,o,l,q,E,z,S,x;const L=class L extends O{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,q);s(this,E);s(this,z);s(this,S);s(this,x);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,q,[]),i(this,E,0),i(this,z,h=>{Math.abs(t(this,E))>2&&h.preventDefault()}),i(this,S,h=>{if(i(this,E,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||T.ticker.unsubscribe(t(this,x));let a=h,Q=!1;document.documentElement.classList.add("grabbing");let _=0,$=0,R=0,F=0;se.setupDrag(f=>{t(L,v)&&t(L,v)!==t(this,o)||(_=a.x-f.x,$=a.y-f.y,R=f.x-h.x,F=f.y-h.y,this.axis==="x"?(i(this,E,R),i(this,l,_)):(i(this,E,F),i(this,l,$)),a=f,Q=this.axis==="x"&&Math.abs(R)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(R),Q&&(document.documentElement.classList.add("dragging"),i(L,v,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(L,v,null),Q&&(!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),T.ticker.subscribe(t(this,x),{order:re.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f)),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,x,()=>{Math.floor(Math.abs(t(this,l)))||T.ticker.unsubscribe(t(this,x)),i(this,l,t(this,l)*.95),i(this,l,he.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&Z.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,q,[...t(this,P).querySelectorAll("a")]),t(this,q).forEach(e=>{e.addEventListener("click",t(this,z))}),t(this,o).addEventListener("pointerdown",t(this,S)))}disconnect(){w.isBrowser&&(t(this,q).forEach(e=>{e.removeEventListener("click",t(this,z))}),t(this,o).removeEventListener("pointerdown",t(this,S)),T.ticker.unsubscribe(t(this,x)))}};v=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,q=new WeakMap,E=new WeakMap,z=new WeakMap,S=new WeakMap,x=new WeakMap,s(L,v,null);let J=L;exports.AutoplayControls=ae;exports.Controls=O;exports.DragControls=J;exports.KeyboardControls=ne;exports.WheelControls=le;
@@ -1,22 +1,22 @@
1
- var Z = (a) => {
1
+ var _ = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var j = (a, n, e) => n.has(a) || Z("Cannot " + e);
5
- var t = (a, n, e) => (j(a, n, "read from private field"), e ? e.call(a) : n.get(a)), s = (a, n, e) => n.has(a) ? Z("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), i = (a, n, e, h) => (j(a, n, "write to private field"), h ? h.call(a, e) : n.set(a, e), e), C = (a, n, e) => (j(a, n, "access private method"), e);
6
- import { Notifier as _ } from "../notifier/index.js";
4
+ var j = (a, n, e) => n.has(a) || _("Cannot " + e);
5
+ var t = (a, n, e) => (j(a, n, "read from private field"), e ? e.call(a) : n.get(a)), s = (a, n, e) => n.has(a) ? _("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), i = (a, n, e, h) => (j(a, n, "write to private field"), h ? h.call(a, e) : n.set(a, e), e), C = (a, n, e) => (j(a, n, "access private method"), e);
6
+ import { Notifier as ee } from "../notifier/index.js";
7
7
  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 { b as p } from "../easings-Bni3YAAW.js";
12
- import { T as ee } from "../Tweened-BSC-evuL.js";
13
- import { s as te } from "../gestures-CcXV6fCp.js";
14
- import { p as ie } from "../number-DwCxt_Ck.js";
15
- import { TICK_ORDER as se } from "../order/index.js";
11
+ import { b as te } from "../easings-Bni3YAAW.js";
12
+ import { T as ie } from "../Tweened-BSC-evuL.js";
13
+ import { s as se } from "../gestures-CcXV6fCp.js";
14
+ import { p as he } from "../number-DwCxt_Ck.js";
15
+ import { TICK_ORDER as ae } from "../order/index.js";
16
16
  var U;
17
17
  class Q {
18
18
  constructor() {
19
- s(this, U, new _());
19
+ s(this, U, new ee());
20
20
  }
21
21
  get changeEvent() {
22
22
  return t(this, U);
@@ -24,7 +24,7 @@ class Q {
24
24
  }
25
25
  U = new WeakMap();
26
26
  var g, d, u, N;
27
- class be extends Q {
27
+ class ge extends Q {
28
28
  constructor(e) {
29
29
  super();
30
30
  s(this, g, null);
@@ -55,7 +55,7 @@ class be extends Q {
55
55
  }
56
56
  g = new WeakMap(), d = new WeakMap(), u = new WeakMap(), N = new WeakMap();
57
57
  var y, M, R, W, c, D, m, w, F, G, I, K, H;
58
- class we extends Q {
58
+ class ye extends Q {
59
59
  constructor(e) {
60
60
  super();
61
61
  s(this, w);
@@ -69,7 +69,7 @@ class we extends Q {
69
69
  s(this, I);
70
70
  s(this, K);
71
71
  s(this, H);
72
- this.direction = 1, i(this, c, new ee(0, { easing: p })), i(this, m, !1), i(this, I, (h) => {
72
+ this.direction = 1, i(this, c, new ie(0, { easing: te })), i(this, m, !1), i(this, I, (h) => {
73
73
  t(this, c).current !== 1 && this.changeEvent.notify(
74
74
  "autoplay",
75
75
  h.timeBetweenFrames * t(this, y) * this.direction * (1 - t(this, c).current),
@@ -124,7 +124,7 @@ y = new WeakMap(), M = new WeakMap(), R = new WeakMap(), W = new WeakMap(), c =
124
124
  );
125
125
  }, I = new WeakMap(), K = new WeakMap(), H = new WeakMap();
126
126
  var q, v, z, O;
127
- class ge extends Q {
127
+ class Ee extends Q {
128
128
  constructor(e) {
129
129
  super();
130
130
  s(this, q, null);
@@ -184,19 +184,19 @@ const L = class L extends Q {
184
184
  this.swipe || A.unsubscribe(t(this, x));
185
185
  let r = h, V = !1;
186
186
  document.documentElement.classList.add("grabbing");
187
- let S = 0, B = 0;
188
- te(
187
+ let Z = 0, $ = 0, S = 0, B = 0;
188
+ se(
189
189
  (f) => {
190
- t(L, k) && t(L, k) !== t(this, o) || (S = r.x - f.x, B = r.y - f.y, this.axis === "x" ? (i(this, E, f.x - h.x), i(this, l, S)) : (i(this, E, f.y - h.y), i(this, l, B)), r = f, V = this.axis === "x" && Math.abs(S) > Math.abs(B) || this.axis === "y" && Math.abs(B) > Math.abs(S), V && (document.documentElement.classList.add("dragging"), i(L, k, t(this, o)), this.changeEvent.notify("drag", t(this, l), f)));
190
+ t(L, k) && t(L, k) !== t(this, o) || (Z = r.x - f.x, $ = r.y - f.y, S = f.x - h.x, B = f.y - h.y, this.axis === "x" ? (i(this, E, S), i(this, l, Z)) : (i(this, E, B), i(this, l, $)), r = f, V = this.axis === "x" && Math.abs(S) > Math.abs(B) || this.axis === "y" && Math.abs(B) > Math.abs(S), V && (document.documentElement.classList.add("dragging"), i(L, k, t(this, o)), this.changeEvent.notify("drag", t(this, l), f)));
191
191
  },
192
192
  (f) => {
193
- i(L, k, null), V && !this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), A.subscribe(t(this, x), {
194
- order: se.CONTROLS - 1
195
- })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l), f), document.documentElement.classList.remove("grabbing"), document.documentElement.classList.remove("dragging");
193
+ i(L, k, null), V && (!this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), A.subscribe(t(this, x), {
194
+ order: ae.CONTROLS - 1
195
+ })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l), f)), document.documentElement.classList.remove("grabbing"), document.documentElement.classList.remove("dragging");
196
196
  }
197
197
  );
198
198
  }), i(this, x, () => {
199
- Math.floor(Math.abs(t(this, l))) || A.unsubscribe(t(this, x)), i(this, l, t(this, l) * 0.95), i(this, l, ie(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l), null);
199
+ Math.floor(Math.abs(t(this, l))) || A.unsubscribe(t(this, x)), i(this, l, t(this, l) * 0.95), i(this, l, he(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l), null);
200
200
  }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, b && (i(this, o, e != null && e.element && J(e.element) || document.documentElement), i(this, P, (e == null ? void 0 : e.rootElement) || t(this, o)));
201
201
  }
202
202
  connect() {
@@ -214,11 +214,11 @@ const L = class L extends Q {
214
214
  }
215
215
  };
216
216
  k = new WeakMap(), P = new WeakMap(), o = new WeakMap(), l = new WeakMap(), T = new WeakMap(), E = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), x = new WeakMap(), s(L, k, null);
217
- let $ = L;
217
+ let p = L;
218
218
  export {
219
- we as AutoplayControls,
219
+ ye as AutoplayControls,
220
220
  Q as Controls,
221
- $ as DragControls,
222
- be as KeyboardControls,
223
- ge as WheelControls
221
+ p as DragControls,
222
+ ge as KeyboardControls,
223
+ Ee as WheelControls
224
224
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.51.9",
3
+ "version": "0.51.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"