aptechka 0.5.41 → 0.5.44

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 (115) hide show
  1. package/lib/{Animation-BcWwYyuC.cjs → Animation-DDHjrbtL.cjs} +1 -1
  2. package/lib/{Animation-BCsZmZbP.js → Animation-Dq_05jlR.js} +1 -1
  3. package/lib/DRACOLoader-C2CFpMGS.cjs +2 -0
  4. package/lib/DRACOLoader-D2KY2dku.js +241 -0
  5. package/lib/{Damped-Ct0JVxUB.js → Damped-P4MkCGoY.js} +2 -2
  6. package/lib/{Damped-C9p_f19T.cjs → Damped-l0mnlhar.cjs} +1 -1
  7. package/lib/KTX2Loader-DdUl1XiY.cjs +2 -0
  8. package/lib/KTX2Loader-DqpAffDj.js +536 -0
  9. package/lib/MeshoptDecoder-6XfTpOG2.js +201 -0
  10. package/lib/MeshoptDecoder-CMeN3oU0.cjs +1 -0
  11. package/lib/{Tweened-CdEuSQDX.js → Tweened-CwDC2zl8.js} +2 -2
  12. package/lib/{Tweened-DISO_ORE.cjs → Tweened-DIt9j9B-.cjs} +1 -1
  13. package/lib/accordion/AccordionElement.d.ts +2 -2
  14. package/lib/accordion/index.cjs +1 -1
  15. package/lib/accordion/index.js +26 -26
  16. package/lib/animation/Animation.d.ts +2 -2
  17. package/lib/animation/AnimationLink.d.ts +1 -1
  18. package/lib/animation/Damped.d.ts +1 -1
  19. package/lib/animation/Tweened.d.ts +2 -2
  20. package/lib/animation/index.cjs +1 -1
  21. package/lib/animation/index.js +3 -3
  22. package/lib/attribute/index.d.ts +1 -1
  23. package/lib/canvas/index.cjs +1 -1
  24. package/lib/canvas/index.d.ts +1 -1
  25. package/lib/canvas/index.js +26 -26
  26. package/lib/checkbox/index.cjs +1 -1
  27. package/lib/checkbox/index.js +17 -17
  28. package/lib/controls/AutoplayControls.d.ts +1 -1
  29. package/lib/controls/DragControls.d.ts +1 -1
  30. package/lib/controls/WheelControls.d.ts +1 -1
  31. package/lib/controls/index.cjs +1 -1
  32. package/lib/controls/index.js +118 -110
  33. package/lib/css-property/index.d.ts +1 -1
  34. package/lib/custom-element/index.d.ts +1 -4
  35. package/lib/element-constructor/ElementConstructor.d.ts +2 -2
  36. package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
  37. package/lib/en3/core/En3View.d.ts +2 -2
  38. package/lib/en3/core/en3.d.ts +2 -2
  39. package/lib/en3/index.cjs +22 -24
  40. package/lib/en3/index.js +1811 -2733
  41. package/lib/en3/loaders/en3GLTFLoader.d.ts +5 -5
  42. package/lib/en3/objects/En3Clip.d.ts +2 -2
  43. package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
  44. package/lib/en3/objects/En3GLTF.d.ts +3 -3
  45. package/lib/en3/objects/En3Image.d.ts +1 -1
  46. package/lib/en3/objects/En3ImageLike.d.ts +2 -2
  47. package/lib/en3/objects/En3Video.d.ts +1 -1
  48. package/lib/en3/objects/fluid/Advection.d.ts +1 -1
  49. package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
  50. package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
  51. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
  52. package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
  53. package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
  54. package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
  55. package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
  56. package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
  57. package/lib/en3/utils/coverTexture.d.ts +1 -1
  58. package/lib/{index-BtsOv9u0.js → index-BN9X-l9M.js} +63 -63
  59. package/lib/index-BbgmbQ-5.cjs +9 -0
  60. package/lib/layout-box/index.d.ts +2 -2
  61. package/lib/modal/index.cjs +1 -1
  62. package/lib/modal/index.js +9 -9
  63. package/lib/pointer/Pointer.d.ts +1 -1
  64. package/lib/pointer/PointerElement.d.ts +1 -1
  65. package/lib/pointer/index.cjs +1 -1
  66. package/lib/pointer/index.js +2 -2
  67. package/lib/{polyfills-mNjpy6Nt.js → polyfills-BA-CL_HF.js} +3 -3
  68. package/lib/polyfills-DHs2SNbz.cjs +1 -0
  69. package/lib/popover/PopoverButtonElement.d.ts +1 -1
  70. package/lib/popover/PopoverElement.d.ts +2 -2
  71. package/lib/popover/index.cjs +1 -1
  72. package/lib/popover/index.js +48 -48
  73. package/lib/scroll/ScrollElement.d.ts +21 -10
  74. package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
  75. package/lib/scroll/ScrollUserElement.d.ts +1 -1
  76. package/lib/scroll/index.cjs +1 -1
  77. package/lib/scroll/index.js +546 -502
  78. package/lib/scroll-entries/index.d.ts +1 -1
  79. package/lib/select/SelectUserElement.d.ts +1 -1
  80. package/lib/select/index.cjs +1 -1
  81. package/lib/select/index.js +1 -1
  82. package/lib/sequence/index.cjs +1 -1
  83. package/lib/sequence/index.d.ts +1 -1
  84. package/lib/sequence/index.js +7 -7
  85. package/lib/slicer/SlicerElement.d.ts +2 -2
  86. package/lib/slicer/index.cjs +4 -4
  87. package/lib/slicer/index.js +31 -31
  88. package/lib/source/SourceElement.d.ts +2 -2
  89. package/lib/source/SourceManager.d.ts +1 -1
  90. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  91. package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
  92. package/lib/tweaker/TweakerElement.d.ts +1 -1
  93. package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
  94. package/lib/tweaker/TweakerFolderElement.d.ts +3 -3
  95. package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  96. package/lib/tweaker/TweakerNumberManagerElement.d.ts +1 -1
  97. package/lib/tweaker/TweakerRangeManagerElement.d.ts +1 -1
  98. package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  99. package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
  100. package/lib/tweaker/TweakerStringManagerElement.d.ts +1 -1
  101. package/lib/tweaker/index.cjs +2 -2
  102. package/lib/tweaker/index.js +125 -125
  103. package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
  104. package/lib/utils/function.d.ts +2 -2
  105. package/lib/utils/index.cjs +1 -1
  106. package/lib/utils/index.js +1 -1
  107. package/lib/utils/layout.d.ts +1 -1
  108. package/lib/video/index.cjs +1 -1
  109. package/lib/video/index.js +13 -13
  110. package/package.json +4 -12
  111. package/lib/index-Buf76Qoq.cjs +0 -9
  112. package/lib/polyfills-BsJ5md2Q.cjs +0 -1
  113. package/lib/resized/index.cjs +0 -1
  114. package/lib/resized/index.d.ts +0 -12
  115. package/lib/resized/index.js +0 -30
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../attribute/index.cjs"),W=require("../custom-element/index.cjs"),D=require("../Store-C-1ruEIm.cjs"),I=require("../style-At6aDoqG.cjs"),N=require("../browser-CpzFX2xg.cjs"),G=require("../tags-Djb6mb1o.cjs");var H=Object.defineProperty,R=Object.getOwnPropertyDescriptor,K=(s,e,t,n)=>{for(var a=n>1?void 0:n?R(e,t):e,c=s.length-1,d;c>=0;c--)(d=s[c])&&(a=(n?d(e,t,a):d(a))||a);return n&&a&&H(e,t,a),a},q=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)},i=(s,e,t)=>(q(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},S=(s,e,t,n)=>(q(s,e,"write to private field"),n?n.call(s,t):e.set(s,t),t),x=(s,e,t)=>(q(s,e,"access private method"),t),T,p,g,l,v,f,O,b,u,m,w,y,L,$,E;exports.PopoverElement=class extends W.CustomElement{constructor(){super(...arguments),h(this,O),h(this,u),h(this,L),h(this,T,-1),h(this,p,new D.Store(!1)),h(this,g,void 0),h(this,l,new A.Attribute(this,"history",!1)),h(this,v,new A.Attribute(this,"single",!1)),h(this,f,!1),this.open=(e=!0)=>{if(i(this,p).current)return;i(this,p).current=!0,i(this,v).current&&(exports.PopoverElement.__opened.forEach(n=>n.close()),exports.PopoverElement.__opened=[]),exports.PopoverElement.__opened.push(this),S(this,T,exports.PopoverElement.__opened.length-1),i(this,l).current&&i(this,f)&&history.pushState("","",i(this,O,b)),clearTimeout(i(this,g)),this.classList.add("triggered"),this.style.display="block",this.dispatchEvent(new CustomEvent("popoverTriggered"));const t=()=>{addEventListener("click",i(this,w)),addEventListener("keydown",i(this,y)),this.style.opacity="1",this.classList.add("opened"),this.dispatchEvent(new CustomEvent("popoverOpened"))};e?setTimeout(t):t()},this.close=()=>{if(i(this,p).current){if(i(this,p).current=!1,exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),i(this,l).current){const e=new URL(location.href);e.searchParams.delete(i(this,u,m)),history.replaceState(null,"",e.href)}this.classList.remove("opened"),this.style.opacity="0",this.dispatchEvent(new CustomEvent("popoverClosing")),removeEventListener("click",i(this,w)),removeEventListener("keydown",i(this,y)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none",this.dispatchEvent(new CustomEvent("popoverClosed"))},I.getElementTransitionDurationMS(this))}},h(this,w,e=>{x(this,L,$).call(this,()=>{const t=e.composedPath();!t.find(n=>n===this)&&!t.find(n=>n instanceof HTMLElement&&n.closest("e-popover-button"))&&t[0]instanceof HTMLElement&&!t[0].closest("[data-outside]")&&this.close()})}),h(this,y,e=>{x(this,L,$).call(this,()=>{e.code==="Escape"&&this.close()})}),h(this,E,()=>{S(this,f,!1),i(this,p).current&&i(this,l).current&&!location.search.includes(i(this,u,m))?this.close():!i(this,p).current&&i(this,l).current&&location.search.includes(i(this,u,m))&&this.open(),S(this,f,!0)})}get history(){return i(this,l)}get single(){return i(this,v)}get opened(){return i(this,p)}connectedCallback(){i(this,l).observe(),i(this,v).observe(),this.style.opacity="0",this.style.display="none",addEventListener("popstate",i(this,E)),setTimeout(()=>{i(this,E).call(this)},0)}disconnectedCallback(){i(this,l).unobserve(),i(this,v).unobserve(),exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),clearTimeout(i(this,g)),removeEventListener("popstate",i(this,E))}};T=new WeakMap;p=new WeakMap;g=new WeakMap;l=new WeakMap;v=new WeakMap;f=new WeakMap;O=new WeakSet;b=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${i(this,u,m)}`};u=new WeakSet;m=function(){return`modal-${this.id}`};w=new WeakMap;y=new WeakMap;L=new WeakSet;$=function(s){(exports.PopoverElement.__opened[i(this,T)-1]||exports.PopoverElement.__opened.length===1)&&s()};E=new WeakMap;exports.PopoverElement.__opened=[];exports.PopoverElement=K([W.define("e-popover")],exports.PopoverElement);var U=Object.defineProperty,z=Object.getOwnPropertyDescriptor,F=(s,e,t,n)=>{for(var a=n>1?void 0:n?z(e,t):e,c=s.length-1,d;c>=0;c--)(d=s[c])&&(a=(n?d(e,t,a):d(a))||a);return n&&a&&U(e,t,a),a},B=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)},r=(s,e,t)=>(B(s,e,"read from private field"),t?t.call(s):e.get(s)),_=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},J=(s,e,t,n)=>(B(s,e,"write to private field"),n?n.call(s,t):e.set(s,t),t),o,P,C,k,M;exports.PopoverButtonElement=class extends W.CustomElement{constructor(){super(),_(this,o,void 0),_(this,P,()=>{this.classList.add("triggered")}),_(this,C,()=>{this.classList.add("opened")}),_(this,k,()=>{this.classList.remove("opened")}),_(this,M,()=>{this.classList.remove("triggered")}),N.isBrowser&&G.element(this,{tabindex:this.getAttribute("tabindex")||"0",onClick:()=>{if(r(this,o)){const e=this.getAttribute("type")||"open";e==="open"||e==="toggle"&&!r(this,o).opened.current?r(this,o).open():(e==="close"||e==="toggle"&&r(this,o).opened.current)&&r(this,o).close()}},onKeydown:e=>{e.code==="Space"&&e.currentTarget.click()}})}get popoverElement(){return r(this,o)}connectedCallback(){const e=this.getAttribute("target");if(e){const t=document.querySelector(`#${e}`)||this.getRootNode().querySelector(`#${e}`);t?(J(this,o,t),r(this,o).addEventListener("popoverTriggered",r(this,P)),r(this,o).addEventListener("popoverOpened",r(this,C)),r(this,o).addEventListener("popoverClosing",r(this,k)),r(this,o).addEventListener("popoverClosed",r(this,M))):console.warn(this,`target ${e} not found`)}}disconnectedCallback(){r(this,o)&&(r(this,o).removeEventListener("popoverTriggered",r(this,P)),r(this,o).removeEventListener("popoverOpened",r(this,C)),r(this,o).removeEventListener("popoverClosing",r(this,k)),r(this,o).removeEventListener("popoverClosed",r(this,M)))}};o=new WeakMap;P=new WeakMap;C=new WeakMap;k=new WeakMap;M=new WeakMap;exports.PopoverButtonElement=F([W.define("e-popover-button")],exports.PopoverButtonElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../attribute/index.cjs"),W=require("../custom-element/index.cjs"),D=require("../Store-C-1ruEIm.cjs"),I=require("../style-At6aDoqG.cjs"),N=require("../browser-CpzFX2xg.cjs"),G=require("../tags-Djb6mb1o.cjs");var H=Object.defineProperty,R=Object.getOwnPropertyDescriptor,K=(s,e,t,o)=>{for(var a=o>1?void 0:o?R(e,t):e,c=s.length-1,d;c>=0;c--)(d=s[c])&&(a=(o?d(e,t,a):d(a))||a);return o&&a&&H(e,t,a),a},b=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)},i=(s,e,t)=>(b(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},S=(s,e,t,o)=>(b(s,e,"write to private field"),e.set(s,t),t),A=(s,e,t)=>(b(s,e,"access private method"),t),T,p,g,l,v,f,O,x,u,m,w,y,L,$,E;exports.PopoverElement=class extends W.CustomElement{constructor(){super(...arguments),h(this,O),h(this,u),h(this,L),h(this,T,-1),h(this,p,new D.Store(!1)),h(this,g,void 0),h(this,l,new q.Attribute(this,"history",!1)),h(this,v,new q.Attribute(this,"single",!1)),h(this,f,!1),this.open=(e=!0)=>{if(i(this,p).current)return;i(this,p).current=!0,i(this,v).current&&(exports.PopoverElement.__opened.forEach(o=>o.close()),exports.PopoverElement.__opened=[]),exports.PopoverElement.__opened.push(this),S(this,T,exports.PopoverElement.__opened.length-1),i(this,l).current&&i(this,f)&&history.pushState("","",i(this,O,x)),clearTimeout(i(this,g)),this.classList.add("triggered"),this.style.display="block",this.dispatchEvent(new CustomEvent("popoverTriggered"));const t=()=>{addEventListener("click",i(this,w)),addEventListener("keydown",i(this,y)),this.style.opacity="1",this.classList.add("opened"),this.dispatchEvent(new CustomEvent("popoverOpened"))};e?setTimeout(t):t()},this.close=()=>{if(i(this,p).current){if(i(this,p).current=!1,exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),i(this,l).current){const e=new URL(location.href);e.searchParams.delete(i(this,u,m)),history.replaceState(null,"",e.href)}this.classList.remove("opened"),this.style.opacity="0",this.dispatchEvent(new CustomEvent("popoverClosing")),removeEventListener("click",i(this,w)),removeEventListener("keydown",i(this,y)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none",this.dispatchEvent(new CustomEvent("popoverClosed"))},I.getElementTransitionDurationMS(this))}},h(this,w,e=>{A(this,L,$).call(this,()=>{const t=e.composedPath();!t.find(o=>o===this)&&!t.find(o=>o instanceof HTMLElement&&o.closest("e-popover-button"))&&t[0]instanceof HTMLElement&&!t[0].closest("[data-outside]")&&this.close()})}),h(this,y,e=>{A(this,L,$).call(this,()=>{e.code==="Escape"&&this.close()})}),h(this,E,()=>{S(this,f,!1),i(this,p).current&&i(this,l).current&&!location.search.includes(i(this,u,m))?this.close():!i(this,p).current&&i(this,l).current&&location.search.includes(i(this,u,m))&&this.open(),S(this,f,!0)})}get history(){return i(this,l)}get single(){return i(this,v)}get opened(){return i(this,p)}connectedCallback(){i(this,l).observe(),i(this,v).observe(),this.style.opacity="0",this.style.display="none",addEventListener("popstate",i(this,E)),setTimeout(()=>{i(this,E).call(this)},0)}disconnectedCallback(){i(this,l).unobserve(),i(this,v).unobserve(),exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),clearTimeout(i(this,g)),removeEventListener("popstate",i(this,E))}};T=new WeakMap;p=new WeakMap;g=new WeakMap;l=new WeakMap;v=new WeakMap;f=new WeakMap;O=new WeakSet;x=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${i(this,u,m)}`};u=new WeakSet;m=function(){return`modal-${this.id}`};w=new WeakMap;y=new WeakMap;L=new WeakSet;$=function(s){(exports.PopoverElement.__opened[i(this,T)-1]||exports.PopoverElement.__opened.length===1)&&s()};E=new WeakMap;exports.PopoverElement.__opened=[];exports.PopoverElement=K([W.define("e-popover")],exports.PopoverElement);var U=Object.defineProperty,z=Object.getOwnPropertyDescriptor,F=(s,e,t,o)=>{for(var a=o>1?void 0:o?z(e,t):e,c=s.length-1,d;c>=0;c--)(d=s[c])&&(a=(o?d(e,t,a):d(a))||a);return o&&a&&U(e,t,a),a},B=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)},r=(s,e,t)=>(B(s,e,"read from private field"),t?t.call(s):e.get(s)),_=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},J=(s,e,t,o)=>(B(s,e,"write to private field"),e.set(s,t),t),n,P,C,k,M;exports.PopoverButtonElement=class extends W.CustomElement{constructor(){super(),_(this,n,void 0),_(this,P,()=>{this.classList.add("triggered")}),_(this,C,()=>{this.classList.add("opened")}),_(this,k,()=>{this.classList.remove("opened")}),_(this,M,()=>{this.classList.remove("triggered")}),N.isBrowser&&G.element(this,{tabindex:this.getAttribute("tabindex")||"0",onClick:()=>{if(r(this,n)){const e=this.getAttribute("type")||"open";e==="open"||e==="toggle"&&!r(this,n).opened.current?r(this,n).open():(e==="close"||e==="toggle"&&r(this,n).opened.current)&&r(this,n).close()}},onKeydown:e=>{e.code==="Space"&&e.currentTarget.click()}})}get popoverElement(){return r(this,n)}connectedCallback(){const e=this.getAttribute("target");if(e){const t=document.querySelector(`#${e}`)||this.getRootNode().querySelector(`#${e}`);t?(J(this,n,t),r(this,n).addEventListener("popoverTriggered",r(this,P)),r(this,n).addEventListener("popoverOpened",r(this,C)),r(this,n).addEventListener("popoverClosing",r(this,k)),r(this,n).addEventListener("popoverClosed",r(this,M))):console.warn(this,`target ${e} not found`)}}disconnectedCallback(){r(this,n)&&(r(this,n).removeEventListener("popoverTriggered",r(this,P)),r(this,n).removeEventListener("popoverOpened",r(this,C)),r(this,n).removeEventListener("popoverClosing",r(this,k)),r(this,n).removeEventListener("popoverClosed",r(this,M)))}};n=new WeakMap;P=new WeakMap;C=new WeakMap;k=new WeakMap;M=new WeakMap;exports.PopoverButtonElement=F([W.define("e-popover-button")],exports.PopoverButtonElement);
@@ -1,85 +1,85 @@
1
1
  import { Attribute as x } from "../attribute/index.js";
