aptechka 0.64.0 → 0.64.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.
Files changed (118) hide show
  1. package/lib/Animation-BRqj4VfN.cjs +1 -0
  2. package/lib/{Animation-Cb-klopb.js → Animation-D29tc5VS.js} +5 -4
  3. package/lib/Damped-BD1OQ1fH.cjs +1 -0
  4. package/lib/{Damped-ByZFbNSt.js → Damped-YrqW5V4w.js} +5 -4
  5. package/lib/DragControls-D8BXtKVu.cjs +1 -0
  6. package/lib/DragControls-DGDUw6bM.js +226 -0
  7. package/lib/ScrollSegmentElement-B6gp1q_z.js +459 -0
  8. package/lib/ScrollSegmentElement-DtMMAirz.cjs +1 -0
  9. package/lib/SourceElement-D_YeNqsI.cjs +5 -0
  10. package/lib/SourceElement-jbviggZp.js +217 -0
  11. package/lib/{Store-swP_0ymB.js → Store-0BVty6AZ.js} +2 -1
  12. package/lib/Store-Cd1GlEmZ.cjs +1 -0
  13. package/lib/Tweened-B-AHx93m.cjs +1 -0
  14. package/lib/{Tweened-DzZwfKNm.js → Tweened-_pF0zXXN.js} +9 -8
  15. package/lib/Viewport-DA10iWAO.js +109 -0
  16. package/lib/Viewport-DB0qAZPJ.cjs +1 -0
  17. package/lib/accordion/index.cjs +1 -1
  18. package/lib/accordion/index.js +2 -1
  19. package/lib/animation/index.cjs +1 -1
  20. package/lib/animation/index.js +3 -3
  21. package/lib/attribute/index.cjs +1 -1
  22. package/lib/attribute/index.js +5 -4
  23. package/lib/billboard/index.cjs +1 -1
  24. package/lib/billboard/index.js +2 -1
  25. package/lib/canvas/index.cjs +1 -1
  26. package/lib/canvas/index.js +5 -5
  27. package/lib/controls/index.cjs +1 -1
  28. package/lib/controls/index.js +6 -223
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +15 -14
  31. package/lib/custom-scrollbar/index.cjs +1 -1
  32. package/lib/custom-scrollbar/index.js +25 -24
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +7 -6
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +5 -106
  37. package/lib/element-linked-store/index.cjs +1 -1
  38. package/lib/element-linked-store/index.js +5 -4
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +22 -21
  41. package/lib/en3/En3View.d.ts +2 -2
  42. package/lib/en3/en3.d.ts +3 -2
  43. package/lib/en3/index.cjs +3 -3
  44. package/lib/en3/index.js +93 -91
  45. package/lib/iframe/index.cjs +1 -1
  46. package/lib/iframe/index.js +4 -3
  47. package/lib/image/index.cjs +1 -1
  48. package/lib/image/index.js +5 -4
  49. package/lib/{index-euf5anj6.js → index-Bv9zgfdb.js} +3 -2
  50. package/lib/index-DekP7OZe.cjs +1 -0
  51. package/lib/intersector/index.cjs +1 -1
  52. package/lib/intersector/index.js +4 -3
  53. package/lib/ladder/index.cjs +1 -1
  54. package/lib/ladder/index.js +41 -40
  55. package/lib/{layout-DpZo-I0y.js → layout-BSMtwCga.js} +2 -2
  56. package/lib/layout-box/index.cjs +1 -1
  57. package/lib/layout-box/index.js +18 -17
  58. package/lib/loading/index.cjs +1 -1
  59. package/lib/loading/index.js +4 -3
  60. package/lib/masonry-layout/index.cjs +1 -1
  61. package/lib/masonry-layout/index.js +2 -2
  62. package/lib/media/index.cjs +1 -1
  63. package/lib/media/index.js +12 -11
  64. package/lib/morph/index.cjs +1 -1
  65. package/lib/morph/index.js +3 -2
  66. package/lib/need_redo_tweaker/index.cjs +3 -3
  67. package/lib/need_redo_tweaker/index.js +368 -340
  68. package/lib/pixel-perfect/index.cjs +1 -1
  69. package/lib/pixel-perfect/index.js +2 -2
  70. package/lib/pointer/index.cjs +1 -1
  71. package/lib/pointer/index.js +19 -18
  72. package/lib/popover/index.cjs +1 -1
  73. package/lib/popover/index.js +3 -2
  74. package/lib/radio/index.cjs +1 -1
  75. package/lib/radio/index.js +2 -1
  76. package/lib/router/index.cjs +1 -1
  77. package/lib/router/index.js +11 -10
  78. package/lib/scroll/index.cjs +1 -1
  79. package/lib/scroll/index.js +66 -65
  80. package/lib/{scroll-Benkuq-t.js → scroll-BWF48oHS.js} +11 -10
  81. package/lib/scroll-CFDCeArT.cjs +1 -0
  82. package/lib/scroll-segment/index.cjs +1 -1
  83. package/lib/scroll-segment/index.js +3 -456
  84. package/lib/sequence/index.cjs +1 -1
  85. package/lib/sequence/index.js +4 -3
  86. package/lib/size-element/index.cjs +1 -1
  87. package/lib/size-element/index.js +2 -1
  88. package/lib/slicer/index.cjs +3 -3
  89. package/lib/slicer/index.js +31 -30
  90. package/lib/source/SourceElement.d.ts +1 -1
  91. package/lib/source/index.cjs +1 -5
  92. package/lib/source/index.js +5 -214
  93. package/lib/store/index.cjs +1 -1
  94. package/lib/store/index.js +14 -13
  95. package/lib/stylesheet-DpnWNVyD.js +24 -0
  96. package/lib/stylesheet-HWF2a3nr.cjs +1 -0
  97. package/lib/ticker/index.cjs +1 -1
  98. package/lib/ticker/index.js +14 -13
  99. package/lib/utils/index.cjs +1 -1
  100. package/lib/utils/index.d.ts +1 -0
  101. package/lib/utils/index.js +5 -5
  102. package/lib/utils/jss.d.ts +0 -1
  103. package/lib/utils/stylesheet.d.ts +2 -0
  104. package/lib/video/index.cjs +1 -1
  105. package/lib/video/index.js +11 -10
  106. package/lib/window-resizer/index.cjs +1 -1
  107. package/lib/window-resizer/index.js +9 -8
  108. package/lib/youtube/index.cjs +1 -1
  109. package/lib/youtube/index.js +12 -11
  110. package/package.json +4 -4
  111. package/lib/Animation-dD_idtTU.cjs +0 -1
  112. package/lib/Damped-B8bmTxAr.cjs +0 -1
  113. package/lib/Store-GokLe_g-.cjs +0 -1
  114. package/lib/Tweened-BsL9FamJ.cjs +0 -1
  115. package/lib/index-Cqw2NKev.cjs +0 -1
  116. package/lib/jss-CRBgdvJ3.cjs +0 -1
  117. package/lib/jss-DtnXPEnq.js +0 -23
  118. package/lib/scroll-DAhSpkhR.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { a as Q, p as D } from "../attributes-69we3byR.js";
