aptechka 0.4.30 → 0.4.32

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 (57) hide show
  1. package/lib/Damped-BJgyFENo.js +258 -0
  2. package/lib/Damped-CbWlWAbx.cjs +1 -0
  3. package/lib/animation/Animation.d.ts +42 -7
  4. package/lib/animation/AnimationLink.d.ts +13 -0
  5. package/lib/animation/Damped.d.ts +23 -28
  6. package/lib/animation/Tweened.d.ts +7 -19
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.d.ts +2 -1
  9. package/lib/animation/index.js +43 -61
  10. package/lib/canvas/index.cjs +1 -1
  11. package/lib/canvas/index.d.ts +1 -1
  12. package/lib/canvas/index.js +35 -35
  13. package/lib/class-linked-status/index.cjs +1 -1
  14. package/lib/class-linked-status/index.d.ts +3 -1
  15. package/lib/class-linked-status/index.js +36 -37
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +64 -64
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +5 -1
  20. package/lib/css-property/index.js +35 -31
  21. package/lib/en3/index.cjs +7 -7
  22. package/lib/en3/index.d.ts +1 -1
  23. package/lib/en3/index.js +264 -277
  24. package/lib/intersector/index.cjs +1 -1
  25. package/lib/intersector/index.js +8 -8
  26. package/lib/ladder/index.cjs +1 -1
  27. package/lib/ladder/index.d.ts +12 -6
  28. package/lib/ladder/index.js +119 -114
  29. package/lib/order/index.cjs +1 -1
  30. package/lib/order/index.d.ts +4 -3
  31. package/lib/order/index.js +1 -1
  32. package/lib/pointer/index.cjs +1 -1
  33. package/lib/pointer/index.js +2 -2
  34. package/lib/scroll/ScrollElement.d.ts +1 -3
  35. package/lib/scroll/ScrollSegmentElement.d.ts +6 -11
  36. package/lib/scroll/index.cjs +1 -1
  37. package/lib/scroll/index.d.ts +1 -1
  38. package/lib/scroll/index.js +497 -500
  39. package/lib/sequence/index.cjs +1 -1
  40. package/lib/sequence/index.d.ts +4 -2
  41. package/lib/sequence/index.js +129 -114
  42. package/lib/source/SourceElement.d.ts +14 -7
  43. package/lib/source/index.cjs +2 -2
  44. package/lib/source/index.d.ts +2 -2
  45. package/lib/source/index.js +66 -56
  46. package/lib/theme/index.cjs +1 -1
  47. package/lib/theme/index.d.ts +15 -0
  48. package/lib/theme/index.js +9 -6
  49. package/lib/ticker/index.cjs +1 -1
  50. package/lib/ticker/index.d.ts +3 -2
  51. package/lib/ticker/index.js +81 -71
  52. package/lib/video/index.cjs +1 -1
  53. package/lib/video/index.js +10 -10
  54. package/package.json +5 -5
  55. package/lib/Damped-B0G_t-pw.cjs +0 -1
  56. package/lib/Damped-DpaKIZqv.js +0 -150
  57. package/lib/en3/instances/en3LazyLoader.d.ts +0 -8
@@ -1,16 +1,16 @@
1
- import { CSSProperty as O } from "../css-property/index.js";
2
- import { CustomElement as z, define as A } from "../custom-element/index.js";
1
+ import { CSSProperty as F } from "../css-property/index.js";
2
+ import { CustomElement as O, define as B } from "../custom-element/index.js";
3
3
  import "../Store-Cd-E5W1z.js";
4
- import { c as D } from "../math-BOBiC4TN.js";
4
+ import { c as z } from "../math-BOBiC4TN.js";
5
5
  import "../path-data-polyfill-DgeDWYeI.js";
6
- import { e as L, q as T } from "../tags-BoPv9fDr.js";
7
- import { c as q } from "../createStylesheet-KMRQhSa-.js";
6
+ import { e as A, q as D } from "../tags-BoPv9fDr.js";
7
+ import { c as L } from "../createStylesheet-KMRQhSa-.js";
8
8
  import { elementResizer as b } from "../element-resizer/index.js";
9
9
  import { ticker as S } from "../ticker/index.js";