2
- import { CustomElement as N, define as q } from "../custom-element/index.js";
3
- import { S as H } from "../Store-BQXXikps.js";
4
- import { a as R } from "../style-CklEF62D.js";
5
- import { i as b } from "../browser-0zX67oeU.js";
2
+ import { CustomElement as I, define as N } from "../custom-element/index.js";
3
+ import { S as G } from "../Store-BQXXikps.js";
4
+ import { a as H } from "../style-CklEF62D.js";
5
+ import { i as R } from "../browser-0zX67oeU.js";
6
6
  import { e as K } from "../tags-CMPg9ETZ.js";
7
- var U = Object.defineProperty, z = Object.getOwnPropertyDescriptor, F = (e, t, s, o) => {
8
- for (var a = o > 1 ? void 0 : o ? z(t, s) : t, d = e.length - 1, v; d >= 0; d--)
9
- (v = e[d]) && (a = (o ? v(t, s, a) : v(a)) || a);
10
- return o && a && U(t, s, a), a;
7
+ var U = Object.defineProperty, z = Object.getOwnPropertyDescriptor, F = (e, t, s, p) => {
8
+ for (var o = p > 1 ? void 0 : p ? z(t, s) : t, l = e.length - 1, v; l >= 0; l--)
9
+ (v = e[l]) && (o = (p ? v(t, s, o) : v(o)) || o);
10
+ return p && o && U(t, s, o), o;
11
11
  }, A = (e, t, s) => {
12
12
  if (!t.has(e))
13
13
  throw TypeError("Cannot " + s);
14
- }, i = (e, t, s) => (A(e, t, "read from private field"), s ? s.call(e) : t.get(e)), p = (e, t, s) => {
14
+ }, i = (e, t, s) => (A(e, t, "read from private field"), s ? s.call(e) : t.get(e)), h = (e, t, s) => {
15
15
  if (t.has(e))
16
16
  throw TypeError("Cannot add the same private member more than once");
17
17
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
18
- }, O = (e, t, s, o) => (A(e, t, "write to private field"), o ? o.call(e, s) : t.set(e, s), s), D = (e, t, s) => (A(e, t, "access private method"), s), S, c, E, l, _, g, $, B, u, m, L, y, C, P, w;
19
- let h = class extends N {
18
+ }, O = (e, t, s, p) => (A(e, t, "write to private field"), t.set(e, s), s), D = (e, t, s) => (A(e, t, "access private method"), s), S, c, E, d, u, g, $, q, _, m, L, y, C, P, w;
19
+ let a = class extends I {
20
20
  constructor() {
21
- super(...arguments), p(this, $), p(this, u), p(this, C), p(this, S, -1), p(this, c, new H(!1)), p(this, E, void 0), p(this, l, new x(this, "history", !1)), p(this, _, new x(this, "single", !1)), p(this, g, !1), this.open = (e = !0) => {
21
+ super(...arguments), h(this, $), h(this, _), h(this, C), h(this, S, -1), h(this, c, new G(!1)), h(this, E, void 0), h(this, d, new x(this, "history", !1)), h(this, u, new x(this, "single", !1)), h(this, g, !1), this.open = (e = !0) => {
22
22
  if (i(this, c).current)
23
23
  return;
24
- i(this, c).current = !0, i(this, _).current && (h.__opened.forEach((s) => s.close()), h.__opened = []), h.__opened.push(this), O(this, S, h.__opened.length - 1), i(this, l).current && i(this, g) && history.pushState("", "", i(this, $, B)), clearTimeout(i(this, E)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
24
+ i(this, c).current = !0, i(this, u).current && (a.__opened.forEach((s) => s.close()), a.__opened = []), a.__opened.push(this), O(this, S, a.__opened.length - 1), i(this, d).current && i(this, g) && history.pushState("", "", i(this, $, q)), clearTimeout(i(this, E)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
25
25
  const t = () => {
26
26
  addEventListener("click", i(this, L)), addEventListener("keydown", i(this, y)), this.style.opacity = "1", this.classList.add("opened"), this.dispatchEvent(new CustomEvent("popoverOpened"));
27
27
  };
28
28
  e ? setTimeout(t) : t();
29
29
  }, this.close = () => {
30
30
  if (i(this, c).current) {
31
- if (i(this, c).current = !1, h.__opened = h.__opened.filter((e) => e !== this), i(this, l).current) {
31
+ if (i(this, c).current = !1, a.__opened = a.__opened.filter((e) => e !== this), i(this, d).current) {
32
32
  const e = new URL(location.href);
33
- e.searchParams.delete(i(this, u, m)), history.replaceState(null, "", e.href);
33
+ e.searchParams.delete(i(this, _, m)), history.replaceState(null, "", e.href);
34
34
  }
35
35
  this.classList.remove("opened"), this.style.opacity = "0", this.dispatchEvent(new CustomEvent("popoverClosing")), removeEventListener("click", i(this, L)), removeEventListener("keydown", i(this, y)), setTimeout(() => {
36
36
  this.classList.remove("triggered"), this.style.display = "none", this.dispatchEvent(new CustomEvent("popoverClosed"));
37
- }, R(this));
37
+ }, H(this));
38
38
  }
39
- }, p(this, L, (e) => {
39
+ }, h(this, L, (e) => {
40
40
  D(this, C, P).call(this, () => {
41
41
  const t = e.composedPath();
42
42
  !t.find((s) => s === this) && !t.find(
43
43
  (s) => s instanceof HTMLElement && s.closest("e-popover-button")
44
44
  ) && t[0] instanceof HTMLElement && !t[0].closest("[data-outside]") && this.close();
45
45
  });
46
- }), p(this, y, (e) => {
46
+ }), h(this, y, (e) => {
47
47
  D(this, C, P).call(this, () => {
48
48
  e.code === "Escape" && this.close();
49
49
  });
50
- }), p(this, w, () => {
51
- O(this, g, !1), i(this, c).current && i(this, l).current && !location.search.includes(i(this, u, m)) ? this.close() : !i(this, c).current && i(this, l).current && location.search.includes(i(this, u, m)) && this.open(), O(this, g, !0);
50
+ }), h(this, w, () => {
51
+ O(this, g, !1), i(this, c).current && i(this, d).current && !location.search.includes(i(this, _, m)) ? this.close() : !i(this, c).current && i(this, d).current && location.search.includes(i(this, _, m)) && this.open(), O(this, g, !0);
52
52
  });
53
53
  }
54
54
  get history() {
55
- return i(this, l);
55
+ return i(this, d);
56
56
  }
57
57
  get single() {
58
- return i(this, _);
58
+ return i(this, u);
59
59
  }
60
60
  get opened() {
61
61
  return i(this, c);
62
62
  }
63
63
  connectedCallback() {
64
- i(this, l).observe(), i(this, _).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", i(this, w)), setTimeout(() => {
64
+ i(this, d).observe(), i(this, u).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", i(this, w)), setTimeout(() => {
65
65
  i(this, w).call(this);
66
66
  }, 0);
67
67
  }
68
68
  disconnectedCallback() {
69
- i(this, l).unobserve(), i(this, _).unobserve(), h.__opened = h.__opened.filter((e) => e !== this), clearTimeout(i(this, E)), removeEventListener("popstate", i(this, w));
69
+ i(this, d).unobserve(), i(this, u).unobserve(), a.__opened = a.__opened.filter((e) => e !== this), clearTimeout(i(this, E)), removeEventListener("popstate", i(this, w));
70
70
  }
71
71
  };
72
72
  S = /* @__PURE__ */ new WeakMap();
73
73
  c = /* @__PURE__ */ new WeakMap();
74
74
  E = /* @__PURE__ */ new WeakMap();
75
- l = /* @__PURE__ */ new WeakMap();
76
- _ = /* @__PURE__ */ new WeakMap();
75
+ d = /* @__PURE__ */ new WeakMap();
76
+ u = /* @__PURE__ */ new WeakMap();
77
77
  g = /* @__PURE__ */ new WeakMap();
78
78
  $ = /* @__PURE__ */ new WeakSet();
79
- B = function() {
80
- return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, u, m)}`;
79
+ q = function() {
80
+ return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, _, m)}`;
81
81
  };