2
- import { a as d } from "../index-euf5anj6.js";
3
- import { i as z } from "../index-euf5anj6.js";
2
+ import { a as d } from "../index-Bv9zgfdb.js";
3
+ import { i as z } from "../index-Bv9zgfdb.js";
4
4
  import { a as N, c as $, f as F, m as V } from "../canvas-DeZ0SLUJ.js";
5
5
  import { g as U, n as q, s as H } from "../coordinates-CgdGoSYs.js";
6
6
  import { b as K, f as W, a as G, g as J } from "../dom-CVWzyXPH.js";
@@ -10,13 +10,13 @@ import { d as be } from "../events-CsVF98U6.js";
10
10
  import { c as he, d as ye } from "../file-GHShUlue.js";
11
11
  import { d as Ie, t as ve } from "../function-C10DGppn.js";
12
12
  import { s as we } from "../gestures-CcXV6fCp.js";
13
- import { c as Te, s as Oe } from "../jss-DtnXPEnq.js";
14
- import { g as Be, a as Ae, b as Re, c as Qe } from "../layout-DpZo-I0y.js";
13
+ import { c as Te, s as Oe } from "../stylesheet-DpnWNVyD.js";
14
+ import { g as Be, a as Ae, c as Re, b as Qe } from "../layout-BSMtwCga.js";
15
15
  import { e as je, f as ze, c as Me, d as Ne, l as $e, m as Fe, r as Ve, b as ke, a as Ue, s as qe } from "../math-BOBiC4TN.js";
