aptechka 0.82.4 → 0.82.6

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 (134) hide show
  1. package/lib/{Animation-DxtCzFP3.js → Animation-BzTjZIE-.js} +2 -2
  2. package/lib/{Animation-jmvFcNfM.cjs → Animation-C39Ah-LM.cjs} +1 -1
  3. package/lib/{Composed-DtS09lSU.js → Composed-C-mnUGX6.js} +2 -2
  4. package/lib/{Composed-CSeUTRCg.cjs → Composed-RFcm2x5c.cjs} +1 -1
  5. package/lib/{Damped-DMnIOXpC.js → Damped-CRusiRIV.js} +2 -2
  6. package/lib/{Damped-77Urmi3q.cjs → Damped-Prr0iKu1.cjs} +1 -1
  7. package/lib/{DerivedArray-B8A0-8uT.cjs → DerivedArray-DdCR-Oy7.cjs} +1 -1
  8. package/lib/{DerivedArray-DG9iR0mf.js → DerivedArray-opbeygTL.js} +1 -1
  9. package/lib/{DragControls-BlL26P1V.cjs → DragControls-8rNZwQrs.cjs} +1 -1
  10. package/lib/{DragControls-DCC8iEOR.js → DragControls-DBNdMBA4.js} +4 -4
  11. package/lib/{LocalLinks-Bua7BGRF.cjs → LocalLinks-Baf0xWZ3.cjs} +1 -1
  12. package/lib/{LocalLinks-TQkTpAMx.js → LocalLinks-Z9pxKguG.js} +2 -2
  13. package/lib/{PageAnnouncerElement-sfh0_4vl.js → PageAnnouncerElement-0LxZjtVH.js} +1 -1
  14. package/lib/{PageAnnouncerElement-C4k2kDJ5.cjs → PageAnnouncerElement-AQ0Ja6HM.cjs} +1 -1
  15. package/lib/{PageScroll-cQ3B5-6N.js → PageScroll-0LxFblry.js} +1 -1
  16. package/lib/{PageScroll-C7QBpx0G.cjs → PageScroll-BXJUQwG7.cjs} +1 -1
  17. package/lib/{SourceElement-TzgPNQOd.cjs → SourceElement-BHqPFbna.cjs} +1 -1
  18. package/lib/{SourceElement-BQ7g2KWK.js → SourceElement-DjbHjynf.js} +2 -2
  19. package/lib/{Store-1JrMCgdX.cjs → Store-Blf4msDz.cjs} +1 -1
  20. package/lib/{Store-CgQ3ReoB.js → Store-ZThXYBQd.js} +1 -1
  21. package/lib/{Tweened-lT68VACv.js → Tweened-Bw1Cn1PJ.js} +2 -2
  22. package/lib/{Tweened-CXQrFQth.cjs → Tweened-DWtk9E-O.cjs} +1 -1
  23. package/lib/{Viewport-Cx50Hufs.cjs → Viewport-BxCr0GlB.cjs} +1 -1
  24. package/lib/{Viewport-DGnJ31b4.js → Viewport-Dt-d9DPi.js} +2 -2
  25. package/lib/accordion/index.cjs +1 -1
  26. package/lib/accordion/index.js +1 -1
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.js +3 -3
  29. package/lib/attribute/index.cjs +1 -1
  30. package/lib/attribute/index.js +3 -3
  31. package/lib/billboard/index.cjs +1 -1
  32. package/lib/billboard/index.js +2 -2
  33. package/lib/canvas/index.cjs +1 -1
  34. package/lib/canvas/index.js +2 -2
  35. package/lib/controls/index.cjs +1 -1
  36. package/lib/controls/index.js +1 -1
  37. package/lib/css-property/index.cjs +1 -1
  38. package/lib/css-property/index.js +3 -3
  39. package/lib/css-value-parser/index.cjs +1 -1
  40. package/lib/css-value-parser/index.js +1 -1
  41. package/lib/dev/index.cjs +1 -1
  42. package/lib/dev/index.js +2 -2
  43. package/lib/device/index.cjs +1 -1
  44. package/lib/device/index.js +1 -1
  45. package/lib/dom-BETkVSSZ.js +82 -0
  46. package/lib/dom-CBLlqORw.cjs +1 -0
  47. package/lib/element-linked-store/index.cjs +1 -1
  48. package/lib/element-linked-store/index.js +2 -2
  49. package/lib/element-resizer/index.cjs +1 -1
  50. package/lib/element-resizer/index.js +2 -2
  51. package/lib/en3/index.cjs +1 -1
  52. package/lib/en3/index.js +2 -2
  53. package/lib/iframe/index.cjs +1 -1
  54. package/lib/iframe/index.js +3 -3
  55. package/lib/image/index.cjs +1 -1
  56. package/lib/image/index.js +4 -4
  57. package/lib/{index-CKTweR3M.cjs → index-OE2INULi.cjs} +1 -1
  58. package/lib/{index-LReFyN6i.js → index-e9eDuagL.js} +1 -1
  59. package/lib/intersector/index.cjs +1 -1
  60. package/lib/intersector/index.js +2 -2
  61. package/lib/jsx/index.cjs +1 -1
  62. package/lib/jsx/index.js +6 -6
  63. package/lib/ladder/index.cjs +1 -1
  64. package/lib/ladder/index.js +2 -2
  65. package/lib/layout-box/index.cjs +1 -1
  66. package/lib/layout-box/index.js +2 -2
  67. package/lib/loading/index.cjs +1 -1
  68. package/lib/loading/index.js +1 -1
  69. package/lib/local-links/index.cjs +1 -1
  70. package/lib/local-links/index.js +1 -1
  71. package/lib/masonry-layout/index.cjs +1 -1
  72. package/lib/masonry-layout/index.js +2 -2
  73. package/lib/media/index.cjs +1 -1
  74. package/lib/media/index.js +2 -2
  75. package/lib/morph/index.cjs +1 -1
  76. package/lib/morph/index.js +293 -300
  77. package/lib/{morph-BQErz7qP.js → morph-D_ybmXWR.js} +8 -8
  78. package/lib/need_redo_tweaker/index.cjs +1 -1
  79. package/lib/need_redo_tweaker/index.js +3 -3
  80. package/lib/page-announcer/index.cjs +1 -1
  81. package/lib/page-announcer/index.js +1 -1
  82. package/lib/page-scroll/index.cjs +1 -1
  83. package/lib/page-scroll/index.js +1 -1
  84. package/lib/pixel-perfect/index.cjs +1 -1
  85. package/lib/pixel-perfect/index.js +3 -3
  86. package/lib/pointer/index.cjs +1 -1
  87. package/lib/pointer/index.js +4 -4
  88. package/lib/popover/index.cjs +1 -1
  89. package/lib/popover/index.js +2 -2
  90. package/lib/radio/index.cjs +1 -1
  91. package/lib/radio/index.js +1 -1
  92. package/lib/render-1u700s93.js +212 -0
  93. package/lib/render-BIOfUddT.cjs +1 -0
  94. package/lib/router/Route.d.ts +9 -0
  95. package/lib/router/index.cjs +1 -1
  96. package/lib/router/index.js +154 -139
  97. package/lib/scroll/index.cjs +1 -1
  98. package/lib/scroll/index.js +8 -8
  99. package/lib/{scroll-DxcPU0vk.cjs → scroll-BA2WnUrb.cjs} +1 -1
  100. package/lib/{scroll-jcbHDexr.js → scroll-DY5senkF.js} +2 -2
  101. package/lib/scroll-entries/index.cjs +1 -1
  102. package/lib/scroll-entries/index.js +1 -1
  103. package/lib/scroll-kit/index.cjs +1 -1
  104. package/lib/scroll-kit/index.js +4 -4
  105. package/lib/sequence/index.cjs +1 -1
  106. package/lib/sequence/index.js +3 -3
  107. package/lib/size-element/index.cjs +1 -1
  108. package/lib/size-element/index.js +1 -1
  109. package/lib/slicer/index.cjs +1 -1
  110. package/lib/slicer/index.js +1 -1
  111. package/lib/source/index.cjs +1 -1
  112. package/lib/source/index.js +1 -1
  113. package/lib/spa/index.cjs +1 -1
  114. package/lib/spa/index.js +5 -5
  115. package/lib/store/index.cjs +1 -1
  116. package/lib/store/index.js +3 -3
  117. package/lib/{stylesheet-BcwbfhBp.cjs → stylesheet-5_o7PFzM.cjs} +1 -1
  118. package/lib/{stylesheet-DbHOxtjw.js → stylesheet-DdBzowZY.js} +1 -1
  119. package/lib/ticker/index.cjs +1 -1
  120. package/lib/ticker/index.js +2 -2
  121. package/lib/utils/dom.d.ts +3 -0
  122. package/lib/utils/index.cjs +1 -1
  123. package/lib/utils/index.js +129 -126
  124. package/lib/video/index.cjs +1 -1
  125. package/lib/video/index.js +3 -3
  126. package/lib/window-resizer/index.cjs +1 -1
  127. package/lib/window-resizer/index.js +1 -1
  128. package/lib/youtube/index.cjs +1 -1
  129. package/lib/youtube/index.js +3 -3
  130. package/package.json +1 -1
  131. package/lib/dom-BIeVMHfK.js +0 -57
  132. package/lib/dom-hTEdqeoj.cjs +0 -1
  133. package/lib/render-B3Hf-O7M.js +0 -205
  134. package/lib/render-BWjKu0M_.cjs +0 -1
@@ -3,12 +3,12 @@ var q = (r) => {
3
3
  };
4
4
  var S = (r, h, t) => h.has(r) || q("Cannot " + t);
