aptechka 0.5.26 → 0.5.28

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 (108) hide show
  1. package/lib/Damped-DxwUBxOC.cjs +1 -0
  2. package/lib/{Damped-BJgyFENo.js → Damped-QZAoXO5Z.js} +31 -32
  3. package/lib/{Derived-BZtlW0bB.cjs → Derived-B-g8dYgh.cjs} +1 -1
  4. package/lib/{Derived-DH-ouLBq.js → Derived-kPJs5JC5.js} +1 -1
  5. package/lib/{SourceManager-DmXmmA6z.js → SourceManager-Q-PB-Rkh.js} +3 -4
  6. package/lib/SourceManager-vSlsMKUE.cjs +1 -0
  7. package/lib/{Store-Cd-E5W1z.js → Store-BQXXikps.js} +7 -8
  8. package/lib/Store-C-1ruEIm.cjs +1 -0
  9. package/lib/{Viewport-CCDNxaDg.js → Viewport-CFFhFKqX.js} +5 -6
  10. package/lib/Viewport-DMB0dO-s.cjs +1 -0
  11. package/lib/accordion/index.cjs +1 -1
  12. package/lib/accordion/index.js +8 -9
  13. package/lib/animation/index.cjs +1 -1
  14. package/lib/animation/index.js +13 -14
  15. package/lib/attribute/index.cjs +1 -1
  16. package/lib/attribute/index.js +15 -16
  17. package/lib/canvas/index.cjs +1 -1
  18. package/lib/canvas/index.js +3 -4
  19. package/lib/checkbox/index.cjs +1 -1
  20. package/lib/checkbox/index.js +3 -4
  21. package/lib/class-linked-status/index.cjs +1 -1
  22. package/lib/class-linked-status/index.js +28 -29
  23. package/lib/controls/index.cjs +1 -1
  24. package/lib/controls/index.js +84 -76
  25. package/lib/{createStylesheet-C8aQQ4hd.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
  26. package/lib/{createStylesheet-KMRQhSa-.js → createStylesheet-DBCEbDjI.js} +1 -1
  27. package/lib/createTheme-CHnsCgAr.js +15 -0
  28. package/lib/createTheme-Cfaw9UmV.cjs +1 -0
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +9 -10
  31. package/lib/custom-element/index.cjs +1 -1
  32. package/lib/custom-element/index.js +15 -16
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +6 -7
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +1 -1
  37. package/lib/element-constructor/index.cjs +1 -1
  38. package/lib/element-constructor/index.js +3 -3
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +22 -23
  41. package/lib/en3/index.cjs +1 -1
  42. package/lib/en3/index.js +20 -21
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +7 -8
  45. package/lib/{index-DGr7Qzg3.js → index-BAHHdcp3.js} +3 -4
  46. package/lib/index-D2XtQX56.cjs +9 -0
  47. package/lib/intersector/index.cjs +1 -1
  48. package/lib/intersector/index.js +6 -7
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +3 -4
  51. package/lib/layout-box/index.cjs +1 -1
  52. package/lib/layout-box/index.js +2 -3
  53. package/lib/loading/index.cjs +1 -1
  54. package/lib/loading/index.js +15 -16
  55. package/lib/media/index.cjs +1 -1
  56. package/lib/media/index.js +5 -6
  57. package/lib/modal/index.cjs +1 -1
  58. package/lib/modal/index.js +3 -4
  59. package/lib/morph/index.cjs +1 -1
  60. package/lib/morph/index.js +2 -3
  61. package/lib/pointer/index.cjs +1 -1
  62. package/lib/pointer/index.js +2 -3
  63. package/lib/popover/index.cjs +1 -1
  64. package/lib/popover/index.js +12 -13
  65. package/lib/resized/index.cjs +1 -1
  66. package/lib/resized/index.js +7 -8
  67. package/lib/router/index.cjs +1 -1
  68. package/lib/router/index.js +7 -8
  69. package/lib/scroll/index.cjs +1 -1
  70. package/lib/scroll/index.js +6 -7
  71. package/lib/select/index.cjs +1 -1
  72. package/lib/select/index.js +1 -1
  73. package/lib/sequence/index.cjs +1 -1
  74. package/lib/sequence/index.js +1 -2
  75. package/lib/slicer/index.cjs +2 -2
  76. package/lib/slicer/index.js +3 -4
  77. package/lib/source/index.cjs +1 -1
  78. package/lib/source/index.js +29 -30
  79. package/lib/store/index.cjs +1 -1
  80. package/lib/store/index.js +12 -13
  81. package/lib/svg-path-data/index.cjs +3 -0
  82. package/lib/{utils/svg.d.ts → svg-path-data/index.d.ts} +1 -1
  83. package/lib/{path-data-polyfill-DgeDWYeI.js → svg-path-data/index.js} +201 -162
  84. package/lib/{tags-BoPv9fDr.js → tags-CMPg9ETZ.js} +233 -234
  85. package/lib/tags-Djb6mb1o.cjs +1 -0
  86. package/lib/theme/index.cjs +1 -1
  87. package/lib/theme/index.js +3 -4
  88. package/lib/ticker/index.cjs +1 -1
  89. package/lib/ticker/index.js +12 -13
  90. package/lib/tweaker/index.cjs +1 -1
  91. package/lib/tweaker/index.js +5 -6
  92. package/lib/utils/index.cjs +1 -1
  93. package/lib/utils/index.d.ts +0 -1
  94. package/lib/utils/index.js +125 -163
  95. package/lib/video/index.cjs +1 -1
  96. package/lib/video/index.js +4 -5
  97. package/lib/window-resizer/index.cjs +1 -1
  98. package/lib/window-resizer/index.js +6 -7
  99. package/package.json +9 -1
  100. package/lib/Damped-CbWlWAbx.cjs +0 -1
  101. package/lib/SourceManager-BFSCX4Q8.cjs +0 -1
  102. package/lib/Store-BQGNOHlY.cjs +0 -1
  103. package/lib/Viewport-DhKPH5nw.cjs +0 -1
  104. package/lib/createTheme-BSreUYge.cjs +0 -1
  105. package/lib/createTheme-u3NsrEV6.js +0 -16
  106. package/lib/index-CWHXGxK7.cjs +0 -9
  107. package/lib/path-data-polyfill-CXsOR7Oc.cjs +0 -3
  108. package/lib/tags-CueX-JLX.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var tt=Object.defineProperty,st=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var J=(r,i,t)=>i in r?tt(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,R=(r,i)=>{for(var t in i||(i={}))et.call(i,t)&&J(r,t,i[t]);if(H)for(var t of H(i))rt.call(i,t)&&J(r,t,i[t]);return r},B=(r,i)=>st(r,it(i));var j=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var s=(r,i,t)=>(j(r,i,"read from private field"),t?t.call(r):i.get(r)),e=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,n)=>(j(r,i,"write to private field"),n?n.call(r,t):i.set(r,t),t);var x=(r,i,t)=>(j(r,i,"access private method"),t);const U=require("./math-GDWEqu7y.cjs"),E=require("./number-yVpzMdbQ.cjs"),g=require("./polyfills-CrcS4RcO.cjs"),_=require("./Store-C-1ruEIm.cjs"),Q=require("./ticker/index.cjs"),ht=require("./order/index.cjs");var u,d,F,w,y,C,O,S,v,W,V,X,T,G,K,Y,z;class nt{constructor(i,t,n,P,A){e(this,v);e(this,V);e(this,T);e(this,K);e(this,u,void 0);e(this,d,void 0);e(this,F,void 0);e(this,w,void 0);e(this,y,!1);e(this,C,!1);e(this,O,!1);e(this,S,void 0);e(this,z,i=>{!s(this,O)&&s(this,u).initial!==s(this,u).current&&h(this,O,!0),s(this,O)&&(i.direction>0&&i.progress>=s(this,F).current?x(this,v,W).call(this):i.direction<0&&i.progress<=s(this,F).current&&x(this,V,X).call(this))});h(this,u,i),h(this,d,t),h(this,F,new _.Store(n,{passport:t.passport?{name:t.passport+"-start",manager:{type:"number"}}:void 0})),h(this,w,new _.Store(P,{passport:t.passport?{name:t.passport+"-set",manager:{type:"number"}}:void 0})),h(this,S,A),s(this,u).subscribe(s(this,z)),s(this,u).linked.add(this)}get targetAnimation(){return s(this,d)}get triggerAnimation(){return s(this,u)}destroy(){s(this,w).close(),s(this,F).close(),s(this,u).unsubscribe(s(this,z)),s(this,u).linked.delete(this)}}u=new WeakMap,d=new WeakMap,F=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,O=new WeakMap,S=new WeakMap,v=new WeakSet,W=function(){s(this,y)||(h(this,C,!1),h(this,y,!0),x(this,T,G).call(this,s(this,w).current))},V=new WeakSet,X=function(){s(this,y)&&!s(this,C)&&(h(this,y,!1),h(this,C,!0),x(this,T,G).call(this,s(this,d).initial))},T=new WeakSet,G=function(i){x(this,K,Y).call(this),s(this,d).updateOptions(s(this,S)),s(this,d).set(i)},K=new WeakSet,Y=function(){var i;(i=s(this,S))!=null&&i.once&&this.destroy()},z=new WeakMap;var D,M,N,f,o,b,I,a,c,l,k,p,L;class Z extends _.Store{constructor(t,n){super(t||0,n);e(this,D,void 0);e(this,M,ht.TICK_ORDER.ANIMATION);e(this,N,void 0);e(this,f,new _.Store(!1));e(this,o,new Set);e(this,b,null);e(this,I,0);e(this,a,0);e(this,c,-1/0);e(this,l,1/0);e(this,k,0);e(this,p,1);e(this,L,t=>{this.handleAnimationFrame(t)})}get linked(){return s(this,o)}get animationLink(){return s(this,b)}get direction(){return s(this,I)}get target(){return s(this,a)}get min(){return s(this,c)}set min(t){h(this,c,t),this.set(s(this,a),{equalize:!0})}get max(){return s(this,l)}set max(t){h(this,l,t),this.set(s(this,a),{equalize:!0})}get from(){return s(this,k)}get to(){return s(this,p)}get isRunning(){return s(this,f)}get currentDistance(){return Math.abs(s(this,p)-s(this,k))}get distance(){return Math.abs(s(this,l)-s(this,c))}get currentProgress(){return this.currentDistance?E.preciseNumber(Math.abs(this.current-s(this,k))/this.currentDistance,6):0}get progress(){return this.distance?E.preciseNumber(Math.abs(this.current-s(this,c))/this.distance,6):0}get entry(){return B(R({},super.entry),{from:s(this,k),to:s(this,p),currentDistance:this.currentDistance,distance:this.distance,direction:this.direction,currentProgress:this.currentProgress,progress:this.progress})}setTarget(t){h(this,I,Math.sign(t-s(this,a))),h(this,a,U.clamp(t,s(this,c),s(this,l))),h(this,k,this.current),h(this,p,t)}set(t,n){s(this,a)!==t&&(this.setTarget(t),n&&this.updateOptions(n),s(this,a)!==this.current&&this.start())}shift(t,n){this.set(s(this,a)+t,n)}reset(){this.set(this.initial,{equalize:!0}),super.reset(),s(this,o).forEach(t=>{t.targetAnimation.reset()})}close(){super.close(),this.unlistenAnimationFrame(),this.unlink(),s(this,o).clear()}listenAnimationFrame(){s(this,f).current||(s(this,f).current=!0,Q.ticker.subscribe(s(this,L),{maxFPS:s(this,D),order:s(this,M),culling:s(this,N)}))}unlistenAnimationFrame(){s(this,f).current&&(s(this,f).current=!1,Q.ticker.unsubscribe(s(this,L)),s(this,o).forEach(t=>{t.targetAnimation.unlistenAnimationFrame()}))}updateOptions(t){h(this,D,g.nullishCoalescing(t==null?void 0:t.maxFPS,s(this,D))),h(this,M,g.nullishCoalescing(t==null?void 0:t.order,s(this,M))),h(this,N,g.nullishCoalescing(t==null?void 0:t.culling,s(this,N))),h(this,c,g.nullishCoalescing(t==null?void 0:t.min,s(this,c))),h(this,l,g.nullishCoalescing(t==null?void 0:t.max,s(this,l))),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=s(this,a))}linkTo(t,n,P,A){this.unlink(),h(this,b,new nt(t,this,n,P,A))}unlink(){s(this,b)&&(s(this,b).destroy(),h(this,b,null))}start(){this.listenAnimationFrame()}}D=new WeakMap,M=new WeakMap,N=new WeakMap,f=new WeakMap,o=new WeakMap,b=new WeakMap,I=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,p=new WeakMap,L=new WeakMap;var m,q;class at extends Z{constructor(t,n){super(t,n);e(this,m,void 0);e(this,q,void 0);this.damping=20,this.stiffness=0,this.mass=0,h(this,m,0),h(this,q,0),this.updateOptions(B(R({},n),{equalize:!0}))}get velocity(){return s(this,m)}get speed(){return s(this,q)}get entry(){return B(R({},super.entry),{velocity:s(this,m),speed:s(this,q)})}updateOptions(t){this.damping=g.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=g.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=g.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}updateManually(t){this.setTarget(t),this.current=this.target}handleAnimationFrame(t){E.preciseNumber(this.current,4)===E.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const n=this.current,P=Math.abs(n-this.target);h(this,q,P/t.timeBetweenFrames);const A=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const $=(this.target-this.current)*this.stiffness-s(this,m)*this.damping;h(this,m,s(this,m)+$/this.mass*A),this.current+=s(this,m)*A}else this.current=U.damp(this.current,this.target,this.damping,A)}}m=new WeakMap,q=new WeakMap;exports.Animation=Z;exports.Damped=at;