16
16
  import { b as Ze, l as Ke, p as We, r as Ge, t as Je } from "../number-CbdpfO3u.js";
17
17
  import { c as Ye, d as Xe, i as _e, b as et, a as tt, m as st, e as at, o as ot, p as rt } from "../object-D6MVWB4l.js";
18
18
  import { n as it, r as ct } from "../polyfills-DJrTJQky.js";
19
- import { s as ut, w as ft } from "../scroll-Benkuq-t.js";
19
+ import { s as ut, w as ft } from "../scroll-BWF48oHS.js";
20
20
  import { c as mt, a as pt, b as xt, d as bt, g as gt, i as ht, k as yt, s as Ct, t as It, u as vt } from "../string-BlMQbe8b.js";
21
21
  import { g as wt, a as St } from "../style-j2TwriJ_.js";
22
22
  import { c as Ot, n as Pt, p as Bt, s as At, u as Rt } from "../url-Cc-RVfii.js";
@@ -9,4 +9,3 @@ export type Style = StyleAttribute | {
9
9
  [key: string]: StyleWrapper | StyleAttribute;
10
10
  };
11
11
  export declare function styleToString(object: Style): string;
12
- export declare function createStylesheet(value: Style | string): CSSStyleSheet;
@@ -0,0 +1,2 @@
1
+ import { Style } from './jss';
2
+ export declare function createStylesheet(value: Style | string): CSSStyleSheet;
@@ -1 +1 @@
1
- "use strict";var d=e=>{throw TypeError(e)};var h=(e,s,t)=>s.has(e)||d("Cannot "+t);var r=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(h(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-GokLe_g-.cjs");const b=require("../index-Cqw2NKev.cjs"),p=require("../events-KVanG9sR.cjs"),o=require("../ticker/index.cjs");var i,n,a;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,n,!1);u(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),p.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,a)),r(this,n)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,n,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,n,!0)),o.ticker.subscribe(r(this,a))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,a)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,n=new WeakMap,a=new WeakMap;b.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",m);exports.VideoElement=m;
1
+ "use strict";var h=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||h("Cannot "+t);var r=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?h("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(d(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../SourceElement-D_YeNqsI.cjs");require("../window-resizer/index.cjs");require("../Store-Cd1GlEmZ.cjs");const b=require("../index-DekP7OZe.cjs"),p=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");const o=require("../ticker/index.cjs");var i,n,a;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,n,!1);u(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),p.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,a)),r(this,n)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,n,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,n,!0)),o.ticker.subscribe(r(this,a))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,a)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,n=new WeakMap,a=new WeakMap;b.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",m);exports.VideoElement=m;
@@ -2,23 +2,24 @@ var h = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var l = (e, s, t) => s.has(e) || h("Cannot " + t);
5
- var r = (e, s, t) => (l(e, s, "read from private field"), t ? t.call(e) : s.get(e)), o = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, m) => (l(e, s, "write to private field"), m ? m.call(e, t) : s.set(e, t), t);
6
- import { SourceElement as d } from "../source/index.js";
5
+ var r = (e, s, t) => (l(e, s, "read from private field"), t ? t.call(e) : s.get(e)), c = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), o = (e, s, t, m) => (l(e, s, "write to private field"), m ? m.call(e, t) : s.set(e, t), t);
6
+ import { a as d } from "../SourceElement-jbviggZp.js";
7
7
  import "../window-resizer/index.js";