5
5
  var e = (r, h, t) => (S(r, h, "read from private field"), t ? t.call(r) : h.get(r)), a = (r, h, t) => h.has(r) ? q("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(r) : h.set(r, t), i = (r, h, t, u) => (S(r, h, "write to private field"), u ? u.call(r, t) : h.set(r, t), t), z = (r, h, t) => (S(r, h, "access private method"), t);
6
- import { S as I } from "./Store-CgQ3ReoB.js";
6
+ import { S as I } from "./Store-ZThXYBQd.js";
7
7
  import { c as R } from "./math-BOBiC4TN.js";
8
8
  import { p as P } from "./number-CumqY64S.js";
9
9
  import { n as A } from "./polyfills-DJrTJQky.js";
10
10
  import "construct-style-sheets-polyfill";
11
- import "./index-LReFyN6i.js";
11
+ import "./index-e9eDuagL.js";
12
12
  import { ticker as y } from "./ticker/index.js";
13
13
  import { TICK_ORDER as N } from "./order/index.js";
14
14
  var g, d, b, l, F, s, n, c, m, f, M, O, x;
@@ -1 +1 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var S=(i,h,e)=>h.has(i)||C("Cannot "+e);var t=(i,h,e)=>(S(i,h,"read from private field"),e?e.call(i):h.get(i)),u=(i,h,e)=>h.has(i)?C("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(i):h.set(i,e),r=(i,h,e,a)=>(S(i,h,"write to private field"),a?a.call(i,e):h.set(i,e),e),M=(i,h,e)=>(S(i,h,"access private method"),e);const y=require("./Store-1JrMCgdX.cjs"),N=require("./math-GDWEqu7y.cjs"),z=require("./number-ChAm68cm.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");const I=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,s,l,c,n,g,x,P,F;class R extends y.Store{constructor(e,a){super(e||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,s,0);u(this,l,-1/0);u(this,c,1/0);u(this,n,0);u(this,g,null);u(this,F,e=>{this.handleAnimationFrame(e)});r(this,s,this.current)}get direction(){return t(this,A)}get target(){return t(this,s)}get min(){return t(this,l)}set min(e){r(this,l,e),this.set(t(this,s),{equalize:!0})}get max(){return t(this,c)}set max(e){r(this,c,e),this.set(t(this,s),{equalize:!0})}get from(){return t(this,n)}get isRunning(){return t(this,m)}get delta(){return Math.abs(t(this,s)-t(this,n))}get deltaProgress(){return this.delta?z.preciseNumber(Math.abs(this.current-t(this,n))/this.delta,6):0}get distance(){return Math.abs(t(this,c)-t(this,l))}get distanceProgress(){return this.distance?z.preciseNumber(Math.abs(this.current-t(this,l))/this.distance,6):0}set(e,a){(t(this,s)!==e||a!=null&&a.restart)&&(r(this,g,e),this.updateOptions(a),r(this,g,null),t(this,s)!==this.current&&this.start())}shift(e,a){this.set(t(this,s)+e,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,m).current||(t(this,m).current=!0,I.ticker.subscribe(t(this,F),{maxFPS:t(this,d),order:t(this,f),culling:t(this,b)}))}unlistenAnimationFrame(){t(this,m).current&&(t(this,m).current=!1,I.ticker.unsubscribe(t(this,F)))}updateOptions(e){r(this,d,q.nullishCoalescing(e==null?void 0:e.maxFPS,t(this,d))),r(this,f,q.nullishCoalescing(e==null?void 0:e.order,t(this,f))),r(this,b,q.nullishCoalescing(e==null?void 0:e.culling,t(this,b))),r(this,l,q.nullishCoalescing(e==null?void 0:e.min,t(this,l))),r(this,c,q.nullishCoalescing(e==null?void 0:e.max,t(this,c))),M(this,x,P).call(this,typeof t(this,g)=="number"?t(this,g):t(this,s)),e!=null&&e.equalize&&!(e!=null&&e.restart)&&(this.unlistenAnimationFrame(),this.current=r(this,n,t(this,s))),e!=null&&e.restart&&(this.unlistenAnimationFrame(),this.current=r(this,n,this.initial),e!=null&&e.equalize&&(this.current=r(this,n,t(this,s)))),typeof(e==null?void 0:e.current)=="number"&&r(this,n,this.current=e.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,n=new WeakMap,g=new WeakMap,x=new WeakSet,P=function(e){r(this,A,Math.sign(e-t(this,s))),r(this,s,N.clamp(e,t(this,l),t(this,c))),r(this,n,this.current)},F=new WeakMap;exports.Animation=R;
1
+ "use strict";var C=i=>{throw TypeError(i)};var S=(i,h,e)=>h.has(i)||C("Cannot "+e);var t=(i,h,e)=>(S(i,h,"read from private field"),e?e.call(i):h.get(i)),u=(i,h,e)=>h.has(i)?C("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(i):h.set(i,e),r=(i,h,e,a)=>(S(i,h,"write to private field"),a?a.call(i,e):h.set(i,e),e),M=(i,h,e)=>(S(i,h,"access private method"),e);const y=require("./Store-Blf4msDz.cjs"),N=require("./math-GDWEqu7y.cjs"),z=require("./number-ChAm68cm.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const I=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,s,l,c,n,g,x,P,F;class R extends y.Store{constructor(e,a){super(e||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,s,0);u(this,l,-1/0);u(this,c,1/0);u(this,n,0);u(this,g,null);u(this,F,e=>{this.handleAnimationFrame(e)});r(this,s,this.current)}get direction(){return t(this,A)}get target(){return t(this,s)}get min(){return t(this,l)}set min(e){r(this,l,e),this.set(t(this,s),{equalize:!0})}get max(){return t(this,c)}set max(e){r(this,c,e),this.set(t(this,s),{equalize:!0})}get from(){return t(this,n)}get isRunning(){return t(this,m)}get delta(){return Math.abs(t(this,s)-t(this,n))}get deltaProgress(){return this.delta?z.preciseNumber(Math.abs(this.current-t(this,n))/this.delta,6):0}get distance(){return Math.abs(t(this,c)-t(this,l))}get distanceProgress(){return this.distance?z.preciseNumber(Math.abs(this.current-t(this,l))/this.distance,6):0}set(e,a){(t(this,s)!==e||a!=null&&a.restart)&&(r(this,g,e),this.updateOptions(a),r(this,g,null),t(this,s)!==this.current&&this.start())}shift(e,a){this.set(t(this,s)+e,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,m).current||(t(this,m).current=!0,I.ticker.subscribe(t(this,F),{maxFPS:t(this,d),order:t(this,f),culling:t(this,b)}))}unlistenAnimationFrame(){t(this,m).current&&(t(this,m).current=!1,I.ticker.unsubscribe(t(this,F)))}updateOptions(e){r(this,d,q.nullishCoalescing(e==null?void 0:e.maxFPS,t(this,d))),r(this,f,q.nullishCoalescing(e==null?void 0:e.order,t(this,f))),r(this,b,q.nullishCoalescing(e==null?void 0:e.culling,t(this,b))),r(this,l,q.nullishCoalescing(e==null?void 0:e.min,t(this,l))),r(this,c,q.nullishCoalescing(e==null?void 0:e.max,t(this,c))),M(this,x,P).call(this,typeof t(this,g)=="number"?t(this,g):t(this,s)),e!=null&&e.equalize&&!(e!=null&&e.restart)&&(this.unlistenAnimationFrame(),this.current=r(this,n,t(this,s))),e!=null&&e.restart&&(this.unlistenAnimationFrame(),this.current=r(this,n,this.initial),e!=null&&e.equalize&&(this.current=r(this,n,t(this,s)))),typeof(e==null?void 0:e.current)=="number"&&r(this,n,this.current=e.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,n=new WeakMap,g=new WeakMap,x=new WeakSet,P=function(e){r(this,A,Math.sign(e-t(this,s))),r(this,s,N.clamp(e,t(this,l),t(this,c))),r(this,n,this.current)},F=new WeakMap;exports.Animation=R;
@@ -3,10 +3,10 @@ var m = (e) => {
3
3
  };
4
4
  var p = (e, r, s) => r.has(e) || m("Cannot " + s);
5
5
  var t = (e, r, s) => (p(e, r, "read from private field"), s ? s.call(e) : r.get(e)), h = (e, r, s) => r.has(e) ? m("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), o = (e, r, s, c) => (p(e, r, "write to private field"), c ? c.call(e, s) : r.set(e, s), s);
6
- import { S as d } from "./Store-CgQ3ReoB.js";
6
+ import { S as d } from "./Store-ZThXYBQd.js";
7
7
  import { d as g } from "./function-C10DGppn.js";
8
8
  import "construct-style-sheets-polyfill";
9
- import "./index-LReFyN6i.js";
9
+ import "./index-e9eDuagL.js";
10
10
  var a;
11
11
  class R extends d {
12
12
  constructor(s, c, u) {
@@ -1 +1 @@
1
- "use strict";var x=s=>{throw TypeError(s)};var S=(s,r,e)=>r.has(s)||x("Cannot "+e);var t=(s,r,e)=>(S(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>r.has(s)?x("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),o=(s,r,e,c)=>(S(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);const a=require("./Store-1JrMCgdX.cjs"),q=require("./function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");var l;class g extends a.Store{constructor(e,c,u){super(null,u);n(this,l);o(this,l,e.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),t(this,l).call(this)}}l=new WeakMap;var d,i,h;class m extends a.Store{constructor(e,c,u){super(e,u);n(this,d);n(this,i);n(this,h,0);o(this,i,new a.Store(!1)),o(this,d,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return t(this,i)}refetch(){t(this,i).current=!0,o(this,h,t(this,h)+1);const e=t(this,h);t(this,d).call(this).then(c=>{e===t(this,h)&&(t(this,i).current=!1,this.current=c)})}}d=new WeakMap,i=new WeakMap,h=new WeakMap;var f;class C extends a.Store{constructor(e,c,u){super(null,u);n(this,f,[]);const b=q.debounce(()=>{this.current=c()},0);e.forEach(p=>{t(this,f).push(p.subscribe(()=>{b()}))})}close(){super.close(),t(this,f).forEach(e=>e())}}f=new WeakMap;exports.Composed=C;exports.Derived=g;exports.Resource=m;
1
+ "use strict";var x=s=>{throw TypeError(s)};var S=(s,r,e)=>r.has(s)||x("Cannot "+e);var t=(s,r,e)=>(S(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>r.has(s)?x("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),o=(s,r,e,c)=>(S(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);const a=require("./Store-Blf4msDz.cjs"),q=require("./function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");var l;class g extends a.Store{constructor(e,c,u){super(null,u);n(this,l);o(this,l,e.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),t(this,l).call(this)}}l=new WeakMap;var d,i,h;class m extends a.Store{constructor(e,c,u){super(e,u);n(this,d);n(this,i);n(this,h,0);o(this,i,new a.Store(!1)),o(this,d,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return t(this,i)}refetch(){t(this,i).current=!0,o(this,h,t(this,h)+1);const e=t(this,h);t(this,d).call(this).then(c=>{e===t(this,h)&&(t(this,i).current=!1,this.current=c)})}}d=new WeakMap,i=new WeakMap,h=new WeakMap;var f;class C extends a.Store{constructor(e,c,u){super(null,u);n(this,f,[]);const b=q.debounce(()=>{this.current=c()},0);e.forEach(p=>{t(this,f).push(p.subscribe(()=>{b()}))})}close(){super.close(),t(this,f).forEach(e=>e())}}f=new WeakMap;exports.Composed=C;exports.Derived=g;exports.Resource=m;
@@ -19,8 +19,8 @@ import { d as D } from "./math-BOBiC4TN.js";
19
19
  import { p as F } from "./number-CumqY64S.js";
20
20
  import { n as u } from "./polyfills-DJrTJQky.js";
21
21
  import "construct-style-sheets-polyfill";
22
- import "./index-LReFyN6i.js";
23
- import { A as q } from "./Animation-DxtCzFP3.js";
22
+ import "./index-e9eDuagL.js";
23
+ import { A as q } from "./Animation-BzTjZIE-.js";
24
24
  var i, h;
25
25
  class G extends q {
26
26
  constructor(t, r) {
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},q=(t,e)=>C(t,O(e));var p=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(p(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(p(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-ChAm68cm.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");const D=require("./Animation-jmvFcNfM.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(q(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
1
+ "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},q=(t,e)=>C(t,O(e));var p=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(p(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(p(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-ChAm68cm.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const D=require("./Animation-C39Ah-LM.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(q(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
@@ -1 +1 @@
1
- "use strict";var g=e=>{throw TypeError(e)};var D=(e,r,s)=>r.has(e)||g("Cannot "+s);var d=(e,r,s)=>(D(e,r,"read from private field"),s?s.call(e):r.get(e)),h=(e,r,s)=>r.has(e)?g("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),f=(e,r,s,i)=>(D(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);const j=require("./Store-1JrMCgdX.cjs");var v,b;class p extends j.Store{constructor(s,i,t){super(null,t);h(this,v);h(this,b);f(this,b,!!(t!=null&&t.revalidateAll)),f(this,v,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var c,n;return!d(this,b)&&((c=this.current)!=null&&c.length)&&((n=l.previous)!=null&&n.length)&&l.previous[a]===u?this.current[a]:i(u,a,o)})}))}close(){super.close(),d(this,v).call(this)}}v=new WeakMap,b=new WeakMap;var k,A;class x extends j.Store{constructor(s,i,t){super(null,t);h(this,k);h(this,A);f(this,A,!!(t!=null&&t.revalidateAll)),f(this,k,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var n;if(!d(this,A)){const S=(n=l.previous)==null?void 0:n.find(y=>y.key===u.key&&JSON.stringify(y)===JSON.stringify(u));if(S){const y=this.current.find(_=>typeof _=="object"&&_&&"__key"in _&&_.__key===S.key);if(y)return y}}const c=i(u,a,o);return c&&typeof c=="object"&&(c.__key=u.key),c})}))}close(){super.close(),d(this,k).call(this)}}k=new WeakMap,A=new WeakMap;exports.DerivedArray=p;exports.DerivedKeyedArray=x;
1
+ "use strict";var g=e=>{throw TypeError(e)};var D=(e,r,s)=>r.has(e)||g("Cannot "+s);var d=(e,r,s)=>(D(e,r,"read from private field"),s?s.call(e):r.get(e)),h=(e,r,s)=>r.has(e)?g("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),f=(e,r,s,i)=>(D(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);const j=require("./Store-Blf4msDz.cjs");var v,b;class p extends j.Store{constructor(s,i,t){super(null,t);h(this,v);h(this,b);f(this,b,!!(t!=null&&t.revalidateAll)),f(this,v,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var c,n;return!d(this,b)&&((c=this.current)!=null&&c.length)&&((n=l.previous)!=null&&n.length)&&l.previous[a]===u?this.current[a]:i(u,a,o)})}))}close(){super.close(),d(this,v).call(this)}}v=new WeakMap,b=new WeakMap;var k,A;class x extends j.Store{constructor(s,i,t){super(null,t);h(this,k);h(this,A);f(this,A,!!(t!=null&&t.revalidateAll)),f(this,k,s.subscribe(l=>{this.current=l.current.map((u,a,o)=>{var n;if(!d(this,A)){const S=(n=l.previous)==null?void 0:n.find(y=>y.key===u.key&&JSON.stringify(y)===JSON.stringify(u));if(S){const y=this.current.find(_=>typeof _=="object"&&_&&"__key"in _&&_.__key===S.key);if(y)return y}}const c=i(u,a,o);return c&&typeof c=="object"&&(c.__key=u.key),c})}))}close(){super.close(),d(this,k).call(this)}}k=new WeakMap,A=new WeakMap;exports.DerivedArray=p;exports.DerivedKeyedArray=x;
@@ -3,7 +3,7 @@ var p = (e) => {
3
3
  };
4
4
  var S = (e, r, s) => r.has(e) || p("Cannot " + s);
5
5
  var f = (e, r, s) => (S(e, r, "read from private field"), s ? s.call(e) : r.get(e)), y = (e, r, s) => r.has(e) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), d = (e, r, s, c) => (S(e, r, "write to private field"), c ? c.call(e, s) : r.set(e, s), s);
6
- import { S as m } from "./Store-CgQ3ReoB.js";
6
+ import { S as m } from "./Store-ZThXYBQd.js";
7
7
  var b, v;
8
8
  class j extends m {
9
9
  constructor(s, c, t) {
@@ -1 +1 @@
1
- "use strict";var p=n=>{throw TypeError(n)};var G=(n,a,e)=>a.has(n)||p("Cannot "+e);var t=(n,a,e)=>(G(n,a,"read from private field"),e?e.call(n):a.get(n)),s=(n,a,e)=>a.has(n)?p("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,e),i=(n,a,e,h)=>(G(n,a,"write to private field"),h?h.call(n,e):a.set(n,e),e),T=(n,a,e)=>(G(n,a,"access private method"),e);const w=require("./index-CKTweR3M.cjs"),_=require("./dom-hTEdqeoj.cjs");require("construct-style-sheets-polyfill");const B=require("./ticker/index.cjs");require("./Store-1JrMCgdX.cjs");const ee=require("./easings-GegIwET5.cjs"),te=require("./Tweened-CXQrFQth.cjs"),ie=require("./gestures-C7gbKx11.cjs"),se=require("./number-ChAm68cm.cjs"),he=require("./order/index.cjs"),ne=require("./notifier/index.cjs");var j;class F{constructor(){s(this,j,new ne.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var y,c,u,R;class re extends F{constructor(e){super();s(this,y,null);s(this,c,null);s(this,u,"offsetHeight");s(this,R,e=>{const h=e.shiftKey?-1:1;let r;e.code==="Space"?r=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?r=1*t(this,c)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r,e))});w.isBrowser&&(i(this,y,e!=null&&e.element&&_.getElement(e.element)||window),i(this,c,t(this,y)instanceof HTMLElement?t(this,y):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,y).addEventListener("keydown",t(this,R))}disconnect(){w.isBrowser&&t(this,y).removeEventListener("keydown",t(this,R))}}y=new WeakMap,c=new WeakMap,u=new WeakMap,R=new WeakMap;var E,v,X,Y,d,A,m,b,V,J,D,O,I;class ae extends F{constructor(e){super();s(this,b);s(this,E);s(this,v);s(this,X);s(this,Y);s(this,d);s(this,A);s(this,m);s(this,D);s(this,O);s(this,I);this.direction=1,i(this,d,new te.Tweened(0,{easing:ee.easeInQuad})),i(this,m,!1),i(this,D,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,E)*this.direction*(1-t(this,d).current),h)}),i(this,O,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,E))*this.direction*(1-t(this,d).current),null)}),i(this,I,()=>{t(this,v)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,E,(e==null?void 0:e.speed)||1),i(this,v,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,v,e),t(this,m)&&T(this,b,V).call(this)}set speed(e){i(this,E,e),t(this,m)&&T(this,b,V).call(this)}connect(){t(this,m)||(i(this,m,!0),T(this,b,V).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),T(this,b,J).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,A)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,A,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}E=new WeakMap,v=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,A=new WeakMap,m=new WeakMap,b=new WeakSet,V=function(){T(this,b,J).call(this),t(this,v)?i(this,Y,setInterval(t(this,O),Math.abs(t(this,E)))):B.ticker.subscribe(t(this,D),t(this,X)),document.addEventListener("visibilitychange",t(this,I))},J=function(){clearInterval(t(this,Y)),B.ticker.unsubscribe(t(this,D)),clearTimeout(t(this,A)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,I))},D=new WeakMap,O=new WeakMap,I=new WeakMap;var H,M,z,S;class le extends F{constructor(e){super();s(this,H,null);s(this,M);s(this,z);s(this,S,e=>{let h=0;const r=Math.abs(e.deltaY),g=Math.abs(e.deltaX);if(!(this.axis==="x"&&r>g||this.axis==="y"&&g>r)&&(e.preventDefault(),!(this.debounce&&this.axis==="x"&&g<5||this.debounce&&this.axis==="y"&&r<5)))if(h=(this.axis==="max"?g>r?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const N=Date.now();if(N-t(this,z)>40&&(h=100*Math.sign(h)),i(this,z,N),Math.abs(h)<100||t(this,M))return;this.changeEvent.notify("wheel",h,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,z,Date.now()),w.isBrowser&&i(this,H,e!=null&&e.element&&_.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,H).addEventListener("wheel",t(this,S),{passive:!1})}disconnect(){w.isBrowser&&(t(this,H).removeEventListener("wheel",t(this,S)),clearTimeout(t(this,M)))}}H=new WeakMap,M=new WeakMap,z=new WeakMap,S=new WeakMap;var q,P,o,l,C,x,W,K,L;const k=class k extends F{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,C);s(this,x);s(this,W);s(this,K);s(this,L);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,C,[]),i(this,x,0),i(this,W,h=>{Math.abs(t(this,x))>2&&h.preventDefault()}),i(this,K,h=>{if(i(this,x,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||B.ticker.unsubscribe(t(this,L));let r=h,g=!1;document.documentElement.classList.add("grabbing");let N=0,$=0,U=0,Q=0;ie.setupDrag(f=>{t(k,q)&&t(k,q)!==t(this,o)||(N=r.x-f.x,$=r.y-f.y,U=f.x-h.x,Q=f.y-h.y,this.axis==="x"?(i(this,x,U),i(this,l,N)):(i(this,x,Q),i(this,l,$)),r=f,g=this.axis==="x"&&Math.abs(U)>Math.abs(Q)||this.axis==="y"&&Math.abs(Q)>Math.abs(U),g&&(document.documentElement.classList.add("dragging"),document.documentElement.classList.add("click-disabled"),i(k,q,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(k,q,null),g&&(!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),B.ticker.subscribe(t(this,L),{order:he.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f)),setTimeout(()=>{document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging"),document.documentElement.classList.remove("click-disabled")})})}),i(this,L,()=>{Math.floor(Math.abs(t(this,l)))||B.ticker.unsubscribe(t(this,L)),i(this,l,t(this,l)*.95),i(this,l,se.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&_.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,C,[...t(this,P).querySelectorAll("a")]),t(this,C).forEach(e=>{e.addEventListener("click",t(this,W))}),t(this,o).addEventListener("pointerdown",t(this,K)))}disconnect(){w.isBrowser&&(t(this,C).forEach(e=>{e.removeEventListener("click",t(this,W))}),t(this,o).removeEventListener("pointerdown",t(this,K)),B.ticker.unsubscribe(t(this,L)))}};q=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,C=new WeakMap,x=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakMap,s(k,q,null);let Z=k;exports.AutoplayControls=ae;exports.Controls=F;exports.DragControls=Z;exports.KeyboardControls=re;exports.WheelControls=le;
1
+ "use strict";var p=n=>{throw TypeError(n)};var G=(n,a,e)=>a.has(n)||p("Cannot "+e);var t=(n,a,e)=>(G(n,a,"read from private field"),e?e.call(n):a.get(n)),s=(n,a,e)=>a.has(n)?p("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,e),i=(n,a,e,h)=>(G(n,a,"write to private field"),h?h.call(n,e):a.set(n,e),e),T=(n,a,e)=>(G(n,a,"access private method"),e);const w=require("./index-OE2INULi.cjs"),_=require("./dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");const B=require("./ticker/index.cjs");require("./Store-Blf4msDz.cjs");const ee=require("./easings-GegIwET5.cjs"),te=require("./Tweened-DWtk9E-O.cjs"),ie=require("./gestures-C7gbKx11.cjs"),se=require("./number-ChAm68cm.cjs"),he=require("./order/index.cjs"),ne=require("./notifier/index.cjs");var j;class F{constructor(){s(this,j,new ne.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var y,c,u,R;class re extends F{constructor(e){super();s(this,y,null);s(this,c,null);s(this,u,"offsetHeight");s(this,R,e=>{const h=e.shiftKey?-1:1;let r;e.code==="Space"?r=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?r=1*t(this,c)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r,e))});w.isBrowser&&(i(this,y,e!=null&&e.element&&_.getElement(e.element)||window),i(this,c,t(this,y)instanceof HTMLElement?t(this,y):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,y).addEventListener("keydown",t(this,R))}disconnect(){w.isBrowser&&t(this,y).removeEventListener("keydown",t(this,R))}}y=new WeakMap,c=new WeakMap,u=new WeakMap,R=new WeakMap;var E,v,X,Y,d,A,m,b,V,J,D,O,I;class ae extends F{constructor(e){super();s(this,b);s(this,E);s(this,v);s(this,X);s(this,Y);s(this,d);s(this,A);s(this,m);s(this,D);s(this,O);s(this,I);this.direction=1,i(this,d,new te.Tweened(0,{easing:ee.easeInQuad})),i(this,m,!1),i(this,D,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,E)*this.direction*(1-t(this,d).current),h)}),i(this,O,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,E))*this.direction*(1-t(this,d).current),null)}),i(this,I,()=>{t(this,v)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,E,(e==null?void 0:e.speed)||1),i(this,v,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,v,e),t(this,m)&&T(this,b,V).call(this)}set speed(e){i(this,E,e),t(this,m)&&T(this,b,V).call(this)}connect(){t(this,m)||(i(this,m,!0),T(this,b,V).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),T(this,b,J).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,A)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,A,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}E=new WeakMap,v=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,A=new WeakMap,m=new WeakMap,b=new WeakSet,V=function(){T(this,b,J).call(this),t(this,v)?i(this,Y,setInterval(t(this,O),Math.abs(t(this,E)))):B.ticker.subscribe(t(this,D),t(this,X)),document.addEventListener("visibilitychange",t(this,I))},J=function(){clearInterval(t(this,Y)),B.ticker.unsubscribe(t(this,D)),clearTimeout(t(this,A)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,I))},D=new WeakMap,O=new WeakMap,I=new WeakMap;var H,M,z,S;class le extends F{constructor(e){super();s(this,H,null);s(this,M);s(this,z);s(this,S,e=>{let h=0;const r=Math.abs(e.deltaY),g=Math.abs(e.deltaX);if(!(this.axis==="x"&&r>g||this.axis==="y"&&g>r)&&(e.preventDefault(),!(this.debounce&&this.axis==="x"&&g<5||this.debounce&&this.axis==="y"&&r<5)))if(h=(this.axis==="max"?g>r?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const N=Date.now();if(N-t(this,z)>40&&(h=100*Math.sign(h)),i(this,z,N),Math.abs(h)<100||t(this,M))return;this.changeEvent.notify("wheel",h,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,z,Date.now()),w.isBrowser&&i(this,H,e!=null&&e.element&&_.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,H).addEventListener("wheel",t(this,S),{passive:!1})}disconnect(){w.isBrowser&&(t(this,H).removeEventListener("wheel",t(this,S)),clearTimeout(t(this,M)))}}H=new WeakMap,M=new WeakMap,z=new WeakMap,S=new WeakMap;var q,P,o,l,C,x,W,K,L;const k=class k extends F{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,C);s(this,x);s(this,W);s(this,K);s(this,L);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,C,[]),i(this,x,0),i(this,W,h=>{Math.abs(t(this,x))>2&&h.preventDefault()}),i(this,K,h=>{if(i(this,x,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||B.ticker.unsubscribe(t(this,L));let r=h,g=!1;document.documentElement.classList.add("grabbing");let N=0,$=0,U=0,Q=0;ie.setupDrag(f=>{t(k,q)&&t(k,q)!==t(this,o)||(N=r.x-f.x,$=r.y-f.y,U=f.x-h.x,Q=f.y-h.y,this.axis==="x"?(i(this,x,U),i(this,l,N)):(i(this,x,Q),i(this,l,$)),r=f,g=this.axis==="x"&&Math.abs(U)>Math.abs(Q)||this.axis==="y"&&Math.abs(Q)>Math.abs(U),g&&(document.documentElement.classList.add("dragging"),document.documentElement.classList.add("click-disabled"),i(k,q,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(k,q,null),g&&(!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),B.ticker.subscribe(t(this,L),{order:he.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f)),setTimeout(()=>{document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging"),document.documentElement.classList.remove("click-disabled")})})}),i(this,L,()=>{Math.floor(Math.abs(t(this,l)))||B.ticker.unsubscribe(t(this,L)),i(this,l,t(this,l)*.95),i(this,l,se.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&_.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,C,[...t(this,P).querySelectorAll("a")]),t(this,C).forEach(e=>{e.addEventListener("click",t(this,W))}),t(this,o).addEventListener("pointerdown",t(this,K)))}disconnect(){w.isBrowser&&(t(this,C).forEach(e=>{e.removeEventListener("click",t(this,W))}),t(this,o).removeEventListener("pointerdown",t(this,K)),B.ticker.unsubscribe(t(this,L)))}};q=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,C=new WeakMap,x=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakMap,s(k,q,null);let Z=k;exports.AutoplayControls=ae;exports.Controls=F;exports.DragControls=Z;exports.KeyboardControls=re;exports.WheelControls=le;
@@ -3,13 +3,13 @@ var _ = (n) => {
3
3
  };
4
4
  var G = (n, r, e) => r.has(n) || _("Cannot " + e);
5
5
  var t = (n, r, e) => (G(n, r, "read from private field"), e ? e.call(n) : r.get(n)), s = (n, r, e) => r.has(n) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), i = (n, r, e, h) => (G(n, r, "write to private field"), h ? h.call(n, e) : r.set(n, e), e), A = (n, r, e) => (G(n, r, "access private method"), e);
6
- import { i as b } from "./index-LReFyN6i.js";
7
- import { g as Z } from "./dom-BIeVMHfK.js";
6
+ import { i as b } from "./index-e9eDuagL.js";
7
+ import { g as Z } from "./dom-BETkVSSZ.js";
8
8
  import "construct-style-sheets-polyfill";
9
9
  import { ticker as D } from "./ticker/index.js";
10
- import "./Store-CgQ3ReoB.js";
10
+ import "./Store-ZThXYBQd.js";
11
11
  import { a as ee } from "./easings-BEmRlrDd.js";
12
- import { T as te } from "./Tweened-lT68VACv.js";
12
+ import { T as te } from "./Tweened-Bw1Cn1PJ.js";
13
13
  import { s as ie } from "./gestures-CcXV6fCp.js";
14
14
  import { p as se } from "./number-CumqY64S.js";
15
15
  import { TICK_ORDER as he } from "./order/index.js";
@@ -1 +1 @@
1
- "use strict";var f=i=>{throw TypeError(i)};var h=(i,e,t)=>e.has(i)||f("Cannot "+t);var n=(i,e,t)=>(h(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>e.has(i)?f("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),m=(i,e,t,r)=>(h(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),d=(i,e,t)=>(h(i,e,"access private method"),t);const v=require("./morph-B6sGhLCi.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");const L=require("./url-CPgw9bd5.cjs");var s,o,E,k,a;class S{constructor(e){u(this,o);u(this,s);u(this,a,e=>{var c,l,p;e.preventDefault();const{url:t,options:r={}}=(c=d(this,o,k).call(this,e))!=null?c:{};t&&(e.preventDefault(),(p=(l=n(this,s)).onClick)==null||p.call(l,t,r))});m(this,s,e),window.addEventListener("click",n(this,a))}destroy(){window.removeEventListener("click",n(this,a))}update(){document.querySelectorAll("a").forEach(e=>{L.normalizeURL(e.getAttribute("href"),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}).pathname===location.pathname?e.classList.add("current"):e.classList.remove("current")})}}s=new WeakMap,o=new WeakSet,E=function(e){return(e==null?void 0:e.nodeType)===v.NODE_TYPE_ELEMENT},k=function(e){const t=e.composedPath()[0];if(!d(this,o,E).call(this,t))return;const r=t.closest("a");if(!r||typeof n(this,s).includeAnchor=="function"&&!n(this,s).includeAnchor(r)||r.closest("[data-router-ignore]"))return;const{href:c}=r;if(!L.isLocalUrl(c))return;const l={keepScrollPosition:"keepScrollPosition"in r.dataset,cache:"cache"in r.dataset,revalidate:"revalidate"in r.dataset};return{url:L.normalizeURL(new URL(c),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}),options:l}},a=new WeakMap;exports.LocalLinks=S;
1
+ "use strict";var f=i=>{throw TypeError(i)};var h=(i,e,t)=>e.has(i)||f("Cannot "+t);var n=(i,e,t)=>(h(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>e.has(i)?f("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),m=(i,e,t,r)=>(h(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),d=(i,e,t)=>(h(i,e,"access private method"),t);const v=require("./morph-B6sGhLCi.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const L=require("./url-CPgw9bd5.cjs");var s,o,E,k,a;class S{constructor(e){u(this,o);u(this,s);u(this,a,e=>{var c,l,p;e.preventDefault();const{url:t,options:r={}}=(c=d(this,o,k).call(this,e))!=null?c:{};t&&(e.preventDefault(),(p=(l=n(this,s)).onClick)==null||p.call(l,t,r))});m(this,s,e),window.addEventListener("click",n(this,a))}destroy(){window.removeEventListener("click",n(this,a))}update(){document.querySelectorAll("a").forEach(e=>{L.normalizeURL(e.getAttribute("href"),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}).pathname===location.pathname?e.classList.add("current"):e.classList.remove("current")})}}s=new WeakMap,o=new WeakSet,E=function(e){return(e==null?void 0:e.nodeType)===v.NODE_TYPE_ELEMENT},k=function(e){const t=e.composedPath()[0];if(!d(this,o,E).call(this,t))return;const r=t.closest("a");if(!r||typeof n(this,s).includeAnchor=="function"&&!n(this,s).includeAnchor(r)||r.closest("[data-router-ignore]"))return;const{href:c}=r;if(!L.isLocalUrl(c))return;const l={keepScrollPosition:"keepScrollPosition"in r.dataset,cache:"cache"in r.dataset,revalidate:"revalidate"in r.dataset};return{url:L.normalizeURL(new URL(c),{base:n(this,s).base,trailingSlash:n(this,s).trailingSlash}),options:l}},a=new WeakMap;exports.LocalLinks=S;
@@ -3,9 +3,9 @@ var f = (i) => {
3
3
  };
4
4
  var u = (i, t, e) => t.has(i) || f("Cannot " + e);
5
5
  var n = (i, t, e) => (u(i, t, "read from private field"), e ? e.call(i) : t.get(i)), h = (i, t, e) => t.has(i) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), m = (i, t, e, s) => (u(i, t, "write to private field"), s ? s.call(i, e) : t.set(i, e), e), d = (i, t, e) => (u(i, t, "access private method"), e);
6
- import { N as v } from "./morph-BQErz7qP.js";
6
+ import { N as v } from "./morph-D_ybmXWR.js";
7
7
  import "construct-style-sheets-polyfill";
8
- import "./index-LReFyN6i.js";
8
+ import "./index-e9eDuagL.js";
9
9
  import { n as L, i as S } from "./url-DAl-mgbC.js";
10
10
  var r, o, E, k, c;
11
11
  class P {
@@ -1,4 +1,4 @@
1
- import { i } from "./index-LReFyN6i.js";
1
+ import { i } from "./index-e9eDuagL.js";
2
2
  import "construct-style-sheets-polyfill";
3
3
  class n extends HTMLElement {
4
4
  create(e, t) {
@@ -1 +1 @@
1
- "use strict";const i=require("./index-CKTweR3M.cjs");require("construct-style-sheets-polyfill");class s extends HTMLElement{create(e,t){this.textContent!==t&&(this.textContent=t),this.dataset.persist="",e.body.appendChild(this)}done(){var e;(e=document.activeElement)!=null&&e.closest("[data-persist]")||document.body.focus(),delete this.dataset.persist}connectedCallback(){const e={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};for(const[t,n]of Object.entries(e))this.setAttribute(t,n)}}i.isBrowser&&!customElements.get("e-page-announcer")&&customElements.define("e-page-announcer",s);exports.PageAnnouncerElement=s;
1
+ "use strict";const i=require("./index-OE2INULi.cjs");require("construct-style-sheets-polyfill");class s extends HTMLElement{create(e,t){this.textContent!==t&&(this.textContent=t),this.dataset.persist="",e.body.appendChild(this)}done(){var e;(e=document.activeElement)!=null&&e.closest("[data-persist]")||document.body.focus(),delete this.dataset.persist}connectedCallback(){const e={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};for(const[t,n]of Object.entries(e))this.setAttribute(t,n)}}i.isBrowser&&!customElements.get("e-page-announcer")&&customElements.define("e-page-announcer",s);exports.PageAnnouncerElement=s;
@@ -5,7 +5,7 @@ var g = (l, t, e) => t.has(l) || w("Cannot " + e);
5
5
  var s = (l, t, e) => (g(l, t, "read from private field"), e ? e.call(l) : t.get(l)), r = (l, t, e) => t.has(l) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(l) : t.set(l, e), c = (l, t, e, a) => (g(l, t, "write to private field"), a ? a.call(l, e) : t.set(l, e), e);
6
6
  import { d as E } from "./events-CsVF98U6.js";
7
7
  import "construct-style-sheets-polyfill";
8
- import "./index-LReFyN6i.js";
8
+ import "./index-e9eDuagL.js";
9
9
  var o, n, i, u, d, m;
10
10
  class y {
11
11
  constructor(t) {
@@ -1 +1 @@
1
- "use strict";var g=l=>{throw TypeError(l)};var w=(l,e,t)=>e.has(l)||g("Cannot "+t);var s=(l,e,t)=>(w(l,e,"read from private field"),t?t.call(l):e.get(l)),r=(l,e,t)=>e.has(l)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(l):e.set(l,t),c=(l,e,t,u)=>(w(l,e,"write to private field"),u?u.call(l,t):e.set(l,t),t);const v=require("./events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");var o,n,i,a,m,d;class E{constructor(e){r(this,o,null);r(this,n,0);r(this,i,0);r(this,a,!1);r(this,m);r(this,d,()=>{const{left:e,top:t}=this.value,u=t-s(this,i),h=e-s(this,n);c(this,i,t),c(this,n,e),document.documentElement.classList.toggle("scroll-y",t>0),document.documentElement.classList.toggle("scroll-x",e>0),document.documentElement.classList.toggle("scroll-y-forward",u>0),document.documentElement.classList.toggle("scroll-y-backward",u<0),document.documentElement.classList.toggle("scroll-x-forward",h>0),document.documentElement.classList.toggle("scroll-x-backward",h<0),v.dispatchEvent(document,"pageScrollEvent",{detail:this.value})});c(this,m,e)}get element(){return s(this,o)}get x(){return s(this,n)}get y(){return s(this,i)}get value(){let e=0,t=0;return s(this,a)?(e=window.scrollY,t=window.scrollX):(e=s(this,o).scrollTop,t=s(this,o).scrollLeft),{top:e,left:t}}destroy(){var e;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),document.documentElement.classList.remove("scroll-y"),document.documentElement.classList.remove("scroll-x"),document.documentElement.classList.remove("scroll-y-forward"),document.documentElement.classList.remove("scroll-y-backward"),document.documentElement.classList.remove("scroll-x-forward"),document.documentElement.classList.remove("scroll-x-backward")}update(){var e,t;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),c(this,i,0),c(this,n,0),c(this,o,s(this,m)&&document.querySelector(s(this,m))||window),c(this,a,s(this,o)===window),(t=s(this,o))==null||t.addEventListener("scroll",s(this,d)),s(this,d).call(this)}}o=new WeakMap,n=new WeakMap,i=new WeakMap,a=new WeakMap,m=new WeakMap,d=new WeakMap;exports.PageScroll=E;
1
+ "use strict";var g=l=>{throw TypeError(l)};var w=(l,e,t)=>e.has(l)||g("Cannot "+t);var s=(l,e,t)=>(w(l,e,"read from private field"),t?t.call(l):e.get(l)),r=(l,e,t)=>e.has(l)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(l):e.set(l,t),c=(l,e,t,u)=>(w(l,e,"write to private field"),u?u.call(l,t):e.set(l,t),t);const v=require("./events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");var o,n,i,a,m,d;class E{constructor(e){r(this,o,null);r(this,n,0);r(this,i,0);r(this,a,!1);r(this,m);r(this,d,()=>{const{left:e,top:t}=this.value,u=t-s(this,i),h=e-s(this,n);c(this,i,t),c(this,n,e),document.documentElement.classList.toggle("scroll-y",t>0),document.documentElement.classList.toggle("scroll-x",e>0),document.documentElement.classList.toggle("scroll-y-forward",u>0),document.documentElement.classList.toggle("scroll-y-backward",u<0),document.documentElement.classList.toggle("scroll-x-forward",h>0),document.documentElement.classList.toggle("scroll-x-backward",h<0),v.dispatchEvent(document,"pageScrollEvent",{detail:this.value})});c(this,m,e)}get element(){return s(this,o)}get x(){return s(this,n)}get y(){return s(this,i)}get value(){let e=0,t=0;return s(this,a)?(e=window.scrollY,t=window.scrollX):(e=s(this,o).scrollTop,t=s(this,o).scrollLeft),{top:e,left:t}}destroy(){var e;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),document.documentElement.classList.remove("scroll-y"),document.documentElement.classList.remove("scroll-x"),document.documentElement.classList.remove("scroll-y-forward"),document.documentElement.classList.remove("scroll-y-backward"),document.documentElement.classList.remove("scroll-x-forward"),document.documentElement.classList.remove("scroll-x-backward")}update(){var e,t;(e=s(this,o))==null||e.removeEventListener("scroll",s(this,d)),c(this,i,0),c(this,n,0),c(this,o,s(this,m)&&document.querySelector(s(this,m))||window),c(this,a,s(this,o)===window),(t=s(this,o))==null||t.addEventListener("scroll",s(this,d)),s(this,d).call(this)}}o=new WeakMap,n=new WeakMap,i=new WeakMap,a=new WeakMap,m=new WeakMap,d=new WeakMap;exports.PageScroll=E;
@@ -1,4 +1,4 @@
1
- "use strict";var Y=u=>{throw TypeError(u)};var Z=(u,h,e)=>h.has(u)||Y("Cannot "+e);var t=(u,h,e)=>(Z(u,h,"read from private field"),e?e.call(u):h.get(u)),i=(u,h,e)=>h.has(u)?Y("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(u):h.set(u,e),s=(u,h,e,c)=>(Z(u,h,"write to private field"),c?c.call(u,e):h.set(u,e),e),N=(u,h,e)=>(Z(u,h,"access private method"),e);const rt=require("./element-linked-store/index.cjs"),J=require("./loading/index.cjs"),nt=require("./index-CKTweR3M.cjs"),w=require("./events-KVanG9sR.cjs"),tt=require("./string-DUXXtU8v.cjs"),at=require("./metadata-BcYZ5w3T.cjs");require("construct-style-sheets-polyfill");const ht=require("./order/index.cjs"),et=require("./window-resizer/index.cjs"),ot=require("./Store-1JrMCgdX.cjs");var z,q,V,L,m,p,A;class st{constructor(h){i(this,z);i(this,q);i(this,V);i(this,L);i(this,m);i(this,p);i(this,A);s(this,z,h);let e=h.split(".");const c=/\b\d{1,2}x\b/g,n=e.find(y=>y.match(c)&&parseInt(y));s(this,V,n?parseInt(n):1),n&&(e=e.slice(0,-1)),s(this,q,e.length>1?e.slice(0,-1).join("."):e.join("."));const l=/\d+max/g,d=/\d+min/g,U=/\d+mar/g,F=/\d+mir/g,W=e.find(y=>y.match(l)),o=e.find(y=>y.match(d)),x=e.find(y=>y.match(U)),X=e.find(y=>y.match(F));x?(s(this,m,parseInt(x)),s(this,p,"max"),s(this,L,`(max-aspect-ratio: ${t(this,m)})`)):X?(s(this,m,parseInt(X)),s(this,p,"max"),s(this,L,`(min-aspect-ratio: ${t(this,m)})`)):W?(s(this,m,parseInt(W)),s(this,p,"max"),s(this,L,`(max-width: ${t(this,m)}px)`)):o?(s(this,m,parseInt(o)),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")):(s(this,m,0),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")),s(this,q,t(this,q).replace(`.${t(this,m)}${t(this,p)}`,"")),s(this,A,e[e.length-1]===t(this,q)?"":"."+e[e.length-1]),s(this,A,t(this,A).replace(`.${t(this,m)}${t(this,p)}`,""))}get url(){return t(this,z)}get name(){return t(this,q)}get density(){return t(this,V)}get query(){return t(this,L)}get extension(){return t(this,A)}get queryType(){return t(this,p)}get queryValue(){return t(this,m)}}z=new WeakMap,q=new WeakMap,V=new WeakMap,L=new WeakMap,m=new WeakMap,p=new WeakMap,A=new WeakMap;var S;class Q{constructor(h,e){i(this,S);s(this,S,new Map);const c=(e==null?void 0:e.mediaBuckets)!==!1,n=typeof h=="string"?c?h.trim().split(",").map(o=>o.trim()).filter(o=>!!o):[h]:h,l=[];n.forEach(o=>{const x=new st(o);l.push([x.query,x])});const d=l.filter(o=>o[1].queryType.includes("max")).sort((o,x)=>x[1].queryValue-o[1].queryValue),U=l.filter(o=>o[1].queryType.includes("min")&&o[1].queryValue!==0).sort((o,x)=>o[1].queryValue-x[1].queryValue),F=l.filter(o=>o[0]==="(min-width: 0px)");(F?[...F,...d,...U]:[...d,...U]).forEach(o=>{t(this,S).has(o[0])||t(this,S).set(o[0],[]),t(this,S).get(o[0]).push(o[1])})}get mediaBuckets(){return t(this,S)}}S=new WeakMap;var I,k;class it extends ot.Store{constructor(e){super(void 0);i(this,I);i(this,k,()=>{let e;t(this,I).mediaBuckets.forEach((l,d)=>{matchMedia(d).matches&&(e=l)});let c,n=0;e==null||e.forEach(l=>{l.density>n&&l.density<=Math.max(devicePixelRatio,1)&&(n=l.density,c=l)}),e!=null&&e.length&&!c&&(c=e[0]),this.current=c});s(this,I,new Q(e.srcset,e.sourceSetOptions))}updateSource(e){s(this,I,new Q(e.srcset,e.sourceSetOptions)),t(this,k).call(this)}close(){super.close(),this.disconnect()}connect(){et.windowResizer.subscribe(t(this,k),ht.RESIZE_ORDER.SOURCE_MANAGER),t(this,k).call(this)}disconnect(){et.windowResizer.unsubscribe(t(this,k))}}I=new WeakMap,k=new WeakMap;let ct=0;var f,r,R,E,b,g,B,M,a,O,T,v,P,$,j,G,_,K,D,H,C;class lt extends HTMLElement{constructor(e){super();i(this,$);i(this,f,null);i(this,r,null);i(this,R,this);i(this,E,!1);i(this,b,!1);i(this,g,!1);i(this,B,"");i(this,M,"");i(this,a,new rt.ElementLinkedStore(this,{loading:!1,loaded:!1,error:!1,clear:!1,playing:!1,metadata:!1}));i(this,O,null);i(this,T);i(this,v,null);i(this,P);i(this,G,e=>{const c=e[0];t(this,g)&&(!t(this,b)||this.hasAttribute("reload-source"))&&c.isIntersecting&&this.triggerLazyLoad(),c.isIntersecting?w.dispatchEvent(this,"sourceCapture",{custom:!0}):(this.hasAttribute("reload-source")&&(N(this,$,j).call(this,void 0),s(this,b,!1)),w.dispatchEvent(this,"sourceRelease",{custom:!0}))});i(this,_,()=>{t(this,a).set("loaded",!0),t(this,a).set("error",!1),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.complete(t(this,M)),w.dispatchEvent(this,"sourceLoaded",{custom:!0});const e=getComputedStyle(this).getPropertyValue("--clear-duration");e?s(this,T,setTimeout(()=>{t(this,a).set("clear",!0)},parseFloat(e)*1e3)):t(this,a).set("clear",!0),s(this,E,!0)});i(this,K,e=>{t(this,a).set("loaded",!1),t(this,a).set("error",!0),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.error(t(this,M)),w.dispatchEvent(this,"sourceError",{custom:!0}),s(this,E,!0)});i(this,D,()=>{t(this,a).set("playing",!0),w.dispatchEvent(this,"sourcePlay",{custom:!0})});i(this,H,()=>{t(this,a).set("playing",!1),w.dispatchEvent(this,"sourcePause",{custom:!0})});i(this,C,()=>{const e=t(this,r);(e.tagName==="VIDEO"||e.tagName==="AUDIO")&&e.readyState>=1&&(t(this,a).set("metadata",!0),w.dispatchEvent(this,"sourceMetadataLoaded",{custom:!0}),this.querySelectorAll("[data-source-duration]").forEach(c=>{c.textContent=at.formatMediaDuration(e.duration)}))});s(this,P,e==null?void 0:e.sourceSetOptions),nt.isBrowser&&window.IntersectionObserver&&s(this,O,new IntersectionObserver(t(this,G))),t(this,a).subscribe(c=>{var l;const n=(l=this.getAttribute("data-global-play-class"))==null?void 0:l.split(",");n!=null&&n.length&&(c.current.playing?n.forEach(d=>{document.documentElement.classList.add(d.trim())}):n.forEach(d=>{document.documentElement.classList.remove(d.trim())}))})}get consumerElement(){return t(this,r)}get consumerHolderElement(){return t(this,R)}get sourceManager(){return t(this,f)}get status(){return t(this,a)}get isLazy(){return t(this,g)}get currentURL(){return t(this,v)}get isFirstLoadHappened(){return t(this,E)}triggerLazyLoad(){!t(this,b)&&t(this,f).current&&t(this,f).current!==t(this,f).previous&&(s(this,b,!0),N(this,$,j).call(this,t(this,f).current))}connectedCallback(){s(this,B,`source-consumer-${++ct}`);const e=this.getAttribute("srcset")||"",c=this.hasAttribute("notify")?this.closest(this.getAttribute("notify")):null;c&&t(this,a).addElement(c),s(this,R,this.querySelector("[data-consumer-holder]")||this),this.querySelectorAll(".source-consumer").forEach(n=>n==null?void 0:n.remove()),s(this,r,this.createConsumer()),t(this,r).style.cssText=`
1
+ "use strict";var Y=u=>{throw TypeError(u)};var Z=(u,h,e)=>h.has(u)||Y("Cannot "+e);var t=(u,h,e)=>(Z(u,h,"read from private field"),e?e.call(u):h.get(u)),i=(u,h,e)=>h.has(u)?Y("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(u):h.set(u,e),s=(u,h,e,c)=>(Z(u,h,"write to private field"),c?c.call(u,e):h.set(u,e),e),N=(u,h,e)=>(Z(u,h,"access private method"),e);const rt=require("./element-linked-store/index.cjs"),J=require("./loading/index.cjs"),nt=require("./index-OE2INULi.cjs"),w=require("./events-KVanG9sR.cjs"),tt=require("./string-DUXXtU8v.cjs"),at=require("./metadata-BcYZ5w3T.cjs");require("construct-style-sheets-polyfill");const ht=require("./order/index.cjs"),et=require("./window-resizer/index.cjs"),ot=require("./Store-Blf4msDz.cjs");var z,q,V,L,m,p,A;class st{constructor(h){i(this,z);i(this,q);i(this,V);i(this,L);i(this,m);i(this,p);i(this,A);s(this,z,h);let e=h.split(".");const c=/\b\d{1,2}x\b/g,n=e.find(y=>y.match(c)&&parseInt(y));s(this,V,n?parseInt(n):1),n&&(e=e.slice(0,-1)),s(this,q,e.length>1?e.slice(0,-1).join("."):e.join("."));const l=/\d+max/g,d=/\d+min/g,U=/\d+mar/g,F=/\d+mir/g,W=e.find(y=>y.match(l)),o=e.find(y=>y.match(d)),x=e.find(y=>y.match(U)),X=e.find(y=>y.match(F));x?(s(this,m,parseInt(x)),s(this,p,"max"),s(this,L,`(max-aspect-ratio: ${t(this,m)})`)):X?(s(this,m,parseInt(X)),s(this,p,"max"),s(this,L,`(min-aspect-ratio: ${t(this,m)})`)):W?(s(this,m,parseInt(W)),s(this,p,"max"),s(this,L,`(max-width: ${t(this,m)}px)`)):o?(s(this,m,parseInt(o)),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")):(s(this,m,0),s(this,L,`(min-width: ${t(this,m)}px)`),s(this,p,"min")),s(this,q,t(this,q).replace(`.${t(this,m)}${t(this,p)}`,"")),s(this,A,e[e.length-1]===t(this,q)?"":"."+e[e.length-1]),s(this,A,t(this,A).replace(`.${t(this,m)}${t(this,p)}`,""))}get url(){return t(this,z)}get name(){return t(this,q)}get density(){return t(this,V)}get query(){return t(this,L)}get extension(){return t(this,A)}get queryType(){return t(this,p)}get queryValue(){return t(this,m)}}z=new WeakMap,q=new WeakMap,V=new WeakMap,L=new WeakMap,m=new WeakMap,p=new WeakMap,A=new WeakMap;var S;class Q{constructor(h,e){i(this,S);s(this,S,new Map);const c=(e==null?void 0:e.mediaBuckets)!==!1,n=typeof h=="string"?c?h.trim().split(",").map(o=>o.trim()).filter(o=>!!o):[h]:h,l=[];n.forEach(o=>{const x=new st(o);l.push([x.query,x])});const d=l.filter(o=>o[1].queryType.includes("max")).sort((o,x)=>x[1].queryValue-o[1].queryValue),U=l.filter(o=>o[1].queryType.includes("min")&&o[1].queryValue!==0).sort((o,x)=>o[1].queryValue-x[1].queryValue),F=l.filter(o=>o[0]==="(min-width: 0px)");(F?[...F,...d,...U]:[...d,...U]).forEach(o=>{t(this,S).has(o[0])||t(this,S).set(o[0],[]),t(this,S).get(o[0]).push(o[1])})}get mediaBuckets(){return t(this,S)}}S=new WeakMap;var I,k;class it extends ot.Store{constructor(e){super(void 0);i(this,I);i(this,k,()=>{let e;t(this,I).mediaBuckets.forEach((l,d)=>{matchMedia(d).matches&&(e=l)});let c,n=0;e==null||e.forEach(l=>{l.density>n&&l.density<=Math.max(devicePixelRatio,1)&&(n=l.density,c=l)}),e!=null&&e.length&&!c&&(c=e[0]),this.current=c});s(this,I,new Q(e.srcset,e.sourceSetOptions))}updateSource(e){s(this,I,new Q(e.srcset,e.sourceSetOptions)),t(this,k).call(this)}close(){super.close(),this.disconnect()}connect(){et.windowResizer.subscribe(t(this,k),ht.RESIZE_ORDER.SOURCE_MANAGER),t(this,k).call(this)}disconnect(){et.windowResizer.unsubscribe(t(this,k))}}I=new WeakMap,k=new WeakMap;let ct=0;var f,r,R,E,b,g,B,M,a,O,T,v,P,$,j,G,_,K,D,H,C;class lt extends HTMLElement{constructor(e){super();i(this,$);i(this,f,null);i(this,r,null);i(this,R,this);i(this,E,!1);i(this,b,!1);i(this,g,!1);i(this,B,"");i(this,M,"");i(this,a,new rt.ElementLinkedStore(this,{loading:!1,loaded:!1,error:!1,clear:!1,playing:!1,metadata:!1}));i(this,O,null);i(this,T);i(this,v,null);i(this,P);i(this,G,e=>{const c=e[0];t(this,g)&&(!t(this,b)||this.hasAttribute("reload-source"))&&c.isIntersecting&&this.triggerLazyLoad(),c.isIntersecting?w.dispatchEvent(this,"sourceCapture",{custom:!0}):(this.hasAttribute("reload-source")&&(N(this,$,j).call(this,void 0),s(this,b,!1)),w.dispatchEvent(this,"sourceRelease",{custom:!0}))});i(this,_,()=>{t(this,a).set("loaded",!0),t(this,a).set("error",!1),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.complete(t(this,M)),w.dispatchEvent(this,"sourceLoaded",{custom:!0});const e=getComputedStyle(this).getPropertyValue("--clear-duration");e?s(this,T,setTimeout(()=>{t(this,a).set("clear",!0)},parseFloat(e)*1e3)):t(this,a).set("clear",!0),s(this,E,!0)});i(this,K,e=>{t(this,a).set("loaded",!1),t(this,a).set("error",!0),t(this,a).set("loading",!1),!t(this,g)&&!t(this,E)&&J.loading.error(t(this,M)),w.dispatchEvent(this,"sourceError",{custom:!0}),s(this,E,!0)});i(this,D,()=>{t(this,a).set("playing",!0),w.dispatchEvent(this,"sourcePlay",{custom:!0})});i(this,H,()=>{t(this,a).set("playing",!1),w.dispatchEvent(this,"sourcePause",{custom:!0})});i(this,C,()=>{const e=t(this,r);(e.tagName==="VIDEO"||e.tagName==="AUDIO")&&e.readyState>=1&&(t(this,a).set("metadata",!0),w.dispatchEvent(this,"sourceMetadataLoaded",{custom:!0}),this.querySelectorAll("[data-source-duration]").forEach(c=>{c.textContent=at.formatMediaDuration(e.duration)}))});s(this,P,e==null?void 0:e.sourceSetOptions),nt.isBrowser&&window.IntersectionObserver&&s(this,O,new IntersectionObserver(t(this,G))),t(this,a).subscribe(c=>{var l;const n=(l=this.getAttribute("data-global-play-class"))==null?void 0:l.split(",");n!=null&&n.length&&(c.current.playing?n.forEach(d=>{document.documentElement.classList.add(d.trim())}):n.forEach(d=>{document.documentElement.classList.remove(d.trim())}))})}get consumerElement(){return t(this,r)}get consumerHolderElement(){return t(this,R)}get sourceManager(){return t(this,f)}get status(){return t(this,a)}get isLazy(){return t(this,g)}get currentURL(){return t(this,v)}get isFirstLoadHappened(){return t(this,E)}triggerLazyLoad(){!t(this,b)&&t(this,f).current&&t(this,f).current!==t(this,f).previous&&(s(this,b,!0),N(this,$,j).call(this,t(this,f).current))}connectedCallback(){s(this,B,`source-consumer-${++ct}`);const e=this.getAttribute("srcset")||"",c=this.hasAttribute("notify")?this.closest(this.getAttribute("notify")):null;c&&t(this,a).addElement(c),s(this,R,this.querySelector("[data-consumer-holder]")||this),this.querySelectorAll(".source-consumer").forEach(n=>n==null?void 0:n.remove()),s(this,r,this.createConsumer()),t(this,r).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -5,14 +5,14 @@ var Z = (u, h, e) => h.has(u) || X("Cannot " + e);
5
5
  var t = (u, h, e) => (Z(u, h, "read from private field"), e ? e.call(u) : h.get(u)), i = (u, h, e) => h.has(u) ? X("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(u) : h.set(u, e), s = (u, h, e, l) => (Z(u, h, "write to private field"), l ? l.call(u, e) : h.set(u, e), e), j = (u, h, e) => (Z(u, h, "access private method"), e);
6
6
  import { ElementLinkedStore as st } from "./element-linked-store/index.js";
7
7
  import { loading as J } from "./loading/index.js";
8
- import { i as it } from "./index-LReFyN6i.js";
8
+ import { i as it } from "./index-e9eDuagL.js";
9
9
  import { d as q } from "./events-CsVF98U6.js";
10
10
  import { k as Y } from "./string-BlMQbe8b.js";
11
11
  import { f as rt } from "./metadata-jfowcCyz.js";
12
12
  import "construct-style-sheets-polyfill";
13
13
  import { RESIZE_ORDER as at } from "./order/index.js";
14
14
  import { windowResizer as tt } from "./window-resizer/index.js";
15
- import { S as nt } from "./Store-CgQ3ReoB.js";
15
+ import { S as nt } from "./Store-ZThXYBQd.js";
16
16
  var V, S, z, x, m, p, A;
17
17
  class ht {
18
18
  constructor(h) {
@@ -1 +1 @@
1
- "use strict";var w=i=>{throw TypeError(i)};var A=(i,e,t)=>e.has(i)||w("Cannot "+t);var r=(i,e,t)=>(A(i,e,"read from private field"),t?t.call(i):e.get(i)),n=(i,e,t)=>e.has(i)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),h=(i,e,t,a)=>(A(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t);const z=require("./notifier/index.cjs"),E=require("./string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");const I=require("./index-CKTweR3M.cjs");var l;class M{constructor(){n(this,l);this.storage=null,this.name="store-registry",h(this,l,null),I.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,l)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,l,JSON.parse(e)):h(this,l,e),f.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){f.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=r(this,l))==null?void 0:t.stores))return e;if(e.name){const b=(a=r(this,l))==null?void 0:a.stores.find(N=>N.name===e.name);b&&(e.current=b.value)}return e}getState(){const e={stores:[]};return f.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}l=new WeakMap;const _=new M;var d,s,S,c,g,u,m,y,v;class C{constructor(e,t){n(this,d);n(this,s);n(this,S);n(this,c,new z.Notifier);n(this,g);n(this,u);n(this,m);n(this,y);n(this,v,"store-"+E.generateId(10));h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,b)=>a===b)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,m,(t==null?void 0:t.notifyAndClose)||!1),h(this,y,(t==null?void 0:t.invisible)||!1),h(this,g,(t==null?void 0:t.skipSubscribeNotification)||!1),r(this,d)&&_.updateStore(this)}get id(){return r(this,v)}get name(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(e){if(!r(this,S).call(this,r(this,s).current,e)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const t of r(this,u))e=t(e);r(this,s).current=e,this.notify(),r(this,m)&&this.close()}}setCurrent(e){this.current=e}update(e){this.current=e(this.current)}add(e){Array.isArray(this.current)&&(this.current=[...this.current,e])}filter(e){Array.isArray(this.current)&&(this.current=this.current.filter(e))}get subscribers(){return r(this,c).subscribers}notify(){r(this,c).notify(r(this,s))}addMiddleware(e){r(this,u)||h(this,u,new Set),r(this,u).add(e)}removeMiddleware(e){var t,a;(t=r(this,u))==null||t.delete(e),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(e,t){return!r(this,y)&&!r(this,c).size&&R(this),r(this,c).subscribe(e,t),r(this,g)||e(r(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){r(this,c).unsubscribe(e),r(this,c).size||q(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,c).close(),r(this,s).previous=void 0,r(this,s).current=r(this,s).initial,q(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap;const f=new C([],{invisible:!0});function R(i){f.current.includes(i)||(f.current=[...f.current,i])}function q(i){f.current.includes(i)&&(f.current=f.current.filter(e=>e!==i))}exports.Store=C;exports.activeStores=f;exports.storeRegistry=_;
1
+ "use strict";var w=i=>{throw TypeError(i)};var A=(i,e,t)=>e.has(i)||w("Cannot "+t);var r=(i,e,t)=>(A(i,e,"read from private field"),t?t.call(i):e.get(i)),n=(i,e,t)=>e.has(i)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),h=(i,e,t,a)=>(A(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t);const z=require("./notifier/index.cjs"),E=require("./string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");const I=require("./index-OE2INULi.cjs");var l;class M{constructor(){n(this,l);this.storage=null,this.name="store-registry",h(this,l,null),I.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,l)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,l,JSON.parse(e)):h(this,l,e),f.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){f.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=r(this,l))==null?void 0:t.stores))return e;if(e.name){const b=(a=r(this,l))==null?void 0:a.stores.find(N=>N.name===e.name);b&&(e.current=b.value)}return e}getState(){const e={stores:[]};return f.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}l=new WeakMap;const _=new M;var d,s,S,c,g,u,m,y,v;class C{constructor(e,t){n(this,d);n(this,s);n(this,S);n(this,c,new z.Notifier);n(this,g);n(this,u);n(this,m);n(this,y);n(this,v,"store-"+E.generateId(10));h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,b)=>a===b)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,m,(t==null?void 0:t.notifyAndClose)||!1),h(this,y,(t==null?void 0:t.invisible)||!1),h(this,g,(t==null?void 0:t.skipSubscribeNotification)||!1),r(this,d)&&_.updateStore(this)}get id(){return r(this,v)}get name(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(e){if(!r(this,S).call(this,r(this,s).current,e)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const t of r(this,u))e=t(e);r(this,s).current=e,this.notify(),r(this,m)&&this.close()}}setCurrent(e){this.current=e}update(e){this.current=e(this.current)}add(e){Array.isArray(this.current)&&(this.current=[...this.current,e])}filter(e){Array.isArray(this.current)&&(this.current=this.current.filter(e))}get subscribers(){return r(this,c).subscribers}notify(){r(this,c).notify(r(this,s))}addMiddleware(e){r(this,u)||h(this,u,new Set),r(this,u).add(e)}removeMiddleware(e){var t,a;(t=r(this,u))==null||t.delete(e),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(e,t){return!r(this,y)&&!r(this,c).size&&R(this),r(this,c).subscribe(e,t),r(this,g)||e(r(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){r(this,c).unsubscribe(e),r(this,c).size||q(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,c).close(),r(this,s).previous=void 0,r(this,s).current=r(this,s).initial,q(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap;const f=new C([],{invisible:!0});function R(i){f.current.includes(i)||(f.current=[...f.current,i])}function q(i){f.current.includes(i)&&(f.current=f.current.filter(e=>e!==i))}exports.Store=C;exports.activeStores=f;exports.storeRegistry=_;
@@ -6,7 +6,7 @@ var i = (r, t, e) => (A(r, t, "read from private field"), e ? e.call(r) : t.get(
6
6
  import { Notifier as _ } from "./notifier/index.js";
7
7
  import { g as z } from "./string-BlMQbe8b.js";
8
8
  import "construct-style-sheets-polyfill";
9
- import { i as E } from "./index-LReFyN6i.js";
9
+ import { i as E } from "./index-e9eDuagL.js";
10
10
  var f;
11
11
  class I {
12
12
  constructor() {
@@ -20,8 +20,8 @@ import { c as q } from "./math-BOBiC4TN.js";
20
20
  import { p as w } from "./number-CumqY64S.js";
21
21
  import { n as z } from "./polyfills-DJrTJQky.js";
22
22
  import "construct-style-sheets-polyfill";
23
- import "./index-LReFyN6i.js";
24
- import { A as C } from "./Animation-DxtCzFP3.js";
23
+ import "./index-e9eDuagL.js";
24
+ import { A as C } from "./Animation-BzTjZIE-.js";
25
25
  var m, t;
26
26
  class G extends C {
27
27
  constructor(e, i) {
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-ChAm68cm.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");const z=require("./Animation-jmvFcNfM.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
1
+ "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-ChAm68cm.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const z=require("./Animation-C39Ah-LM.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
@@ -1 +1 @@
1
- "use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,p)=>(E(t,i,"write to private field"),p?p.call(t,n):i.set(t,n),n);const P=require("./order/index.cjs"),W=require("./window-resizer/index.cjs"),z=require("./index-CKTweR3M.cjs");require("construct-style-sheets-polyfill");const R=require("./Store-1JrMCgdX.cjs");var r,d,a,m,l,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,m);o(this,l);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,m,!1),e(this,l,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},z.isBrowser){this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,m,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,l,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const p=window.navigator.userAgent,b=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,k=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],C=["Win32","Win64","Windows","WinCE"],O=["iPhone","iPad","iPod"];k.includes(b)?(e(this,r,"macOS"),e(this,c,!0)):O.includes(b)?(e(this,r,"iOS"),e(this,c,!0)):C.includes(b)?e(this,r,"Windows"):/Android/.test(p)?e(this,r,"Android"):/Linux/.test(b)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,m)}get isWebp(){return s(this,l)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,m=new WeakMap,l=new WeakMap,c=new WeakMap;const q=new D;var A=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(A||{}),S=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(S||{}),u,w,x,h;class I{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},z.isBrowser&&(this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const M=new I;exports.ViewportBreakpoints=A;exports.ViewportMediaRules=S;exports.device=q;exports.viewport=M;
1
+ "use strict";var v=t=>{throw TypeError(t)};var E=(t,i,n)=>i.has(t)||v("Cannot "+n);var s=(t,i,n)=>(E(t,i,"read from private field"),n?n.call(t):i.get(t)),o=(t,i,n)=>i.has(t)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,n),e=(t,i,n,p)=>(E(t,i,"write to private field"),p?p.call(t,n):i.set(t,n),n);const P=require("./order/index.cjs"),W=require("./window-resizer/index.cjs"),z=require("./index-OE2INULi.cjs");require("construct-style-sheets-polyfill");const R=require("./Store-Blf4msDz.cjs");var r,d,a,m,l,c;class D{constructor(){o(this,r);o(this,d);o(this,a);o(this,m);o(this,l);o(this,c);var i,n;if(e(this,r,"unknown"),e(this,d,!1),e(this,a,!1),e(this,m,!1),e(this,l,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},z.isBrowser){this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE);{const g=document.createElement("canvas"),f=g.getContext("webgl")||g.getContext("experimental-webgl");e(this,m,f&&f instanceof WebGLRenderingContext||!1)}{const g=document.createElement("canvas");g.getContext("2d")&&e(this,l,g.toDataURL("image/webp").indexOf("data:image/webp")==0)}const p=window.navigator.userAgent,b=((n=(i=window.navigator)==null?void 0:i.userAgentData)==null?void 0:n.platform)||window.navigator.platform,k=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],C=["Win32","Win64","Windows","WinCE"],O=["iPhone","iPad","iPod"];k.includes(b)?(e(this,r,"macOS"),e(this,c,!0)):O.includes(b)?(e(this,r,"iOS"),e(this,c,!0)):C.includes(b)?e(this,r,"Windows"):/Android/.test(p)?e(this,r,"Android"):/Linux/.test(b)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return s(this,r)}get isMobile(){return s(this,d)}get isTouch(){return s(this,a)}get isWebgl(){return s(this,m)}get isWebp(){return s(this,l)}get isApple(){return s(this,c)}}r=new WeakMap,d=new WeakMap,a=new WeakMap,m=new WeakMap,l=new WeakMap,c=new WeakMap;const q=new D;var A=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(A||{}),S=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(S||{}),u,w,x,h;class I{constructor(){o(this,u);o(this,w);o(this,x);o(this,h);e(this,u,0),e(this,w,0),e(this,x,0),e(this,h,new R.Store(void 0)),this.resize=()=>{e(this,u,document.documentElement.clientWidth),e(this,w,innerHeight),e(this,x,devicePixelRatio),matchMedia("(max-width: 600px)").matches?s(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?s(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?s(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(s(this,h).current="desktop")},z.isBrowser&&(this.resize(),W.windowResizer.subscribe(this.resize,P.RESIZE_ORDER.DEVICE))}get width(){return s(this,u)}get height(){return s(this,w)}get type(){return s(this,h)}get pixelRatio(){return s(this,x)}}u=new WeakMap,w=new WeakMap,x=new WeakMap,h=new WeakMap;const M=new I;exports.ViewportBreakpoints=A;exports.ViewportMediaRules=S;exports.device=q;exports.viewport=M;
@@ -5,9 +5,9 @@ var E = (t, e, n) => e.has(t) || v("Cannot " + n);
5
5
  var s = (t, e, n) => (E(t, e, "read from private field"), n ? n.call(t) : e.get(t)), o = (t, e, n) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), i = (t, e, n, p) => (E(t, e, "write to private field"), p ? p.call(t, n) : e.set(t, n), n);
6
6
  import { RESIZE_ORDER as P } from "./order/index.js";
7
7
  import { windowResizer as W } from "./window-resizer/index.js";
8
- import { i as A } from "./index-LReFyN6i.js";
8
+ import { i as A } from "./index-e9eDuagL.js";
9
9
  import "construct-style-sheets-polyfill";
10
- import { S as z } from "./Store-CgQ3ReoB.js";
10
+ import { S as z } from "./Store-ZThXYBQd.js";
11
11
  var a, m, r, d, l, c;
12
12
  class O {
13
13
  constructor() {
@@ -1 +1 @@
1
- "use strict";var z=s=>{throw TypeError(s)};var p=(s,i,t)=>i.has(s)||z("Cannot "+t);var e=(s,i,t)=>(p(s,i,"read from private field"),t?t.call(s):i.get(s)),o=(s,i,t)=>i.has(s)?z("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),c=(s,i,t,r)=>(p(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),d=(s,i,t)=>(p(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../attribute/index.cjs"),q=require("../index-CKTweR3M.cjs"),S=require("../events-KVanG9sR.cjs"),O=require("../style-At6aDoqG.cjs");require("construct-style-sheets-polyfill");var u,h,f,l,v,m,n,x,w,y,E,C,I;class k{constructor(i,t){o(this,n);o(this,u,null);o(this,h,null);o(this,f,null);o(this,l,null);o(this,v);o(this,m,!1);o(this,w,()=>{e(this,m)?this.close():this.open()});o(this,y,i=>{e(this,m)&&!(i instanceof CustomEvent)&&(d(this,n,E).call(this,0,!0),d(this,n,E).call(this,e(this,n,x)))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(c(this,u,i),c(this,h,t),c(this,f,t.firstElementChild),c(this,l,t.lastElementChild),e(this,l).style.overflow="hidden",e(this,u).axisAttribute.current==="y"?e(this,l).style.height="0px":e(this,l).style.width="0px",addEventListener("resize",e(this,y)),e(this,f).addEventListener("click",e(this,w)),e(this,h).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,h))}get element(){return e(this,h)}destroy(){e(this,f)&&(e(this,h).classList.remove("opened","triggered"),e(this,h).removeAttribute("data-opened"),e(this,f).style.cursor="",d(this,n,E).call(this,void 0),removeEventListener("resize",e(this,y)),e(this,f).removeEventListener("click",e(this,w)),clearTimeout(e(this,v)))}open(i){i!=null&&i.skipTransition&&d(this,n,C).call(this),e(this,u).multipleAttribute.current||e(this,u).closeAll({exclude:e(this,h)}),c(this,m,!0),clearTimeout(e(this,v)),e(this,h).classList.add("triggered"),d(this,n,E).call(this,e(this,n,x)),setTimeout(()=>{e(this,h).classList.add("opened"),e(this,h).setAttribute("data-opened",""),d(this,n,I).call(this)},0),S.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,m),element:e(this,h)}})}close(i){i!=null&&i.skipTransition&&d(this,n,C).call(this),clearTimeout(e(this,v)),c(this,m,!1),e(this,h).classList.remove("opened"),d(this,n,E).call(this,0),d(this,n,I).call(this,()=>{e(this,h).classList.remove("triggered")}),S.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,m),element:e(this,h)}})}}u=new WeakMap,h=new WeakMap,f=new WeakMap,l=new WeakMap,v=new WeakMap,m=new WeakMap,n=new WeakSet,x=function(){return e(this,u).axisAttribute.current==="x"?e(this,l).scrollWidth:e(this,l).scrollHeight},w=new WeakMap,y=new WeakMap,E=function(i,t=!1){t&&(e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""}));const r=e(this,u).axisAttribute.current==="x"?"width":"height";i!=null?e(this,l).style[r]=`${i}px`:e(this,l).style[r]=""},C=function(){e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""},50)},I=function(i){e(this,u).hasAttribute("no-window-resize")||c(this,v,setTimeout(()=>{i==null||i(),window.dispatchEvent(new CustomEvent("resize"))},O.getElementTransitionDurationMS(e(this,l))))};var b,g,a,T,L,M;class R extends HTMLElement{constructor(){super();o(this,L);o(this,b,new H.Attribute(this,"axis","y"));o(this,g,new H.Attribute(this,"multiple",!1));o(this,a,[]);o(this,T,null);q.isBrowser&&c(this,T,new MutationObserver(t=>{t.forEach(r=>{r.removedNodes.forEach(A=>{A instanceof HTMLElement&&this.removeItem(A)}),r.addedNodes.forEach(A=>{A instanceof HTMLElement&&this.createItem(A)})})}))}get axisAttribute(){return e(this,b)}get multipleAttribute(){return e(this,g)}createItem(t){e(this,a).find(r=>r.element===t)||e(this,a).push(new k(this,t))}removeItem(t){c(this,a,e(this,a).filter(r=>{if(r.element!==t)return!0;r.destroy()}))}closeAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.close(t)})}openAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.open(t)})}connectedCallback(){e(this,b).observe(),e(this,g).observe(),e(this,T).observe(e(this,L,M),{childList:!0}),c(this,a,[...e(this,L,M).children].map(t=>{if(t instanceof HTMLElement)return new k(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,b).unobserve(),e(this,g).unobserve(),e(this,T).disconnect()}}b=new WeakMap,g=new WeakMap,a=new WeakMap,T=new WeakMap,L=new WeakSet,M=function(){return this.shadowRoot?this.shadowRoot:this};q.isBrowser&&!customElements.get("e-accordion")&&customElements.define("e-accordion",R);exports.AccordionElement=R;
1
+ "use strict";var z=s=>{throw TypeError(s)};var p=(s,i,t)=>i.has(s)||z("Cannot "+t);var e=(s,i,t)=>(p(s,i,"read from private field"),t?t.call(s):i.get(s)),o=(s,i,t)=>i.has(s)?z("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),c=(s,i,t,r)=>(p(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),d=(s,i,t)=>(p(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../attribute/index.cjs"),q=require("../index-OE2INULi.cjs"),S=require("../events-KVanG9sR.cjs"),O=require("../style-At6aDoqG.cjs");require("construct-style-sheets-polyfill");var u,h,f,l,v,m,n,x,w,y,E,C,I;class k{constructor(i,t){o(this,n);o(this,u,null);o(this,h,null);o(this,f,null);o(this,l,null);o(this,v);o(this,m,!1);o(this,w,()=>{e(this,m)?this.close():this.open()});o(this,y,i=>{e(this,m)&&!(i instanceof CustomEvent)&&(d(this,n,E).call(this,0,!0),d(this,n,E).call(this,e(this,n,x)))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(c(this,u,i),c(this,h,t),c(this,f,t.firstElementChild),c(this,l,t.lastElementChild),e(this,l).style.overflow="hidden",e(this,u).axisAttribute.current==="y"?e(this,l).style.height="0px":e(this,l).style.width="0px",addEventListener("resize",e(this,y)),e(this,f).addEventListener("click",e(this,w)),e(this,h).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,h))}get element(){return e(this,h)}destroy(){e(this,f)&&(e(this,h).classList.remove("opened","triggered"),e(this,h).removeAttribute("data-opened"),e(this,f).style.cursor="",d(this,n,E).call(this,void 0),removeEventListener("resize",e(this,y)),e(this,f).removeEventListener("click",e(this,w)),clearTimeout(e(this,v)))}open(i){i!=null&&i.skipTransition&&d(this,n,C).call(this),e(this,u).multipleAttribute.current||e(this,u).closeAll({exclude:e(this,h)}),c(this,m,!0),clearTimeout(e(this,v)),e(this,h).classList.add("triggered"),d(this,n,E).call(this,e(this,n,x)),setTimeout(()=>{e(this,h).classList.add("opened"),e(this,h).setAttribute("data-opened",""),d(this,n,I).call(this)},0),S.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,m),element:e(this,h)}})}close(i){i!=null&&i.skipTransition&&d(this,n,C).call(this),clearTimeout(e(this,v)),c(this,m,!1),e(this,h).classList.remove("opened"),d(this,n,E).call(this,0),d(this,n,I).call(this,()=>{e(this,h).classList.remove("triggered")}),S.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,m),element:e(this,h)}})}}u=new WeakMap,h=new WeakMap,f=new WeakMap,l=new WeakMap,v=new WeakMap,m=new WeakMap,n=new WeakSet,x=function(){return e(this,u).axisAttribute.current==="x"?e(this,l).scrollWidth:e(this,l).scrollHeight},w=new WeakMap,y=new WeakMap,E=function(i,t=!1){t&&(e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""}));const r=e(this,u).axisAttribute.current==="x"?"width":"height";i!=null?e(this,l).style[r]=`${i}px`:e(this,l).style[r]=""},C=function(){e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""},50)},I=function(i){e(this,u).hasAttribute("no-window-resize")||c(this,v,setTimeout(()=>{i==null||i(),window.dispatchEvent(new CustomEvent("resize"))},O.getElementTransitionDurationMS(e(this,l))))};var b,g,a,T,L,M;class R extends HTMLElement{constructor(){super();o(this,L);o(this,b,new H.Attribute(this,"axis","y"));o(this,g,new H.Attribute(this,"multiple",!1));o(this,a,[]);o(this,T,null);q.isBrowser&&c(this,T,new MutationObserver(t=>{t.forEach(r=>{r.removedNodes.forEach(A=>{A instanceof HTMLElement&&this.removeItem(A)}),r.addedNodes.forEach(A=>{A instanceof HTMLElement&&this.createItem(A)})})}))}get axisAttribute(){return e(this,b)}get multipleAttribute(){return e(this,g)}createItem(t){e(this,a).find(r=>r.element===t)||e(this,a).push(new k(this,t))}removeItem(t){c(this,a,e(this,a).filter(r=>{if(r.element!==t)return!0;r.destroy()}))}closeAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.close(t)})}openAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.open(t)})}connectedCallback(){e(this,b).observe(),e(this,g).observe(),e(this,T).observe(e(this,L,M),{childList:!0}),c(this,a,[...e(this,L,M).children].map(t=>{if(t instanceof HTMLElement)return new k(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,b).unobserve(),e(this,g).unobserve(),e(this,T).disconnect()}}b=new WeakMap,g=new WeakMap,a=new WeakMap,T=new WeakMap,L=new WeakSet,M=function(){return this.shadowRoot?this.shadowRoot:this};q.isBrowser&&!customElements.get("e-accordion")&&customElements.define("e-accordion",R);exports.AccordionElement=R;
@@ -4,7 +4,7 @@ var M = (s) => {
4
4
  var x = (s, i, t) => i.has(s) || M("Cannot " + t);
5
5
  var e = (s, i, t) => (x(s, i, "read from private field"), t ? t.call(s) : i.get(s)), o = (s, i, t) => i.has(s) ? M("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), a = (s, i, t, r) => (x(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t), d = (s, i, t) => (x(s, i, "access private method"), t);
6
6
  import { Attribute as H } from "../attribute/index.js";
7
- import { i as S } from "../index-LReFyN6i.js";
7
+ import { i as S } from "../index-e9eDuagL.js";
8
8
  import { d as k } from "../events-CsVF98U6.js";
9
9
  import { g as D } from "../style-j2TwriJ_.js";
10
10
  import "construct-style-sheets-polyfill";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-jmvFcNfM.cjs"),n=require("../Damped-77Urmi3q.cjs"),i=require("../Tweened-CXQrFQth.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-C39Ah-LM.cjs"),n=require("../Damped-Prr0iKu1.cjs"),i=require("../Tweened-DWtk9E-O.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-DxtCzFP3.js";
2
- import { D as m } from "../Damped-DMnIOXpC.js";
3
- import { T as t } from "../Tweened-lT68VACv.js";
1
+ import { A as r } from "../Animation-BzTjZIE-.js";
2
+ import { D as m } from "../Damped-CRusiRIV.js";
3
+ import { T as t } from "../Tweened-Bw1Cn1PJ.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var q=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||q("Cannot "+e);var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),h=(t,s,e)=>s.has(t)?q("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,c)=>(v(t,s,"write to private field"),c?c.call(t,e):s.set(t,e),e),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-1JrMCgdX.cjs"),S=require("../attributes-Bf2svn4j.cjs"),p=require("../index-CKTweR3M.cjs"),O=require("../dom-hTEdqeoj.cjs");require("construct-style-sheets-polyfill");var i,u,o,b,a,g;class w extends A.Store{constructor(e,c,y,l){super(y,l);h(this,a);h(this,i,null);h(this,u);h(this,o,null);h(this,b,!1);n(this,u,c),p.isBrowser&&(n(this,i,O.getElement(e)),n(this,o,new MutationObserver(f=>{f.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&d(this,a,g).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e,c){return this.subscribers.length||this.observe(),super.subscribe(e,c)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}observe(){r(this,b)||(n(this,b,!0),r(this,o).observe(r(this,i),{attributes:!0}),d(this,a,g).call(this))}unobserve(){r(this,b)&&(n(this,b,!1),r(this,o).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,o=new WeakMap,b=new WeakMap,a=new WeakSet,g=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
1
+ "use strict";var q=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||q("Cannot "+e);var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),h=(t,s,e)=>s.has(t)?q("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),n=(t,s,e,c)=>(v(t,s,"write to private field"),c?c.call(t,e):s.set(t,e),e),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-Blf4msDz.cjs"),S=require("../attributes-Bf2svn4j.cjs"),p=require("../index-OE2INULi.cjs"),O=require("../dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");var i,u,o,b,a,g;class w extends A.Store{constructor(e,c,y,l){super(y,l);h(this,a);h(this,i,null);h(this,u);h(this,o,null);h(this,b,!1);n(this,u,c),p.isBrowser&&(n(this,i,O.getElement(e)),n(this,o,new MutationObserver(f=>{f.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&d(this,a,g).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e,c){return this.subscribers.length||this.observe(),super.subscribe(e,c)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}observe(){r(this,b)||(n(this,b,!0),r(this,o).observe(r(this,i),{attributes:!0}),d(this,a,g).call(this))}unobserve(){r(this,b)&&(n(this,b,!1),r(this,o).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,o=new WeakMap,b=new WeakMap,a=new WeakSet,g=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
@@ -3,10 +3,10 @@ var d = (e) => {
3
3
  };
4
4
  var m = (e, s, t) => s.has(e) || d("Cannot " + t);
5
5
  var r = (e, s, t) => (m(e, s, "read from private field"), t ? t.call(e) : s.get(e)), c = (e, s, t) => s.has(e) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), a = (e, s, t, h) => (m(e, s, "write to private field"), h ? h.call(e, t) : s.set(e, t), t), v = (e, s, t) => (m(e, s, "access private method"), t);
6
- import { S as y } from "../Store-CgQ3ReoB.js";
6
+ import { S as y } from "../Store-ZThXYBQd.js";
7
7
  import { p as S } from "../attributes-69we3byR.js";
8
- import { i as w } from "../index-LReFyN6i.js";
9
- import { g as x } from "../dom-BIeVMHfK.js";
8
+ import { i as w } from "../index-e9eDuagL.js";
9
+ import { g as x } from "../dom-BETkVSSZ.js";
10
10
  import "construct-style-sheets-polyfill";
11
11
  var i, u, n, b, o, p;
12
12
  class V extends y {
@@ -1 +1 @@
1
- "use strict";var ht=h=>{throw TypeError(h)};var st=(h,n,e)=>n.has(h)||ht("Cannot "+e);var t=(h,n,e)=>(st(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?ht("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),l=(h,n,e,i)=>(st(h,n,"write to private field"),i?i.call(h,e):n.set(h,e),e),c=(h,n,e)=>(st(h,n,"access private method"),e);var z=(h,n,e)=>new Promise((i,r)=>{var a=B=>{try{tt(e.next(B))}catch(et){r(et)}},y=B=>{try{tt(e.throw(B))}catch(et){r(et)}},tt=B=>B.done?i(B.value):Promise.resolve(B.value).then(a,y);tt((e=e.apply(h,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../index-CKTweR3M.cjs"),rt=require("../custom-elements-Dh4TWRDJ.cjs"),Z=require("../dom-hTEdqeoj.cjs");require("construct-style-sheets-polyfill");const M=require("../css-property/index.cjs"),pt=require("../events-KVanG9sR.cjs"),gt=require("../gestures-C7gbKx11.cjs"),vt=require("../math-GDWEqu7y.cjs"),lt=require("../number-ChAm68cm.cjs");var m,I,R,f,ot,ct,ut,it;class at{constructor(n,e){s(this,f);s(this,m);s(this,I,null);s(this,R,!1);this.element=n,l(this,m,e)}destroy(){c(this,f,it).call(this)}updateClasses(n){const e=n===t(this,m).counter;t(this,R)&&!e?this.element.classList.add("was-current"):this.element.classList.remove("was-current");const i=this.element.classList.contains("current-active");c(this,f,ut).call(this),c(this,f,it).call(this),i&&this.element.classList.add("previous-active"),n===t(this,m).counter?c(this,f,ot).call(this):n<t(this,m).counter?this.element.classList.add("previous"):this.element.classList.add("next"),c(this,f,ct).call(this,n)}}m=new WeakMap,I=new WeakMap,R=new WeakMap,f=new WeakSet,ot=function(){l(this,R,!0),this.element.classList.add("current"),l(this,I,requestAnimationFrame(()=>{this.element.classList.add("current-active")}))},ct=function(n){n===lt.loopNumber(t(this,m).counter-1,t(this,m).length)?this.element.classList.add("previous-sibling"):n===(t(this,m).counter+1)%t(this,m).length&&this.element.classList.add("next-sibling")},ut=function(){this.element.classList.remove("current","previous","next","previous-sibling","next-sibling","current-active","previous-active")},it=function(){t(this,I)&&(cancelAnimationFrame(t(this,I)),l(this,I,null))};var F,P,L,C,S,k,T,q,p,o,d,D,u,nt,V,N,W,Q,X,Y;class K extends HTMLElement{constructor(){super(...arguments);s(this,u);s(this,F,new M.CSSProperty(this,"--resize",!1));s(this,P,new M.CSSProperty(this,"--loop",!0));s(this,L,new M.CSSProperty(this,"--autoplay",!1));s(this,C,new M.CSSProperty(this,"--swipe","x"));s(this,S,new M.CSSProperty(this,"--length-offset",0));s(this,k);s(this,T,!1);s(this,q,[]);s(this,p,new Map);s(this,o,-1);s(this,d,0);s(this,D,[]);s(this,N,e=>{l(this,T,e.isIntersecting),t(this,T)?c(this,u,V).call(this):clearInterval(t(this,k))});s(this,W,()=>{clearInterval(t(this,k)),t(this,T)&&l(this,k,setInterval(t(this,X),this.autoplayDuration))});s(this,X,()=>{c(this,u,Q).call(this,t(this,o)+1)});s(this,Y,e=>{if(!t(this,C).current)return;let i=0;gt.setupDrag(r=>{const a=e.x-r.x,y=e.y-r.y;t(this,C).current==="x"?Math.abs(a)>Math.abs(y)&&Math.abs(a)>10&&(i=Math.sign(a)):t(this,C).current==="y"&&Math.abs(y)>Math.abs(a)&&Math.abs(y)>10&&(i=Math.sign(y))},()=>{i&&this.shift(i)})})}get counter(){return t(this,o)}get loop(){return t(this,P)}get autoplay(){return t(this,L)}get autoplayDuration(){return parseFloat(t(this,L).current||"0")*1e3}get swipe(){return t(this,C)}get lengthOffset(){return t(this,S)}get items(){return t(this,q)}get groups(){return t(this,p)}get length(){return t(this,d)}addItem(e){const i=new at(e,this);t(this,q).push(i);const r=e.getAttribute("data-billboard-item-group")||"default";let a=t(this,p).get(r);a||(a=[],t(this,p).set(r,a)),a.push(i),c(this,u,nt).call(this)}set(e){(!this.handleSet||this.handleSet(e))&&(c(this,u,Q).call(this,e),c(this,u,V).call(this))}shift(e){this.set(t(this,o)+e)}connectedCallback(){[...this.querySelectorAll(`[data-billboard-item${this.id?`="${this.id}"`:""}]`)].forEach(i=>{this.addItem(i)}),t(this,p).forEach(i=>{var r;(r=i[0])==null||r.element.classList.add("current")}),t(this,L).subscribe(i=>{i.current?($.intersector.subscribe(this,t(this,N)),c(this,u,V).call(this)):(l(this,T,!0),$.intersector.unsubscribe(t(this,N)),clearInterval(t(this,k)),c(this,u,Q).call(this,0))}),t(this,S).subscribe(()=>{c(this,u,nt).call(this)}),t(this,L).observe(),t(this,C).observe(),t(this,S).observe(),t(this,P).observe(),t(this,F).observe(),c(this,u,Q).call(this,0),this.addEventListener("pointerdown",t(this,Y))}disconnectedCallback(){t(this,L).unobserve(),t(this,C).unobserve(),t(this,S).unobserve(),t(this,P).unobserve(),t(this,F).unobserve(),t(this,q).forEach(e=>e.destroy()),l(this,q,[]),t(this,p).clear(),$.intersector.unsubscribe(t(this,N)),clearInterval(t(this,k)),t(this,D).forEach(e=>{clearTimeout(e)})}}F=new WeakMap,P=new WeakMap,L=new WeakMap,C=new WeakMap,S=new WeakMap,k=new WeakMap,T=new WeakMap,q=new WeakMap,p=new WeakMap,o=new WeakMap,d=new WeakMap,D=new WeakMap,u=new WeakSet,nt=function(){l(this,d,0),t(this,p).forEach(e=>{e.length>t(this,d)&&l(this,d,e.length)}),l(this,d,t(this,d)+t(this,S).current)},V=function(){t(this,L).current!==!1&&t(this,W).call(this)},N=new WeakMap,W=new WeakMap,Q=function(){return z(this,arguments,function*(e=t(this,o)){const i=t(this,o);t(this,P).current?l(this,o,lt.loopNumber(e,t(this,d))):l(this,o,vt.clamp(e,0,t(this,d)-1)),i!==t(this,o)&&(t(this,D).forEach(r=>{clearTimeout(r)}),this.classList.remove("forward","backward","next-round","prev-round"),t(this,o)-i>=0?this.classList.add("forward"):t(this,o)-i<0&&this.classList.add("backward"),t(this,p).forEach(r=>{r.forEach((a,y)=>{a.updateClasses(y)})}),this.classList.toggle("has-length",t(this,d)>1),this.classList.toggle("start",t(this,o)===0),this.classList.toggle("end",t(this,o)===t(this,d)-1),this.style.setProperty("--counter",t(this,o).toString()),this.style.setProperty("--sections",t(this,d).toString()),pt.dispatchEvent(this,"billboardChange",{detail:{counter:t(this,o)}}),t(this,F).current&&t(this,D).push(setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0)),t(this,D).push(setTimeout(()=>{this.classList.remove("next-round","prev-round")},10)))})},X=new WeakMap,Y=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",K);var g,O,v,U,_;class dt extends HTMLElement{constructor(){super(...arguments);s(this,g,null);s(this,O,null);s(this,v,[]);s(this,U,e=>{const i=e.currentTarget,r=t(this,v).findIndex(a=>a===i);r>=0&&t(this,g).set(r)});s(this,_,()=>{t(this,v).forEach((e,i)=>{i===t(this,g).counter?e.classList.add("current"):e.classList.remove("current")})})}get buttonElements(){return t(this,v)}connectedCallback(){return z(this,null,function*(){var e;if(yield rt.whenDefined("e-billboard"),l(this,g,Z.findParentElement(this,K)),t(this,g)&&this.isConnected){this.innerHTML="";const i=t(this,g).length;l(this,O,document.createElement("div"));for(let r=0;r<i;r++){const a=document.createElement("button");a.setAttribute("aria-label",`Go to item ${r+1}`),t(this,v).push(a),t(this,O).appendChild(a)}this.appendChild(t(this,O)),t(this,v).forEach(r=>{r.addEventListener("click",t(this,U))}),(e=t(this,g))==null||e.addEventListener("billboardChange",t(this,_)),t(this,_).call(this)}})}disconnectedCallback(){var e;t(this,v).forEach(i=>{i.removeEventListener("click",t(this,U))}),(e=t(this,g))==null||e.removeEventListener("billboardChange",t(this,_)),this.innerHTML="",l(this,v,[])}}g=new WeakMap,O=new WeakMap,v=new WeakMap,U=new WeakMap,_=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",dt);var H,j;class bt extends HTMLElement{constructor(){super(...arguments);s(this,H,null);s(this,j,()=>{var r;const e=(((r=t(this,H))==null?void 0:r.counter)||0)+1,i=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(i,"0")})}connectedCallback(){return z(this,null,function*(){var e;yield rt.whenDefined("e-billboard"),l(this,H,Z.findParentElement(this,K)),(e=t(this,H))==null||e.addEventListener("billboardChange",t(this,j)),t(this,j).call(this)})}disconnectedCallback(){var e;(e=t(this,H))==null||e.removeEventListener("billboardChange",t(this,j))}}H=new WeakMap,j=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-counter")&&customElements.define("e-billboard-counter",bt);var G,w,E,x;class mt extends HTMLElement{constructor(){super();s(this,G,null);s(this,w,new M.CSSProperty(this,"--index",0));s(this,E,null);s(this,x,()=>{t(this,G).updateClasses(t(this,w).current)});this.addEventListener("click",e=>{t(this,E)&&(!this.handleClick||this.handleClick(e))&&t(this,E).set(t(this,w).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return z(this,null,function*(){yield rt.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),l(this,E,Z.findParentElement(this,K)),t(this,E)&&(l(this,G,new at(this,t(this,E))),t(this,E).addEventListener("billboardChange",t(this,x)),t(this,x).call(this),t(this,w).subscribe(t(this,x)),t(this,w).observe())})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,w).unsubscribe(t(this,x)),t(this,w).unobserve(),(e=t(this,E))==null||e.removeEventListener("billboardChange",t(this,x)),t(this,G).destroy()}}G=new WeakMap,w=new WeakMap,E=new WeakMap,x=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-set-button")&&customElements.define("e-billboard-set-button",mt);var A,b,J;class ft extends HTMLElement{constructor(){super();s(this,A,new M.CSSProperty(this,"--step",1));s(this,b,null);s(this,J,()=>{t(this,b)&&(!t(this,b).loop.current&&(t(this,b).counter===0&&t(this,A).current<=0||t(this,b).counter===t(this,b).length-1&&t(this,A).current>=0)?this.setAttribute("disabled",""):this.removeAttribute("disabled"))});this.addEventListener("click",e=>{t(this,b)&&(!this.handleClick||this.handleClick(e))&&t(this,b).shift(t(this,A).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return z(this,null,function*(){var e;yield customElements.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,A).observe(),this.tabIndex=0,l(this,b,Z.findParentElement(this,K)),(e=t(this,b))==null||e.addEventListener("billboardChange",t(this,J)),setTimeout(()=>{t(this,J).call(this)},0)})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,A).unobserve(),(e=t(this,b))==null||e.removeEventListener("billboardChange",t(this,J))}}A=new WeakMap,b=new WeakMap,J=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-step-button")&&customElements.define("e-billboard-step-button",ft);exports.BillboardBulletsElement=dt;exports.BillboardCounterElement=bt;exports.BillboardElement=K;exports.BillboardSetButtonElement=mt;exports.BillboardStepButtonElement=ft;
1
+ "use strict";var ht=h=>{throw TypeError(h)};var st=(h,n,e)=>n.has(h)||ht("Cannot "+e);var t=(h,n,e)=>(st(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?ht("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),l=(h,n,e,i)=>(st(h,n,"write to private field"),i?i.call(h,e):n.set(h,e),e),c=(h,n,e)=>(st(h,n,"access private method"),e);var z=(h,n,e)=>new Promise((i,r)=>{var a=B=>{try{tt(e.next(B))}catch(et){r(et)}},y=B=>{try{tt(e.throw(B))}catch(et){r(et)}},tt=B=>B.done?i(B.value):Promise.resolve(B.value).then(a,y);tt((e=e.apply(h,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../index-OE2INULi.cjs"),rt=require("../custom-elements-Dh4TWRDJ.cjs"),Z=require("../dom-CBLlqORw.cjs");require("construct-style-sheets-polyfill");const M=require("../css-property/index.cjs"),pt=require("../events-KVanG9sR.cjs"),gt=require("../gestures-C7gbKx11.cjs"),vt=require("../math-GDWEqu7y.cjs"),lt=require("../number-ChAm68cm.cjs");var m,I,R,f,ot,ct,ut,it;class at{constructor(n,e){s(this,f);s(this,m);s(this,I,null);s(this,R,!1);this.element=n,l(this,m,e)}destroy(){c(this,f,it).call(this)}updateClasses(n){const e=n===t(this,m).counter;t(this,R)&&!e?this.element.classList.add("was-current"):this.element.classList.remove("was-current");const i=this.element.classList.contains("current-active");c(this,f,ut).call(this),c(this,f,it).call(this),i&&this.element.classList.add("previous-active"),n===t(this,m).counter?c(this,f,ot).call(this):n<t(this,m).counter?this.element.classList.add("previous"):this.element.classList.add("next"),c(this,f,ct).call(this,n)}}m=new WeakMap,I=new WeakMap,R=new WeakMap,f=new WeakSet,ot=function(){l(this,R,!0),this.element.classList.add("current"),l(this,I,requestAnimationFrame(()=>{this.element.classList.add("current-active")}))},ct=function(n){n===lt.loopNumber(t(this,m).counter-1,t(this,m).length)?this.element.classList.add("previous-sibling"):n===(t(this,m).counter+1)%t(this,m).length&&this.element.classList.add("next-sibling")},ut=function(){this.element.classList.remove("current","previous","next","previous-sibling","next-sibling","current-active","previous-active")},it=function(){t(this,I)&&(cancelAnimationFrame(t(this,I)),l(this,I,null))};var F,P,L,C,S,k,T,q,p,o,d,D,u,nt,V,N,W,Q,X,Y;class K extends HTMLElement{constructor(){super(...arguments);s(this,u);s(this,F,new M.CSSProperty(this,"--resize",!1));s(this,P,new M.CSSProperty(this,"--loop",!0));s(this,L,new M.CSSProperty(this,"--autoplay",!1));s(this,C,new M.CSSProperty(this,"--swipe","x"));s(this,S,new M.CSSProperty(this,"--length-offset",0));s(this,k);s(this,T,!1);s(this,q,[]);s(this,p,new Map);s(this,o,-1);s(this,d,0);s(this,D,[]);s(this,N,e=>{l(this,T,e.isIntersecting),t(this,T)?c(this,u,V).call(this):clearInterval(t(this,k))});s(this,W,()=>{clearInterval(t(this,k)),t(this,T)&&l(this,k,setInterval(t(this,X),this.autoplayDuration))});s(this,X,()=>{c(this,u,Q).call(this,t(this,o)+1)});s(this,Y,e=>{if(!t(this,C).current)return;let i=0;gt.setupDrag(r=>{const a=e.x-r.x,y=e.y-r.y;t(this,C).current==="x"?Math.abs(a)>Math.abs(y)&&Math.abs(a)>10&&(i=Math.sign(a)):t(this,C).current==="y"&&Math.abs(y)>Math.abs(a)&&Math.abs(y)>10&&(i=Math.sign(y))},()=>{i&&this.shift(i)})})}get counter(){return t(this,o)}get loop(){return t(this,P)}get autoplay(){return t(this,L)}get autoplayDuration(){return parseFloat(t(this,L).current||"0")*1e3}get swipe(){return t(this,C)}get lengthOffset(){return t(this,S)}get items(){return t(this,q)}get groups(){return t(this,p)}get length(){return t(this,d)}addItem(e){const i=new at(e,this);t(this,q).push(i);const r=e.getAttribute("data-billboard-item-group")||"default";let a=t(this,p).get(r);a||(a=[],t(this,p).set(r,a)),a.push(i),c(this,u,nt).call(this)}set(e){(!this.handleSet||this.handleSet(e))&&(c(this,u,Q).call(this,e),c(this,u,V).call(this))}shift(e){this.set(t(this,o)+e)}connectedCallback(){[...this.querySelectorAll(`[data-billboard-item${this.id?`="${this.id}"`:""}]`)].forEach(i=>{this.addItem(i)}),t(this,p).forEach(i=>{var r;(r=i[0])==null||r.element.classList.add("current")}),t(this,L).subscribe(i=>{i.current?($.intersector.subscribe(this,t(this,N)),c(this,u,V).call(this)):(l(this,T,!0),$.intersector.unsubscribe(t(this,N)),clearInterval(t(this,k)),c(this,u,Q).call(this,0))}),t(this,S).subscribe(()=>{c(this,u,nt).call(this)}),t(this,L).observe(),t(this,C).observe(),t(this,S).observe(),t(this,P).observe(),t(this,F).observe(),c(this,u,Q).call(this,0),this.addEventListener("pointerdown",t(this,Y))}disconnectedCallback(){t(this,L).unobserve(),t(this,C).unobserve(),t(this,S).unobserve(),t(this,P).unobserve(),t(this,F).unobserve(),t(this,q).forEach(e=>e.destroy()),l(this,q,[]),t(this,p).clear(),$.intersector.unsubscribe(t(this,N)),clearInterval(t(this,k)),t(this,D).forEach(e=>{clearTimeout(e)})}}F=new WeakMap,P=new WeakMap,L=new WeakMap,C=new WeakMap,S=new WeakMap,k=new WeakMap,T=new WeakMap,q=new WeakMap,p=new WeakMap,o=new WeakMap,d=new WeakMap,D=new WeakMap,u=new WeakSet,nt=function(){l(this,d,0),t(this,p).forEach(e=>{e.length>t(this,d)&&l(this,d,e.length)}),l(this,d,t(this,d)+t(this,S).current)},V=function(){t(this,L).current!==!1&&t(this,W).call(this)},N=new WeakMap,W=new WeakMap,Q=function(){return z(this,arguments,function*(e=t(this,o)){const i=t(this,o);t(this,P).current?l(this,o,lt.loopNumber(e,t(this,d))):l(this,o,vt.clamp(e,0,t(this,d)-1)),i!==t(this,o)&&(t(this,D).forEach(r=>{clearTimeout(r)}),this.classList.remove("forward","backward","next-round","prev-round"),t(this,o)-i>=0?this.classList.add("forward"):t(this,o)-i<0&&this.classList.add("backward"),t(this,p).forEach(r=>{r.forEach((a,y)=>{a.updateClasses(y)})}),this.classList.toggle("has-length",t(this,d)>1),this.classList.toggle("start",t(this,o)===0),this.classList.toggle("end",t(this,o)===t(this,d)-1),this.style.setProperty("--counter",t(this,o).toString()),this.style.setProperty("--sections",t(this,d).toString()),pt.dispatchEvent(this,"billboardChange",{detail:{counter:t(this,o)}}),t(this,F).current&&t(this,D).push(setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0)),t(this,D).push(setTimeout(()=>{this.classList.remove("next-round","prev-round")},10)))})},X=new WeakMap,Y=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",K);var g,O,v,U,_;class dt extends HTMLElement{constructor(){super(...arguments);s(this,g,null);s(this,O,null);s(this,v,[]);s(this,U,e=>{const i=e.currentTarget,r=t(this,v).findIndex(a=>a===i);r>=0&&t(this,g).set(r)});s(this,_,()=>{t(this,v).forEach((e,i)=>{i===t(this,g).counter?e.classList.add("current"):e.classList.remove("current")})})}get buttonElements(){return t(this,v)}connectedCallback(){return z(this,null,function*(){var e;if(yield rt.whenDefined("e-billboard"),l(this,g,Z.findParentElement(this,K)),t(this,g)&&this.isConnected){this.innerHTML="";const i=t(this,g).length;l(this,O,document.createElement("div"));for(let r=0;r<i;r++){const a=document.createElement("button");a.setAttribute("aria-label",`Go to item ${r+1}`),t(this,v).push(a),t(this,O).appendChild(a)}this.appendChild(t(this,O)),t(this,v).forEach(r=>{r.addEventListener("click",t(this,U))}),(e=t(this,g))==null||e.addEventListener("billboardChange",t(this,_)),t(this,_).call(this)}})}disconnectedCallback(){var e;t(this,v).forEach(i=>{i.removeEventListener("click",t(this,U))}),(e=t(this,g))==null||e.removeEventListener("billboardChange",t(this,_)),this.innerHTML="",l(this,v,[])}}g=new WeakMap,O=new WeakMap,v=new WeakMap,U=new WeakMap,_=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",dt);var H,j;class bt extends HTMLElement{constructor(){super(...arguments);s(this,H,null);s(this,j,()=>{var r;const e=(((r=t(this,H))==null?void 0:r.counter)||0)+1,i=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(i,"0")})}connectedCallback(){return z(this,null,function*(){var e;yield rt.whenDefined("e-billboard"),l(this,H,Z.findParentElement(this,K)),(e=t(this,H))==null||e.addEventListener("billboardChange",t(this,j)),t(this,j).call(this)})}disconnectedCallback(){var e;(e=t(this,H))==null||e.removeEventListener("billboardChange",t(this,j))}}H=new WeakMap,j=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-counter")&&customElements.define("e-billboard-counter",bt);var G,w,E,x;class mt extends HTMLElement{constructor(){super();s(this,G,null);s(this,w,new M.CSSProperty(this,"--index",0));s(this,E,null);s(this,x,()=>{t(this,G).updateClasses(t(this,w).current)});this.addEventListener("click",e=>{t(this,E)&&(!this.handleClick||this.handleClick(e))&&t(this,E).set(t(this,w).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return z(this,null,function*(){yield rt.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),l(this,E,Z.findParentElement(this,K)),t(this,E)&&(l(this,G,new at(this,t(this,E))),t(this,E).addEventListener("billboardChange",t(this,x)),t(this,x).call(this),t(this,w).subscribe(t(this,x)),t(this,w).observe())})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,w).unsubscribe(t(this,x)),t(this,w).unobserve(),(e=t(this,E))==null||e.removeEventListener("billboardChange",t(this,x)),t(this,G).destroy()}}G=new WeakMap,w=new WeakMap,E=new WeakMap,x=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-set-button")&&customElements.define("e-billboard-set-button",mt);var A,b,J;class ft extends HTMLElement{constructor(){super();s(this,A,new M.CSSProperty(this,"--step",1));s(this,b,null);s(this,J,()=>{t(this,b)&&(!t(this,b).loop.current&&(t(this,b).counter===0&&t(this,A).current<=0||t(this,b).counter===t(this,b).length-1&&t(this,A).current>=0)?this.setAttribute("disabled",""):this.removeAttribute("disabled"))});this.addEventListener("click",e=>{t(this,b)&&(!this.handleClick||this.handleClick(e))&&t(this,b).shift(t(this,A).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return z(this,null,function*(){var e;yield customElements.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,A).observe(),this.tabIndex=0,l(this,b,Z.findParentElement(this,K)),(e=t(this,b))==null||e.addEventListener("billboardChange",t(this,J)),setTimeout(()=>{t(this,J).call(this)},0)})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,A).unobserve(),(e=t(this,b))==null||e.removeEventListener("billboardChange",t(this,J))}}A=new WeakMap,b=new WeakMap,J=new WeakMap;$.isBrowser&&!customElements.get("e-billboard-step-button")&&customElements.define("e-billboard-step-button",ft);exports.BillboardBulletsElement=dt;exports.BillboardCounterElement=bt;exports.BillboardElement=K;exports.BillboardSetButtonElement=mt;exports.BillboardStepButtonElement=ft;
@@ -19,9 +19,9 @@ var F = (h, n, e) => new Promise((i, r) => {
19
19
  }, tt = (I) => I.done ? i(I.value) : Promise.resolve(I.value).then(a, y);
20
20
  tt((e = e.apply(h, n)).next());
21
21
  });
22
- import { a as it, i as Z } from "../index-LReFyN6i.js";
22
+ import { a as it, i as Z } from "../index-e9eDuagL.js";
23
23
  import { w as ht } from "../custom-elements-DBnCK7Zx.js";
24
- import { b as _ } from "../dom-BIeVMHfK.js";
24
+ import { b as _ } from "../dom-BETkVSSZ.js";
25
25
  import "construct-style-sheets-polyfill";
26
26
  import { CSSProperty as S } from "../css-property/index.js";
27
27
  import { d as bt } from "../events-CsVF98U6.js";
@@ -1 +1 @@
1
- "use strict";var f=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,d)=>(R(i,s,"write to private field"),d?d.call(i,e):s.set(i,e),e),o=(i,s,e)=>(R(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../css-property/index.cjs"),y=require("../element-resizer/index.cjs"),w=require("../ticker/index.cjs"),C=require("../index-CKTweR3M.cjs"),B=require("../math-GDWEqu7y.cjs"),F=require("../stylesheet-BcwbfhBp.cjs");var a,r,m,l,u,p,b,x,h,E,P,g,v,S,q;class k extends HTMLElement{constructor(){super();n(this,h);n(this,a,new z.CSSProperty(this,"--fps",0));n(this,r,null);n(this,m,null);n(this,l,0);n(this,u,0);n(this,p,1);n(this,b,0);n(this,x,1);n(this,g,e=>{c(this,p,B.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,u,e.contentRect.height),t(this,r).width=t(this,l)*this.pixelRatio,t(this,r).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,h,q).call(this),o(this,h,S).call(this)});n(this,v,e=>{c(this,b,e.timestamp),c(this,x,e.timeBetweenFrames),o(this,h,S).call(this)});if(C.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[F.createStylesheet({" :host, canvas":{display:"block",width:"100%",height:"100%"}})],c(this,r,document.createElement("canvas")),c(this,m,t(this,r).getContext("2d")),e.appendChild(t(this,r)),t(this,a).subscribe(d=>{typeof d.previous!="undefined"&&d.current!==d.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,r)}get context(){return t(this,m)}get pixelRatio(){return t(this,p)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,r),pixelRatio:t(this,p),context:t(this,m),timestamp:t(this,b),timeBetweenFrames:t(this,x)}}connectedCallback(){t(this,a).observe(),y.elementResizer.subscribe(this,t(this,g)),o(this,h,E).call(this)}disconnectedCallback(){t(this,a).unobserve(),y.elementResizer.unsubscribe(t(this,g)),o(this,h,P).call(this)}}a=new WeakMap,r=new WeakMap,m=new WeakMap,l=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,x=new WeakMap,h=new WeakSet,E=function(){w.ticker.unsubscribe(t(this,v)),this.hasAttribute("static")||w.ticker.subscribe(t(this,v),{culling:this,maxFPS:t(this,a).current})},P=function(){w.ticker.unsubscribe(t(this,v))},g=new WeakMap,v=new WeakMap,S=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},q=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};C.isBrowser&&!customElements.get("e-canvas")&&customElements.define("e-canvas",k);exports.CanvasElement=k;
1
+ "use strict";var f=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,d)=>(R(i,s,"write to private field"),d?d.call(i,e):s.set(i,e),e),o=(i,s,e)=>(R(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../css-property/index.cjs"),y=require("../element-resizer/index.cjs"),w=require("../ticker/index.cjs"),C=require("../index-OE2INULi.cjs"),B=require("../math-GDWEqu7y.cjs"),F=require("../stylesheet-5_o7PFzM.cjs");var a,r,m,l,u,p,b,x,h,E,P,g,v,S,q;class k extends HTMLElement{constructor(){super();n(this,h);n(this,a,new z.CSSProperty(this,"--fps",0));n(this,r,null);n(this,m,null);n(this,l,0);n(this,u,0);n(this,p,1);n(this,b,0);n(this,x,1);n(this,g,e=>{c(this,p,B.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,u,e.contentRect.height),t(this,r).width=t(this,l)*this.pixelRatio,t(this,r).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,h,q).call(this),o(this,h,S).call(this)});n(this,v,e=>{c(this,b,e.timestamp),c(this,x,e.timeBetweenFrames),o(this,h,S).call(this)});if(C.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[F.createStylesheet({" :host, canvas":{display:"block",width:"100%",height:"100%"}})],c(this,r,document.createElement("canvas")),c(this,m,t(this,r).getContext("2d")),e.appendChild(t(this,r)),t(this,a).subscribe(d=>{typeof d.previous!="undefined"&&d.current!==d.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,r)}get context(){return t(this,m)}get pixelRatio(){return t(this,p)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,r),pixelRatio:t(this,p),context:t(this,m),timestamp:t(this,b),timeBetweenFrames:t(this,x)}}connectedCallback(){t(this,a).observe(),y.elementResizer.subscribe(this,t(this,g)),o(this,h,E).call(this)}disconnectedCallback(){t(this,a).unobserve(),y.elementResizer.unsubscribe(t(this,g)),o(this,h,P).call(this)}}a=new WeakMap,r=new WeakMap,m=new WeakMap,l=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,x=new WeakMap,h=new WeakSet,E=function(){w.ticker.unsubscribe(t(this,v)),this.hasAttribute("static")||w.ticker.subscribe(t(this,v),{culling:this,maxFPS:t(this,a).current})},P=function(){w.ticker.unsubscribe(t(this,v))},g=new WeakMap,v=new WeakMap,S=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},q=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};C.isBrowser&&!customElements.get("e-canvas")&&customElements.define("e-canvas",k);exports.CanvasElement=k;
@@ -6,9 +6,9 @@ var t = (i, s, e) => (x(i, s, "read from private field"), e ? e.call(i) : s.get(
6
6
  import { CSSProperty as z } from "../css-property/index.js";
7
7
  import { elementResizer as C } from "../element-resizer/index.js";
8
8
  import { ticker as w } from "../ticker/index.js";
9
- import { i as y } from "../index-LReFyN6i.js";
9
+ import { i as y } from "../index-e9eDuagL.js";
10
10
  import { c as B } from "../math-BOBiC4TN.js";
11
- import { c as F } from "../stylesheet-DbHOxtjw.js";
11
+ import { c as F } from "../stylesheet-DdBzowZY.js";
12
12
  var o, r, d, m, l, u, b, f, n, R, k, g, v, E, P;
13
13
  class L extends HTMLElement {
14
14
  constructor() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-BlL26P1V.cjs");exports.AutoplayControls=o.AutoplayControls;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-8rNZwQrs.cjs");exports.AutoplayControls=o.AutoplayControls;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;