82
- u = /* @__PURE__ */ new WeakSet();
82
+ _ = /* @__PURE__ */ new WeakSet();
83
83
  m = function() {
84
84
  return `modal-${this.id}`;
85
85
  };
@@ -87,26 +87,26 @@ L = /* @__PURE__ */ new WeakMap();
87
87
  y = /* @__PURE__ */ new WeakMap();
88
88
  C = /* @__PURE__ */ new WeakSet();
89
89
  P = function(e) {
90
- (h.__opened[i(this, S) - 1] || h.__opened.length === 1) && e();
90
+ (a.__opened[i(this, S) - 1] || a.__opened.length === 1) && e();
91
91
  };
92
92
  w = /* @__PURE__ */ new WeakMap();
93
- h.__opened = [];
94
- h = F([
95
- q("e-popover")
96
- ], h);
97
- var J = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, V = (e, t, s, o) => {
98
- for (var a = o > 1 ? void 0 : o ? Q(t, s) : t, d = e.length - 1, v; d >= 0; d--)
99
- (v = e[d]) && (a = (o ? v(t, s, a) : v(a)) || a);
100
- return o && a && J(t, s, a), a;
101
- }, G = (e, t, s) => {
93
+ a.__opened = [];
94
+ a = F([
95
+ N("e-popover")
96
+ ], a);
97
+ var J = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, V = (e, t, s, p) => {
98
+ for (var o = p > 1 ? void 0 : p ? Q(t, s) : t, l = e.length - 1, v; l >= 0; l--)
99
+ (v = e[l]) && (o = (p ? v(t, s, o) : v(o)) || o);
100
+ return p && o && J(t, s, o), o;
101
+ }, B = (e, t, s) => {
102
102
  if (!t.has(e))
103
103
  throw TypeError("Cannot " + s);
104
- }, r = (e, t, s) => (G(e, t, "read from private field"), s ? s.call(e) : t.get(e)), f = (e, t, s) => {
104
+ }, r = (e, t, s) => (B(e, t, "read from private field"), s ? s.call(e) : t.get(e)), f = (e, t, s) => {
105
105
  if (t.has(e))
106
106
  throw TypeError("Cannot add the same private member more than once");
107
107
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
108
- }, X = (e, t, s, o) => (G(e, t, "write to private field"), o ? o.call(e, s) : t.set(e, s), s), n, k, W, M, T;
109
- let I = class extends N {
108
+ }, X = (e, t, s, p) => (B(e, t, "write to private field"), t.set(e, s), s), n, k, W, M, T;
109
+ let b = class extends I {
110
110
  constructor() {
111
111
  super(), f(this, n, void 0), f(this, k, () => {
112
112
  this.classList.add("triggered");
@@ -116,7 +116,7 @@ let I = class extends N {
116
116
  this.classList.remove("opened");
117
117
  }), f(this, T, () => {
118
118
  this.classList.remove("triggered");
119
- }), b && K(this, {
119
+ }), R && K(this, {
120
120
  tabindex: this.getAttribute("tabindex") || "0",
121
121
  onClick: () => {
122
122
  if (r(this, n)) {
@@ -172,10 +172,10 @@ k = /* @__PURE__ */ new WeakMap();
172
172
  W = /* @__PURE__ */ new WeakMap();
173
173
  M = /* @__PURE__ */ new WeakMap();
174
174
  T = /* @__PURE__ */ new WeakMap();
175
- I = V([
176
- q("e-popover-button")
177
- ], I);
175
+ b = V([
176
+ N("e-popover-button")
177
+ ], b);
178
178
  export {
179
- I as PopoverButtonElement,
180
- h as PopoverElement
179
+ b as PopoverButtonElement,
180
+ a as PopoverElement
181
181
  };
@@ -1,17 +1,25 @@
1
- import { CSSProperty } from '../css-property';
2
- import { Axes2D } from '../utils';
3
- import { Store } from '../store';
4
- import { CustomElement } from '../custom-element';
5
1
  import { Damped } from '../animation';
2
+ import { CustomElement } from '../custom-element';
3
+ import { Store } from '../store';
4
+ import { Axes2D, EasingFunction } from '../utils';
5
+ import { CSSProperty } from '../css-property';
6
6
 
7
7
  export type ScrollBehaviour = 'smooth' | 'instant';
8
+ export interface ScrollSetOptions {
9
+ behaviour?: ScrollBehaviour;
10
+ tween?: {
11
+ easing?: EasingFunction;
12
+ duration: number;
13
+ };
14
+ }
8
15
  export type SectionMark = 'current' | 'previous' | 'next' | null;
9
16
  export type SectionmarkChangeEvent = CustomEvent<{
10
17
  mark: SectionMark;
11
18
  }>;
12
19
  declare class Section {
13
20
  #private;
14
- constructor(element: HTMLElement, scrollElement: ScrollElement);
21
+ constructor(element: HTMLElement, index: number, scrollElement: ScrollElement);
22
+ get index(): number;
15
23
  get size(): number;
16
24
  get position(): number;
17
25
  destroy(): void;
@@ -33,7 +41,7 @@ export declare class ScrollElement extends CustomElement {
33
41
  get autoSizeCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
34
42
  get wheelMaxDeltaCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
35
43
  get sectionsInViewCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
36
- get infiniteCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
44
+ get loopCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
37
45
  get dampingCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
38
46
  get massCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
39
47
  get stiffnessCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
@@ -45,6 +53,8 @@ export declare class ScrollElement extends CustomElement {
45
53
  get classesCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
46
54
  get currentIndexStartOffsetCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
47
55
  get currentIndexEndOffsetCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
56
+ get focusDelayCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
57
+ get focusDurationCSSProperty(): CSSProperty<number, keyof import('../store').StoreManagers>;
48
58
  get disabledCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
49
59
  get hibernatedCSSProperty(): CSSProperty<boolean, keyof import('../store').StoreManagers>;
50
60
  get currentScrollValue(): number;
@@ -59,7 +69,7 @@ export declare class ScrollElement extends CustomElement {
59
69
  get counter(): Store<number, keyof import('../store').StoreManagers, import('../store').StoreEntry<number>>;
60
70
  get limit(): number;
61
71
  get distance(): number;
62
- get infiniteDistance(): number;
72
+ get loopDistance(): number;
63
73
  get overscroll(): number;
64
74
  get vertical(): boolean;
65
75
  get currentProgress(): number;
@@ -71,9 +81,10 @@ export declare class ScrollElement extends CustomElement {
71
81
  range(from: number, distance: number, margin?: number): number;
72
82
  curve(from: number, distance: number, margin?: number): number;
73
83
  visible(from: number, distance: number, margin?: number): boolean;
74
- scrollToSection(sectionIndex: number, behaviour?: ScrollBehaviour): void;
75
- shiftSections(step: number, behaviour?: ScrollBehaviour): void;
76
- setPosition(value: number, behaviour?: 'smooth' | 'instant'): void;
84
+ scrollToSection(sectionIndex: number, options?: ScrollSetOptions): void;
85
+ shiftSections(step: number, options?: ScrollSetOptions): void;
86
+ setPosition(value: number, options?: ScrollSetOptions): void;
87
+ shiftPosition(value: number, options?: ScrollSetOptions): void;
77
88
  protected connectedCallback(): void;
78
89
  protected disconnectedCallback(): void;
79
90
  }
@@ -1,7 +1,7 @@
1
- import { Damped } from '../animation';
2
- import { ScrollUserElement } from './ScrollUserElement';
3
- import { Store } from '../store';
4
1
  import { CSSProperty } from '../css-property';
2
+ import { Store } from '../store';
3
+ import { ScrollUserElement } from './ScrollUserElement';
4
+ import { Damped } from '../animation';
5
5
 
6
6
  export interface ScrollSegmentResizeDetail {
7
7
  start: number;
@@ -1,5 +1,5 @@
1
- import { ScrollElement } from './ScrollElement';
2
1
  import { CustomElement } from '../custom-element';
2
+ import { ScrollElement } from './ScrollElement';
3
3
 
4
4
  export declare class ScrollUserElement extends CustomElement {
5
5
  #private;
@@ -1 +1 @@
1
- "use strict";var ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ms(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Et=require("../Store-C-1ruEIm.cjs"),qs=require("../Derived-B-g8dYgh.cjs"),as=require("../browser-CpzFX2xg.cjs"),yt=require("../layout-8ryRAMGJ.cjs"),ls=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Pe=require("../order/index.cjs"),ys=require("../Damped-C9p_f19T.cjs"),xe=require("../controls/index.cjs"),_t=require("../custom-element/index.cjs"),ue=require("../window-resizer/index.cjs"),Gt=require("../scroll-entries/index.cjs"),I=require("../tags-Djb6mb1o.cjs"),cs=require("../createStylesheet-CqHU9_qv.cjs"),ws=require("../css-unit-parser/index.cjs"),u=require("../css-property/index.cjs"),Ts=require("../Viewport-DMB0dO-s.cjs"),Ge=require("../element-resizer/index.cjs"),Bs=require("../gestures-DHLrn6Q8.cjs"),bs=require("../theme/index.cjs"),Is=require("../dom-JBOkFLTh.cjs"),_s=require("../function-MthRj-GJ.cjs");var As=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&As(e,i,h),h},us=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(us(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},C=(r,e,i,n)=>(us(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),v=(r,e,i)=>(us(r,e,"access private method"),i),d,Nt,R,it,rt,Y,nt,kt,Wt,Q,T,Kt,Zt,Jt,Qt,fe,lt,Xt,Mt,X,Rt,vt,Yt,jt,b,Ue,p,Le,ze,W,y,B,j,Bt,mt,$,P,de,xt,pe,Se,oe,_e,It,ae,Ne,ps,Ke,Ss,Ve,Qe,Oe,Xe,A,Ze,Ye,Ps,ve,$e,De,je,ct,qt,ts,Es,g,_,Ht,et,gt;class Us{constructor(e,i){V(this,g,void 0);V(this,_,void 0);V(this,Ht,0);V(this,et,0);V(this,gt,null);F(this,g,e),F(this,_,i),Gt.scrollEntries.register(o(this,g))}get size(){return o(this,Ht)}get position(){return o(this,et)}destroy(){Gt.scrollEntries.unregister(o(this,g)),o(this,g).style.transform="",this.mark(null)}setSize(e){e?(o(this,g).style.setProperty("--size",e+"px"),o(this,_).axisCSSProperty.current==="x"?(o(this,g).style.width=e+"px",o(this,g).style.height=""):(o(this,g).style.height=e+"px",o(this,g).style.width="")):(o(this,g).style.width="",o(this,g).style.height="",o(this,g).style.removeProperty("--size"))}resize(){F(this,Ht,o(this,_).vertical?o(this,g).offsetHeight:o(this,g).offsetWidth),F(this,et,o(this,_).vertical?yt.getCumulativeOffsetTop(o(this,g)):yt.getCumulativeOffsetLeft(o(this,g))),F(this,et,o(this,et)-o(this,_).contentPosition)}transform(){let e=0;const i=o(this,_).viewportSize*o(this,_).sectionDistanceScaleCSSProperty.current;o(this,_).infiniteCSSProperty.current&&o(this,_).overscroll&&o(this,et)+o(this,Ht)<o(this,_).currentScrollValue&&(e=o(this,_).distance*-1-o(this,_).gap),Gt.scrollEntries.update(o(this,g),o(this,_).axisCSSProperty.current,e);const n=o(this,_).currentScrollValue+e,h=o(this,et)-o(this,_).viewportSize-i,c=o(this,et)+o(this,Ht)+i,S=ls.clamp(n,h,c);o(this,_).vertical?o(this,g).style.transform=`translate3d(0px, ${S*-1}px, 0px)`:o(this,g).style.transform=`translate3d(${S*-1}px, 0px, 0px)`}mark(e){o(this,gt)!==e&&(o(this,gt)&&o(this,g).classList.remove(o(this,gt)),e&&o(this,g).classList.add(e),F(this,gt,e),o(this,g).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,gt)}})))}}g=new WeakMap,_=new WeakMap,Ht=new WeakMap,et=new WeakMap,gt=new WeakMap;const Ns=cs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends _t.CustomElement{constructor(){super(),a(this,oe),a(this,It),a(this,Ne),a(this,Ke),a(this,Ve),a(this,Oe),a(this,Ye),a(this,De),a(this,ct),a(this,ts),a(this,d,null),a(this,Nt,new u.CSSProperty(this,"--controls",!0)),a(this,R,new u.CSSProperty(this,"--axis","y")),a(this,it,new u.CSSProperty(this,"--direction",0)),a(this,rt,new u.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),a(this,Y,new u.CSSProperty(this,"--split",!1)),a(this,nt,new u.CSSProperty(this,"--sectional",!1)),a(this,kt,new u.CSSProperty(this,"--auto-size",!1)),a(this,Wt,new u.CSSProperty(this,"--wheel-max-delta",!1)),a(this,Q,new u.CSSProperty(this,"--sections-in-view",1)),a(this,T,new u.CSSProperty(this,"--infinite",!1)),a(this,Kt,new u.CSSProperty(this,"--damping",20)),a(this,Zt,new u.CSSProperty(this,"--mass",0)),a(this,Jt,new u.CSSProperty(this,"--stiffness",0)),a(this,Qt,new u.CSSProperty(this,"--mouse-drag",!1)),a(this,fe,new u.CSSProperty(this,"--section-distance-scale",.5)),a(this,lt,new u.CSSProperty(this,"--autoplay",0)),a(this,Xt,new u.CSSProperty(this,"--autoplay-pause-duration",0)),a(this,Mt,new u.CSSProperty(this,"--autoplay-user-direction",!1)),a(this,X,new u.CSSProperty(this,"--classes",0)),a(this,Rt,new u.CSSProperty(this,"--current-index-start-offset",0)),a(this,vt,new u.CSSProperty(this,"--current-index-end-offset",0)),a(this,Yt,new u.CSSProperty(this,"--disabled",!1)),a(this,jt,new u.CSSProperty(this,"--hibernated",!1)),a(this,b,null),a(this,Ue,null),a(this,p,[]),a(this,Le,0),a(this,ze,0),a(this,W,0),a(this,y,0),a(this,B,0),a(this,j,null),a(this,Bt,null),a(this,mt,null),a(this,$,null),a(this,P,new Et.Store(0)),a(this,de,0),a(this,xt,0),a(this,pe,!0),a(this,Se,!0),a(this,A,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,y)||0,i=t(this,P).current;if(C(this,Le,this.vertical?yt.getCumulativeOffsetTop(this):yt.getCumulativeOffsetLeft(this)),C(this,ze,this.vertical?yt.getCumulativeOffsetTop(t(this,b)):yt.getCumulativeOffsetLeft(t(this,b))),C(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,kt).current&&t(this,p).length){const n=t(this,Q).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,p).forEach(c=>{c.setSize(h)})}else t(this,p).forEach(n=>{n.setSize()});if(t(this,p).forEach(n=>{n.resize()}),t(this,rt).current){C(this,y,t(this,W)*t(this,rt).current);const n=t(this,y)+t(this,W);this.vertical?(t(this,b).style.width=n+"px",t(this,b).style.height="100%"):(t(this,b).style.height=n+"px",t(this,b).style.width="100%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",C(this,y,t(this,b).offsetHeight-t(this,W))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",C(this,y,t(this,b).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);C(this,y,t(this,y)+h),t(this,d).max=t(this,y)}if(t(this,T).current&&t(this,p).length){const n=t(this,p)[t(this,p).length-1],h=n.position+n.size-t(this,W),c=t(this,y)-h;C(this,xt,n.position+n.size+c)}else C(this,xt,t(this,y));if(t(this,nt).current&&t(this,p).length){const n=t(this,p)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,y),{equalize:!0})}),a(this,Ze,()=>{const e=this.currentScrollValue;if(C(this,de,Math.max(0,e-t(this,y))),t(this,p).length){let i=0;for(let n=0;n<t(this,p).length;n++){const h=t(this,p)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Gt.scrollEntries.update(this,t(this,R).current,e)}),a(this,ve,(e,i)=>{t(this,Nt).current&&(t(this,$).pauseAndContinue(t(this,Xt).current),t(this,Mt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,$e).call(this,e,i))}),a(this,$e,(e,i)=>{if(t(this,it).current){if(t(this,it).current<0&&i>0)return;if(t(this,it).current>0&&i<0)return}if(!(e==="drag"&&!Ts.device.isMobile&&!t(this,Qt).current))if(t(this,nt).current){const n=Math.sign(i);t(this,p).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),as.isBrowser&&(C(this,d,new ys.Damped(0,{damping:.01,min:0,order:Pe.TICK_ORDER.SCROLL})),this.openShadow(Ns),I.element(this,{tabIndex:0,children:[I.div({class:"static",children:[I.slot({name:"static"})]}),I.div({class:"content",children:[I.slot({ref:e=>C(this,Ue,e)})],style:{flexDirection:new qs.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>C(this,b,e)})]}),C(this,j,new xe.WheelControls({element:t(this,b)})),t(this,j).changeEvent.subscribe(t(this,ve)),C(this,Bt,new xe.KeyboardControls({element:this})),t(this,Bt).changeEvent.subscribe(t(this,ve)),C(this,mt,new xe.DragControls({element:t(this,b)})),t(this,mt).changeEvent.subscribe(t(this,ve)),C(this,$,new xe.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,$e)),t(this,R).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,j).axis=t(this,Wt).current?"max":e,t(this,Bt).dimension=e==="x"?"width":"height",t(this,mt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,A).call(this)}),t(this,Wt).subscribe(e=>{t(this,j).axis=e.current?"max":t(this,R).current}),t(this,rt).subscribe(()=>{this.isConnected&&t(this,A).call(this)}),t(this,Y).subscribe(({current:e})=>{this.isConnected&&(e?v(this,oe,_e).call(this):v(this,It,ae).call(this))}),t(this,nt).subscribe(e=>{t(this,j).debounce=e.current,t(this,mt).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,kt).subscribe(e=>{this.isConnected&&(t(this,A).call(this),e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,Q).subscribe(e=>{this.isConnected&&(t(this,A).call(this),v(this,ct,qt).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,p).length||(t(this,Y).current=!0)),t(this,p).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(C(this,de,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Kt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,d).mass=e.current}),t(this,Jt).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Yt).subscribe(e=>{e.current&&!e.previous?v(this,Ne,ps).call(this):!e.current&&e.previous&&v(this,Ke,Ss).call(this)}),t(this,jt).subscribe(e=>{e.current&&!e.previous?v(this,Ve,Qe).call(this):!e.current&&e.previous&&v(this,Oe,Xe).call(this)}),t(this,lt).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Mt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,X).subscribe(e=>{this.isConnected&&v(this,ct,qt).call(this)}),t(this,Rt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,vt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,p).length&&v(this,ct,qt).call(this)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,Nt)}get axisCSSProperty(){return t(this,R)}get directionCSSProperty(){return t(this,it)}get pagesCSSProperty(){return t(this,rt)}get splitCSSProperty(){return t(this,Y)}get sectionalCSSProperty(){return t(this,nt)}get autoSizeCSSProperty(){return t(this,kt)}get wheelMaxDeltaCSSProperty(){return t(this,Wt)}get sectionsInViewCSSProperty(){return t(this,Q)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Kt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,Jt)}get mouseDragCSSProperty(){return t(this,Qt)}get sectionDistanceScaleCSSProperty(){return t(this,fe)}get autoplayCSSProperty(){return t(this,lt)}get autoplayPauseDurationCSSProperty(){return t(this,Xt)}get autoplayUserDirectionCSSProperty(){return t(this,Mt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,Rt)}get currentIndexEndOffsetCSSProperty(){return t(this,vt)}get disabledCSSProperty(){return t(this,Yt)}get hibernatedCSSProperty(){return t(this,jt)}get currentScrollValue(){return v(this,De,je).call(this,"current")}get targetScrollValue(){return v(this,De,je).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,p)}get position(){return t(this,Le)}get contentPosition(){return t(this,ze)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,y)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,p).length-t(this,Q).current}get distance(){return t(this,xt)}get infiniteDistance(){return t(this,T).current?t(this,xt)+t(this,B):t(this,xt)}get overscroll(){return t(this,de)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,p).length)return;const n=t(this,P).current;v(this,Ye,Ps).call(this,e);const h=t(this,p)[n],c=t(this,p)[t(this,P).current];if(h&&c){let S=0;const Me=v(this,ts,Es).call(this),Rs=Me?this.targetScrollValue-Me.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,p).length-1?S=t(this,y)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,p).length-1&&n===0?S=c.position-(t(this,y)+t(this,W)+t(this,B)):S=c.position-h.position:S=c.position-h.position,t(this,d).shift(S-Rs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,p).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,Nt).observe(),t(this,R).observe(),t(this,it).observe(),t(this,rt).observe(),t(this,Y).observe(),t(this,nt).observe(),t(this,kt).observe(),t(this,Wt).observe(),t(this,Q).observe(),t(this,T).observe(),t(this,Kt).observe(),t(this,Zt).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,fe).observe(),t(this,lt).observe(),t(this,lt).observe(),t(this,Xt).observe(),t(this,Mt).observe(),t(this,X).observe(),t(this,Rt).observe(),t(this,vt).observe(),t(this,Yt).observe(),t(this,jt).observe(),v(this,Oe,Xe).call(this)}disconnectedCallback(){t(this,Nt).unobserve(),t(this,R).unobserve(),t(this,it).unobserve(),t(this,rt).unobserve(),t(this,Y).unobserve(),t(this,nt).unobserve(),t(this,kt).unobserve(),t(this,Wt).unobserve(),t(this,Q).unobserve(),t(this,T).unobserve(),t(this,Kt).unobserve(),t(this,Zt).unobserve(),t(this,Jt).unobserve(),t(this,Qt).unobserve(),t(this,fe).unobserve(),t(this,lt).unobserve(),t(this,Xt).unobserve(),t(this,Mt).unobserve(),t(this,X).unobserve(),t(this,Rt).unobserve(),t(this,vt).unobserve(),t(this,Yt).unobserve(),t(this,jt).unobserve(),v(this,Ve,Qe).call(this)}};d=new WeakMap;Nt=new WeakMap;R=new WeakMap;it=new WeakMap;rt=new WeakMap;Y=new WeakMap;nt=new WeakMap;kt=new WeakMap;Wt=new WeakMap;Q=new WeakMap;T=new WeakMap;Kt=new WeakMap;Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;fe=new WeakMap;lt=new WeakMap;Xt=new WeakMap;Mt=new WeakMap;X=new WeakMap;Rt=new WeakMap;vt=new WeakMap;Yt=new WeakMap;jt=new WeakMap;b=new WeakMap;Ue=new WeakMap;p=new WeakMap;Le=new WeakMap;ze=new WeakMap;W=new WeakMap;y=new WeakMap;B=new WeakMap;j=new WeakMap;Bt=new WeakMap;mt=new WeakMap;$=new WeakMap;P=new WeakMap;de=new WeakMap;xt=new WeakMap;pe=new WeakMap;Se=new WeakMap;oe=new WeakSet;_e=function(){v(this,It,ae).call(this),t(this,Ue).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,p).push(new Us(r,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,A).call(this),v(this,ct,qt).call(this)};It=new WeakSet;ae=function(){t(this,p).forEach(r=>{r.destroy()}),C(this,p,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Ne=new WeakSet;ps=function(){t(this,pe)||(C(this,pe,!0),t(this,d).unsubscribe(t(this,Ze)),t(this,d).unlistenAnimationFrame(),t(this,j).disconnect(),t(this,Bt).disconnect(),t(this,mt).disconnect(),t(this,$).disconnect())};Ke=new WeakSet;Ss=function(){t(this,pe)&&(C(this,pe,!1),t(this,d).subscribe(t(this,Ze)),t(this,j).connect(),t(this,Bt).connect(),t(this,mt).connect(),t(this,lt).current&&t(this,$).connect())};Ve=new WeakSet;Qe=function(){t(this,Se)||(C(this,Se,!0),ue.windowResizer.unsubscribe(t(this,A)),Ge.elementResizer.unsubscribe(t(this,A)),t(this,d).reset(),v(this,Ne,ps).call(this),t(this,b).style.transform="",t(this,Y).current&&v(this,It,ae).call(this),Gt.scrollEntries.unregister(this))};Oe=new WeakSet;Xe=function(){t(this,Se)&&(C(this,Se,!1),t(this,Y).current&&v(this,oe,_e).call(this),Gt.scrollEntries.register(this),ue.windowResizer.subscribe(t(this,A),Pe.RESIZE_ORDER.SCROLL),Ge.elementResizer.subscribe(this,t(this,A)),v(this,Ke,Ss).call(this))};A=new WeakMap;Ze=new WeakMap;Ye=new WeakSet;Ps=function(r){t(this,T).current?(t(this,P).current=r%t(this,p).length,t(this,P).current=t(this,P).current<0?t(this,p).length+t(this,P).current:t(this,P).current):t(this,P).current=ls.clamp(r,0,this.limit)};ve=new WeakMap;$e=new WeakMap;De=new WeakSet;je=function(r="current"){if(t(this,T).current&&t(this,p).length){const e=t(this,d)[r]%(t(this,y)+t(this,W)+t(this,B));return e<0?t(this,y)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};ct=new WeakSet;qt=function(){if(t(this,X).current&&t(this,p).length){const r=t(this,P).current+t(this,Rt).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,Q).current+t(this,vt).current;t(this,p).forEach((i,n)=>{const h=r-this.limit-1+t(this,vt).current,c=r+e,S=this.sections.length-c;n>=r&&n<c||n<=h?i.mark("current"):n>=c&&n<c+S/2||n<=h+e?i.mark("next"):i.mark("previous")})}};ts=new WeakSet;Es=function(){let r=null,e=1/0;for(let i=0;i<t(this,p).length;i++){const n=Math.abs(t(this,p)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,p)[r]:null};exports.ScrollElement=Gs([_t.define("e-scroll")],exports.ScrollElement);var Ee;class Je extends _t.CustomElement{constructor(){super(...arguments);V(this,Ee,null)}get scrollElement(){return o(this,Ee)}connectedCallback(){const i=Is.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,Ee,i):console.error(this,"e-scroll not found")}}Ee=new WeakMap;var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ks(e,i,h),h},ks=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},f=(r,e,i)=>(ks(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Pt=(r,e,i,n)=>(ks(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),me,q,ht,ot,we,be,te,Fe,Re,qe;const Qs=cs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:bs.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:bs.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Je{constructor(){super(),N(this,me,null),N(this,q,null),N(this,ht,!1),N(this,ot,0),N(this,we,0),N(this,be,0),N(this,te,()=>{Pt(this,ht,this.offsetWidth>this.offsetHeight);const e=f(this,ht)?this.offsetWidth:this.offsetHeight;Pt(this,ot,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),Pt(this,ot,Math.max(f(this,ot),30)),f(this,ht)?(f(this,q).style.width=f(this,ot)+"px",f(this,q).style.height="100%"):(f(this,q).style.width="100%",f(this,q).style.height=f(this,ot)+"px"),Pt(this,we,e-f(this,ot)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Fe,()=>{Pt(this,be,this.scrollElement.currentProgress*f(this,we)),f(this,ht)?f(this,q).style.transform=`translate3d(${f(this,be)}px, 0px, 0px)`:f(this,q).style.transform=`translate3d(0px, ${f(this,be)}px, 0px)`}),N(this,Re,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,qe,e=>{document.documentElement.classList.add("grabbing"),Bs.setupDrag(h=>{const c=f(this,ht)?h.x:h.y,S=this.scrollElement.distance/f(this,we),Me=(c-n)*S;this.scrollElement.setPosition(i+Me)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=f(this,ht)?e.x:e.y}),as.isBrowser&&(this.openShadow(Qs),I.element(this,{slot:"static","drag-dead-zone":"",children:[I.slot({ref:e=>Pt(this,me,e),children:I.div({class:"default-thumb"})})]}))}get thumbElement(){return f(this,q)}connectedCallback(){super.connectedCallback();const e=f(this,me).assignedElements()[0]||f(this,me).firstElementChild;Pt(this,q,e),f(this,q).addEventListener("pointerdown",f(this,qe)),ue.windowResizer.subscribe(f(this,te),Pe.RESIZE_ORDER.SCROLL+1),Ge.elementResizer.subscribe(this,f(this,te)),this.scrollElement.onScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.subscribe(f(this,Re))}disconnectedCallback(){f(this,q).removeEventListener("pointerdown",f(this,qe)),ue.windowResizer.unsubscribe(f(this,te)),Ge.elementResizer.unsubscribe(f(this,te)),this.scrollElement.offScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.unsubscribe(f(this,Re))}};me=new WeakMap;q=new WeakMap;ht=new WeakMap;ot=new WeakMap;we=new WeakMap;be=new WeakMap;te=new WeakMap;Fe=new WeakMap;Re=new WeakMap;qe=new WeakMap;exports.ScrollbarElement=Js([_t.define("e-scrollbar")],exports.ScrollbarElement);const Xs=cs.createStylesheet({button:{all:"inherit"}});class Ws extends Je{constructor(){super(),this.openShadow(Xs),as.isBrowser&&I.element(this,{children:[I.button({onClick:()=>{this.handleClick()},children:[I.slot()]})]})}}var Ys=Object.defineProperty,js=Object.getOwnPropertyDescriptor,ti=(r,e,i,n)=>{for(var h=n>1?void 0:n?js(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ys(e,i,h),h};exports.ScrollSetButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=ti([_t.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var ei=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ii=(r,e,i,n)=>{for(var h=n>1?void 0:n?si(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ei(e,i,h),h};exports.ScrollStepButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=ii([_t.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,hi=(r,e,i,n)=>{for(var h=n>1?void 0:n?ni(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ri(e,i,h),h},Ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Ut=(r,e,i)=>(Ms(r,e,"read from private field"),i?i.call(r):e.get(r)),gs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Cs=(r,e,i,n)=>(Ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),Lt,ge,st,Ct,le,ke,We,ce;class oi{constructor(e,i,n){V(this,st,void 0);V(this,Ct,void 0);V(this,le,void 0);V(this,ke,void 0);V(this,We,()=>{o(this,Ct).scrollToSection(o(this,le),o(this,ke))});V(this,ce,()=>{o(this,st).classList.toggle("current",o(this,Ct).counter.current===o(this,le))});F(this,st,document.createElement("button")),F(this,Ct,e),F(this,ke,n),F(this,le,i),o(this,st).addEventListener("click",o(this,We)),o(this,Ct).counter.subscribe(o(this,ce)),o(this,ce).call(this)}get element(){return o(this,st)}destroy(){o(this,st).removeEventListener("click",o(this,We)),o(this,Ct).counter.unsubscribe(o(this,ce)),o(this,st).remove()}}st=new WeakMap,Ct=new WeakMap,le=new WeakMap,ke=new WeakMap,We=new WeakMap,ce=new WeakMap;exports.ScrollBulletButtonsElement=class extends Je{constructor(){super(...arguments),gs(this,Lt,[]),gs(this,ge,_s.debounce(()=>{Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new oi(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Ut(this,Lt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Ut(this,ge)),Ut(this,ge).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Ut(this,ge)),Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[])}};Lt=new WeakMap;ge=new WeakMap;exports.ScrollBulletButtonsElement=hi([_t.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,ci=(r,e,i,n)=>{for(var h=n>1?void 0:n?li(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ai(e,i,h),h},fs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(fs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},w=(r,e,i,n)=>(fs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(fs(r,e,"access private method"),i),ee,se,ie,re,zt,Vt,Ot,$t,D,H,G,U,Tt,x,ut,pt,St,ft,dt,M,J,Z,wt,bt,tt,Te,m,ne,he,Be,L,Dt,O,z,K,Ce,At,E,es,xs,ss,Ls,is,zs,rs,Vs,ns,Os,hs,$s,Ie,ye,at,Ft,ds,Ds,vs,Fs,Ae,os,He;exports.ScrollSegmentElement=class extends Je{constructor(){super(),l(this,es),l(this,ss),l(this,is),l(this,rs),l(this,ns),l(this,hs),l(this,at),l(this,ds),l(this,vs),l(this,Ae),l(this,ee,new u.CSSProperty(this,"--damping",20)),l(this,se,new u.CSSProperty(this,"--mass",0)),l(this,ie,new u.CSSProperty(this,"--stiffness",0)),l(this,re,new u.CSSProperty(this,"--target","")),l(this,zt,new u.CSSProperty(this,"--disabled",!1)),l(this,Vt,new u.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),l(this,Ot,new u.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),l(this,$t,new u.CSSProperty(this,"--capture-once",!1)),l(this,D,new u.CSSProperty(this,"--captured","")),l(this,H,new u.CSSProperty(this,"--released","")),l(this,G,new u.CSSProperty(this,"--captured-from-start","")),l(this,U,new u.CSSProperty(this,"--captured-from-finish","")),l(this,Tt,new u.CSSProperty(this,"--released-from-start","")),l(this,x,new u.CSSProperty(this,"--released-from-finish","")),l(this,ut,new u.CSSProperty(this,"--passed-var","")),l(this,pt,new u.CSSProperty(this,"--progress-var","")),l(this,St,new u.CSSProperty(this,"--distance-var","")),l(this,ft,new u.CSSProperty(this,"--start-var","")),l(this,dt,new u.CSSProperty(this,"--finish-var","")),l(this,M,new Et.Store(!1)),l(this,J,new Et.Store(!1)),l(this,Z,new Et.Store(!1)),l(this,wt,new Et.Store(!1)),l(this,bt,new Et.Store(!1)),l(this,tt,new Et.Store(!1)),l(this,Te,[]),l(this,m,this),l(this,ne,0),l(this,he,0),l(this,Be,0),l(this,L,new ys.Damped(0,{order:Pe.TICK_ORDER.SCROLL-1,min:0,max:1})),l(this,Dt,0),l(this,O,0),l(this,z,0),l(this,K,0),l(this,Ce,!1),l(this,At,!1),l(this,E,!0),l(this,Ie,()=>{s(this,E)||(this.resize(),s(this,ye).call(this))}),l(this,ye,()=>{!s(this,E)&&s(this,Ce)&&this.tick()}),l(this,He,_s.debounce(()=>{const e=Gt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),w(this,Te,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Vt)}get startOffsetCSSProperty(){return s(this,Ot)}get captureOnceCSSProperty(){return s(this,$t)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Tt)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,ut)}get progressVarCSSProperty(){return s(this,pt)}get distanceVarCSSProperty(){return s(this,St)}get startVarCSSProperty(){return s(this,ft)}get finishVarCSSProperty(){return s(this,dt)}get disabledCSSProperty(){return s(this,zt)}get dampingCSSProperty(){return s(this,ee)}get massCSSProperty(){return s(this,se)}get stiffnessCSSProperty(){return s(this,ie)}get targetCSSProperty(){return s(this,re)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,Z)}get isReleasedFromStart(){return s(this,wt)}get isCapturedFromFinish(){return s(this,bt)}get isReleasedFromFinish(){return s(this,tt)}get directionPosition(){return s(this,ne)}get directionSize(){return s(this,he)}get passed(){return s(this,L)}get progress(){return s(this,Dt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,At)}get isDisabled(){return s(this,E)}resize(){w(this,he,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),w(this,ne,this.scrollElement.vertical?yt.getCumulativeOffsetTop(this,this.scrollElement):yt.getCumulativeOffsetLeft(this,this.scrollElement)),w(this,O,this.getStart()),w(this,z,this.getDistance()),w(this,O,s(this,O)+s(this,Ot).current),w(this,z,s(this,z)+s(this,Vt).current),w(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,J).current&&(s(this,M).current=!0),this.setVar(s(this,ft).current,s(this,O)),this.setVar(s(this,dt).current,s(this,K)),this.setVar(s(this,St).current,s(this,z)),s(this,L).max=s(this,z),w(this,Ce,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Te).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,Z).current||k(this,is,zs).call(this):s(this,Z).current&&!s(this,wt).current&&k(this,ns,Os).call(this),i<s(this,K)?s(this,tt).current&&!s(this,bt).current&&k(this,rs,Vs).call(this):s(this,Z).current&&!s(this,tt).current&&k(this,hs,$s).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,es,xs).call(this):s(this,M).current&&(s(this,L).set(ls.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,ss,Ls).call(this)),s(this,At)&&s(this,$t).current&&(s(this,D).current&&s(this,m).classList.add(s(this,D).current),w(this,E,!0))}disable(){this.style.cssText="",w(this,ne,0),w(this,he,0),s(this,L).reset(),w(this,Dt,0),w(this,O,0),w(this,z,0),w(this,K,0),w(this,Ce,!1),s(this,M).current=!1,s(this,J).current=!1,s(this,Z).current=!1,s(this,wt).current=!1,s(this,bt).current=!1,s(this,tt).current=!1,w(this,At,!1),w(this,E,!0),k(this,Ae,os).call(this)}enable(){w(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,ee).observe(),s(this,se).observe(),s(this,ie).observe(),s(this,re).observe(),s(this,zt).observe(),s(this,Vt).observe(),s(this,Ot).observe(),s(this,$t).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Tt).observe(),s(this,x).observe(),s(this,ut).observe(),s(this,pt).observe(),s(this,St).observe(),s(this,ft).observe(),s(this,dt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,He)),s(this,He).call(this),s(this,zt).current||this.enable(),s(this,ee).subscribe(i=>{s(this,L).damping=i.current}),s(this,se).subscribe(i=>{s(this,L).mass=i.current}),s(this,ie).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,re).subscribe(i=>{i.previous&&k(this,Ae,os).call(this),i.current?i.current==="parent"?w(this,m,this.parentElement||this):w(this,m,document.querySelector(i.current)||this):w(this,m,this)}),s(this,zt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,Ot).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Vt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,G).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,U).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,H).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,Tt).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,x).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,$t).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,Dt)))}),s(this,ft).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,dt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,St).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{w(this,Dt,s(this,L).current/s(this,z)||0),this.setVar(s(this,ut).current,s(this,L).current.toFixed(6)),this.setVar(s(this,pt).current,s(this,Dt).toFixed(6))}),ue.windowResizer.subscribe(s(this,Ie),Pe.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,ye)),e=!0}disconnectedCallback(){ue.windowResizer.unsubscribe(s(this,Ie)),this.scrollElement.offScroll(s(this,ye)),s(this,ee).close(),s(this,se).close(),s(this,ie).close(),s(this,re).close(),s(this,zt).close(),s(this,Vt).close(),s(this,Ot).close(),s(this,$t).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Tt).close(),s(this,x).close(),s(this,ut).close(),s(this,pt).close(),s(this,St).close(),s(this,ft).close(),s(this,dt).close(),s(this,M).close(),s(this,J).close(),s(this,Z).close(),s(this,wt).close(),s(this,bt).close(),s(this,tt).close(),this.disable()}removeVar(e){e&&s(this,m).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,m).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,he)+s(this,Be)}getStart(){return s(this,ne)-s(this,Be)}};ee=new WeakMap;se=new WeakMap;ie=new WeakMap;re=new WeakMap;zt=new WeakMap;Vt=new WeakMap;Ot=new WeakMap;$t=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Tt=new WeakMap;x=new WeakMap;ut=new WeakMap;pt=new WeakMap;St=new WeakMap;ft=new WeakMap;dt=new WeakMap;M=new WeakMap;J=new WeakMap;Z=new WeakMap;wt=new WeakMap;bt=new WeakMap;tt=new WeakMap;Te=new WeakMap;m=new WeakMap;ne=new WeakMap;he=new WeakMap;Be=new WeakMap;L=new WeakMap;Dt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Ce=new WeakMap;At=new WeakMap;E=new WeakMap;es=new WeakSet;xs=function(){s(this,M).current=!0,s(this,J).current=!1,w(this,At,!0),s(this,H).current&&s(this,m).classList.remove(s(this,H).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,D).current&&s(this,m).classList.add(s(this,D).current)};ss=new WeakSet;Ls=function(){s(this,J).current=!0,s(this,M).current=!1,w(this,At,!0),s(this,D).current&&s(this,m).classList.remove(s(this,D).current),s(this,G).current&&s(this,m).classList.remove(s(this,G).current),s(this,U).current&&s(this,m).classList.remove(s(this,U).current),s(this,H).current&&s(this,m).classList.add(s(this,H).current)};is=new WeakSet;zs=function(){s(this,M).current=!0,s(this,Z).current=!0,s(this,wt).current=!1,s(this,G).current&&s(this,m).classList.add(s(this,G).current)};rs=new WeakSet;Vs=function(){s(this,M).current=!0,s(this,bt).current=!0,s(this,tt).current=!1,s(this,U).current&&s(this,m).classList.add(s(this,U).current)};ns=new WeakSet;Os=function(){s(this,J).current=!0,s(this,wt).current=!0,s(this,Z).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};hs=new WeakSet;$s=function(){s(this,J).current=!0,s(this,tt).current=!0,s(this,bt).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};Ie=new WeakMap;ye=new WeakMap;at=new WeakSet;Ft=function(r){if(s(this,E)){r.previous&&s(this,m).classList.remove(r.previous),r.current&&s(this,m).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,m).classList.remove(r.previous),s(this,m).classList.add(r.current)):!r.current&&r.previous&&s(this,m).classList.remove(r.previous)};ds=new WeakSet;Ds=function(...r){r.forEach(e=>{e&&s(this,m).classList.remove(e)})};vs=new WeakSet;Fs=function(...r){r.forEach(e=>{e&&s(this,m).style.removeProperty(`--${e}`)})};Ae=new WeakSet;os=function(){k(this,ds,Ds).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Tt).current,s(this,x).current),k(this,vs,Fs).call(this,s(this,ut).current,s(this,pt).current,s(this,St).current,s(this,ft).current,s(this,dt).current)};He=new WeakMap;exports.ScrollSegmentElement=ci([_t.define("e-scroll-segment")],exports.ScrollSegmentElement);
1
+ "use strict";var Ns=Object.defineProperty;var _s=Object.getOwnPropertySymbols;var Ks=Object.prototype.hasOwnProperty,Zs=Object.prototype.propertyIsEnumerable;var Ps=(r,e,i)=>e in r?Ns(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,ks=(r,e)=>{for(var i in e||(e={}))Ks.call(e,i)&&Ps(r,i,e[i]);if(_s)for(var i of _s(e))Zs.call(e,i)&&Ps(r,i,e[i]);return r};var Es=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(Es(r,e,"read from private field"),i?i.call(r):e.get(r)),L=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},O=(r,e,i,n)=>(Es(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Et=require("../Store-C-1ruEIm.cjs"),Js=require("../Derived-B-g8dYgh.cjs"),fs=require("../browser-CpzFX2xg.cjs"),Qs=require("../easings-DsS5-Kqc.cjs"),_t=require("../layout-8ryRAMGJ.cjs"),ds=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Me=require("../order/index.cjs"),zs=require("../Damped-l0mnlhar.cjs"),Xs=require("../Tweened-DIt9j9B-.cjs"),De=require("../controls/index.cjs"),Pt=require("../custom-element/index.cjs"),fe=require("../window-resizer/index.cjs"),Nt=require("../scroll-entries/index.cjs"),A=require("../tags-Djb6mb1o.cjs"),vs=require("../createStylesheet-CqHU9_qv.cjs"),Ws=require("../css-unit-parser/index.cjs"),u=require("../css-property/index.cjs"),Ys=require("../Viewport-DMB0dO-s.cjs"),Qe=require("../element-resizer/index.cjs"),js=require("../gestures-DHLrn6Q8.cjs"),Ms=require("../theme/index.cjs"),ti=require("../dom-JBOkFLTh.cjs"),Vs=require("../function-MthRj-GJ.cjs");var ei=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ii=(r,e,i,n)=>{for(var h=n>1?void 0:n?si(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ei(e,i,h),h},ws=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(ws(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(ws(r,e,"write to private field"),e.set(r,i),i),v=(r,e,i)=>(ws(r,e,"access private method"),i),d,Zt,R,rt,nt,j,ht,Wt,Mt,Q,q,Jt,Qt,Xt,Yt,we,X,jt,xt,Y,qt,wt,Lt,te,ee,se,g,Xe,p,$e,Fe,W,y,I,tt,Bt,bt,$,P,be,zt,de,ve,Ee,ct,ce,We,Ht,ue,Ye,bs,je,ms,Re,ss,Te,is,B,ts,rs,Os,me,qe,Ie,ns,ut,It,Ae,hs,C,xe,_,Ut,st,Ct;class ri{constructor(e,i,n){L(this,C,void 0);L(this,xe,void 0);L(this,_,void 0);L(this,Ut,0);L(this,st,0);L(this,Ct,null);O(this,C,e),O(this,xe,i),O(this,_,n),Nt.scrollEntries.register(o(this,C))}get index(){return o(this,xe)}get size(){return o(this,Ut)}get position(){return o(this,st)}destroy(){Nt.scrollEntries.unregister(o(this,C)),o(this,C).style.transform="",this.mark(null)}setSize(e){e?(o(this,C).style.setProperty("--size",e+"px"),o(this,_).axisCSSProperty.current==="x"?(o(this,C).style.width=e+"px",o(this,C).style.height=""):(o(this,C).style.height=e+"px",o(this,C).style.width="")):(o(this,C).style.width="",o(this,C).style.height="",o(this,C).style.removeProperty("--size"))}resize(){O(this,Ut,o(this,_).vertical?o(this,C).offsetHeight:o(this,C).offsetWidth),O(this,st,o(this,_).vertical?_t.getCumulativeOffsetTop(o(this,C)):_t.getCumulativeOffsetLeft(o(this,C))),O(this,st,o(this,st)-o(this,_).contentPosition)}transform(){let e=0;const i=o(this,_).viewportSize*o(this,_).sectionDistanceScaleCSSProperty.current;o(this,_).loopCSSProperty.current&&o(this,_).overscroll&&o(this,st)+o(this,Ut)<o(this,_).currentScrollValue&&(e=o(this,_).distance*-1-o(this,_).gap),Nt.scrollEntries.update(o(this,C),o(this,_).axisCSSProperty.current,e);const n=o(this,_).currentScrollValue+e,h=o(this,st)-o(this,_).viewportSize-i,c=o(this,st)+o(this,Ut)+i,S=ds.clamp(n,h,c);o(this,_).vertical?o(this,C).style.transform=`translate3d(0px, ${S*-1}px, 0px)`:o(this,C).style.transform=`translate3d(${S*-1}px, 0px, 0px)`}mark(e){o(this,Ct)!==e&&(o(this,Ct)&&o(this,C).classList.remove(o(this,Ct)),e&&o(this,C).classList.add(e),O(this,Ct,e),o(this,C).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,Ct)}})))}}C=new WeakMap,xe=new WeakMap,_=new WeakMap,Ut=new WeakMap,st=new WeakMap,Ct=new WeakMap;const ni=vs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends Pt.CustomElement{constructor(){super(),a(this,ce),a(this,Ht),a(this,Ye),a(this,je),a(this,Re),a(this,Te),a(this,rs),a(this,Ie),a(this,ut),a(this,Ae),a(this,d,null),a(this,Zt,new u.CSSProperty(this,"--controls",!0)),a(this,R,new u.CSSProperty(this,"--axis","y")),a(this,rt,new u.CSSProperty(this,"--direction",0)),a(this,nt,new u.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),a(this,j,new u.CSSProperty(this,"--split",!1)),a(this,ht,new u.CSSProperty(this,"--sectional",!1)),a(this,Wt,new u.CSSProperty(this,"--auto-size",!1)),a(this,Mt,new u.CSSProperty(this,"--wheel-max-delta",!1)),a(this,Q,new u.CSSProperty(this,"--sections-in-view",1)),a(this,q,new u.CSSProperty(this,"--loop",!1)),a(this,Jt,new u.CSSProperty(this,"--damping",20)),a(this,Qt,new u.CSSProperty(this,"--mass",0)),a(this,Xt,new u.CSSProperty(this,"--stiffness",0)),a(this,Yt,new u.CSSProperty(this,"--mouse-drag",!1)),a(this,we,new u.CSSProperty(this,"--section-distance-scale",.5)),a(this,X,new u.CSSProperty(this,"--autoplay",0)),a(this,jt,new u.CSSProperty(this,"--autoplay-pause-duration",0)),a(this,xt,new u.CSSProperty(this,"--autoplay-user-direction",!1)),a(this,Y,new u.CSSProperty(this,"--classes",0)),a(this,qt,new u.CSSProperty(this,"--current-index-start-offset",0)),a(this,wt,new u.CSSProperty(this,"--current-index-end-offset",0)),a(this,Lt,new u.CSSProperty(this,"--focus-delay",0)),a(this,te,new u.CSSProperty(this,"--focus-duration",3e3)),a(this,ee,new u.CSSProperty(this,"--disabled",!1)),a(this,se,new u.CSSProperty(this,"--hibernated",!1)),a(this,g,null),a(this,Xe,null),a(this,p,[]),a(this,$e,0),a(this,Fe,0),a(this,W,0),a(this,y,0),a(this,I,0),a(this,tt,null),a(this,Bt,null),a(this,bt,null),a(this,$,null),a(this,P,new Et.Store(0)),a(this,be,0),a(this,zt,0),a(this,de,!0),a(this,ve,!0),a(this,Ee,void 0),a(this,ct,new Xs.Tweened),a(this,B,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,y)||0,i=t(this,P).current;if(m(this,$e,this.vertical?_t.getCumulativeOffsetTop(this):_t.getCumulativeOffsetLeft(this)),m(this,Fe,this.vertical?_t.getCumulativeOffsetTop(t(this,g)):_t.getCumulativeOffsetLeft(t(this,g))),m(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?m(this,I,Ws.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):m(this,I,Ws.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,Wt).current&&t(this,p).length){const n=t(this,Q).current,h=(t(this,W)-t(this,I)*(n-1))/n;t(this,p).forEach(c=>{c.setSize(h)})}else t(this,p).forEach(n=>{n.setSize()});if(t(this,p).forEach(n=>{n.resize()}),t(this,nt).current){m(this,y,t(this,W)*t(this,nt).current);const n=t(this,y)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",m(this,y,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",m(this,y,t(this,g).offsetWidth-t(this,W)));if(!t(this,q).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);m(this,y,t(this,y)+h),t(this,d).max=t(this,y)}if(t(this,q).current&&t(this,p).length){const n=t(this,p)[t(this,p).length-1],h=n.position+n.size-t(this,W),c=t(this,y)-h;m(this,zt,n.position+n.size+c)}else m(this,zt,t(this,y));if(t(this,ht).current&&t(this,p).length){const n=t(this,p)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,y),{equalize:!0})}),a(this,ts,()=>{const e=this.currentScrollValue;if(m(this,be,Math.max(0,e-t(this,y))),t(this,p).length){let i=0;for(let n=0;n<t(this,p).length;n++){const h=t(this,p)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Nt.scrollEntries.update(this,t(this,R).current,e)}),a(this,me,(e,i)=>{t(this,Zt).current&&(t(this,xt).current&&(t(this,$).pauseAndContinue(t(this,jt).current),t(this,$).direction=Math.sign(i)||1),t(this,qe).call(this,e,i))}),a(this,qe,(e,i)=>{if(t(this,rt).current){if(t(this,rt).current<0&&i>0)return;if(t(this,rt).current>0&&i<0)return}if(t(this,ct).unlistenAnimationFrame(),!t(this,X).current&&t(this,Lt).current&&(clearInterval(t(this,Ee)),m(this,Ee,setTimeout(()=>{const n=v(this,Ae,hs).call(this);n&&this.scrollToSection(n.index,{tween:{duration:t(this,te).current,easing:Qs.easeInOutExpo}})},t(this,Lt).current))),!(e==="drag"&&!Ys.device.isMobile&&!t(this,Yt).current))if(t(this,ht).current){const n=Math.sign(i);t(this,p).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),fs.isBrowser&&(m(this,d,new zs.Damped(0,{damping:.01,min:0,order:Me.TICK_ORDER.SCROLL})),this.openShadow(ni),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>m(this,Xe,e)})],style:{flexDirection:new Js.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>m(this,g,e)})]}),m(this,tt,new De.WheelControls({element:t(this,g)})),t(this,tt).changeEvent.subscribe(t(this,me)),m(this,Bt,new De.KeyboardControls({element:this})),t(this,Bt).changeEvent.subscribe(t(this,me)),m(this,bt,new De.DragControls({element:t(this,g)})),t(this,bt).changeEvent.subscribe(t(this,me)),m(this,$,new De.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,qe)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,tt).axis=t(this,Mt).current?"max":e,t(this,Bt).dimension=e==="x"?"width":"height",t(this,bt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,B).call(this)}),t(this,Mt).subscribe(e=>{t(this,tt).axis=e.current?"max":t(this,R).current}),t(this,nt).subscribe(()=>{this.isConnected&&t(this,B).call(this)}),t(this,j).subscribe(({current:e})=>{this.isConnected&&(e?v(this,ce,We).call(this):v(this,Ht,ue).call(this))}),t(this,ht).subscribe(e=>{t(this,tt).debounce=e.current,t(this,bt).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,p).length?v(this,ce,We).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,Ht,ue).call(this))}),t(this,Wt).subscribe(e=>{this.isConnected&&(t(this,B).call(this),e.current&&!e.previous&&!t(this,p).length?v(this,ce,We).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,Ht,ue).call(this))}),t(this,Q).subscribe(e=>{this.isConnected&&(t(this,B).call(this),v(this,ut,It).call(this))}),t(this,q).subscribe(e=>{e.current?(this.isConnected&&(t(this,p).length||(t(this,j).current=!0)),t(this,p).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(m(this,be,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Jt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Qt).subscribe(e=>{t(this,d).mass=e.current}),t(this,Xt).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,ee).subscribe(e=>{e.current&&!e.previous?v(this,Ye,bs).call(this):!e.current&&e.previous&&v(this,je,ms).call(this)}),t(this,se).subscribe(e=>{e.current&&!e.previous?v(this,Re,ss).call(this):!e.current&&e.previous&&v(this,Te,is).call(this)}),t(this,X).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,xt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,Y).subscribe(e=>{this.isConnected&&v(this,ut,It).call(this)}),t(this,qt).subscribe(e=>{this.isConnected&&t(this,Y).current&&v(this,ut,It).call(this)}),t(this,wt).subscribe(e=>{this.isConnected&&t(this,Y).current&&v(this,ut,It).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,p).length&&v(this,ut,It).call(this)}),t(this,ct).subscribe(e=>{t(this,ct).isRunning.current&&t(this,d).set(e.current)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,Zt)}get axisCSSProperty(){return t(this,R)}get directionCSSProperty(){return t(this,rt)}get pagesCSSProperty(){return t(this,nt)}get splitCSSProperty(){return t(this,j)}get sectionalCSSProperty(){return t(this,ht)}get autoSizeCSSProperty(){return t(this,Wt)}get wheelMaxDeltaCSSProperty(){return t(this,Mt)}get sectionsInViewCSSProperty(){return t(this,Q)}get loopCSSProperty(){return t(this,q)}get dampingCSSProperty(){return t(this,Jt)}get massCSSProperty(){return t(this,Qt)}get stiffnessCSSProperty(){return t(this,Xt)}get mouseDragCSSProperty(){return t(this,Yt)}get sectionDistanceScaleCSSProperty(){return t(this,we)}get autoplayCSSProperty(){return t(this,X)}get autoplayPauseDurationCSSProperty(){return t(this,jt)}get autoplayUserDirectionCSSProperty(){return t(this,xt)}get classesCSSProperty(){return t(this,Y)}get currentIndexStartOffsetCSSProperty(){return t(this,qt)}get currentIndexEndOffsetCSSProperty(){return t(this,wt)}get focusDelayCSSProperty(){return t(this,Lt)}get focusDurationCSSProperty(){return t(this,te)}get disabledCSSProperty(){return t(this,ee)}get hibernatedCSSProperty(){return t(this,se)}get currentScrollValue(){return v(this,Ie,ns).call(this,"current")}get targetScrollValue(){return v(this,Ie,ns).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,p)}get position(){return t(this,$e)}get contentPosition(){return t(this,Fe)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,y)}get gap(){return t(this,I)}get counter(){return t(this,P)}get limit(){return t(this,p).length-t(this,Q).current}get distance(){return t(this,zt)}get loopDistance(){return t(this,q).current?t(this,zt)+t(this,I):t(this,zt)}get overscroll(){return t(this,be)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i){if(!t(this,p).length)return;const n=t(this,P).current;v(this,rs,Os).call(this,e);const h=t(this,p)[n],c=t(this,p)[t(this,P).current];if(h&&c){let S=0;const Oe=v(this,Ae,hs).call(this),Us=Oe?this.targetScrollValue-Oe.position:0;t(this,q).current?t(this,P).current===0&&n===t(this,p).length-1?S=t(this,y)+t(this,W)-h.position+t(this,I):t(this,P).current===t(this,p).length-1&&n===0?S=c.position-(t(this,y)+t(this,W)+t(this,I)):S=c.position-h.position:S=c.position-h.position,this.shiftPosition(S-Us,i)}}shiftSections(e,i){t(this,p).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i){i!=null&&i.tween?(t(this,ct).set(t(this,d).current,{equalize:!0}),t(this,ct).set(e,ks({},i.tween))):t(this,d).set(e,{equalize:(i==null?void 0:i.behaviour)==="instant"})}shiftPosition(e,i){this.setPosition(t(this,d).target+e,i)}connectedCallback(){t(this,Zt).observe(),t(this,R).observe(),t(this,rt).observe(),t(this,nt).observe(),t(this,j).observe(),t(this,ht).observe(),t(this,Wt).observe(),t(this,Mt).observe(),t(this,Q).observe(),t(this,q).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,Xt).observe(),t(this,Yt).observe(),t(this,we).observe(),t(this,X).observe(),t(this,X).observe(),t(this,jt).observe(),t(this,xt).observe(),t(this,Y).observe(),t(this,qt).observe(),t(this,wt).observe(),t(this,Lt).observe(),t(this,te).observe(),t(this,ee).observe(),t(this,se).observe(),v(this,Te,is).call(this)}disconnectedCallback(){t(this,Zt).unobserve(),t(this,R).unobserve(),t(this,rt).unobserve(),t(this,nt).unobserve(),t(this,j).unobserve(),t(this,ht).unobserve(),t(this,Wt).unobserve(),t(this,Mt).unobserve(),t(this,Q).unobserve(),t(this,q).unobserve(),t(this,Jt).unobserve(),t(this,Qt).unobserve(),t(this,Xt).unobserve(),t(this,Yt).unobserve(),t(this,we).unobserve(),t(this,X).unobserve(),t(this,jt).unobserve(),t(this,xt).unobserve(),t(this,Y).unobserve(),t(this,qt).unobserve(),t(this,wt).unobserve(),t(this,Lt).unobserve(),t(this,te).unobserve(),t(this,ee).unobserve(),t(this,se).unobserve(),v(this,Re,ss).call(this)}};d=new WeakMap;Zt=new WeakMap;R=new WeakMap;rt=new WeakMap;nt=new WeakMap;j=new WeakMap;ht=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;Q=new WeakMap;q=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Yt=new WeakMap;we=new WeakMap;X=new WeakMap;jt=new WeakMap;xt=new WeakMap;Y=new WeakMap;qt=new WeakMap;wt=new WeakMap;Lt=new WeakMap;te=new WeakMap;ee=new WeakMap;se=new WeakMap;g=new WeakMap;Xe=new WeakMap;p=new WeakMap;$e=new WeakMap;Fe=new WeakMap;W=new WeakMap;y=new WeakMap;I=new WeakMap;tt=new WeakMap;Bt=new WeakMap;bt=new WeakMap;$=new WeakMap;P=new WeakMap;be=new WeakMap;zt=new WeakMap;de=new WeakMap;ve=new WeakMap;Ee=new WeakMap;ct=new WeakMap;ce=new WeakSet;We=function(){v(this,Ht,ue).call(this),t(this,Xe).assignedElements().forEach((r,e)=>{r instanceof HTMLElement&&t(this,p).push(new ri(r,e,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,B).call(this),v(this,ut,It).call(this)};Ht=new WeakSet;ue=function(){t(this,p).forEach(r=>{r.destroy()}),m(this,p,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Ye=new WeakSet;bs=function(){t(this,de)||(m(this,de,!0),t(this,d).unsubscribe(t(this,ts)),t(this,d).unlistenAnimationFrame(),t(this,tt).disconnect(),t(this,Bt).disconnect(),t(this,bt).disconnect(),t(this,$).disconnect(),clearInterval(t(this,Ee)),t(this,ct).unlistenAnimationFrame())};je=new WeakSet;ms=function(){t(this,de)&&(m(this,de,!1),t(this,d).subscribe(t(this,ts)),t(this,tt).connect(),t(this,Bt).connect(),t(this,bt).connect(),t(this,X).current&&t(this,$).connect())};Re=new WeakSet;ss=function(){t(this,ve)||(m(this,ve,!0),fe.windowResizer.unsubscribe(t(this,B)),Qe.elementResizer.unsubscribe(t(this,B)),t(this,d).reset(),v(this,Ye,bs).call(this),t(this,g).style.transform="",t(this,j).current&&v(this,Ht,ue).call(this),Nt.scrollEntries.unregister(this))};Te=new WeakSet;is=function(){t(this,ve)&&(m(this,ve,!1),t(this,j).current&&v(this,ce,We).call(this),Nt.scrollEntries.register(this),fe.windowResizer.subscribe(t(this,B),Me.RESIZE_ORDER.SCROLL),Qe.elementResizer.subscribe(this,t(this,B)),v(this,je,ms).call(this))};B=new WeakMap;ts=new WeakMap;rs=new WeakSet;Os=function(r){t(this,q).current?(t(this,P).current=r%t(this,p).length,t(this,P).current=t(this,P).current<0?t(this,p).length+t(this,P).current:t(this,P).current):t(this,P).current=ds.clamp(r,0,this.limit)};me=new WeakMap;qe=new WeakMap;Ie=new WeakSet;ns=function(r="current"){if(t(this,q).current&&t(this,p).length){const e=t(this,d)[r]%(t(this,y)+t(this,W)+t(this,I));return e<0?t(this,y)+e+t(this,W)+t(this,I):e}else return t(this,d)[r]};ut=new WeakSet;It=function(){if(t(this,Y).current&&t(this,p).length){const r=t(this,P).current+t(this,qt).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,Q).current+t(this,wt).current;t(this,p).forEach((i,n)=>{const h=r-this.limit-1+t(this,wt).current,c=r+e,S=this.sections.length-c;n>=r&&n<c||n<=h?i.mark("current"):n>=c&&n<c+S/2||n<=h+e?i.mark("next"):i.mark("previous")})}};Ae=new WeakSet;hs=function(){let r=null,e=1/0;for(let i=0;i<t(this,p).length;i++){const n=Math.abs(t(this,p)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,p)[r]:null};exports.ScrollElement=ii([Pt.define("e-scroll")],exports.ScrollElement);var Le;class es extends Pt.CustomElement{constructor(){super(...arguments);L(this,Le,null)}get scrollElement(){return o(this,Le)}connectedCallback(){const i=ti.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?O(this,Le,i):console.error(this,"e-scroll not found")}}Le=new WeakMap;var hi=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ai=(r,e,i,n)=>{for(var h=n>1?void 0:n?oi(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&hi(e,i,h),h},Ds=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},f=(r,e,i)=>(Ds(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},kt=(r,e,i,n)=>(Ds(r,e,"write to private field"),e.set(r,i),i),ge,T,ot,at,Ce,ye,ie,Be,He,Ge;const li=vs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ms.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ms.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends es{constructor(){super(),N(this,ge,null),N(this,T,null),N(this,ot,!1),N(this,at,0),N(this,Ce,0),N(this,ye,0),N(this,ie,()=>{kt(this,ot,this.offsetWidth>this.offsetHeight);const e=f(this,ot)?this.offsetWidth:this.offsetHeight;kt(this,at,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),kt(this,at,Math.max(f(this,at),30)),f(this,ot)?(f(this,T).style.width=f(this,at)+"px",f(this,T).style.height="100%"):(f(this,T).style.width="100%",f(this,T).style.height=f(this,at)+"px"),kt(this,Ce,e-f(this,at)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Be,()=>{kt(this,ye,this.scrollElement.currentProgress*f(this,Ce)),f(this,ot)?f(this,T).style.transform=`translate3d(${f(this,ye)}px, 0px, 0px)`:f(this,T).style.transform=`translate3d(0px, ${f(this,ye)}px, 0px)`}),N(this,He,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ge,e=>{document.documentElement.classList.add("grabbing"),js.setupDrag(h=>{const c=f(this,ot)?h.x:h.y,S=this.scrollElement.distance/f(this,Ce),Oe=(c-n)*S;this.scrollElement.setPosition(i+Oe)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=f(this,ot)?e.x:e.y}),fs.isBrowser&&(this.openShadow(li),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>kt(this,ge,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return f(this,T)}connectedCallback(){super.connectedCallback();const e=f(this,ge).assignedElements()[0]||f(this,ge).firstElementChild;kt(this,T,e),f(this,T).addEventListener("pointerdown",f(this,Ge)),fe.windowResizer.subscribe(f(this,ie),Me.RESIZE_ORDER.SCROLL+1),Qe.elementResizer.subscribe(this,f(this,ie)),this.scrollElement.onScroll(f(this,Be)),this.scrollElement.axisCSSProperty.subscribe(f(this,He))}disconnectedCallback(){f(this,T).removeEventListener("pointerdown",f(this,Ge)),fe.windowResizer.unsubscribe(f(this,ie)),Qe.elementResizer.unsubscribe(f(this,ie)),this.scrollElement.offScroll(f(this,Be)),this.scrollElement.axisCSSProperty.unsubscribe(f(this,He))}};ge=new WeakMap;T=new WeakMap;ot=new WeakMap;at=new WeakMap;Ce=new WeakMap;ye=new WeakMap;ie=new WeakMap;Be=new WeakMap;He=new WeakMap;Ge=new WeakMap;exports.ScrollbarElement=ai([Pt.define("e-scrollbar")],exports.ScrollbarElement);const ci=vs.createStylesheet({button:{all:"inherit"}});class $s extends es{constructor(){super(),this.openShadow(ci),fs.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var ui=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,Si=(r,e,i,n)=>{for(var h=n>1?void 0:n?pi(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ui(e,i,h),h};exports.ScrollSetButtonElement=class extends $s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),{behaviour:i})}};exports.ScrollSetButtonElement=Si([Pt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var fi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,vi=(r,e,i,n)=>{for(var h=n>1?void 0:n?di(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&fi(e,i,h),h};exports.ScrollStepButtonElement=class extends $s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),{behaviour:i})}};exports.ScrollStepButtonElement=vi([Pt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var wi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,mi=(r,e,i,n)=>{for(var h=n>1?void 0:n?bi(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&wi(e,i,h),h},Fs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Kt=(r,e,i)=>(Fs(r,e,"read from private field"),i?i.call(r):e.get(r)),xs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Ls=(r,e,i,n)=>(Fs(r,e,"write to private field"),e.set(r,i),i),Vt,_e,it,yt,pe,ze,Ve,Se;class gi{constructor(e,i,n){L(this,it,void 0);L(this,yt,void 0);L(this,pe,void 0);L(this,ze,void 0);L(this,Ve,()=>{o(this,yt).scrollToSection(o(this,pe),{behaviour:o(this,ze)})});L(this,Se,()=>{o(this,it).classList.toggle("current",o(this,yt).counter.current===o(this,pe))});O(this,it,document.createElement("button")),O(this,yt,e),O(this,ze,n),O(this,pe,i),o(this,it).addEventListener("click",o(this,Ve)),o(this,yt).counter.subscribe(o(this,Se)),o(this,Se).call(this)}get element(){return o(this,it)}destroy(){o(this,it).removeEventListener("click",o(this,Ve)),o(this,yt).counter.unsubscribe(o(this,Se)),o(this,it).remove()}}it=new WeakMap,yt=new WeakMap,pe=new WeakMap,ze=new WeakMap,Ve=new WeakMap,Se=new WeakMap;exports.ScrollBulletButtonsElement=class extends es{constructor(){super(...arguments),xs(this,Vt,[]),xs(this,_e,Vs.debounce(()=>{Kt(this,Vt).forEach(e=>e.destroy()),Ls(this,Vt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new gi(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Kt(this,Vt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Kt(this,_e)),Kt(this,_e).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Kt(this,_e)),Kt(this,Vt).forEach(e=>e.destroy()),Ls(this,Vt,[])}};Vt=new WeakMap;_e=new WeakMap;exports.ScrollBulletButtonsElement=mi([Pt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var Ci=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,_i=(r,e,i,n)=>{for(var h=n>1?void 0:n?yi(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ci(e,i,h),h},gs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(gs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(gs(r,e,"write to private field"),e.set(r,i),i),E=(r,e,i)=>(gs(r,e,"access private method"),i),re,ne,he,oe,Ot,Dt,$t,Ft,F,H,G,U,At,x,pt,St,ft,dt,vt,M,J,Z,mt,gt,et,Ue,w,ae,le,Ne,z,Rt,D,V,K,Pe,Gt,k,os,Rs,as,Ts,ls,qs,cs,Is,us,As,ps,Bs,Ke,ke,lt,Tt,Cs,Hs,ys,Gs,Ze,Ss,Je;exports.ScrollSegmentElement=class extends es{constructor(){super(),l(this,os),l(this,as),l(this,ls),l(this,cs),l(this,us),l(this,ps),l(this,lt),l(this,Cs),l(this,ys),l(this,Ze),l(this,re,new u.CSSProperty(this,"--damping",20)),l(this,ne,new u.CSSProperty(this,"--mass",0)),l(this,he,new u.CSSProperty(this,"--stiffness",0)),l(this,oe,new u.CSSProperty(this,"--target","")),l(this,Ot,new u.CSSProperty(this,"--disabled",!1)),l(this,Dt,new u.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),l(this,$t,new u.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),l(this,Ft,new u.CSSProperty(this,"--capture-once",!1)),l(this,F,new u.CSSProperty(this,"--captured","")),l(this,H,new u.CSSProperty(this,"--released","")),l(this,G,new u.CSSProperty(this,"--captured-from-start","")),l(this,U,new u.CSSProperty(this,"--captured-from-finish","")),l(this,At,new u.CSSProperty(this,"--released-from-start","")),l(this,x,new u.CSSProperty(this,"--released-from-finish","")),l(this,pt,new u.CSSProperty(this,"--passed-var","")),l(this,St,new u.CSSProperty(this,"--progress-var","")),l(this,ft,new u.CSSProperty(this,"--distance-var","")),l(this,dt,new u.CSSProperty(this,"--start-var","")),l(this,vt,new u.CSSProperty(this,"--finish-var","")),l(this,M,new Et.Store(!1)),l(this,J,new Et.Store(!1)),l(this,Z,new Et.Store(!1)),l(this,mt,new Et.Store(!1)),l(this,gt,new Et.Store(!1)),l(this,et,new Et.Store(!1)),l(this,Ue,[]),l(this,w,this),l(this,ae,0),l(this,le,0),l(this,Ne,0),l(this,z,new zs.Damped(0,{order:Me.TICK_ORDER.SCROLL-1,min:0,max:1})),l(this,Rt,0),l(this,D,0),l(this,V,0),l(this,K,0),l(this,Pe,!1),l(this,Gt,!1),l(this,k,!0),l(this,Ke,()=>{s(this,k)||(this.resize(),s(this,ke).call(this))}),l(this,ke,()=>{!s(this,k)&&s(this,Pe)&&this.tick()}),l(this,Je,Vs.debounce(()=>{const e=Nt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),b(this,Ue,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Dt)}get startOffsetCSSProperty(){return s(this,$t)}get captureOnceCSSProperty(){return s(this,Ft)}get capturedCSSProperty(){return s(this,F)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,At)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,pt)}get progressVarCSSProperty(){return s(this,St)}get distanceVarCSSProperty(){return s(this,ft)}get startVarCSSProperty(){return s(this,dt)}get finishVarCSSProperty(){return s(this,vt)}get disabledCSSProperty(){return s(this,Ot)}get dampingCSSProperty(){return s(this,re)}get massCSSProperty(){return s(this,ne)}get stiffnessCSSProperty(){return s(this,he)}get targetCSSProperty(){return s(this,oe)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,Z)}get isReleasedFromStart(){return s(this,mt)}get isCapturedFromFinish(){return s(this,gt)}get isReleasedFromFinish(){return s(this,et)}get directionPosition(){return s(this,ae)}get directionSize(){return s(this,le)}get passed(){return s(this,z)}get progress(){return s(this,Rt)}get start(){return s(this,D)}get finish(){return s(this,K)}get distance(){return s(this,V)}get isCapturedOnce(){return s(this,Gt)}get isDisabled(){return s(this,k)}resize(){b(this,le,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),b(this,ae,this.scrollElement.vertical?_t.getCumulativeOffsetTop(this,this.scrollElement):_t.getCumulativeOffsetLeft(this,this.scrollElement)),b(this,D,this.getStart()),b(this,V,this.getDistance()),b(this,D,s(this,D)+s(this,$t).current),b(this,V,s(this,V)+s(this,Dt).current),b(this,K,s(this,D)+s(this,V)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,J).current&&(s(this,M).current=!0),this.setVar(s(this,dt).current,s(this,D)),this.setVar(s(this,vt).current,s(this,K)),this.setVar(s(this,ft).current,s(this,V)),s(this,z).max=s(this,V),b(this,Pe,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Ue).forEach(n=>{e+=n.value}),s(this,z).set(e-s(this,D));const i=Math.round(e);s(this,M).current&&(i>s(this,D)?s(this,Z).current||E(this,ls,qs).call(this):s(this,Z).current&&!s(this,mt).current&&E(this,us,As).call(this),i<s(this,K)?s(this,et).current&&!s(this,gt).current&&E(this,cs,Is).call(this):s(this,Z).current&&!s(this,et).current&&E(this,ps,Bs).call(this)),i>s(this,D)&&i<s(this,K)?s(this,M).current||E(this,os,Rs).call(this):s(this,M).current&&(s(this,z).set(ds.step(s(this,V)/2,s(this,z).current,0,s(this,V))),E(this,as,Ts).call(this)),s(this,Gt)&&s(this,Ft).current&&(s(this,F).current&&s(this,w).classList.add(s(this,F).current),b(this,k,!0))}disable(){this.style.cssText="",b(this,ae,0),b(this,le,0),s(this,z).reset(),b(this,Rt,0),b(this,D,0),b(this,V,0),b(this,K,0),b(this,Pe,!1),s(this,M).current=!1,s(this,J).current=!1,s(this,Z).current=!1,s(this,mt).current=!1,s(this,gt).current=!1,s(this,et).current=!1,b(this,Gt,!1),b(this,k,!0),E(this,Ze,Ss).call(this)}enable(){b(this,k,!1)}connectedCallback(){super.connectedCallback(),s(this,re).observe(),s(this,ne).observe(),s(this,he).observe(),s(this,oe).observe(),s(this,Ot).observe(),s(this,Dt).observe(),s(this,$t).observe(),s(this,Ft).observe(),s(this,F).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,At).observe(),s(this,x).observe(),s(this,pt).observe(),s(this,St).observe(),s(this,ft).observe(),s(this,dt).observe(),s(this,vt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Je)),s(this,Je).call(this),s(this,Ot).current||this.enable(),s(this,re).subscribe(i=>{s(this,z).damping=i.current}),s(this,ne).subscribe(i=>{s(this,z).mass=i.current}),s(this,he).subscribe(i=>{s(this,z).stiffness=i.current}),s(this,oe).subscribe(i=>{i.previous&&E(this,Ze,Ss).call(this),i.current?i.current==="parent"?b(this,w,this.parentElement||this):b(this,w,document.querySelector(i.current)||this):b(this,w,this)}),s(this,Ot).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,$t).subscribe(()=>{e&&!s(this,k)&&this.resize()}),s(this,Dt).subscribe(()=>{e&&!s(this,k)&&this.resize()}),s(this,F).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,G).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,U).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,H).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,At).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,x).subscribe(i=>{E(this,lt,Tt).call(this,i)}),s(this,Ft).subscribe(i=>{s(this,k)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,pt).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,St).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,Rt)))}),s(this,dt).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,D)))}),s(this,vt).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ft).subscribe(i=>{s(this,k)||(this.removeVar(i.previous),this.setVar(i.current,s(this,V)))}),s(this,z).subscribe(i=>{b(this,Rt,s(this,z).current/s(this,V)||0),this.setVar(s(this,pt).current,s(this,z).current.toFixed(6)),this.setVar(s(this,St).current,s(this,Rt).toFixed(6))}),fe.windowResizer.subscribe(s(this,Ke),Me.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,ke)),e=!0}disconnectedCallback(){fe.windowResizer.unsubscribe(s(this,Ke)),this.scrollElement.offScroll(s(this,ke)),s(this,re).close(),s(this,ne).close(),s(this,he).close(),s(this,oe).close(),s(this,Ot).close(),s(this,Dt).close(),s(this,$t).close(),s(this,Ft).close(),s(this,F).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,At).close(),s(this,x).close(),s(this,pt).close(),s(this,St).close(),s(this,ft).close(),s(this,dt).close(),s(this,vt).close(),s(this,M).close(),s(this,J).close(),s(this,Z).close(),s(this,mt).close(),s(this,gt).close(),s(this,et).close(),this.disable()}removeVar(e){e&&s(this,w).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,w).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,le)+s(this,Ne)}getStart(){return s(this,ae)-s(this,Ne)}};re=new WeakMap;ne=new WeakMap;he=new WeakMap;oe=new WeakMap;Ot=new WeakMap;Dt=new WeakMap;$t=new WeakMap;Ft=new WeakMap;F=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;At=new WeakMap;x=new WeakMap;pt=new WeakMap;St=new WeakMap;ft=new WeakMap;dt=new WeakMap;vt=new WeakMap;M=new WeakMap;J=new WeakMap;Z=new WeakMap;mt=new WeakMap;gt=new WeakMap;et=new WeakMap;Ue=new WeakMap;w=new WeakMap;ae=new WeakMap;le=new WeakMap;Ne=new WeakMap;z=new WeakMap;Rt=new WeakMap;D=new WeakMap;V=new WeakMap;K=new WeakMap;Pe=new WeakMap;Gt=new WeakMap;k=new WeakMap;os=new WeakSet;Rs=function(){s(this,M).current=!0,s(this,J).current=!1,b(this,Gt,!0),s(this,H).current&&s(this,w).classList.remove(s(this,H).current),s(this,x).current&&s(this,w).classList.remove(s(this,x).current),s(this,x).current&&s(this,w).classList.remove(s(this,x).current),s(this,F).current&&s(this,w).classList.add(s(this,F).current)};as=new WeakSet;Ts=function(){s(this,J).current=!0,s(this,M).current=!1,b(this,Gt,!0),s(this,F).current&&s(this,w).classList.remove(s(this,F).current),s(this,G).current&&s(this,w).classList.remove(s(this,G).current),s(this,U).current&&s(this,w).classList.remove(s(this,U).current),s(this,H).current&&s(this,w).classList.add(s(this,H).current)};ls=new WeakSet;qs=function(){s(this,M).current=!0,s(this,Z).current=!0,s(this,mt).current=!1,s(this,G).current&&s(this,w).classList.add(s(this,G).current)};cs=new WeakSet;Is=function(){s(this,M).current=!0,s(this,gt).current=!0,s(this,et).current=!1,s(this,U).current&&s(this,w).classList.add(s(this,U).current)};us=new WeakSet;As=function(){s(this,J).current=!0,s(this,mt).current=!0,s(this,Z).current=!1,s(this,x).current&&s(this,w).classList.add(s(this,x).current)};ps=new WeakSet;Bs=function(){s(this,J).current=!0,s(this,et).current=!0,s(this,gt).current=!1,s(this,x).current&&s(this,w).classList.add(s(this,x).current)};Ke=new WeakMap;ke=new WeakMap;lt=new WeakSet;Tt=function(r){if(s(this,k)){r.previous&&s(this,w).classList.remove(r.previous),r.current&&s(this,w).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,w).classList.remove(r.previous),s(this,w).classList.add(r.current)):!r.current&&r.previous&&s(this,w).classList.remove(r.previous)};Cs=new WeakSet;Hs=function(...r){r.forEach(e=>{e&&s(this,w).classList.remove(e)})};ys=new WeakSet;Gs=function(...r){r.forEach(e=>{e&&s(this,w).style.removeProperty(`--${e}`)})};Ze=new WeakSet;Ss=function(){E(this,Cs,Hs).call(this,s(this,F).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,At).current,s(this,x).current),E(this,ys,Gs).call(this,s(this,pt).current,s(this,St).current,s(this,ft).current,s(this,dt).current,s(this,vt).current)};Je=new WeakMap;exports.ScrollSegmentElement=_i([Pt.define("e-scroll-segment")],exports.ScrollSegmentElement);