8
- import "../Store-swP_0ymB.js";
9
- import { i as p } from "../index-euf5anj6.js";
8
+ import "../Store-0BVty6AZ.js";
9
+ import { i as p } from "../index-Bv9zgfdb.js";
10
10
  import { d as E } from "../events-CsVF98U6.js";
11
+ import "construct-style-sheets-polyfill";
11
12
  import { ticker as u } from "../ticker/index.js";
12
13
  var i, a, n;
13
14
  class f extends d {
14
15
  constructor() {
15
16
  super(...arguments);
16
- o(this, i, 0);
17
- o(this, a, !1);
18
- o(this, n, () => {
17
+ c(this, i, 0);
18
+ c(this, a, !1);
19
+ c(this, n, () => {
19
20
  this.classList.add(`state-${this.consumerElement.readyState}`);
20
21
  const t = this.consumerElement.readyState / 4;
21
- t > r(this, i) && c(this, i, t), E(this, "videoReadyStateChange", {
22
+ t > r(this, i) && o(this, i, t), E(this, "videoReadyStateChange", {
22
23
  detail: {
23
24
  readyState: this.consumerElement.readyState,
24
25
  progress: r(this, i)
@@ -28,7 +29,7 @@ class f extends d {
28
29
  }
29
30
  connectedCallback() {
30
31
  super.connectedCallback(), this.addEventListener("sourceCapture", () => {
31
- c(this, a, !1), this.hasAttribute("capture-autoplay") && (this.sourceManager.current ? this.consumerElement.play() : c(this, a, !0)), u.subscribe(r(this, n));
32
+ o(this, a, !1), this.hasAttribute("capture-autoplay") && (this.sourceManager.current ? this.consumerElement.play() : o(this, a, !0)), u.subscribe(r(this, n));
32
33
  }), this.addEventListener("sourceRelease", () => {
33
34
  this.hasAttribute("capture-autoplay") && (this.consumerElement.pause(), this.hasAttribute("replay") && (this.consumerElement.currentTime = 0)), this.hasAttribute("reload-source") && this.classList.remove(
34
35
  "state-0",
@@ -40,7 +41,7 @@ class f extends d {
40
41
  });
41
42
  }
42
43
  disconnectedCallback() {
43
- super.disconnectedCallback(), u.unsubscribe(r(this, n)), c(this, i, 0);
44
+ super.disconnectedCallback(), u.unsubscribe(r(this, n)), o(this, i, 0);
44
45
  }
45
46
  createConsumer() {
46
47
  return document.createElement("video");
@@ -1 +1 @@
1
- "use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-Cqw2NKev.cjs"),R=require("../function-MthRj-GJ.cjs");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
1
+ "use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-DekP7OZe.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,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
@@ -3,11 +3,12 @@ var h = (s) => {
3
3
  };
4
4
  var c = (s, e, i) => e.has(s) || h("Cannot " + i);
5
5
  var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
6
- import { Notifier as m } from "../notifier/index.js";
7
- import { i as p } from "../index-euf5anj6.js";
6
+ import { Notifier as p } from "../notifier/index.js";
7
+ import { i as w } from "../index-Bv9zgfdb.js";
8
8
  import { d as z } from "../function-C10DGppn.js";
9
+ import "construct-style-sheets-polyfill";
9
10
  var r, o, d;
10
- class b extends m {
11
+ class b extends p {
11
12
  constructor() {
12
13
  super();
13
14
  u(this, r, !1);
@@ -17,16 +18,16 @@ class b extends m {
17
18
  u(this, d, z(() => {
18
19
  this.notify(), f(this, r, !1);
19
20
  }, 0));
20
- p && (window.addEventListener("resize", t(this, o)), t(this, o).call(this));
21
+ w && (window.addEventListener("resize", t(this, o)), t(this, o).call(this));
21
22
  }
22
23
  subscribe(i, n) {
23
- const w = super.subscribe(i, n);
24
- return t(this, r) || i(), w;
24
+ const m = super.subscribe(i, n);
25
+ return t(this, r) || i(), m;
25
26
  }
26
27
  }
27
28
  r = new WeakMap(), o = new WeakMap(), d = new WeakMap();
28
- const L = new b();
29
+ const v = new b();
29
30
  export {
30
31
  b as WindowResizer,
31
- L as windowResizer
32
+ v as windowResizer
32
33
  };
@@ -1 +1 @@
1
- "use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-GokLe_g-.cjs");const L=require("../index-Cqw2NKev.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DUXXtU8v.cjs");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
1
+ "use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../SourceElement-D_YeNqsI.cjs");require("../window-resizer/index.cjs");require("../Store-Cd1GlEmZ.cjs");const L=require("../index-DekP7OZe.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
@@ -3,13 +3,14 @@ var L = (s) => {
3
3
  };
4
4
  var b = (s, r, t) => r.has(s) || L("Cannot " + t);
5
5
  var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
6
- import { SourceElement as g } from "../source/index.js";
6
+ import { a as g } from "../SourceElement-jbviggZp.js";
7
7
  import "../window-resizer/index.js";
8
- import "../Store-swP_0ymB.js";
9
- import { i as v } from "../index-euf5anj6.js";
8
+ import "../Store-0BVty6AZ.js";
9
+ import { i as v } from "../index-Bv9zgfdb.js";
10
10
  import { d as T } from "../events-CsVF98U6.js";
11
11
  import { g as V } from "../string-BlMQbe8b.js";
12
- var i, c, n, p, l, m, f, R, y, I;
12
+ import "construct-style-sheets-polyfill";
13
+ var i, c, n, l, p, m, f, R, y, I;
13
14
  const d = class d extends g {
14
15
  constructor() {
15
16
  super();
@@ -17,8 +18,8 @@ const d = class d extends g {
17
18
  o(this, i);
18
19
  o(this, c);
19
20
  o(this, n, !1);
20
- o(this, p, !1);
21
- o(this, l, () => {
21
+ o(this, l, !1);
22
+ o(this, p, () => {
22
23
  u(this, n, e(this, n) || this.hasAttribute("autoplay") && !this.hasAttribute("capture-autoplay")), u(this, i, new window.YT.Player(e(this, c), {
23
24
  playerVars: {
24
25
  mute: this.hasAttribute("muted") ? 1 : 0,
@@ -32,7 +33,7 @@ const d = class d extends g {
32
33
  }));
33
34
  });
34
35
  o(this, m, () => {
35
- u(this, p, !0), E(this, y, I).call(this);
36
+ u(this, l, !0), E(this, y, I).call(this);
36
37
  });
37
38
  o(this, f, (t) => {
38
39
  var a, h;
@@ -43,7 +44,7 @@ const d = class d extends g {
43
44
  u(this, c, "yt-" + V(10)), d.__apiReady || (window.onYouTubeIframeAPIReady = () => {
44
45
  d.__apiReady = !0, T(window, "youTubeIframeAPIReady");
45
46
  }), this.addEventListener("sourceCapture", () => {
46
- this.hasAttribute("capture-autoplay") && (e(this, p) ? e(this, i).playVideo() : u(this, n, !0));
47
+ this.hasAttribute("capture-autoplay") && (e(this, l) ? e(this, i).playVideo() : u(this, n, !0));
47
48
  }), this.addEventListener("sourceRelease", () => {
48
49
  e(this, i) && this.hasAttribute("capture-autoplay") && (e(this, i).pauseVideo(), this.hasAttribute("replay") && e(this, i).seekTo(0));
49
50
  });
@@ -64,14 +65,14 @@ const d = class d extends g {
64
65
  const A = document.getElementsByTagName("script")[0];
65
66
  (a = A.parentNode) == null || a.insertBefore(h, A);
66
67
  }
67
- e(this, i) ? E(this, y, I).call(this) : d.__apiReady ? e(this, l).call(this) : addEventListener("youTubeIframeAPIReady", e(this, l));
68
+ e(this, i) ? E(this, y, I).call(this) : d.__apiReady ? e(this, p).call(this) : addEventListener("youTubeIframeAPIReady", e(this, p));
68
69
  } else e(this, i) && e(this, i).stopVideo();
69
70
  }
70
71
  disconnectedCallback() {
71
- super.disconnectedCallback(), e(this, i) && e(this, i).destroy(), removeEventListener("youTubeIframeAPIReady", e(this, l));
72
+ super.disconnectedCallback(), e(this, i) && e(this, i).destroy(), removeEventListener("youTubeIframeAPIReady", e(this, p));
72
73
  }
73
74
  };
74
- i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), I = function() {
75
+ i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), l = new WeakMap(), p = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), I = function() {
75
76
  var t, a;
76
77
  this.currentURL && (this.currentURL.startsWith("http") ? e(this, i).loadVideoByUrl(this.currentURL) : e(this, i).loadVideoById(this.currentURL)), e(this, n) ? e(this, i).playVideo() : e(this, i).stopVideo(), u(this, n, !1), (a = (t = this.consumerElement).onload) == null || a.call(t, new Event("load"));
77
78
  }, d.__apiReady = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.64.0",
3
+ "version": "0.64.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -402,7 +402,7 @@
402
402
  },
403
403
  "devDependencies": {
404
404
  "@types/node": "^22.10.1",
405
- "@types/three": "^0.170.0",
405
+ "@types/three": "^0.174.0",
406
406
  "tsx": "^4.19.2",
407
407
  "vite": "^6.0.1",
408
408
  "vite-plugin-dts": "^4.3.0",
@@ -410,12 +410,12 @@
410
410
  },
411
411
  "dependencies": {
412
412
  "construct-style-sheets-polyfill": "^3.1.0",
413
- "three": "^0.170.0",
413
+ "three": "^0.174.0",
414
414
  "urlpattern-polyfill": "^10.0.0"
415
415
  },
416
416
  "peerDependencies": {
417
417
  "construct-style-sheets-polyfill": "^3.1.0",
418
- "three": "^0.170.0",
418
+ "three": "^0.174.0",
419
419
  "urlpattern-polyfill": "^10.0.0"
420
420
  }
421
421
  }
@@ -1 +0,0 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var S=(i,h,t)=>h.has(i)||C("Cannot "+t);var e=(i,h,t)=>(S(i,h,"read from private field"),t?t.call(i):h.get(i)),u=(i,h,t)=>h.has(i)?C("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(i):h.set(i,t),r=(i,h,t,a)=>(S(i,h,"write to private field"),a?a.call(i,t):h.set(i,t),t),M=(i,h,t)=>(S(i,h,"access private method"),t);const y=require("./Store-GokLe_g-.cjs"),N=require("./math-GDWEqu7y.cjs"),z=require("./number-DyefJ5a1.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const I=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,s,l,c,n,g,x,P,F;class R extends y.Store{constructor(t,a){super(t||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,s,0);u(this,l,-1/0);u(this,c,1/0);u(this,n,0);u(this,g,null);u(this,F,t=>{this.handleAnimationFrame(t)});r(this,s,this.current)}get direction(){return e(this,A)}get target(){return e(this,s)}get min(){return e(this,l)}set min(t){r(this,l,t),this.set(e(this,s),{equalize:!0})}get max(){return e(this,c)}set max(t){r(this,c,t),this.set(e(this,s),{equalize:!0})}get from(){return e(this,n)}get isRunning(){return e(this,m)}get delta(){return Math.abs(e(this,s)-e(this,n))}get deltaProgress(){return this.delta?z.preciseNumber(Math.abs(this.current-e(this,n))/this.delta,6):0}get distance(){return Math.abs(e(this,c)-e(this,l))}get distanceProgress(){return this.distance?z.preciseNumber(Math.abs(this.current-e(this,l))/this.distance,6):0}set(t,a){(e(this,s)!==t||a!=null&&a.restart)&&(r(this,g,t),this.updateOptions(a),r(this,g,null),e(this,s)!==this.current&&this.start())}shift(t,a){this.set(e(this,s)+t,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,m).current||(e(this,m).current=!0,I.ticker.subscribe(e(this,F),{maxFPS:e(this,d),order:e(this,f),culling:e(this,b)}))}unlistenAnimationFrame(){e(this,m).current&&(e(this,m).current=!1,I.ticker.unsubscribe(e(this,F)))}updateOptions(t){r(this,d,q.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),r(this,f,q.nullishCoalescing(t==null?void 0:t.order,e(this,f))),r(this,b,q.nullishCoalescing(t==null?void 0:t.culling,e(this,b))),r(this,l,q.nullishCoalescing(t==null?void 0:t.min,e(this,l))),r(this,c,q.nullishCoalescing(t==null?void 0:t.max,e(this,c))),M(this,x,P).call(this,typeof e(this,g)=="number"?e(this,g):e(this,s)),t!=null&&t.equalize&&!(t!=null&&t.restart)&&(this.unlistenAnimationFrame(),this.current=r(this,n,e(this,s))),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=r(this,n,this.initial),t!=null&&t.equalize&&(this.current=r(this,n,e(this,s)))),typeof(t==null?void 0:t.current)=="number"&&r(this,n,this.current=t.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,n=new WeakMap,g=new WeakMap,x=new WeakSet,P=function(t){r(this,A,Math.sign(t-e(this,s))),r(this,s,N.clamp(t,e(this,l),e(this,c))),r(this,n,this.current)},F=new WeakMap;exports.Animation=R;
@@ -1 +0,0 @@
1
- "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>C(t,O(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-DyefJ5a1.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const D=require("./Animation-dD_idtTU.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
@@ -1 +0,0 @@
1
- "use strict";var v=r=>{throw TypeError(r)};var w=(r,t,e)=>t.has(r)||v("Cannot "+e);var i=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),u=(r,t,e)=>t.has(r)?v("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),h=(r,t,e,a)=>(w(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e);const C=require("./notifier/index.cjs"),z=require("./index-Cqw2NKev.cjs");var l;class E{constructor(){u(this,l);this.storage=null,this.name="store-registry",h(this,l,null),z.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(this.name,e)}loadState(t=localStorage.getItem(this.name)){t&&(typeof t=="string"?h(this,l,JSON.parse(t)):h(this,l,t),f.current.forEach(e=>{e.name&&this.updateStore(e)}))}resetState(){f.current.forEach(t=>{t.name&&t.reset()}),this.saveState()}updateStore(t){var e,a;if(!Array.isArray((e=i(this,l))==null?void 0:e.stores))return t;if(t.name){const y=(a=i(this,l))==null?void 0:a.stores.find(q=>q.name===t.name);y&&(t.current=y.value)}return t}getState(){const t={stores:[]};return f.current.forEach(e=>{e.name&&(t.stores.find(a=>a.name===e.name)||t.stores.push({value:e.current,name:e.name}))}),t}}l=new WeakMap;const _=new E;var d,s,S,c,m,n,g,b;class N{constructor(t,e){u(this,d);u(this,s);u(this,S);u(this,c,new C.Notifier);u(this,m);u(this,n);u(this,g);u(this,b);h(this,d,e==null?void 0:e.name),this.__manager=e==null?void 0:e.__manager,h(this,s,{initial:t,previous:void 0,current:t}),h(this,S,(e==null?void 0:e.equalityCheck)||((a,y)=>a===y)),e!=null&&e.validate&&this.addMiddleware(e.validate),h(this,g,(e==null?void 0:e.notifyAndClose)||!1),h(this,b,(e==null?void 0:e.invisible)||!1),h(this,m,(e==null?void 0:e.skipSubscribeNotification)||!1),i(this,d)&&_.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(t){if(!i(this,S).call(this,i(this,s).current,t)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const e of i(this,n))t=e(t);i(this,s).current=t,this.notify(),i(this,g)&&this.close()}}get subscribers(){return i(this,c).subscribers}notify(){i(this,c).notify(i(this,s))}addMiddleware(t){i(this,n)||h(this,n,new Set),i(this,n).add(t)}removeMiddleware(t){var e,a;(e=i(this,n))==null||e.delete(t),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(t,e){return!i(this,b)&&!i(this,c).size&&M(this),i(this,c).subscribe(t,e),i(this,m)||t(i(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){i(this,c).unsubscribe(t),i(this,c).size||A(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,c).close(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,A(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap;const f=new N([],{invisible:!0});function M(r){f.current.includes(r)||(f.current=[...f.current,r])}function A(r){f.current.includes(r)&&(f.current=f.current.filter(t=>t!==r))}exports.Store=N;exports.activeStores=f;exports.storeRegistry=_;
@@ -1 +0,0 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-DyefJ5a1.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("./index-Cqw2NKev.cjs");const z=require("./Animation-dD_idtTU.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
@@ -1 +0,0 @@
1
- "use strict";var d=s=>{throw TypeError(s)};var w=(s,t,n)=>t.has(s)||d("Cannot "+n);var r=(s,t,n)=>(w(s,t,"read from private field"),n?n.call(s):t.get(s)),f=(s,t,n)=>t.has(s)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,n),h=(s,t,n,e)=>(w(s,t,"write to private field"),e?e.call(s,n):t.set(s,n),n);const p=require("./dom-JBOkFLTh.cjs"),y=typeof window!="undefined"&&typeof window.document!="undefined";var i,u,b;class m{constructor(){f(this,i,[]);f(this,u,null);f(this,b,t=>{r(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});y&&window.IntersectionObserver&&h(this,u,new IntersectionObserver(r(this,b)))}subscribe(t,n){const e=p.getElement(t);if(!e)return()=>{};const o=r(this,i).find(c=>c.element===e);if(!o)r(this,u).observe(e);else{const c=r(this,i).find(l=>l.element===e&&l.entry);c!=null&&c.entry.isIntersecting&&n(c.entry)}return r(this,i).push({element:e,callback:n,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(n)}}unsubscribe(t){const n=r(this,i).find(e=>e.callback===t);n&&(h(this,i,r(this,i).filter(e=>e.callback!==t)),r(this,i).find(e=>e.element===n.element)||r(this,u).unobserve(n.element))}}i=new WeakMap,u=new WeakMap,b=new WeakMap;const v=new m;exports.Intersector=m;exports.intersector=v;exports.isBrowser=y;
@@ -1 +0,0 @@
1
- "use strict";const i=require("./index-Cqw2NKev.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;
@@ -1,23 +0,0 @@
1
- import { i as s } from "./index-euf5anj6.js";
2
- import { c } from "./string-BlMQbe8b.js";
3
- function o(t) {
4
- let e = "";
5
- for (const r in t) {
6
- const n = t[r];
7
- typeof n == "object" ? (e += `${r} {`, e += o(n), e += "}") : e += `${c(r)}: ${n};`;
8
- }
9
- return e;
10
- }
11
- function l(t) {
12
- if (s) {
13
- const e = new CSSStyleSheet();
14
- return e.replaceSync(
15
- typeof t == "string" ? t : o(t)
16
- ), e;
17
- }
18
- return null;
19
- }
20
- export {
21
- l as c,
22
- o as s
23
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("./dom-JBOkFLTh.cjs"),m=require("./layout-Ctc2p3uz.cjs");require("./index-Cqw2NKev.cjs");function g(t){return new Promise(i=>{setTimeout(()=>{i()},t)})}function p(t,{behavior:i="instant",offset:o=0,center:a=!1,scrollElement:l}={}){var u;let n,s=l,f=l;if(typeof t=="number")n=t;else{const e=r.getElement(t);e&&(s=e,f=l||r.findScrollParentElement(e),n=m.getCumulativeOffsetTop(e))}if(s&&f&&typeof n=="number"){const e=(typeof o=="number"?o:((u=r.getElement(o))==null?void 0:u.offsetHeight)||0)*-1,c=a?innerHeight/2*-1+s.offsetHeight/2:0;f.scroll({top:n+e+c,behavior:i})}}exports.scrollToElement=p;exports.wait=g;