10
- var F = Object.defineProperty, G = Object.getOwnPropertyDescriptor, B = (t, i, s, h) => {
11
- for (var r = h > 1 ? void 0 : h ? G(i, s) : i, k = t.length - 1, R; k >= 0; k--)
10
+ var T = Object.defineProperty, q = Object.getOwnPropertyDescriptor, G = (t, i, s, h) => {
11
+ for (var r = h > 1 ? void 0 : h ? q(i, s) : i, k = t.length - 1, R; k >= 0; k--)
12
12
  (R = t[k]) && (r = (h ? R(i, s, r) : R(r)) || r);
13
- return h && r && F(i, s, r), r;
13
+ return h && r && T(i, s, r), r;
14
14
  }, M = (t, i, s) => {
15
15
  if (!i.has(t))
16
16
  throw TypeError("Cannot " + s);
@@ -18,28 +18,28 @@ var F = Object.defineProperty, G = Object.getOwnPropertyDescriptor, B = (t, i, s
18
18
  if (i.has(t))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  i instanceof WeakSet ? i.add(t) : i.set(t, s);
21
- }, n = (t, i, s, h) => (M(t, i, "write to private field"), h ? h.call(t, s) : i.set(t, s), s), d = (t, i, s) => (M(t, i, "access private method"), s), o, c, u, p, l, v, _, m, w, W, C, P, x, f, g, E;
22
- const H = q({
21
+ }, n = (t, i, s, h) => (M(t, i, "write to private field"), h ? h.call(t, s) : i.set(t, s), s), u = (t, i, s) => (M(t, i, "access private method"), s), o, c, d, p, l, m, f, _, w, W, C, P, x, v, g, E;
22
+ const H = L({
23
23
  ":host, canvas": {
24
24
  display: "block",
25
25
  width: "100%",
26
26
  height: "100%"
27
27
  }
28
28
  });
29
- let y = class extends z {
29
+ let y = class extends O {
30
30
  constructor() {
31
- super(), a(this, w), a(this, C), a(this, g), a(this, o, new O(this, "--fps", 0)), a(this, c, null), a(this, u, null), a(this, p, 0), a(this, l, 0), a(this, v, 1), a(this, _, 0), a(this, m, 1), a(this, x, (t) => {
32
- n(this, v, D(devicePixelRatio, 1, 2)), n(this, p, t.contentRect.width), n(this, l, t.contentRect.height), e(this, c).width = e(this, p) * this.pixelRatio, e(this, c).height = e(this, l) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), d(this, g, E).call(this);
33
- }), a(this, f, (t) => {
34
- n(this, _, t.timestamp), n(this, m, t.elapsed), d(this, g, E).call(this);
35
- }), this.openShadow(H), L(this, {
36
- children: T({
31
+ super(), a(this, w), a(this, C), a(this, g), a(this, o, new F(this, "--fps", 0)), a(this, c, null), a(this, d, null), a(this, p, 0), a(this, l, 0), a(this, m, 1), a(this, f, 0), a(this, _, 1), a(this, x, (t) => {
32
+ n(this, m, z(devicePixelRatio, 1, 2)), n(this, p, t.contentRect.width), n(this, l, t.contentRect.height), e(this, c).width = e(this, p) * this.pixelRatio, e(this, c).height = e(this, l) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), u(this, g, E).call(this);
33
+ }), a(this, v, (t) => {
34
+ n(this, f, t.timestamp), n(this, _, t.timeBetweenFrames), u(this, g, E).call(this);
35
+ }), this.openShadow(H), A(this, {
36
+ children: D({
37
37
  ref: (t) => {
38
- n(this, c, t), n(this, u, t.getContext("2d"));
38
+ n(this, c, t), n(this, d, t.getContext("2d"));
39
39
  }
40
40
  })
41
41
  }), e(this, o).subscribe((t) => {
42
- typeof t.previous != "undefined" && t.current !== t.previous && d(this, w, W).call(this);
42
+ typeof t.previous != "undefined" && t.current !== t.previous && u(this, w, W).call(this);
43
43
  });
44
44
  }
45
45
  get fpsCSSProperty() {
@@ -49,10 +49,10 @@ let y = class extends z {
49
49
  return e(this, c);
50
50
  }
51
51
  get context() {
52
- return e(this, u);
52
+ return e(this, d);
53
53
  }
54
54
  get pixelRatio() {
55
- return e(this, v);
55
+ return e(this, m);
56
56
  }
57
57
  get width() {
58
58
  return e(this, p);
@@ -66,40 +66,40 @@ let y = class extends z {
66
66
  height: e(this, l),
67
67
  element: this,
68
68
  canvasElement: e(this, c),
69
- pixelRatio: e(this, v),
70
- context: e(this, u),
71
- timestamp: e(this, _),
72
- elapsed: e(this, m)
69
+ pixelRatio: e(this, m),
70
+ context: e(this, d),
71
+ timestamp: e(this, f),
72
+ timeBetweenFrames: e(this, _)
73
73
  };
74
74
  }
75
75
  connectedCallback() {
76
- e(this, o).observe(), b.subscribe(this, e(this, x)), d(this, w, W).call(this);
76
+ e(this, o).observe(), b.subscribe(this, e(this, x)), u(this, w, W).call(this);
77
77
  }
78
78
  disconnectedCallback() {
79
- e(this, o).unobserve(), b.unsubscribe(e(this, x)), d(this, C, P).call(this);
79
+ e(this, o).unobserve(), b.unsubscribe(e(this, x)), u(this, C, P).call(this);
80
80
  }
81
81
  };
82
82
  o = /* @__PURE__ */ new WeakMap();
83
83
  c = /* @__PURE__ */ new WeakMap();
84
- u = /* @__PURE__ */ new WeakMap();
84
+ d = /* @__PURE__ */ new WeakMap();
85
85
  p = /* @__PURE__ */ new WeakMap();
86
86
  l = /* @__PURE__ */ new WeakMap();
87
- v = /* @__PURE__ */ new WeakMap();
88
- _ = /* @__PURE__ */ new WeakMap();
89
87
  m = /* @__PURE__ */ new WeakMap();
88
+ f = /* @__PURE__ */ new WeakMap();
89
+ _ = /* @__PURE__ */ new WeakMap();
90
90
  w = /* @__PURE__ */ new WeakSet();
91
91
  W = function() {
92
- S.unsubscribe(e(this, f)), this.hasAttribute("static") || S.subscribe(e(this, f), {
92
+ S.unsubscribe(e(this, v)), this.hasAttribute("static") || S.subscribe(e(this, v), {
93
93
  culling: this,
94
94
  maxFPS: e(this, o).current
95
95
  });
96
96
  };
97
97
  C = /* @__PURE__ */ new WeakSet();
98
98
  P = function() {
99
- S.unsubscribe(e(this, f));
99
+ S.unsubscribe(e(this, v));
100
100
  };
101
101
  x = /* @__PURE__ */ new WeakMap();
102
- f = /* @__PURE__ */ new WeakMap();
102
+ v = /* @__PURE__ */ new WeakMap();
103
103
  g = /* @__PURE__ */ new WeakSet();
104
104
  E = function() {
105
105
  this.dispatchEvent(
@@ -109,8 +109,8 @@ E = function() {
109
109
  })
110
110
  );
111
111
  };
112
- y = B([
113
- A("e-canvas")
112
+ y = G([
113
+ B("e-canvas")
114
114
  ], y);
115
115
  export {
116
116
  y as CanvasElement
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty;var c=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var h=(e,s,t)=>s in e?f(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,b=(e,s)=>{for(var t in s||(s={}))L.call(s,t)&&h(e,t,s[t]);if(c)for(var t of c(s))S.call(s,t)&&h(e,t,s[t]);return e};var d=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},o=(e,s,t,u)=>(d(e,s,"write to private field"),u?u.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../string-DhgS_iFl.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var a,r,l;class T{constructor(s,t){n(this,a,void 0);n(this,r,void 0);n(this,l,void 0);o(this,a,s),o(this,r,t),o(this,l,b({},t))}isTrue(s){return i(this,r)[s]===!0}isFalse(s){return i(this,r)[s]===!1}reset(){for(const s in i(this,l))this.set(s,i(this,l)[s])}set(s,t=!0){i(this,r)[s]=t,t?i(this,a).classList.add(m.camelToKebab(s)):i(this,a).classList.remove(m.camelToKebab(s))}}a=new WeakMap,r=new WeakMap,l=new WeakMap;exports.ClassLinkedStatus=T;
1
+ "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,t,e)=>t in s?S(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,c=(s,t)=>{for(var e in t||(t={}))L.call(t,e)&&a(s,e,t[e]);if(u)for(var e of u(t))T.call(t,e)&&a(s,e,t[e]);return s},l=(s,t)=>m(s,f(t));var o=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var n=(s,t,e)=>(o(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},d=(s,t,e,r)=>(o(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-BQGNOHlY.cjs"),b=require("../string-DhgS_iFl.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i;class p extends g.Store{constructor(e,r){super(r);h(this,i,void 0);d(this,i,e)}isTrue(e){return this.current[e]===!0}isFalse(e){return this.current[e]===!1}reset(){super.reset();for(const e in this.initial)this.set(e,this.initial[e])}set(e,r=!0){this.current=l(c({},this.current),{[e]:r}),r?n(this,i).classList.add(b.camelToKebab(e)):n(this,i).classList.remove(b.camelToKebab(e))}}i=new WeakMap;exports.ClassLinkedStatus=p;
@@ -1,6 +1,8 @@
1
+ import { Store } from '../store';
2
+
1
3
  export declare class ClassLinkedStatus<T extends {
2
4
  [key in string]: boolean;
3
- }> {
5
+ }> extends Store<T> {
4
6
  #private;
5
7
  constructor(element: HTMLElement, value: T);
6
8
  isTrue(key: keyof T): boolean;
@@ -1,51 +1,50 @@
1
- var p = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
3
- var L = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var m = (i, s, t) => s in i ? p(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t, u = (i, s) => {
1
+ var f = Object.defineProperty, d = Object.defineProperties;
2
+ var L = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var o = (e, s, t) => s in e ? f(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, c = (e, s) => {
5
6
  for (var t in s || (s = {}))
6
- L.call(s, t) && m(i, t, s[t]);
7
- if (n)
8
- for (var t of n(s))
9
- b.call(s, t) && m(i, t, s[t]);
10
- return i;
11
- };
12
- var f = (i, s, t) => {
13
- if (!s.has(i))
7
+ S.call(s, t) && o(e, t, s[t]);
8
+ if (a)
9
+ for (var t of a(s))
10
+ b.call(s, t) && o(e, t, s[t]);
11
+ return e;
12
+ }, u = (e, s) => d(e, L(s));
13
+ var h = (e, s, t) => {
14
+ if (!s.has(e))
14
15
  throw TypeError("Cannot " + t);
15
16
  };
16
- var e = (i, s, t) => (f(i, s, "read from private field"), t ? t.call(i) : s.get(i)), o = (i, s, t) => {
17
- if (s.has(i))
17
+ var n = (e, s, t) => (h(e, s, "read from private field"), t ? t.call(e) : s.get(e)), l = (e, s, t) => {
18
+ if (s.has(e))
18
19
  throw TypeError("Cannot add the same private member more than once");
19
- s instanceof WeakSet ? s.add(i) : s.set(i, t);
20
- }, l = (i, s, t, c) => (f(i, s, "write to private field"), c ? c.call(i, t) : s.set(i, t), t);
21
- import { c as d } from "../string-f0Dnk0L1.js";
20
+ s instanceof WeakSet ? s.add(e) : s.set(e, t);
21
+ }, m = (e, s, t, r) => (h(e, s, "write to private field"), r ? r.call(e, t) : s.set(e, t), t);
22
+ import { S as x } from "../Store-Cd-E5W1z.js";
23
+ import { c as p } from "../string-f0Dnk0L1.js";
22
24
  import "../path-data-polyfill-DgeDWYeI.js";
23
- var a, r, h;
24
- class F {
25
- constructor(s, t) {
26
- o(this, a, void 0);
27
- o(this, r, void 0);
28
- o(this, h, void 0);
29
- l(this, a, s), l(this, r, t), l(this, h, u({}, t));
25
+ var i;
26
+ class g extends x {
27
+ constructor(t, r) {
28
+ super(r);
29
+ l(this, i, void 0);
30
+ m(this, i, t);
30
31
  }
31
- isTrue(s) {
32
- return e(this, r)[s] === !0;
32
+ isTrue(t) {
33
+ return this.current[t] === !0;
33
34
  }
34
- isFalse(s) {
35
- return e(this, r)[s] === !1;
35
+ isFalse(t) {
36
+ return this.current[t] === !1;
36
37
  }
37
38
  reset() {
38
- for (const s in e(this, h))
39
- this.set(
40
- s,
41
- e(this, h)[s]
42
- );
39
+ super.reset();
40
+ for (const t in this.initial)
41
+ this.set(t, this.initial[t]);
43
42
  }
44
- set(s, t = !0) {
45
- e(this, r)[s] = t, t ? e(this, a).classList.add(d(s)) : e(this, a).classList.remove(d(s));
43
+ set(t, r = !0) {
44
+ this.current = u(c({}, this.current), { [t]: r }), r ? n(this, i).classList.add(p(t)) : n(this, i).classList.remove(p(t));
46
45
  }
47
46
  }
48
- a = new WeakMap(), r = new WeakMap(), h = new WeakMap();
47
+ i = new WeakMap();
49
48
  export {
50
- F as ClassLinkedStatus
49
+ g as ClassLinkedStatus
51
50
  };
@@ -1 +1 @@
1
- "use strict";var S=(r,a,e)=>{if(!a.has(r))throw TypeError("Cannot "+e)};var t=(r,a,e)=>(S(r,a,"read from private field"),e?e.call(r):a.get(r)),i=(r,a,e)=>{if(a.has(r))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(r):a.set(r,e)},s=(r,a,e,n)=>(S(r,a,"write to private field"),n?n.call(r,e):a.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../notifier/index.cjs"),f=require("../browser-CpzFX2xg.cjs"),R=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const x=require("../ticker/index.cjs"),N=require("../gestures-DHLrn6Q8.cjs"),U=require("../number-yVpzMdbQ.cjs"),j=require("../order/index.cjs");var W;class P{constructor(){i(this,W,new O.Notifier)}get changeEvent(){return t(this,W)}}W=new WeakMap;var m,c,d,q;class z extends P{constructor(e){super();i(this,m,null);i(this,c,null);i(this,d,"offsetHeight");i(this,q,e=>{const n=e.shiftKey?-1:1;let h;e.code==="Space"?h=n*t(this,c)[t(this,d)]*.4:e.code==="ArrowLeft"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowRight"?h=1*t(this,c)[t(this,d)]*.2:e.code==="ArrowUp"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowDown"?h=1*t(this,c)[t(this,d)]*.2:e.code==="PageUp"?h=-1*t(this,c)[t(this,d)]:e.code==="PageDown"?h=1*t(this,c)[t(this,d)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,d)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});f.isBrowser&&(s(this,m,e!=null&&e.element&&R.getElement(e.element)||window),s(this,c,t(this,m)instanceof HTMLElement?t(this,m):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){s(this,d,e==="width"?"offsetWidth":"offsetHeight")}connect(){f.isBrowser&&t(this,m).addEventListener("keydown",t(this,q))}disconnect(){f.isBrowser&&t(this,m).removeEventListener("keydown",t(this,q))}}m=new WeakMap,c=new WeakMap,d=new WeakMap,q=new WeakMap;var o,v,A,I,u,M,L,T;class F extends P{constructor(e){super();i(this,o,void 0);i(this,v,void 0);i(this,A,void 0);i(this,I,void 0);i(this,u,void 0);i(this,M,void 0);i(this,L,void 0);i(this,T,void 0);this.direction=1,s(this,u,!1),s(this,L,n=>{t(this,u)||this.changeEvent.notify("autoplay",n.elapsed*t(this,o)*this.direction)}),s(this,T,()=>{t(this,u)||this.changeEvent.notify("autoplay",Math.sign(t(this,o))*this.direction)}),s(this,o,(e==null?void 0:e.speed)||1),s(this,v,(e==null?void 0:e.interval)||!1),s(this,A,e)}set interval(e){s(this,v,e),this.connect()}set speed(e){s(this,o,e),this.connect()}connect(){this.disconnect(),t(this,v)?s(this,I,setInterval(t(this,T),Math.abs(t(this,o)))):x.ticker.subscribe(t(this,L),t(this,A))}disconnect(){clearInterval(t(this,I)),x.ticker.unsubscribe(t(this,L)),clearInterval(t(this,M)),s(this,u,!1)}pauseAndContinue(e){e&&!t(this,u)&&(clearInterval(t(this,M)),s(this,u,!0),s(this,M,setTimeout(()=>{s(this,u,!1)},3e3)))}}o=new WeakMap,v=new WeakMap,A=new WeakMap,I=new WeakMap,u=new WeakMap,M=new WeakMap,L=new WeakMap,T=new WeakMap;var k,g,C,D;class G extends P{constructor(e){super();i(this,k,null);i(this,g,void 0);i(this,C,void 0);i(this,D,e=>{let n=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(n=(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 h=Date.now();if(h-t(this,C)>40&&(n=100*Math.sign(n)),s(this,C,h),Math.abs(n)<100||t(this,g))return;this.changeEvent.notify("wheel",n),s(this,g,setTimeout(()=>{s(this,g,void 0)},80))}else this.changeEvent.notify("wheel",n)});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,s(this,C,Date.now()),f.isBrowser&&s(this,k,e!=null&&e.element&&R.getElement(e.element)||window)}connect(){f.isBrowser&&t(this,k).addEventListener("wheel",t(this,D),{passive:!1})}disconnect(){f.isBrowser&&(t(this,k).removeEventListener("wheel",t(this,D)),clearTimeout(t(this,g)))}}k=new WeakMap,g=new WeakMap,C=new WeakMap,D=new WeakMap;var y,w,B,l,H,E;const b=class b extends P{constructor(e){super();i(this,w,null);i(this,B,!1);i(this,l,0);i(this,H,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||x.ticker.unsubscribe(t(this,E));let n=e;s(this,l,0),document.documentElement.classList.add("grabbing"),N.setupDrag(h=>{if(t(this,B)||t(b,y)&&t(b,y)!==t(this,w))return;this.swipe&&s(this,B,!0);const X=n.x-h.x,Y=n.y-h.y;this.axis==="x"?s(this,l,X):s(this,l,Y),n=h,(this.axis==="x"&&Math.abs(X)>Math.abs(Y)||this.axis==="y"&&Math.abs(Y)>Math.abs(X))&&(s(b,y,t(this,w)),this.changeEvent.notify("drag",t(this,l)))},()=>{s(b,y,null),this.swipe||(s(this,l,t(this,l)*3),x.ticker.subscribe(t(this,E),{order:j.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),s(this,B,!1)})});i(this,E,()=>{Math.floor(t(this,l))||x.ticker.unsubscribe(t(this,E)),s(this,l,t(this,l)*.95),s(this,l,U.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,f.isBrowser&&s(this,w,e!=null&&e.element&&R.getElement(e.element)||document.documentElement)}connect(){f.isBrowser&&t(this,w).addEventListener("pointerdown",t(this,H))}disconnect(){f.isBrowser&&(t(this,w).removeEventListener("pointerdown",t(this,H)),x.ticker.unsubscribe(t(this,E)))}};y=new WeakMap,w=new WeakMap,B=new WeakMap,l=new WeakMap,H=new WeakMap,E=new WeakMap,i(b,y,null);let K=b;exports.AutoplayControls=F;exports.Controls=P;exports.DragControls=K;exports.KeyboardControls=z;exports.WheelControls=G;
1
+ "use strict";var S=(r,a,e)=>{if(!a.has(r))throw TypeError("Cannot "+e)};var t=(r,a,e)=>(S(r,a,"read from private field"),e?e.call(r):a.get(r)),i=(r,a,e)=>{if(a.has(r))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(r):a.set(r,e)},s=(r,a,e,n)=>(S(r,a,"write to private field"),n?n.call(r,e):a.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../notifier/index.cjs"),f=require("../browser-CpzFX2xg.cjs"),R=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const x=require("../ticker/index.cjs"),F=require("../gestures-DHLrn6Q8.cjs"),N=require("../number-yVpzMdbQ.cjs"),U=require("../order/index.cjs");var W;class P{constructor(){i(this,W,new O.Notifier)}get changeEvent(){return t(this,W)}}W=new WeakMap;var m,c,d,q;class j extends P{constructor(e){super();i(this,m,null);i(this,c,null);i(this,d,"offsetHeight");i(this,q,e=>{const n=e.shiftKey?-1:1;let h;e.code==="Space"?h=n*t(this,c)[t(this,d)]*.4:e.code==="ArrowLeft"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowRight"?h=1*t(this,c)[t(this,d)]*.2:e.code==="ArrowUp"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowDown"?h=1*t(this,c)[t(this,d)]*.2:e.code==="PageUp"?h=-1*t(this,c)[t(this,d)]:e.code==="PageDown"?h=1*t(this,c)[t(this,d)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,d)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});f.isBrowser&&(s(this,m,e!=null&&e.element&&R.getElement(e.element)||window),s(this,c,t(this,m)instanceof HTMLElement?t(this,m):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){s(this,d,e==="width"?"offsetWidth":"offsetHeight")}connect(){f.isBrowser&&t(this,m).addEventListener("keydown",t(this,q))}disconnect(){f.isBrowser&&t(this,m).removeEventListener("keydown",t(this,q))}}m=new WeakMap,c=new WeakMap,d=new WeakMap,q=new WeakMap;var o,v,A,I,u,M,L,T;class z extends P{constructor(e){super();i(this,o,void 0);i(this,v,void 0);i(this,A,void 0);i(this,I,void 0);i(this,u,void 0);i(this,M,void 0);i(this,L,void 0);i(this,T,void 0);this.direction=1,s(this,u,!1),s(this,L,n=>{t(this,u)||this.changeEvent.notify("autoplay",n.timeBetweenFrames*t(this,o)*this.direction)}),s(this,T,()=>{t(this,u)||this.changeEvent.notify("autoplay",Math.sign(t(this,o))*this.direction)}),s(this,o,(e==null?void 0:e.speed)||1),s(this,v,(e==null?void 0:e.interval)||!1),s(this,A,e)}set interval(e){s(this,v,e),this.connect()}set speed(e){s(this,o,e),this.connect()}connect(){this.disconnect(),t(this,v)?s(this,I,setInterval(t(this,T),Math.abs(t(this,o)))):x.ticker.subscribe(t(this,L),t(this,A))}disconnect(){clearInterval(t(this,I)),x.ticker.unsubscribe(t(this,L)),clearInterval(t(this,M)),s(this,u,!1)}pauseAndContinue(e){e&&!t(this,u)&&(clearInterval(t(this,M)),s(this,u,!0),s(this,M,setTimeout(()=>{s(this,u,!1)},3e3)))}}o=new WeakMap,v=new WeakMap,A=new WeakMap,I=new WeakMap,u=new WeakMap,M=new WeakMap,L=new WeakMap,T=new WeakMap;var k,g,C,D;class G extends P{constructor(e){super();i(this,k,null);i(this,g,void 0);i(this,C,void 0);i(this,D,e=>{let n=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(n=(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 h=Date.now();if(h-t(this,C)>40&&(n=100*Math.sign(n)),s(this,C,h),Math.abs(n)<100||t(this,g))return;this.changeEvent.notify("wheel",n),s(this,g,setTimeout(()=>{s(this,g,void 0)},80))}else this.changeEvent.notify("wheel",n)});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,s(this,C,Date.now()),f.isBrowser&&s(this,k,e!=null&&e.element&&R.getElement(e.element)||window)}connect(){f.isBrowser&&t(this,k).addEventListener("wheel",t(this,D),{passive:!1})}disconnect(){f.isBrowser&&(t(this,k).removeEventListener("wheel",t(this,D)),clearTimeout(t(this,g)))}}k=new WeakMap,g=new WeakMap,C=new WeakMap,D=new WeakMap;var y,w,B,l,H,E;const b=class b extends P{constructor(e){super();i(this,w,null);i(this,B,!1);i(this,l,0);i(this,H,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||x.ticker.unsubscribe(t(this,E));let n=e;s(this,l,0),document.documentElement.classList.add("grabbing"),F.setupDrag(h=>{if(t(this,B)||t(b,y)&&t(b,y)!==t(this,w))return;this.swipe&&s(this,B,!0);const X=n.x-h.x,Y=n.y-h.y;this.axis==="x"?s(this,l,X):s(this,l,Y),n=h,(this.axis==="x"&&Math.abs(X)>Math.abs(Y)||this.axis==="y"&&Math.abs(Y)>Math.abs(X))&&(s(b,y,t(this,w)),this.changeEvent.notify("drag",t(this,l)))},()=>{s(b,y,null),this.swipe||(s(this,l,t(this,l)*3),x.ticker.subscribe(t(this,E),{order:U.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),s(this,B,!1)})});i(this,E,()=>{Math.floor(t(this,l))||x.ticker.unsubscribe(t(this,E)),s(this,l,t(this,l)*.95),s(this,l,N.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,f.isBrowser&&s(this,w,e!=null&&e.element&&R.getElement(e.element)||document.documentElement)}connect(){f.isBrowser&&t(this,w).addEventListener("pointerdown",t(this,H))}disconnect(){f.isBrowser&&(t(this,w).removeEventListener("pointerdown",t(this,H)),x.ticker.unsubscribe(t(this,E)))}};y=new WeakMap,w=new WeakMap,B=new WeakMap,l=new WeakMap,H=new WeakMap,E=new WeakMap,i(b,y,null);let K=b;exports.AutoplayControls=z;exports.Controls=P;exports.DragControls=K;exports.KeyboardControls=j;exports.WheelControls=G;
@@ -1,103 +1,103 @@
1
- var O = (a, r, e) => {
1
+ var F = (a, r, e) => {
2
2
  if (!r.has(a))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var t = (a, r, e) => (O(a, r, "read from private field"), e ? e.call(a) : r.get(a)), i = (a, r, e) => {
5
+ var t = (a, r, e) => (F(a, r, "read from private field"), e ? e.call(a) : r.get(a)), s = (a, r, e) => {
6
6
  if (r.has(a))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(a) : r.set(a, e);
9
- }, s = (a, r, e, n) => (O(a, r, "write to private field"), n ? n.call(a, e) : r.set(a, e), e);
10
- import { Notifier as U } from "../notifier/index.js";
11
- import { i as u } from "../browser-0zX67oeU.js";
12
- import { g as N } from "../dom-0S_WDL4g.js";
9
+ }, i = (a, r, e, n) => (F(a, r, "write to private field"), n ? n.call(a, e) : r.set(a, e), e);
10
+ import { Notifier as O } from "../notifier/index.js";
11
+ import { i as m } from "../browser-0zX67oeU.js";
12
+ import { g as B } from "../dom-0S_WDL4g.js";
13
13
  import "../path-data-polyfill-DgeDWYeI.js";
14
14
  import { ticker as y } from "../ticker/index.js";
15
- import { s as z } from "../gestures-D2Fdra_G.js";
16
- import { p as B } from "../number-Bo5RdrA1.js";
17
- import { TICK_ORDER as F } from "../order/index.js";
15
+ import { s as S } from "../gestures-D2Fdra_G.js";
16
+ import { p as U } from "../number-Bo5RdrA1.js";
17
+ import { TICK_ORDER as z } from "../order/index.js";
18
18
  var Y;
19
19
  class R {
20
20
  constructor() {
21
- i(this, Y, new U());
21
+ s(this, Y, new O());
22
22
  }
23
23
  get changeEvent() {
24
24
  return t(this, Y);
25
25
  }
26
26
  }
27
27
  Y = new WeakMap();
28
- var m, d, c, C;
28
+ var u, d, c, C;
29
29
  class p extends R {
30
30
  constructor(e) {
31
31
  super();
32
- i(this, m, null);
33
- i(this, d, null);
34
- i(this, c, "offsetHeight");
35
- i(this, C, (e) => {
32
+ s(this, u, null);
33
+ s(this, d, null);
34
+ s(this, c, "offsetHeight");
35
+ s(this, C, (e) => {
36
36
  const n = e.shiftKey ? -1 : 1;
37
37
  let h;
38
38
  e.code === "Space" ? h = n * t(this, d)[t(this, c)] * 0.4 : e.code === "ArrowLeft" ? h = -1 * t(this, d)[t(this, c)] * 0.2 : e.code === "ArrowRight" ? h = 1 * t(this, d)[t(this, c)] * 0.2 : e.code === "ArrowUp" ? h = -1 * t(this, d)[t(this, c)] * 0.2 : e.code === "ArrowDown" ? h = 1 * t(this, d)[t(this, c)] * 0.2 : e.code === "PageUp" ? h = -1 * t(this, d)[t(this, c)] : e.code === "PageDown" ? h = 1 * t(this, d)[t(this, c)] : e.code === "Home" ? h = 0 : e.code === "End" && (h = t(this, c) === "offsetWidth" ? t(this, d).scrollWidth : t(this, d).scrollHeight), h && (e.stopPropagation(), this.changeEvent.notify("keyboard", h));
39
39
  });
40
- u && (s(this, m, e != null && e.element && N(e.element) || window), s(this, d, t(this, m) instanceof HTMLElement ? t(this, m) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
40
+ m && (i(this, u, e != null && e.element && B(e.element) || window), i(this, d, t(this, u) instanceof HTMLElement ? t(this, u) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
41
41
  }
42
42
  set dimension(e) {
43
- s(this, c, e === "width" ? "offsetWidth" : "offsetHeight");
43
+ i(this, c, e === "width" ? "offsetWidth" : "offsetHeight");
44
44
  }
45
45
  connect() {
46
- u && t(this, m).addEventListener(
46
+ m && t(this, u).addEventListener(
47
47
  "keydown",
48
48
  t(this, C)
49
49
  );
50
50
  }
51
51
  disconnect() {
52
- u && t(this, m).removeEventListener(
52
+ m && t(this, u).removeEventListener(
53
53
  "keydown",
54
54
  t(this, C)
55
55
  );
56
56
  }
57
57
  }
58
- m = new WeakMap(), d = new WeakMap(), c = new WeakMap(), C = new WeakMap();
58
+ u = new WeakMap(), d = new WeakMap(), c = new WeakMap(), C = new WeakMap();
59
59
  var w, v, T, D, f, L, M, H;
60
60
  class ee extends R {
61
61
  constructor(e) {
62
62
  super();
63
- i(this, w, void 0);
64
- i(this, v, void 0);
65
- i(this, T, void 0);
66
- i(this, D, void 0);
67
- i(this, f, void 0);
68
- i(this, L, void 0);
69
- i(this, M, void 0);
70
- i(this, H, void 0);
71
- this.direction = 1, s(this, f, !1), s(this, M, (n) => {
63
+ s(this, w, void 0);
64
+ s(this, v, void 0);
65
+ s(this, T, void 0);
66
+ s(this, D, void 0);
67
+ s(this, f, void 0);
68
+ s(this, L, void 0);
69
+ s(this, M, void 0);
70
+ s(this, H, void 0);
71
+ this.direction = 1, i(this, f, !1), i(this, M, (n) => {
72
72
  t(this, f) || this.changeEvent.notify(
73
73
  "autoplay",
74
- n.elapsed * t(this, w) * this.direction
74
+ n.timeBetweenFrames * t(this, w) * this.direction
75
75
  );
76
- }), s(this, H, () => {
76
+ }), i(this, H, () => {
77
77
  t(this, f) || this.changeEvent.notify(
78
78
  "autoplay",
79
79
  Math.sign(t(this, w)) * this.direction
80
80
  );
81
- }), s(this, w, (e == null ? void 0 : e.speed) || 1), s(this, v, (e == null ? void 0 : e.interval) || !1), s(this, T, e);
81
+ }), i(this, w, (e == null ? void 0 : e.speed) || 1), i(this, v, (e == null ? void 0 : e.interval) || !1), i(this, T, e);
82
82
  }
83
83
  set interval(e) {
84
- s(this, v, e), this.connect();
84
+ i(this, v, e), this.connect();
85
85
  }
86
86
  set speed(e) {
87
- s(this, w, e), this.connect();
87
+ i(this, w, e), this.connect();
88
88
  }
89
89
  connect() {
90
- this.disconnect(), t(this, v) ? s(this, D, setInterval(
90
+ this.disconnect(), t(this, v) ? i(this, D, setInterval(
91
91
  t(this, H),
92
92
  Math.abs(t(this, w))
93
93
  )) : y.subscribe(t(this, M), t(this, T));
94
94
  }
95
95
  disconnect() {
96
- clearInterval(t(this, D)), y.unsubscribe(t(this, M)), clearInterval(t(this, L)), s(this, f, !1);
96
+ clearInterval(t(this, D)), y.unsubscribe(t(this, M)), clearInterval(t(this, L)), i(this, f, !1);
97
97
  }
98
98
  pauseAndContinue(e) {
99
- e && !t(this, f) && (clearInterval(t(this, L)), s(this, f, !0), s(this, L, setTimeout(() => {
100
- s(this, f, !1);
99
+ e && !t(this, f) && (clearInterval(t(this, L)), i(this, f, !0), i(this, L, setTimeout(() => {
100
+ i(this, f, !1);
101
101
  }, 3e3)));
102
102
  }
103
103
  }
@@ -106,26 +106,26 @@ var k, g, I, P;
106
106
  class te extends R {
107
107
  constructor(e) {
108
108
  super();
109
- i(this, k, null);
110
- i(this, g, void 0);
111
- i(this, I, void 0);
112
- i(this, P, (e) => {
109
+ s(this, k, null);
110
+ s(this, g, void 0);
111
+ s(this, I, void 0);
112
+ s(this, P, (e) => {
113
113
  let n = 0;
114
114
  if (e.preventDefault(), !(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) * 0.5 || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY) * 0.5))
115
115
  if (n = (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) {
116
116
  const h = Date.now();
117
- if (h - t(this, I) > 40 && (n = 100 * Math.sign(n)), s(this, I, h), Math.abs(n) < 100 || t(this, g))
117
+ if (h - t(this, I) > 40 && (n = 100 * Math.sign(n)), i(this, I, h), Math.abs(n) < 100 || t(this, g))
118
118
  return;
119
- this.changeEvent.notify("wheel", n), s(this, g, setTimeout(() => {
120
- s(this, g, void 0);
119
+ this.changeEvent.notify("wheel", n), i(this, g, setTimeout(() => {
120
+ i(this, g, void 0);
121
121
  }, 80));
122
122
  } else
123
123
  this.changeEvent.notify("wheel", n);
124
124
  });
125
- 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, s(this, I, Date.now()), u && s(this, k, e != null && e.element && N(e.element) || window);
125
+ 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, I, Date.now()), m && i(this, k, e != null && e.element && B(e.element) || window);
126
126
  }
127
127
  connect() {
128
- u && t(this, k).addEventListener(
128
+ m && t(this, k).addEventListener(
129
129
  "wheel",
130
130
  t(this, P),
131
131
  {
@@ -134,7 +134,7 @@ class te extends R {
134
134
  );
135
135
  }
136
136
  disconnect() {
137
- u && (t(this, k).removeEventListener(
137
+ m && (t(this, k).removeEventListener(
138
138
  "wheel",
139
139
  t(this, P)
140
140
  ), clearTimeout(t(this, g)));
@@ -145,50 +145,50 @@ var E, b, A, l, X, x;
145
145
  const o = class o extends R {
146
146
  constructor(e) {
147
147
  super();
148
- i(this, b, null);
149
- i(this, A, !1);
150
- i(this, l, 0);
151
- i(this, X, (e) => {
148
+ s(this, b, null);
149
+ s(this, A, !1);
150
+ s(this, l, 0);
151
+ s(this, X, (e) => {
152
152
  if (e.composedPath().find(
153
153
  (h) => h instanceof HTMLElement && h.hasAttribute("drag-dead-zone")
154
154
  ))
155
155
  return;
156
156
  this.swipe || y.unsubscribe(t(this, x));
157
157
  let n = e;
158
- s(this, l, 0), document.documentElement.classList.add("grabbing"), z(
158
+ i(this, l, 0), document.documentElement.classList.add("grabbing"), S(
159
159
  (h) => {
160
160
  if (t(this, A) || t(o, E) && t(o, E) !== t(this, b))
161
161
  return;
162
- this.swipe && s(this, A, !0);
162
+ this.swipe && i(this, A, !0);
163
163
  const W = n.x - h.x, K = n.y - h.y;
164
- this.axis === "x" ? s(this, l, W) : s(this, l, K), n = h, (this.axis === "x" && Math.abs(W) > Math.abs(K) || this.axis === "y" && Math.abs(K) > Math.abs(W)) && (s(o, E, t(this, b)), this.changeEvent.notify("drag", t(this, l)));
164
+ this.axis === "x" ? i(this, l, W) : i(this, l, K), n = h, (this.axis === "x" && Math.abs(W) > Math.abs(K) || this.axis === "y" && Math.abs(K) > Math.abs(W)) && (i(o, E, t(this, b)), this.changeEvent.notify("drag", t(this, l)));
165
165
  },
166
166
  () => {
167
- s(o, E, null), this.swipe || (s(this, l, t(this, l) * 3), y.subscribe(t(this, x), { order: F.SCROLL - 1 })), document.documentElement.classList.remove("grabbing"), s(this, A, !1);
167
+ i(o, E, null), this.swipe || (i(this, l, t(this, l) * 3), y.subscribe(t(this, x), { order: z.SCROLL - 1 })), document.documentElement.classList.remove("grabbing"), i(this, A, !1);
168
168
  }
169
169
  );
170
170
  });
171
- i(this, x, () => {
172
- Math.floor(t(this, l)) || y.unsubscribe(t(this, x)), s(this, l, t(this, l) * 0.95), s(this, l, B(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l));
171
+ s(this, x, () => {
172
+ Math.floor(t(this, l)) || y.unsubscribe(t(this, x)), i(this, l, t(this, l) * 0.95), i(this, l, U(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l));
173
173
  });
174
- this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, u && s(this, b, e != null && e.element && N(e.element) || document.documentElement);
174
+ this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, m && i(this, b, e != null && e.element && B(e.element) || document.documentElement);
175
175
  }
176
176
  connect() {
177
- u && t(this, b).addEventListener("pointerdown", t(this, X));
177
+ m && t(this, b).addEventListener("pointerdown", t(this, X));
178
178
  }
179
179
  disconnect() {
180
- u && (t(this, b).removeEventListener(
180
+ m && (t(this, b).removeEventListener(
181
181
  "pointerdown",
182
182
  t(this, X)
183
183
  ), y.unsubscribe(t(this, x)));
184
184
  }
185
185
  };
186
- E = new WeakMap(), b = new WeakMap(), A = new WeakMap(), l = new WeakMap(), X = new WeakMap(), x = new WeakMap(), i(o, E, null);
187
- let S = o;
186
+ E = new WeakMap(), b = new WeakMap(), A = new WeakMap(), l = new WeakMap(), X = new WeakMap(), x = new WeakMap(), s(o, E, null);
187
+ let N = o;
188
188
  export {
189
189
  ee as AutoplayControls,
190
190
  R as Controls,
191
- S as DragControls,
191
+ N as DragControls,
192
192
  p as KeyboardControls,
193
193
  te as WheelControls
194
194
  };
@@ -1 +1 @@
1
- "use strict";var S=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var i=(s,r,e)=>(S(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},o=(s,r,e,u)=>(S(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../css-value-parser/index.cjs"),w=require("../order/index.cjs"),R=require("../Store-BQGNOHlY.cjs"),y=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const a=require("../window-resizer/index.cjs");var c,b,t,h;class g extends R.Store{constructor(e,u,l,d){super(l,d);n(this,c,void 0);n(this,b,void 0);n(this,t,void 0);n(this,h,()=>{this.check()});o(this,c,y.getElement(e)),o(this,b,u),o(this,t,l.toString())}observe(){this.subscribers.size||a.windowResizer.subscribe(i(this,h),w.RESIZE_ORDER.CSS_VARIABLE)}unobserve(){this.subscribers.size||a.windowResizer.unsubscribe(i(this,h))}subscribe(e){return this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.unobserve()}check(){const e=getComputedStyle(i(this,c)).getPropertyValue(i(this,b));if(i(this,t)!==e)if(o(this,t,e),e){const u=p.cssValueParser.parse(i(this,t));this.current=u}else this.current=this.initial}}c=new WeakMap,b=new WeakMap,t=new WeakMap,h=new WeakMap;exports.CSSProperty=g;
1
+ "use strict";var d=(r,s,e)=>{if(!s.has(r))throw TypeError("Cannot "+e)};var t=(r,s,e)=>(d(r,s,"read from private field"),e?e.call(r):s.get(r)),c=(r,s,e)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,e)},n=(r,s,e,u)=>(d(r,s,"write to private field"),u?u.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-BQGNOHlY.cjs"),y=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const w=require("../window-resizer/index.cjs");var h,b,i,a,o;class f extends g.Store{constructor(e,u,S,l){super(S,l);c(this,h,void 0);c(this,b,void 0);c(this,i,void 0);c(this,a,void 0);c(this,o,()=>{this.check()});n(this,h,y.getElement(e)),n(this,b,u),n(this,i,S.toString()),n(this,a,(l==null?void 0:l.rawValueCheck)!==!1)}get currentRawValue(){return t(this,i)}observe(){this.subscribers.size||w.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE)}unobserve(){this.subscribers.size||w.windowResizer.unsubscribe(t(this,o))}subscribe(e){return this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.unobserve()}check(){const e=getComputedStyle(t(this,h)).getPropertyValue(t(this,b));if(!(t(this,a)&&t(this,i)===e))if(n(this,i,e),e){const u=R.cssValueParser.parse(t(this,i));this.current=u}else this.current=this.initial}}h=new WeakMap,b=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap;exports.CSSProperty=f;
@@ -1,9 +1,13 @@
1
1
  import { ElementOrSelector } from '../utils';
2
2
  import { Store, StoreCallback, StoreEntry, StoreManagerType, StoreOptions } from '../store';
3
3
 
4
+ export interface CSSPropertyOptions<StoreType extends number | boolean | string, StoreManager extends StoreManagerType = StoreManagerType> extends StoreOptions<StoreType, StoreManager> {
5
+ rawValueCheck?: boolean;
6
+ }
4
7
  export declare class CSSProperty<StoreType extends number | boolean | string, StoreManager extends StoreManagerType = StoreManagerType> extends Store<StoreType, StoreManager> {
5
8
  #private;
6
- constructor(elementOrSelector: ElementOrSelector<HTMLElement>, property: string, defaultValue: StoreType, options?: StoreOptions<StoreType, StoreManager>);
9
+ constructor(elementOrSelector: ElementOrSelector<HTMLElement>, property: string, defaultValue: StoreType, options?: CSSPropertyOptions<StoreType, StoreManager>);
10
+ get currentRawValue(): string;
7
11
  observe(): void;
8
12
  unobserve(): void;
9
13
  subscribe(callback: StoreCallback<StoreEntry<StoreType>>): () => void;