@@ -23,43 +23,42 @@ var O = (r, i, t) => (j(r, i, "access private method"), t);
23
23
  import { c as et, d as rt } from "./math-BOBiC4TN.js";
24
24
  import { p as v } from "./number-Bo5RdrA1.js";
25
25
  import { n as g } from "./polyfills-DJUYczFm.js";
26
- import "./path-data-polyfill-DgeDWYeI.js";
27
- import { S as C } from "./Store-Cd-E5W1z.js";
26
+ import { S as C } from "./Store-BQXXikps.js";
28
27
  import { ticker as Q } from "./ticker/index.js";
29
28
  import { TICK_ORDER as ht } from "./order/index.js";
30
- var u, d, b, o, k, D, M, P, V, U, K, W, I, G, _, X, L;
29
+ var u, d, p, D, k, M, o, P, V, U, K, W, I, G, _, X, L;
31
30
  class nt {
32
- constructor(i, t, n, z, F) {
31
+ constructor(i, t, n, z, b) {
33
32
  e(this, V);
34
33
  e(this, K);
35
34
  e(this, I);
36
35
  e(this, _);
37
36
  e(this, u, void 0);
38
37
  e(this, d, void 0);
39
- e(this, b, void 0);
40
- e(this, o, void 0);
38
+ e(this, p, void 0);
39
+ e(this, D, void 0);
41
40
  e(this, k, !1);
42
- e(this, D, !1);
43
41
  e(this, M, !1);
42
+ e(this, o, !1);
44
43
  e(this, P, void 0);
45
44
  e(this, L, (i) => {
46
- !s(this, M) && s(this, u).initial !== s(this, u).current && h(this, M, !0), s(this, M) && (i.direction > 0 && i.progress >= s(this, b).current ? O(this, V, U).call(this) : i.direction < 0 && i.progress <= s(this, b).current && O(this, K, W).call(this));
45
+ !s(this, o) && s(this, u).initial !== s(this, u).current && h(this, o, !0), s(this, o) && (i.direction > 0 && i.progress >= s(this, p).current ? O(this, V, U).call(this) : i.direction < 0 && i.progress <= s(this, p).current && O(this, K, W).call(this));
47
46
  });
48
- h(this, u, i), h(this, d, t), h(this, b, new C(n, {
47
+ h(this, u, i), h(this, d, t), h(this, p, new C(n, {
49
48
  passport: t.passport ? {
50
49
  name: t.passport + "-start",
51
50
  manager: {
52
51
  type: "number"
53
52
  }
54
53
  } : void 0
55
- })), h(this, o, new C(z, {
54
+ })), h(this, D, new C(z, {
56
55
  passport: t.passport ? {
57
56
  name: t.passport + "-set",
58
57
  manager: {
59
58
  type: "number"
60
59
  }
61
60
  } : void 0
62
- })), h(this, P, F), s(this, u).subscribe(s(this, L)), s(this, u).linked.add(this);
61
+ })), h(this, P, b), s(this, u).subscribe(s(this, L)), s(this, u).linked.add(this);
63
62
  }
64
63
  get targetAnimation() {
65
64
  return s(this, d);
@@ -68,20 +67,20 @@ class nt {
68
67
  return s(this, u);
69
68
  }
70
69
  destroy() {
71
- s(this, o).close(), s(this, b).close(), s(this, u).unsubscribe(s(this, L)), s(this, u).linked.delete(this);
70
+ s(this, D).close(), s(this, p).close(), s(this, u).unsubscribe(s(this, L)), s(this, u).linked.delete(this);
72
71
  }
73
72
  }
74
- u = new WeakMap(), d = new WeakMap(), b = new WeakMap(), o = new WeakMap(), k = new WeakMap(), D = new WeakMap(), M = new WeakMap(), P = new WeakMap(), V = new WeakSet(), U = function() {
75
- s(this, k) || (h(this, D, !1), h(this, k, !0), O(this, I, G).call(this, s(this, o).current));
73
+ u = new WeakMap(), d = new WeakMap(), p = new WeakMap(), D = new WeakMap(), k = new WeakMap(), M = new WeakMap(), o = new WeakMap(), P = new WeakMap(), V = new WeakSet(), U = function() {
74
+ s(this, k) || (h(this, M, !1), h(this, k, !0), O(this, I, G).call(this, s(this, D).current));
76
75
  }, K = new WeakSet(), W = function() {
77
- s(this, k) && !s(this, D) && (h(this, k, !1), h(this, D, !0), O(this, I, G).call(this, s(this, d).initial));
76
+ s(this, k) && !s(this, M) && (h(this, k, !1), h(this, M, !0), O(this, I, G).call(this, s(this, d).initial));
78
77
  }, I = new WeakSet(), G = function(i) {
79
78
  O(this, _, X).call(this), s(this, d).updateOptions(s(this, P)), s(this, d).set(i);
80
79
  }, _ = new WeakSet(), X = function() {
81
80
  var i;
82
81
  (i = s(this, P)) != null && i.once && this.destroy();
83
82
  }, L = new WeakMap();
84
- var S, T, q, f, y, p, R, a, c, m, A, x, B;
83
+ var S, T, q, f, y, A, R, a, c, m, F, x, B;
85
84
  class at extends C {
86
85
  constructor(t, n) {
87
86
  super(t || 0, n);
@@ -90,12 +89,12 @@ class at extends C {
90
89
  e(this, q, void 0);
91
90
  e(this, f, new C(!1));
92
91
  e(this, y, /* @__PURE__ */ new Set());
93
- e(this, p, null);
92
+ e(this, A, null);
94
93
  e(this, R, 0);
95
94
  e(this, a, 0);
96
95
  e(this, c, -1 / 0);
97
96
  e(this, m, 1 / 0);
98
- e(this, A, 0);
97
+ e(this, F, 0);
99
98
  e(this, x, 1);
100
99
  e(this, B, (t) => {
101
100
  this.handleAnimationFrame(t);
@@ -105,7 +104,7 @@ class at extends C {
105
104
  return s(this, y);
106
105
  }
107
106
  get animationLink() {
108
- return s(this, p);
107
+ return s(this, A);
109
108
  }
110
109
  get direction() {
111
110
  return s(this, R);
@@ -130,7 +129,7 @@ class at extends C {
130
129
  });
131
130
  }
132
131
  get from() {
133
- return s(this, A);
132
+ return s(this, F);
134
133
  }
135
134
  get to() {
136
135
  return s(this, x);
@@ -139,14 +138,14 @@ class at extends C {
139
138
  return s(this, f);
140
139
  }
141
140
  get currentDistance() {
142
- return Math.abs(s(this, x) - s(this, A));
141
+ return Math.abs(s(this, x) - s(this, F));
143
142
  }
144
143
  get distance() {
145
144
  return Math.abs(s(this, m) - s(this, c));
146
145
  }
147
146
  get currentProgress() {
148
147
  return this.currentDistance ? v(
149
- Math.abs(this.current - s(this, A)) / this.currentDistance,
148
+ Math.abs(this.current - s(this, F)) / this.currentDistance,
150
149
  6
151
150
  ) : 0;
152
151
  }
@@ -155,7 +154,7 @@ class at extends C {
155
154
  }
156
155
  get entry() {
157
156
  return N(E({}, super.entry), {
158
- from: s(this, A),
157
+ from: s(this, F),
159
158
  to: s(this, x),
160
159
  currentDistance: this.currentDistance,
161
160
  distance: this.distance,
@@ -165,7 +164,7 @@ class at extends C {
165
164
  });
166
165
  }
167
166
  setTarget(t) {
168
- h(this, R, Math.sign(t - s(this, a))), h(this, a, et(t, s(this, c), s(this, m))), h(this, A, this.current), h(this, x, t);
167
+ h(this, R, Math.sign(t - s(this, a))), h(this, a, et(t, s(this, c), s(this, m))), h(this, F, this.current), h(this, x, t);
169
168
  }
170
169
  set(t, n) {
171
170
  s(this, a) !== t && (this.setTarget(t), n && this.updateOptions(n), s(this, a) !== this.current && this.start());
@@ -196,23 +195,23 @@ class at extends C {
196
195
  updateOptions(t) {
197
196
  h(this, S, g(t == null ? void 0 : t.maxFPS, s(this, S))), h(this, T, g(t == null ? void 0 : t.order, s(this, T))), h(this, q, g(t == null ? void 0 : t.culling, s(this, q))), h(this, c, g(t == null ? void 0 : t.min, s(this, c))), h(this, m, g(t == null ? void 0 : t.max, s(this, m))), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = s(this, a));
198
197
  }
199
- linkTo(t, n, z, F) {
200
- this.unlink(), h(this, p, new nt(
198
+ linkTo(t, n, z, b) {
199
+ this.unlink(), h(this, A, new nt(
201
200
  t,
202
201
  this,
203
202
  n,
204
203
  z,
205
- F
204
+ b
206
205
  ));
207
206
  }
208
207
  unlink() {
209
- s(this, p) && (s(this, p).destroy(), h(this, p, null));
208
+ s(this, A) && (s(this, A).destroy(), h(this, A, null));
210
209
  }
211
210
  start() {
212
211
  this.listenAnimationFrame();
213
212
  }
214
213
  }
215
- S = new WeakMap(), T = new WeakMap(), q = new WeakMap(), f = new WeakMap(), y = new WeakMap(), p = new WeakMap(), R = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), A = new WeakMap(), x = new WeakMap(), B = new WeakMap();
214
+ S = new WeakMap(), T = new WeakMap(), q = new WeakMap(), f = new WeakMap(), y = new WeakMap(), A = new WeakMap(), R = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), F = new WeakMap(), x = new WeakMap(), B = new WeakMap();
216
215
  var l, w;
217
216
  class At extends at {
218
217
  constructor(t, n) {
@@ -243,12 +242,12 @@ class At extends at {
243
242
  v(this.current, 4) === v(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
244
243
  const n = this.current, z = Math.abs(n - this.target);
245
244
  h(this, w, z / t.timeBetweenFrames);
246
- const F = t.timeBetweenFrames / 1e3;
245
+ const b = t.timeBetweenFrames / 1e3;
247
246
  if (this.mass || this.stiffness) {
248
247
  const Y = (this.target - this.current) * this.stiffness - s(this, l) * this.damping;
249
- h(this, l, s(this, l) + Y / this.mass * F), this.current += s(this, l) * F;
248
+ h(this, l, s(this, l) + Y / this.mass * b), this.current += s(this, l) * b;
250
249
  } else
251
- this.current = rt(this.current, this.target, this.damping, F);
250
+ this.current = rt(this.current, this.target, this.damping, b);
252
251
  }
253
252
  }
254
253
  l = new WeakMap(), w = new WeakMap();
@@ -1 +1 @@
1
- "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-BQGNOHlY.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-C-1ruEIm.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
- import { S as p } from "./Store-Cd-E5W1z.js";
10
+ import { S as p } from "./Store-BQXXikps.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -9,8 +9,7 @@ var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(
9
9
  }, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
10
10
  import { RESIZE_ORDER as A } from "./order/index.js";
11
11
  import { windowResizer as k } from "./window-resizer/index.js";
12
- import { S as B } from "./Store-Cd-E5W1z.js";
13
- import "./path-data-polyfill-DgeDWYeI.js";
12
+ import { S as B } from "./Store-BQXXikps.js";
14
13
  var y, g, q, u, c, d, w;
15
14
  class T {
16
15
  constructor(e) {
@@ -75,7 +74,7 @@ class O {
75
74
  }
76
75
  l = new WeakMap();
77
76
  var E, R;
78
- class G extends B {
77
+ class C extends B {
79
78
  constructor(t) {
80
79
  super(void 0);
81
80
  o(this, E, void 0);
@@ -103,7 +102,7 @@ class G extends B {
103
102
  }
104
103
  E = new WeakMap(), R = new WeakMap();
105
104
  export {
106
- G as S,
105
+ C as S,
107
106
  T as a,
108
107
  O as b
109
108
  };
@@ -0,0 +1 @@
1
+ "use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-C-1ruEIm.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
@@ -9,7 +9,6 @@ var r = (s, t, e) => (A(s, t, "read from private field"), e ? e.call(s) : t.get(
9
9
  }, i = (s, t, e, h) => (A(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
10
10
  var C = (s, t, e) => (A(s, t, "access private method"), e);
11
11
  import { i as z } from "./browser-0zX67oeU.js";
12
- import "./path-data-polyfill-DgeDWYeI.js";
13
12
  var l, d, S;
14
13
  class M {
15
14
  constructor() {
@@ -70,7 +69,7 @@ class M {
70
69
  }
71
70
  l = new WeakMap(), d = new WeakMap(), S = new WeakMap();
72
71
  const q = new M();
73
- var m, y, g, n, o, u, b, c, v, w, p, R;
72
+ var m, y, g, n, b, u, o, c, v, w, p, R;
74
73
  class I {
75
74
  constructor(t, e) {
76
75
  a(this, p);
@@ -78,13 +77,13 @@ class I {
78
77
  a(this, y, void 0);
79
78
  a(this, g, void 0);
80
79
  a(this, n, void 0);
81
- a(this, o, void 0);
82
- a(this, u, /* @__PURE__ */ new Set());
83
80
  a(this, b, void 0);
81
+ a(this, u, /* @__PURE__ */ new Set());
82
+ a(this, o, void 0);
84
83
  a(this, c, void 0);
85
84
  a(this, v, void 0);
86
85
  a(this, w, void 0);
87
- i(this, m, e == null ? void 0 : e.passport), i(this, y, t), i(this, g, void 0), i(this, n, t), i(this, o, (e == null ? void 0 : e.equalityCheck) || ((h, N) => h === N)), e != null && e.validate && this.addMiddleware(e.validate), i(this, v, (e == null ? void 0 : e.notifyAndClose) || !1), i(this, w, (e == null ? void 0 : e.invisible) || !1), i(this, b, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, m) && q.updateStore(this);
86
+ i(this, m, e == null ? void 0 : e.passport), i(this, y, t), i(this, g, void 0), i(this, n, t), i(this, b, (e == null ? void 0 : e.equalityCheck) || ((h, N) => h === N)), e != null && e.validate && this.addMiddleware(e.validate), i(this, v, (e == null ? void 0 : e.notifyAndClose) || !1), i(this, w, (e == null ? void 0 : e.invisible) || !1), i(this, o, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, m) && q.updateStore(this);
88
87
  }
89
88
  get passport() {
90
89
  return r(this, m);
@@ -99,7 +98,7 @@ class I {
99
98
  return r(this, n);
100
99
  }
101
100
  set current(t) {
102
- if (!r(this, o).call(this, r(this, n), t)) {
101
+ if (!r(this, b).call(this, r(this, n), t)) {
103
102
  if (i(this, g, r(this, n)), r(this, c))
104
103
  for (const e of r(this, c))
105
104
  t = e(t);
@@ -123,7 +122,7 @@ class I {
123
122
  (e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
124
123
  }
125
124
  subscribe(t) {
126
- return !r(this, w) && !r(this, u).size && J(this), r(this, u).add(t), r(this, b) || t(this.entry), () => {
125
+ return !r(this, w) && !r(this, u).size && J(this), r(this, u).add(t), r(this, o) || t(this.entry), () => {
127
126
  this.unsubscribe(t);
128
127
  };
129
128
  }
@@ -137,7 +136,7 @@ class I {
137
136
  r(this, u).clear(), E(this);
138
137
  }
139
138
  }
140
- m = new WeakMap(), y = new WeakMap(), g = new WeakMap(), n = new WeakMap(), o = new WeakMap(), u = new WeakMap(), b = new WeakMap(), c = new WeakMap(), v = new WeakMap(), w = new WeakMap(), p = new WeakSet(), R = function() {
139
+ m = new WeakMap(), y = new WeakMap(), g = new WeakMap(), n = new WeakMap(), b = new WeakMap(), u = new WeakMap(), o = new WeakMap(), c = new WeakMap(), v = new WeakMap(), w = new WeakMap(), p = new WeakSet(), R = function() {
141
140
  for (const t of r(this, u))
142
141
  t(this.entry);
143
142
  };
@@ -0,0 +1 @@
1
+ "use strict";var R=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(R(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(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)},i=(s,t,e,h)=>(R(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var p=(s,t,e)=>(R(s,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var l,d,S;class I{constructor(){a(this,l,null);a(this,d,"");a(this,S,"");M.isBrowser&&(i(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),n.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var h,N;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const k=(N=r(this,l))==null?void 0:N.stores.find(z=>z.name===e.name);k&&(t.current=k.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,d=new WeakMap,S=new WeakMap;const E=new I;var m,y,g,f,o,u,b,c,v,w,A,q;class j{constructor(t,e){a(this,A);a(this,m,void 0);a(this,y,void 0);a(this,g,void 0);a(this,f,void 0);a(this,o,void 0);a(this,u,new Set);a(this,b,void 0);a(this,c,void 0);a(this,v,void 0);a(this,w,void 0);i(this,m,e==null?void 0:e.passport),i(this,y,t),i(this,g,void 0),i(this,f,t),i(this,o,(e==null?void 0:e.equalityCheck)||((h,N)=>h===N)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,v,(e==null?void 0:e.notifyAndClose)||!1),i(this,w,(e==null?void 0:e.invisible)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,m)&&E.updateStore(this)}get passport(){return r(this,m)}get initial(){return r(this,y)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,o).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),p(this,A,q).call(this),r(this,v)&&this.close()}}get subscribers(){return r(this,u)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return!r(this,w)&&!r(this,u).size&&J(this),r(this,u).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,u).delete(t),r(this,u).size||C(this)}reset(){this.current=this.initial}close(){r(this,u).clear(),C(this)}}m=new WeakMap,y=new WeakMap,g=new WeakMap,f=new WeakMap,o=new WeakMap,u=new WeakMap,b=new WeakMap,c=new WeakMap,v=new WeakMap,w=new WeakMap,A=new WeakSet,q=function(){for(const t of r(this,u))t(this.entry)};const n=new j([],{invisible:!0});function J(s){n.current.includes(s)||(n.current=[...n.current,s])}function C(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
@@ -10,9 +10,8 @@ var e = (i, s, o) => (W(i, s, "read from private field"), o ? o.call(i) : s.get(
10
10
  import { RESIZE_ORDER as k } from "./order/index.js";
11
11
  import { windowResizer as A } from "./window-resizer/index.js";
12
12
  import { i as C } from "./browser-0zX67oeU.js";
13
- import "./path-data-polyfill-DgeDWYeI.js";
14
13
  import { getGPUTier as z } from "detect-gpu";
15
- import { S as O } from "./Store-Cd-E5W1z.js";
14
+ import { S as O } from "./Store-BQXXikps.js";
16
15
  var h, d, l, c, g, m, p, x, u;
17
16
  class I {
18
17
  constructor() {
@@ -81,7 +80,7 @@ class I {
81
80
  }
82
81
  }
83
82
  h = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
84
- const j = new I();
83
+ const _ = new I();
85
84
  var L = /* @__PURE__ */ ((i) => (i.mobile = "600px", i.tablet = "1024px", i.notebook = "1280px", i.desktop = "1281px", i))(L || {}), M = /* @__PURE__ */ ((i) => (i["<=mobile"] = "(max-width: 600px)", i[">=mobile"] = "(min-width: 601px)", i["<=tablet"] = "(max-width: 1024px)", i[">=tablet"] = "(min-width: 1025px)", i["<=notebook"] = "(max-width: 1280px)", i[">=notebook"] = "(min-width: 1281px)", i["<=desktop"] = "(max-width: 1280px)", i[">=desktop"] = "(min-width: 1281px)", i))(M || {}), w, f, b, r;
86
85
  class y {
87
86
  constructor() {
@@ -119,10 +118,10 @@ class y {
119
118
  }
120
119
  }
121
120
  w = new WeakMap(), f = new WeakMap(), b = new WeakMap(), r = new WeakMap();
122
- const q = new y();
121
+ const j = new y();
123
122
  export {
124
123
  L as V,
125
124
  M as a,
126
- j as d,
127
- q as v
125
+ _ as d,
126
+ j as v
128
127
  };
@@ -0,0 +1 @@
1
+ "use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-C-1ruEIm.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
@@ -1 +1 @@
1
- "use strict";var I=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var t=(s,e,i)=>(I(s,e,"read from private field"),i?i.call(s):e.get(s)),h=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},d=(s,e,i,l)=>(I(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i);var a=(s,e,i)=>(I(s,e,"access private method"),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../custom-element/index.cjs"),N=require("../attribute/index.cjs"),J=require("../browser-CpzFX2xg.cjs"),K=require("../events-Crwi8fz6.cjs"),Q=require("../style-At6aDoqG.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var U=Object.defineProperty,V=Object.getOwnPropertyDescriptor,X=(s,e,i,l)=>{for(var g=l>1?void 0:l?V(e,i):e,O=s.length-1,S;O>=0;O--)(S=s[O])&&(g=(l?S(e,i,g):S(g))||g);return l&&g&&U(e,i,g),g},$=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>($(s,e,"read from private field"),i?i.call(s):e.get(s)),L=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},q=(s,e,i,l)=>($(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i),R,W,u,T,z,P,E,r,f,n,p,k,w,v,x,F,y,b,H,A,c,m,_,M,C,D;class B{constructor(e,i){h(this,x);h(this,c);h(this,_);h(this,C);h(this,E,null);h(this,r,null);h(this,f,null);h(this,n,null);h(this,p,null);h(this,k,!1);h(this,w,void 0);h(this,v,!1);h(this,y,()=>{t(this,v)?this.close():this.open()});h(this,b,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});h(this,H,()=>{a(this,_,M).call(this,"size-change")});h(this,A,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});i.firstElementChild instanceof HTMLElement&&i.lastElementChild instanceof HTMLElement?(d(this,E,e),d(this,r,i),d(this,f,i.firstElementChild),d(this,n,i.lastElementChild),t(this,f).style.cursor="default",t(this,n).style.height="0px",t(this,n).style.overflow="hidden",d(this,p,new ResizeObserver(t(this,H))),addEventListener("resize",t(this,b)),t(this,f).addEventListener("click",t(this,y)),t(this,r).addEventListener("sizeChange",t(this,A)),t(this,r).hasAttribute("data-opened")&&this.open({skipTransition:!0})):e.removeItem(t(this,r))}get element(){return t(this,r)}destroy(){t(this,f)&&(t(this,r).classList.remove("opened","triggered"),t(this,f).style.cursor="",a(this,c,m).call(this,void 0),t(this,p).disconnect(),removeEventListener("resize",t(this,b)),t(this,f).removeEventListener("click",t(this,y)),t(this,r).removeEventListener("sizeChange",t(this,A)),clearTimeout(t(this,w)))}open(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),t(this,E).multipleAttribute.current||t(this,E).closeAll({exclude:t(this,r)}),t(this,k)||t(this,p).observe(t(this,n)),d(this,v,!0),clearTimeout(t(this,w)),t(this,r).classList.add("triggered"),a(this,c,m).call(this,t(this,n).scrollHeight),setTimeout(()=>{t(this,r).classList.add("opened")},0),a(this,_,M).call(this,"toggle")}close(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),d(this,v,!1),t(this,r).classList.remove("opened"),a(this,c,m).call(this,0),d(this,w,setTimeout(()=>{t(this,r).classList.remove("triggered")},Q.getElementTransitionDurationMS(t(this,n)))),a(this,_,M).call(this,"toggle")}}E=new WeakMap,r=new WeakMap,f=new WeakMap,n=new WeakMap,p=new WeakMap,k=new WeakMap,w=new WeakMap,v=new WeakMap,x=new WeakSet,F=function(){return t(this,r).parentElement||t(this,r).getRootNode()},y=new WeakMap,b=new WeakMap,H=new WeakMap,A=new WeakMap,c=new WeakSet,m=function(e,i=!1){i&&(t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""})),e!=null?t(this,n).style.height=`${e}px`:t(this,n).style.height=""},_=new WeakSet,M=function(e){e==="toggle"?t(this,r).dispatchEvent(new CustomEvent("accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:t(this,v)}})):e==="size-change"&&K.dispatchSizeChangeEvent(t(this,x,F))},C=new WeakSet,D=function(){t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""},50)};exports.AccordionElement=class extends G.CustomElement{constructor(){super(),L(this,z),L(this,R,new N.Attribute(this,"axis","y")),L(this,W,new N.Attribute(this,"multiple",!1)),L(this,u,[]),L(this,T,null),J.isBrowser&&q(this,T,new MutationObserver(e=>{e.forEach(i=>{i.removedNodes.forEach(l=>{l instanceof HTMLElement&&this.removeItem(l)}),i.addedNodes.forEach(l=>{l instanceof HTMLElement&&this.createItem(l)})})}))}get axisAttribute(){return o(this,R)}get multipleAttribute(){return o(this,W)}createItem(e){o(this,u).find(i=>i.element===e)||o(this,u).push(new B(this,e))}removeItem(e){q(this,u,o(this,u).filter(i=>{if(i.element!==e)return!0;i.destroy()}))}closeAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.close(e)})}openAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.open(e)})}connectedCallback(){o(this,T).observe(o(this,z,P),{childList:!0}),q(this,u,[...o(this,z,P).children].map(e=>{if(e instanceof HTMLElement)return new B(this,e)}).filter(e=>!!e))}disconnectedCallback(){o(this,T).disconnect()}};R=new WeakMap;W=new WeakMap;u=new WeakMap;T=new WeakMap;z=new WeakSet;P=function(){return this.shadowRoot?this.shadowRoot:this};exports.AccordionElement=X([G.define("e-accordion")],exports.AccordionElement);
1
+ "use strict";var I=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var t=(s,e,i)=>(I(s,e,"read from private field"),i?i.call(s):e.get(s)),h=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},d=(s,e,i,l)=>(I(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i);var a=(s,e,i)=>(I(s,e,"access private method"),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../custom-element/index.cjs"),N=require("../attribute/index.cjs"),J=require("../browser-CpzFX2xg.cjs"),K=require("../events-Crwi8fz6.cjs"),Q=require("../style-At6aDoqG.cjs");var U=Object.defineProperty,V=Object.getOwnPropertyDescriptor,X=(s,e,i,l)=>{for(var g=l>1?void 0:l?V(e,i):e,O=s.length-1,S;O>=0;O--)(S=s[O])&&(g=(l?S(e,i,g):S(g))||g);return l&&g&&U(e,i,g),g},$=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>($(s,e,"read from private field"),i?i.call(s):e.get(s)),L=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},R=(s,e,i,l)=>($(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i),W,q,u,T,z,P,E,r,f,n,p,k,w,v,x,F,y,b,H,A,c,m,_,M,C,D;class B{constructor(e,i){h(this,x);h(this,c);h(this,_);h(this,C);h(this,E,null);h(this,r,null);h(this,f,null);h(this,n,null);h(this,p,null);h(this,k,!1);h(this,w,void 0);h(this,v,!1);h(this,y,()=>{t(this,v)?this.close():this.open()});h(this,b,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});h(this,H,()=>{a(this,_,M).call(this,"size-change")});h(this,A,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});i.firstElementChild instanceof HTMLElement&&i.lastElementChild instanceof HTMLElement?(d(this,E,e),d(this,r,i),d(this,f,i.firstElementChild),d(this,n,i.lastElementChild),t(this,f).style.cursor="default",t(this,n).style.height="0px",t(this,n).style.overflow="hidden",d(this,p,new ResizeObserver(t(this,H))),addEventListener("resize",t(this,b)),t(this,f).addEventListener("click",t(this,y)),t(this,r).addEventListener("sizeChange",t(this,A)),t(this,r).hasAttribute("data-opened")&&this.open({skipTransition:!0})):e.removeItem(t(this,r))}get element(){return t(this,r)}destroy(){t(this,f)&&(t(this,r).classList.remove("opened","triggered"),t(this,f).style.cursor="",a(this,c,m).call(this,void 0),t(this,p).disconnect(),removeEventListener("resize",t(this,b)),t(this,f).removeEventListener("click",t(this,y)),t(this,r).removeEventListener("sizeChange",t(this,A)),clearTimeout(t(this,w)))}open(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),t(this,E).multipleAttribute.current||t(this,E).closeAll({exclude:t(this,r)}),t(this,k)||t(this,p).observe(t(this,n)),d(this,v,!0),clearTimeout(t(this,w)),t(this,r).classList.add("triggered"),a(this,c,m).call(this,t(this,n).scrollHeight),setTimeout(()=>{t(this,r).classList.add("opened")},0),a(this,_,M).call(this,"toggle")}close(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),d(this,v,!1),t(this,r).classList.remove("opened"),a(this,c,m).call(this,0),d(this,w,setTimeout(()=>{t(this,r).classList.remove("triggered")},Q.getElementTransitionDurationMS(t(this,n)))),a(this,_,M).call(this,"toggle")}}E=new WeakMap,r=new WeakMap,f=new WeakMap,n=new WeakMap,p=new WeakMap,k=new WeakMap,w=new WeakMap,v=new WeakMap,x=new WeakSet,F=function(){return t(this,r).parentElement||t(this,r).getRootNode()},y=new WeakMap,b=new WeakMap,H=new WeakMap,A=new WeakMap,c=new WeakSet,m=function(e,i=!1){i&&(t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""})),e!=null?t(this,n).style.height=`${e}px`:t(this,n).style.height=""},_=new WeakSet,M=function(e){e==="toggle"?t(this,r).dispatchEvent(new CustomEvent("accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:t(this,v)}})):e==="size-change"&&K.dispatchSizeChangeEvent(t(this,x,F))},C=new WeakSet,D=function(){t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""},50)};exports.AccordionElement=class extends G.CustomElement{constructor(){super(),L(this,z),L(this,W,new N.Attribute(this,"axis","y")),L(this,q,new N.Attribute(this,"multiple",!1)),L(this,u,[]),L(this,T,null),J.isBrowser&&R(this,T,new MutationObserver(e=>{e.forEach(i=>{i.removedNodes.forEach(l=>{l instanceof HTMLElement&&this.removeItem(l)}),i.addedNodes.forEach(l=>{l instanceof HTMLElement&&this.createItem(l)})})}))}get axisAttribute(){return o(this,W)}get multipleAttribute(){return o(this,q)}createItem(e){o(this,u).find(i=>i.element===e)||o(this,u).push(new B(this,e))}removeItem(e){R(this,u,o(this,u).filter(i=>{if(i.element!==e)return!0;i.destroy()}))}closeAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.close(e)})}openAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.open(e)})}connectedCallback(){o(this,T).observe(o(this,z,P),{childList:!0}),R(this,u,[...o(this,z,P).children].map(e=>{if(e instanceof HTMLElement)return new B(this,e)}).filter(e=>!!e))}disconnectedCallback(){o(this,T).disconnect()}};W=new WeakMap;q=new WeakMap;u=new WeakMap;T=new WeakMap;z=new WeakSet;P=function(){return this.shadowRoot?this.shadowRoot:this};exports.AccordionElement=X([G.define("e-accordion")],exports.AccordionElement);
@@ -13,11 +13,10 @@ import { Attribute as B } from "../attribute/index.js";
13
13
  import { i as Q } from "../browser-0zX67oeU.js";
14
14
  import { d as U } from "../events-_C2CztxR.js";
15
15
  import { a as V } from "../style-CklEF62D.js";
16
- import "../path-data-polyfill-DgeDWYeI.js";
17
16
  var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, Z = (t, e, s, o) => {
18
- for (var p = o > 1 ? void 0 : o ? Y(e, s) : e, I = t.length - 1, O; I >= 0; I--)
19
- (O = t[I]) && (p = (o ? O(e, s, p) : O(p)) || p);
20
- return o && p && X(e, s, p), p;
17
+ for (var g = o > 1 ? void 0 : o ? Y(e, s) : e, I = t.length - 1, O; I >= 0; I--)
18
+ (O = t[I]) && (g = (o ? O(e, s, g) : O(g)) || g);
19
+ return o && g && X(e, s, g), g;
21
20
  }, q = (t, e, s) => {
22
21
  if (!e.has(t))
23
22
  throw TypeError("Cannot " + s);
@@ -25,14 +24,14 @@ var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, Z = (t, e, s
25
24
  if (e.has(t))
26
25
  throw TypeError("Cannot add the same private member more than once");
27
26
  e instanceof WeakSet ? e.add(t) : e.set(t, s);
28
- }, R = (t, e, s, o) => (q(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), W, P, f, _, z, D, g, r, u, n, E, M, w, m, x, F, y, C, H, b, c, v, L, k, A, N;
27
+ }, R = (t, e, s, o) => (q(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), W, P, f, _, z, D, p, r, u, n, E, M, w, m, x, F, y, C, H, b, c, v, L, k, A, N;
29
28
  class G {
30
29
  constructor(e, s) {
31
30
  h(this, x);
32
31
  h(this, c);
33
32
  h(this, L);
34
33
  h(this, A);
35
- h(this, g, null);
34
+ h(this, p, null);
36
35
  h(this, r, null);
37
36
  h(this, u, null);
38
37
  h(this, n, null);
@@ -52,7 +51,7 @@ class G {
52
51
  h(this, b, () => {
53
52
  i(this, m) && (l(this, c, v).call(this, 0, !0), l(this, c, v).call(this, i(this, n).scrollHeight));
54
53
  });
55
- s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (d(this, g, e), d(this, r, s), d(this, u, s.firstElementChild), d(this, n, s.lastElementChild), i(this, u).style.cursor = "default", i(this, n).style.height = "0px", i(this, n).style.overflow = "hidden", d(this, E, new ResizeObserver(i(this, H))), addEventListener("resize", i(this, C)), i(this, u).addEventListener("click", i(this, y)), i(this, r).addEventListener(
54
+ s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (d(this, p, e), d(this, r, s), d(this, u, s.firstElementChild), d(this, n, s.lastElementChild), i(this, u).style.cursor = "default", i(this, n).style.height = "0px", i(this, n).style.overflow = "hidden", d(this, E, new ResizeObserver(i(this, H))), addEventListener("resize", i(this, C)), i(this, u).addEventListener("click", i(this, y)), i(this, r).addEventListener(
56
55
  "sizeChange",
57
56
  i(this, b)
58
57
  ), i(this, r).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : e.removeItem(i(this, r));
@@ -67,7 +66,7 @@ class G {
67
66
  ), clearTimeout(i(this, w)));
68
67
  }
69
68
  open(e) {
70
- e != null && e.skipTransition && l(this, A, N).call(this), i(this, g).multipleAttribute.current || i(this, g).closeAll({ exclude: i(this, r) }), i(this, M) || i(this, E).observe(i(this, n)), d(this, m, !0), clearTimeout(i(this, w)), i(this, r).classList.add("triggered"), l(this, c, v).call(this, i(this, n).scrollHeight), setTimeout(() => {
69
+ e != null && e.skipTransition && l(this, A, N).call(this), i(this, p).multipleAttribute.current || i(this, p).closeAll({ exclude: i(this, r) }), i(this, M) || i(this, E).observe(i(this, n)), d(this, m, !0), clearTimeout(i(this, w)), i(this, r).classList.add("triggered"), l(this, c, v).call(this, i(this, n).scrollHeight), setTimeout(() => {
71
70
  i(this, r).classList.add("opened");
72
71
  }, 0), l(this, L, k).call(this, "toggle");
73
72
  }
@@ -77,7 +76,7 @@ class G {
77
76
  }, V(i(this, n)))), l(this, L, k).call(this, "toggle");
78
77
  }
79
78
  }
80
- g = new WeakMap(), r = new WeakMap(), u = new WeakMap(), n = new WeakMap(), E = new WeakMap(), M = new WeakMap(), w = new WeakMap(), m = new WeakMap(), x = new WeakSet(), F = function() {
79
+ p = new WeakMap(), r = new WeakMap(), u = new WeakMap(), n = new WeakMap(), E = new WeakMap(), M = new WeakMap(), w = new WeakMap(), m = new WeakMap(), x = new WeakSet(), F = function() {
81
80
  return i(this, r).parentElement || i(this, r).getRootNode();
82
81
  }, y = new WeakMap(), C = new WeakMap(), H = new WeakMap(), b = new WeakMap(), c = new WeakSet(), v = function(e, s = !1) {
83
82
  s && (i(this, n).style.transition = "all 0s", setTimeout(() => {
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty,y=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var c=(t,i,e)=>i in t?b(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&c(t,e,i[e]);if(h)for(var e of h(i))S.call(i,e)&&c(t,e,i[e]);return t},g=(t,i)=>y(t,F(i));var q=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var s=(t,i,e)=>(q(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},l=(t,i,e,r)=>(q(t,i,"write to private field"),r?r.call(t,e):i.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Damped-CbWlWAbx.cjs"),p=require("../easings-DsS5-Kqc.cjs"),D=require("../math-GDWEqu7y.cjs"),M=require("../number-yVpzMdbQ.cjs"),A=require("../polyfills-CrcS4RcO.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var a,n;class T extends m.Animation{constructor(e,r){super(e||0,r);u(this,a,p.linear);u(this,n,1e3);this.updateOptions(g(d({},r),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,a,A.nullishCoalescing(e==null?void 0:e.easing,s(this,a))),l(this,n,A.nullishCoalescing(e==null?void 0:e.duration,s(this,n))),e!=null&&e.restart&&(this.current=this.initial)}updateManually(e){const r=e/1e3/(s(this,n)/1e3),f=s(this,a).call(this,D.clamp(r,0,1));return this.current=M.preciseNumber(this.from+(this.to-this.from)*f,6),r}handleAnimationFrame(e){this.updateManually(e.timeElapsedSinceSubscription)>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}a=new WeakMap,n=new WeakMap;exports.Animation=m.Animation;exports.Damped=m.Damped;exports.Tweened=T;
1
+ "use strict";var b=Object.defineProperty,y=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var c=(i,t,e)=>t in i?b(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,d=(i,t)=>{for(var e in t||(t={}))O.call(t,e)&&c(i,e,t[e]);if(h)for(var e of h(t))S.call(t,e)&&c(i,e,t[e]);return i},g=(i,t)=>y(i,F(t));var A=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(A(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},l=(i,t,e,a)=>(A(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Damped-DxwUBxOC.cjs"),p=require("../easings-DsS5-Kqc.cjs"),D=require("../math-GDWEqu7y.cjs"),M=require("../number-yVpzMdbQ.cjs"),f=require("../polyfills-CrcS4RcO.cjs");var r,n;class T extends m.Animation{constructor(e,a){super(e||0,a);u(this,r,p.linear);u(this,n,1e3);this.updateOptions(g(d({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,r,f.nullishCoalescing(e==null?void 0:e.easing,s(this,r))),l(this,n,f.nullishCoalescing(e==null?void 0:e.duration,s(this,n))),e!=null&&e.restart&&(this.current=this.initial)}updateManually(e){const a=e/1e3/(s(this,n)/1e3),q=s(this,r).call(this,D.clamp(a,0,1));return this.current=M.preciseNumber(this.from+(this.to-this.from)*q,6),a}handleAnimationFrame(e){this.updateManually(e.timeElapsedSinceSubscription)>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}r=new WeakMap,n=new WeakMap;exports.Animation=m.Animation;exports.Damped=m.Damped;exports.Tweened=T;
@@ -18,28 +18,27 @@ var m = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(
18
18
  if (e.has(i))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  e instanceof WeakSet ? e.add(i) : e.set(i, t);
21
- }, u = (i, e, t, r) => (f(i, e, "write to private field"), r ? r.call(i, t) : e.set(i, t), t);
22
- import { A as y } from "../Damped-BJgyFENo.js";
23
- import { D as v } from "../Damped-BJgyFENo.js";
21
+ }, u = (i, e, t, a) => (f(i, e, "write to private field"), a ? a.call(i, t) : e.set(i, t), t);
22
+ import { A as y } from "../Damped-QZAoXO5Z.js";
23
+ import { D as o } from "../Damped-QZAoXO5Z.js";
24
24
  import { l as D } from "../easings-BKi40vHz.js";
25
25
  import { c as M } from "../math-BOBiC4TN.js";
26
26
  import { p as S } from "../number-Bo5RdrA1.js";
27
27
  import { n as p } from "../polyfills-DJUYczFm.js";
28
- import "../path-data-polyfill-DgeDWYeI.js";
29
- var a, s;
28
+ var r, s;
30
29
  class T extends y {
31
- constructor(t, r) {
32
- super(t || 0, r);
33
- n(this, a, D);
30
+ constructor(t, a) {
31
+ super(t || 0, a);
32
+ n(this, r, D);
34
33
  n(this, s, 1e3);
35
- this.updateOptions(d(c({}, r), { equalize: !0 }));
34
+ this.updateOptions(d(c({}, a), { equalize: !0 }));
36
35
  }
37
36
  updateOptions(t) {
38
- super.updateOptions(t), u(this, a, p(t == null ? void 0 : t.easing, m(this, a))), u(this, s, p(t == null ? void 0 : t.duration, m(this, s))), t != null && t.restart && (this.current = this.initial);
37
+ super.updateOptions(t), u(this, r, p(t == null ? void 0 : t.easing, m(this, r))), u(this, s, p(t == null ? void 0 : t.duration, m(this, s))), t != null && t.restart && (this.current = this.initial);
39
38
  }
40
39
  updateManually(t) {
41
- const r = t / 1e3 / (m(this, s) / 1e3), A = m(this, a).call(this, M(r, 0, 1));
42
- return this.current = S(this.from + (this.to - this.from) * A, 6), r;
40
+ const a = t / 1e3 / (m(this, s) / 1e3), A = m(this, r).call(this, M(a, 0, 1));
41
+ return this.current = S(this.from + (this.to - this.from) * A, 6), a;
43
42
  }
44
43
  handleAnimationFrame(t) {
45
44
  this.updateManually(t.timeElapsedSinceSubscription) > 1 && this.unlistenAnimationFrame();
@@ -48,9 +47,9 @@ class T extends y {
48
47
  this.unlistenAnimationFrame(), this.listenAnimationFrame();
49
48
  }
50
49
  }
51
- a = new WeakMap(), s = new WeakMap();
50
+ r = new WeakMap(), s = new WeakMap();
52
51
  export {
53
52
  y as Animation,
54
- v as Damped,
53
+ o as Damped,
55
54
  T as Tweened
56
55
  };
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../Store-BQGNOHlY.cjs"),y=require("../attributes-Bf2svn4j.cjs"),A=require("../browser-CpzFX2xg.cjs"),S=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,u,c,o,d;class p extends q.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),A.isBrowser&&(a(this,i,S.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=y.parseAttributeValue(e))};exports.Attribute=p;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-C-1ruEIm.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,c,o,d;class p extends y.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),S.isBrowser&&(a(this,i,q.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=A.parseAttributeValue(e))};exports.Attribute=p;
@@ -2,28 +2,27 @@ var v = (e, t, s) => {
2
2
  if (!t.has(e))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var r = (e, t, s) => (v(e, t, "read from private field"), s ? s.call(e) : t.get(e)), c = (e, t, s) => {
5
+ var r = (e, t, s) => (v(e, t, "read from private field"), s ? s.call(e) : t.get(e)), h = (e, t, s) => {
6
6
  if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
9
  }, a = (e, t, s, b) => (v(e, t, "write to private field"), b ? b.call(e, s) : t.set(e, s), s);
10
10
  var f = (e, t, s) => (v(e, t, "access private method"), s);
11
- import { S as g } from "../Store-Cd-E5W1z.js";
11
+ import { S as g } from "../Store-BQXXikps.js";
12
12
  import { p as A } from "../attributes-69we3byR.js";
13
13
  import { i as y } from "../browser-0zX67oeU.js";
14
14
  import { g as S } from "../dom-0S_WDL4g.js";
15
- import "../path-data-polyfill-DgeDWYeI.js";
16
- var i, u, o, h, l;
17
- class M extends g {
15
+ var i, u, c, o, l;
16
+ class B extends g {
18
17
  constructor(s, b, d, n) {
19
18
  super(d, n);
20
- c(this, h);
21
- c(this, i, null);
22
- c(this, u, void 0);
23
- c(this, o, null);
24
- a(this, u, b), y && (a(this, i, S(s)), a(this, o, new MutationObserver((m) => {
19
+ h(this, o);
20
+ h(this, i, null);
21
+ h(this, u, void 0);
22
+ h(this, c, null);
23
+ a(this, u, b), y && (a(this, i, S(s)), a(this, c, new MutationObserver((m) => {
25
24
  m.forEach((p) => {
26
- p.type === "attributes" && p.attributeName === r(this, u) && f(this, h, l).call(this);
25
+ p.type === "attributes" && p.attributeName === r(this, u) && f(this, o, l).call(this);
27
26
  });
28
27
  })), n != null && n.sync && this.subscribe((m) => {
29
28
  r(this, i).setAttribute(r(this, u), m.current.toString());
@@ -37,21 +36,21 @@ class M extends g {
37
36
  super.unsubscribe(s), this.unobserve();
38
37
  }
39
38
  observe() {
40
- !this.subscribers.size && (r(this, o).observe(r(this, i), {
39
+ !this.subscribers.size && (r(this, c).observe(r(this, i), {
41
40
  attributes: !0
42
- }), f(this, h, l).call(this));
41
+ }), f(this, o, l).call(this));
43
42
  }
44
43
  unobserve() {
45
- this.subscribers.size || r(this, o).disconnect();
44
+ this.subscribers.size || r(this, c).disconnect();
46
45
  }
47
46
  close() {
48
47
  super.close(), this.unobserve();
49
48
  }
50
49
  }
51
- i = new WeakMap(), u = new WeakMap(), o = new WeakMap(), h = new WeakSet(), l = function() {
50
+ i = new WeakMap(), u = new WeakMap(), c = new WeakMap(), o = new WeakSet(), l = function() {
52
51
  const s = r(this, i).getAttribute(r(this, u));
53
52
  s != null && (this.current = A(s));
54
53
  };
55
54
  export {
56
- M as Attribute
55
+ B as Attribute
57
56
  };