aptechka 0.42.1 → 0.42.2

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.
@@ -1 +1 @@
1
- "use strict";var Be=Object.defineProperty;var Pe=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var Ee=u=>{throw TypeError(u)};var we=(u,h,e)=>h in u?Be(u,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[h]=e,xe=(u,h)=>{for(var e in h||(h={}))_e.call(h,e)&&we(u,e,h[e]);if(Pe)for(var e of Pe(h))He.call(h,e)&&we(u,e,h[e]);return u};var be=(u,h,e)=>h.has(u)||Ee("Cannot "+e);var t=(u,h,e)=>(be(u,h,"read from private field"),e?e.call(u):h.get(u)),s=(u,h,e)=>h.has(u)?Ee("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(u):h.set(u,e),r=(u,h,e,i)=>(be(u,h,"write to private field"),i?i.call(u,e):h.set(u,e),e),c=(u,h,e)=>(be(u,h,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("../Store-C2J4Q87x.cjs"),Se=require("../browser-CpzFX2xg.cjs"),Fe=require("../easings-GegIwET5.cjs"),le=require("../events-KVanG9sR.cjs"),ze=require("../jss-GJLvaNfT.cjs"),zt=require("../layout-Ctc2p3uz.cjs"),ke=require("../math-GDWEqu7y.cjs"),$e=require("../polyfills-BANSrI_m.cjs");require("../ticker/index.cjs");const ce=require("../order/index.cjs"),Ne=require("../Damped-CHZ314Rn.cjs"),Ue=require("../Tweened-Dn6CMA-p.cjs"),oe=require("../controls/index.cjs"),kt=require("../window-resizer/index.cjs"),ft=require("../scroll-entries/index.cjs"),Le=require("../css-unit-parser/index.cjs"),S=require("../css-property/index.cjs"),Ge=require("../device/index.cjs"),Jt=require("../element-resizer/index.cjs"),Ze=require("../gestures-DHLrn6Q8.cjs"),Re=require("../dom-JBOkFLTh.cjs"),je=require("../function-MthRj-GJ.cjs"),Ke=require("../scroll-segment/index.cjs");var f,Qt,g,mt,V,J;class Je{constructor(h,e,i){s(this,f);s(this,Qt);s(this,g);s(this,mt,0);s(this,V,0);s(this,J,null);r(this,f,h),r(this,Qt,e),r(this,g,i),ft.scrollEntries.register(t(this,f))}get index(){return t(this,Qt)}get size(){return t(this,mt)}get position(){return t(this,V)}destroy(){ft.scrollEntries.unregister(t(this,f)),this.unsetTransform()}unsetTransform(){t(this,f).style.transform="",this.mark(null),this.setSize()}setSize(h){h?(t(this,f).style.setProperty("--size",h+"px"),t(this,g).axisCSSProperty.current==="x"?(t(this,f).style.width=h+"px",t(this,f).style.height=""):(t(this,f).style.height=h+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){r(this,mt,t(this,g).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),r(this,V,t(this,g).vertical?zt.getCumulativeOffsetTop(t(this,f)):zt.getCumulativeOffsetLeft(t(this,f))),r(this,V,t(this,V)-t(this,g).contentPosition)}transform(){let h=0;const e=t(this,g).viewportSize*t(this,g).sectionDistanceScaleCSSProperty.current;t(this,g).loopCSSProperty.current&&t(this,g).overscroll&&t(this,V)+t(this,mt)<t(this,g).currentScrollValue&&(h=t(this,g).distance*-1-t(this,g).gap),ft.scrollEntries.update(t(this,f),t(this,g).axisCSSProperty.current,h);const i=t(this,g).currentScrollValue+h,n=t(this,V)-t(this,g).viewportSize-e,d=t(this,V)+t(this,mt)+e,b=ke.clamp(i,n,d);t(this,g).vertical?t(this,f).style.transform=`translate3d(0px, ${b*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${b*-1}px, 0px, 0px)`}mark(h){t(this,J)!==h&&(t(this,J)&&t(this,f).classList.remove(t(this,J)),h&&t(this,f).classList.add(h),r(this,J,h),le.dispatchEvent(t(this,f),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,J)},custom:!0}))}}f=new WeakMap,Qt=new WeakMap,g=new WeakMap,mt=new WeakMap,V=new WeakMap,J=new WeakMap;const Qe=ze.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".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-wrapper":{width:"100%",height:"100%",overflow:"var(--overflow, initial)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,gt,x,Q,B,_,H,T,X,Y,W,tt,yt,q,v,vt,Ct,Pt,wt,Rt,I,Et,et,D,st,F,it,xt,rt,nt,ht,p,It,l,Xt,Yt,y,m,z,A,ot,M,P,w,Tt,lt,$,N,ct,qt,ut,U,Dt,O,E,o,fe,Kt,Lt,ue,ae,me,ge,k,At,Ie,Mt,te,ye,ve,bt,de,ee;class Zt extends HTMLElement{constructor(){super();s(this,o);s(this,a,null);s(this,gt,new S.CSSProperty(this,"--controls",!0));s(this,x,new S.CSSProperty(this,"--axis","y"));s(this,Q,new S.CSSProperty(this,"--reverse",!1));s(this,B,new S.CSSProperty(this,"--direction",0));s(this,_,new S.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));s(this,H,new S.CSSProperty(this,"--split",!1));s(this,T,new S.CSSProperty(this,"--sectional",!1));s(this,X,new S.CSSProperty(this,"--tween-easing",!1));s(this,Y,new S.CSSProperty(this,"--tween-duration",!1));s(this,W,new S.CSSProperty(this,"--auto-size",!1));s(this,tt,new S.CSSProperty(this,"--wheel-max-delta",!1));s(this,yt,new S.CSSProperty(this,"--drag-inertion",1));s(this,q,new S.CSSProperty(this,"--sections-in-view",1));s(this,v,new S.CSSProperty(this,"--loop",!1));s(this,vt,new S.CSSProperty(this,"--damping",20));s(this,Ct,new S.CSSProperty(this,"--mass",0));s(this,Pt,new S.CSSProperty(this,"--stiffness",0));s(this,wt,new S.CSSProperty(this,"--mouse-drag",!1));s(this,Rt,new S.CSSProperty(this,"--section-distance-scale",.5));s(this,I,new S.CSSProperty(this,"--autoplay",0));s(this,Et,new S.CSSProperty(this,"--autoplay-pause-duration",0));s(this,et,new S.CSSProperty(this,"--autoplay-user-direction",!1));s(this,D,new S.CSSProperty(this,"--classes",!1));s(this,st,new S.CSSProperty(this,"--current-index-start-offset",0));s(this,F,new S.CSSProperty(this,"--current-index-end-offset",0));s(this,it,new S.CSSProperty(this,"--focus-delay",0));s(this,xt,new S.CSSProperty(this,"--focus-duration",3e3));s(this,rt,new S.CSSProperty(this,"--disabled",!1));s(this,nt,new S.CSSProperty(this,"--hibernate",!1));s(this,ht,null);s(this,p,null);s(this,It,null);s(this,l,[]);s(this,Xt,0);s(this,Yt,0);s(this,y,0);s(this,m,0);s(this,z,0);s(this,A,null);s(this,ot,null);s(this,M,null);s(this,P,null);s(this,w,new We.Store(0));s(this,Tt,0);s(this,lt,0);s(this,$,!1);s(this,N,!0);s(this,ct,!0);s(this,qt);s(this,ut);s(this,U,new Ue.Tweened);s(this,Dt,!1);s(this,O,null);s(this,E,!1);s(this,k,()=>{if(t(this,nt).current)return;t(this,a).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,m)||0,i=t(this,w).current;if(r(this,Xt,this.vertical?zt.getCumulativeOffsetTop(this):zt.getCumulativeOffsetLeft(this)),r(this,Yt,this.vertical?zt.getCumulativeOffsetTop(t(this,p)):zt.getCumulativeOffsetLeft(t(this,p))),r(this,y,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,z,Le.cssUnitParser.parse(getComputedStyle(t(this,p)).rowGap)):r(this,z,Le.cssUnitParser.parse(getComputedStyle(t(this,p)).columnGap)),t(this,W).current&&t(this,l).length){const n=t(this,q).current,d=(t(this,y)-t(this,z)*(n-1))/n;t(this,l).forEach(b=>{b.setSize(d)})}else t(this,l).forEach(n=>{n.setSize()});if(t(this,l).forEach(n=>{n.resize()}),t(this,_).current){r(this,m,t(this,y)*t(this,_).current);const n=t(this,m)+t(this,y);this.vertical?(t(this,p).style.width=n+"px",t(this,p).style.height="100%"):(t(this,p).style.height=n+"px",t(this,p).style.width="100%")}else this.vertical?(t(this,p).style.width="100%",t(this,p).style.height="max-content",r(this,m,t(this,p).offsetHeight-t(this,y))):(t(this,p).style.width="max-content",t(this,p).style.height="100%",r(this,m,t(this,p).offsetWidth-t(this,y)));if(!t(this,v).current){const n=getComputedStyle(this),d=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,m,t(this,m)+d),t(this,a).max=t(this,m)}if(t(this,v).current&&t(this,l).length){const n=t(this,l)[t(this,l).length-1],d=n.position+n.size-t(this,y),b=t(this,m)-d;r(this,lt,n.position+n.size+b)}else r(this,lt,t(this,m));if(t(this,T).current&&t(this,l).length){const n=t(this,l)[i];t(this,a).set(n.position,{equalize:!0})}else t(this,a).set(e*t(this,m),{equalize:!0});r(this,$,(this.vertical?t(this,p).offsetHeight:t(this,p).offsetWidth)>t(this,y)),this.classList.toggle("has-overflow",t(this,$)),t(this,$)?t(this,rt).current||c(this,o,ae).call(this):c(this,o,ue).call(this),t(this,At).call(this)});s(this,At,()=>{if(!t(this,$)||t(this,ct)||t(this,N))return;const e=this.currentScrollValue;if(r(this,Tt,Math.max(0,e-t(this,m))),t(this,l).length){for(let i=0;i<t(this,l).length;i++)t(this,l)[i].transform();t(this,w).current=c(this,o,de).call(this)}else this.vertical?t(this,p).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,p).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;ft.scrollEntries.update(this,t(this,x).current,e)});s(this,Mt,(e,i)=>{t(this,gt).current&&(c(this,o,ye).call(this,Math.sign(i)||1),t(this,te).call(this,e,i))});s(this,te,(e,i)=>{if(t(this,B).current){if(t(this,B).current<0&&i>0)return;if(t(this,B).current>0&&i<0)return}if(t(this,ut)||t(this,U).unlistenAnimationFrame(),!t(this,I).current&&t(this,it).current&&(clearInterval(t(this,qt)),r(this,qt,setTimeout(()=>{const n=t(this,l)[c(this,o,de).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,xt).current,easing:Fe.easeInOutExpo}})},t(this,it).current))),!(e.includes("drag")&&!Ge.device.isMobile&&!t(this,wt).current)){if(t(this,T).current&&e!=="drag"){const n=Math.sign(i);if(t(this,l).length){const d={tween:t(this,X).current||t(this,Y).current?{easing:t(this,X).current||"easeInOutCubic",duration:t(this,Y).current||500}:void 0};t(this,Dt)?this.scrollToSection(t(this,w).current,d):this.shiftSections(n,d)}else t(this,a).shift(n*t(this,y))}else t(this,a).shift(i);r(this,Dt,e==="drag")}});s(this,ee,()=>{r(this,E,!0),this.hibernatedCSSProperty.current||c(this,o,ge).call(this)});if(Se.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Qe];const i=document.createElement("div");i.className="static",i.innerHTML='<slot name="static"></slot>',e.appendChild(i),r(this,ht,document.createElement("div")),t(this,ht).className="content-wrapper",r(this,p,document.createElement("div")),t(this,p).className="content",r(this,It,document.createElement("slot")),t(this,p).appendChild(t(this,It)),t(this,ht).appendChild(t(this,p)),e.appendChild(t(this,ht))}}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,gt)}get axisCSSProperty(){return t(this,x)}get reverseCSSProperty(){return t(this,Q)}get directionCSSProperty(){return t(this,B)}get pagesCSSProperty(){return t(this,_)}get splitCSSProperty(){return t(this,H)}get sectionalCSSProperty(){return t(this,T)}get easingCSSProperty(){return t(this,X)}get durationCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,W)}get wheelMaxDeltaCSSProperty(){return t(this,tt)}get dragInertionCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,q)}get loopCSSProperty(){return t(this,v)}get dampingCSSProperty(){return t(this,vt)}get massCSSProperty(){return t(this,Ct)}get stiffnessCSSProperty(){return t(this,Pt)}get mouseDragCSSProperty(){return t(this,wt)}get sectionDistanceScaleCSSProperty(){return t(this,Rt)}get autoplayCSSProperty(){return t(this,I)}get autoplayPauseDurationCSSProperty(){return t(this,Et)}get autoplayUserDirectionCSSProperty(){return t(this,et)}get classesCSSProperty(){return t(this,D)}get currentIndexStartOffsetCSSProperty(){return t(this,st)}get currentIndexEndOffsetCSSProperty(){return t(this,F)}get focusDelayCSSProperty(){return t(this,it)}get focusDurationCSSProperty(){return t(this,xt)}get disabledCSSProperty(){return t(this,rt)}get hibernatedCSSProperty(){return t(this,nt)}get currentScrollValue(){return c(this,o,ve).call(this,"current")}get targetScrollValue(){return c(this,o,ve).call(this,"target")}get contentWrapperElement(){return t(this,ht)}get contentElement(){return t(this,p)}get sections(){return t(this,l)}get position(){return t(this,Xt)}get contentPosition(){return t(this,Yt)}get viewportSize(){return t(this,y)}get scrollSize(){return t(this,m)}get gap(){return t(this,z)}get counter(){return t(this,w)}get limit(){return Math.ceil(t(this,l).length-t(this,q).current)}get distance(){return t(this,lt)}get loopDistance(){return t(this,v).current?t(this,lt)+t(this,z):t(this,lt)}get hasOverflow(){return t(this,$)}get overscroll(){return t(this,Tt)}get scrollLine(){return t(this,O)}get vertical(){return t(this,x).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,x).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,x).current==="x"?0:t(this,a).distance}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}range(e,i,n=0){const d=e-n,b=d+i+n*2;return this.currentProgress<d?0:this.currentProgress>b?1:(this.currentProgress-d)/(b-d)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const d=e-n,b=d+i+n*2;return this.currentProgress>=d&&this.currentProgress<=b}scrollToSection(e,i){if(!t(this,l).length)return;const n=t(this,w).current,d=c(this,o,Ie).call(this,e),b=t(this,l)[n],C=t(this,l)[d];if(b&&C){let R=0;const pe=c(this,o,de).call(this),jt=t(this,l)[pe],Ve=jt?this.targetScrollValue-jt.position:0;t(this,v).current?d===0&&n===t(this,l).length-1?R=t(this,m)+t(this,y)-b.position+t(this,z):d===t(this,l).length-1&&n===0?R=C.position-(t(this,m)+t(this,y)+t(this,z)):R=C.position-b.position:R=C.position-b.position,this.shiftPosition(R-Ve,i)}}shiftSections(e,i){t(this,l).length&&this.scrollToSection(t(this,w).current+e,i)}setPosition(e,i){c(this,o,ye).call(this,Math.sign(e)||1),i!=null&&i.tween?t(this,ut)||(t(this,U).set(t(this,a).current,{equalize:!0}),t(this,U).set(e,xe({},i.tween)),r(this,ut,setTimeout(()=>{r(this,ut,void 0)},i.tween.duration||0))):t(this,a).set(e,{equalize:(i==null?void 0:i.behaviour)==="instant"})}shiftPosition(e,i){this.setPosition(t(this,a).target+e,i)}connectedCallback(){ft.scrollEntries.register(this),r(this,a,new Ne.Damped(0,{damping:.01,min:0,order:ce.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,A,new oe.WheelControls({element:t(this,p)})),t(this,A).changeEvent.subscribe(t(this,Mt)),r(this,ot,new oe.KeyboardControls({element:this})),t(this,ot).changeEvent.subscribe(t(this,Mt)),r(this,M,new oe.DragControls({element:t(this,p)})),t(this,M).changeEvent.subscribe(t(this,Mt)),r(this,P,new oe.AutoplayControls({culling:this})),t(this,P).changeEvent.subscribe(t(this,te)),t(this,x).subscribe(()=>{c(this,o,fe).call(this)}),t(this,Q).subscribe(()=>{c(this,o,fe).call(this)}),t(this,tt).subscribe(e=>{t(this,A).axis=e.current?"max":t(this,x).current}),t(this,yt).subscribe(e=>{t(this,M).inertion=typeof e.current=="number"?e.current:1}),t(this,_).subscribe(()=>{t(this,E)&&t(this,k).call(this)}),t(this,H).subscribe(({current:e})=>{t(this,E)&&(e?c(this,o,Kt).call(this):c(this,o,Lt).call(this))}),t(this,T).subscribe(e=>{t(this,A).debounce=e.current,t(this,M).swipe=e.current,t(this,P).interval=e.current,t(this,E)&&(e.current&&!e.previous&&!t(this,l).length?c(this,o,Kt).call(this):!e.current&&e.previous&&t(this,l).length&&c(this,o,Lt).call(this))}),t(this,W).subscribe(e=>{t(this,E)&&(t(this,k).call(this),e.current&&!e.previous&&!t(this,l).length?c(this,o,Kt).call(this):!e.current&&e.previous&&t(this,l).length&&c(this,o,Lt).call(this))}),t(this,q).subscribe(e=>{t(this,E)&&(t(this,k).call(this),c(this,o,bt).call(this))}),t(this,v).subscribe(e=>{e.current?(t(this,E)&&(t(this,l).length||(t(this,H).current=!0)),t(this,a).max=1/0,t(this,a).min=-1/0):(r(this,Tt,0),t(this,a).max=t(this,m),t(this,a).min=0)}),t(this,vt).subscribe(e=>{t(this,a).damping=e.current}),t(this,Ct).subscribe(e=>{t(this,a).mass=e.current}),t(this,Pt).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,I).subscribe(e=>{t(this,P).speed=e.current,!t(this,N)&&e.current&&!e.previous?t(this,P).connect():!e.current&&e.previous&&t(this,P).disconnect()}),t(this,et).subscribe(e=>{e.current||(t(this,P).direction=1)}),t(this,D).subscribe(e=>{t(this,E)&&c(this,o,bt).call(this)}),t(this,st).subscribe(e=>{t(this,E)&&t(this,D).current&&c(this,o,bt).call(this)}),t(this,F).subscribe(e=>{t(this,E)&&t(this,D).current&&c(this,o,bt).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,w).subscribe(e=>{t(this,l).length&&c(this,o,bt).call(this)}),t(this,U).subscribe(e=>{t(this,U).isRunning.current&&t(this,a).set(e.current,{equalize:!0})}),t(this,rt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),c(this,o,ue).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),c(this,o,ae).call(this))}),t(this,nt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),c(this,o,me).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),c(this,o,ge).call(this))}),t(this,gt).observe(),t(this,x).observe(),t(this,Q).observe(),t(this,B).observe(),t(this,_).observe(),t(this,H).observe(),t(this,T).observe(),t(this,X).observe(),t(this,Y).observe(),t(this,W).observe(),t(this,tt).observe(),t(this,yt).observe(),t(this,q).observe(),t(this,v).observe(),t(this,vt).observe(),t(this,Ct).observe(),t(this,Pt).observe(),t(this,wt).observe(),t(this,Rt).observe(),t(this,I).observe(),t(this,I).observe(),t(this,Et).observe(),t(this,et).observe(),t(this,D).observe(),t(this,st).observe(),t(this,F).observe(),t(this,it).observe(),t(this,xt).observe(),t(this,rt).observe(),t(this,nt).observe(),kt.windowResizer.subscribe(t(this,ee),ce.RESIZE_ORDER.LAST)}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,gt).unobserve(),t(this,x).unobserve(),t(this,Q).unobserve(),t(this,B).unobserve(),t(this,_).unobserve(),t(this,H).unobserve(),t(this,T).unobserve(),t(this,X).unobserve(),t(this,Y).unobserve(),t(this,W).unobserve(),t(this,tt).unobserve(),t(this,yt).unobserve(),t(this,q).unobserve(),t(this,v).unobserve(),t(this,vt).unobserve(),t(this,Ct).unobserve(),t(this,Pt).unobserve(),t(this,wt).unobserve(),t(this,Rt).unobserve(),t(this,I).unobserve(),t(this,Et).unobserve(),t(this,et).unobserve(),t(this,D).unobserve(),t(this,st).unobserve(),t(this,F).unobserve(),t(this,it).unobserve(),t(this,xt).unobserve(),t(this,rt).unobserve(),t(this,nt).unobserve(),kt.windowResizer.unsubscribe(t(this,ee)),c(this,o,me).call(this)}}a=new WeakMap,gt=new WeakMap,x=new WeakMap,Q=new WeakMap,B=new WeakMap,_=new WeakMap,H=new WeakMap,T=new WeakMap,X=new WeakMap,Y=new WeakMap,W=new WeakMap,tt=new WeakMap,yt=new WeakMap,q=new WeakMap,v=new WeakMap,vt=new WeakMap,Ct=new WeakMap,Pt=new WeakMap,wt=new WeakMap,Rt=new WeakMap,I=new WeakMap,Et=new WeakMap,et=new WeakMap,D=new WeakMap,st=new WeakMap,F=new WeakMap,it=new WeakMap,xt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ht=new WeakMap,p=new WeakMap,It=new WeakMap,l=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,y=new WeakMap,m=new WeakMap,z=new WeakMap,A=new WeakMap,ot=new WeakMap,M=new WeakMap,P=new WeakMap,w=new WeakMap,Tt=new WeakMap,lt=new WeakMap,$=new WeakMap,N=new WeakMap,ct=new WeakMap,qt=new WeakMap,ut=new WeakMap,U=new WeakMap,Dt=new WeakMap,O=new WeakMap,E=new WeakMap,o=new WeakSet,fe=function(){const e=t(this,x).current,i=t(this,Q).current?"-reverse":"";t(this,p).style.flexDirection=e==="x"?`row${i}`:`column${i}`,t(this,A).axis=t(this,tt).current?"max":e,t(this,ot).dimension=e==="x"?"width":"height",t(this,M).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,E)&&t(this,k).call(this)},Kt=function(){c(this,o,Lt).call(this),t(this,It).assignedElements().forEach((e,i)=>{e instanceof HTMLElement&&t(this,l).push(new Je(e,i,this))}),t(this,p).style.transform="",le.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,k).call(this),c(this,o,bt).call(this)},Lt=function(){t(this,l).forEach(e=>{e.destroy()}),r(this,l,[]),t(this,w).reset(),t(this,a).reset(),le.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ue=function(){t(this,N)||(r(this,N,!0),t(this,a).unsubscribe(t(this,At)),t(this,a).unlistenAnimationFrame(),clearInterval(t(this,qt)),clearInterval(t(this,ut)),t(this,U).unlistenAnimationFrame(),t(this,A).disconnect(),t(this,ot).disconnect(),t(this,M).disconnect(),t(this,P).disconnect(),t(this,$)||this.sections.forEach(e=>{e.unsetTransform()}))},ae=function(){t(this,N)&&(r(this,N,!1),t(this,a).subscribe(t(this,At)),t(this,A).connect(),t(this,ot).connect(),t(this,M).connect(),t(this,I).current&&t(this,P).connect())},me=function(){t(this,ct)||(r(this,ct,!0),kt.windowResizer.unsubscribe(t(this,k)),Jt.elementResizer.unsubscribe(t(this,k)),c(this,o,ue).call(this),t(this,p).style.transform="",t(this,p).style.height="",t(this,p).style.width="",this.classList.remove("has-overflow","start","end"),t(this,l).length?c(this,o,Lt).call(this):(t(this,w).reset(),t(this,a).reset()),ft.scrollEntries.unregister(this))},ge=function(){t(this,ct)&&(r(this,ct,!1),ft.scrollEntries.register(this),(t(this,v).current||t(this,H).current||t(this,v).current||t(this,W).current||t(this,T).current)&&c(this,o,Kt).call(this),c(this,o,ae).call(this),kt.windowResizer.subscribe(t(this,k),ce.RESIZE_ORDER.SCROLL),Jt.elementResizer.subscribe(this,t(this,k)))},k=new WeakMap,At=new WeakMap,Ie=function(e){let i=t(this,w).current;return t(this,v).current?i=$e.loopNumber(e,t(this,l).length):i=ke.clamp(e,0,this.limit),i},Mt=new WeakMap,te=new WeakMap,ye=function(e=1){t(this,et).current&&(t(this,P).direction=e),t(this,I).current&&t(this,P).pauseAndContinue(t(this,Et).current,this.sectionalCSSProperty.current)},ve=function(e="current"){if(t(this,v).current&&t(this,l).length){const i=t(this,a)[e]%(t(this,m)+t(this,y)+t(this,z));return i<0?t(this,m)+i+t(this,y)+t(this,z):i}else return t(this,a)[e]},bt=function(){if(t(this,l).length){const e=t(this,w).current+t(this,st).current;if(e===0?r(this,O,"start"):e===this.limit?r(this,O,"end"):r(this,O,null),le.dispatchEvent(this,"scrollLine",{detail:{line:t(this,O)}}),t(this,D).current){this.classList.remove("end","start"),t(this,O)&&this.classList.add(t(this,O));const i=t(this,q).current+t(this,F).current;t(this,l).forEach((n,d)=>{const b=e-this.limit-1+t(this,F).current,C=e+i,R=this.sections.length-C;d>=e&&d<C||d<=b?n.mark("current"):d>=C&&d<C+R/2||d<=b+i?n.mark("next"):n.mark("previous")})}}},de=function(){let e=this.targetScrollValue,i=1/0,n=0;const d=t(this,a).direction;for(let b=0;b<t(this,l).length;b++){const C=t(this,l)[b];let R=t(this,Dt)?C.size*d*-1*.4:0,pe=C.position;const jt=Math.abs(pe+R-e);jt<i&&(i=jt,n=b)}return n},ee=new WeakMap;customElements.get("e-scroll")||customElements.define("e-scroll",Zt);var se;class Ce extends HTMLElement{constructor(){super(...arguments);s(this,se,null)}get scrollElement(){return t(this,se)}connectedCallback(){const e=Re.findParentElement(this,Zt);e instanceof Zt?r(this,se,e):console.error(this,"e-scroll not found")}}se=new WeakMap;var at,L,G,Z,Ot,Vt,dt,Bt,ie,re;class Te extends Ce{constructor(){super();s(this,at,null);s(this,L,null);s(this,G,!1);s(this,Z,0);s(this,Ot,0);s(this,Vt,0);s(this,dt,()=>{r(this,G,this.offsetWidth>this.offsetHeight);const e=t(this,G)?this.offsetWidth:this.offsetHeight;r(this,Z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Z,Math.max(t(this,Z),30)),t(this,G)?(t(this,L).style.width=t(this,Z)+"px",t(this,L).style.height="100%"):(t(this,L).style.width="100%",t(this,L).style.height=t(this,Z)+"px"),r(this,Ot,e-t(this,Z)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Bt).call(this)});s(this,Bt,()=>{r(this,Vt,this.scrollElement.currentProgress*t(this,Ot)),t(this,G)?t(this,L).style.transform=`translate3d(${t(this,Vt)}px, 0px, 0px)`:t(this,L).style.transform=`translate3d(0px, ${t(this,Vt)}px, 0px)`});s(this,ie,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});s(this,re,e=>{document.documentElement.classList.add("grabbing"),Ze.setupDrag(d=>{const b=t(this,G)?d.x:d.y,C=this.scrollElement.distance/t(this,Ot),R=(b-n)*C;this.scrollElement.setPosition(i+R)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.damped.target,n=t(this,G)?e.x:e.y});if(Se.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[ze.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':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:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,at,document.createElement("slot")),t(this,at).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,at))}}get thumbElement(){return t(this,L)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,at).assignedElements()[0]||t(this,at).firstElementChild;r(this,L,e),t(this,L).addEventListener("pointerdown",t(this,re)),kt.windowResizer.subscribe(t(this,dt),ce.RESIZE_ORDER.SCROLL),Jt.elementResizer.subscribe(this,t(this,dt)),Jt.elementResizer.subscribe(this.scrollElement,t(this,dt)),this.scrollElement.onScroll(t(this,Bt)),this.scrollElement.axisCSSProperty.subscribe(t(this,ie))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,L).removeEventListener("pointerdown",t(this,re)),kt.windowResizer.unsubscribe(t(this,dt)),Jt.elementResizer.unsubscribe(t(this,dt)),this.scrollElement.offScroll(t(this,Bt)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,ie))}}at=new WeakMap,L=new WeakMap,G=new WeakMap,Z=new WeakMap,Ot=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Bt=new WeakMap,ie=new WeakMap,re=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",Te);var _t,Ht,Wt;class qe extends Ce{constructor(){super();s(this,_t,new S.CSSProperty(this,"--behaviour","smooth"));s(this,Ht,new S.CSSProperty(this,"--tween-easing",!1));s(this,Wt,new S.CSSProperty(this,"--tween-duration",0));Se.isBrowser&&this.addEventListener("click",()=>{const e=t(this,_t).current,i=t(this,Ht).current,n=t(this,Wt).current;this.handleClick({behaviour:e,tween:i||n?{easing:i,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),t(this,_t).observe(),t(this,Ht).observe(),t(this,Wt).observe()}disconnectedCallback(){t(this,_t).close(),t(this,Ht).close(),t(this,Wt).close()}}_t=new WeakMap,Ht=new WeakMap,Wt=new WeakMap;var Ft;class De extends qe{constructor(){super(...arguments);s(this,Ft,new S.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Ft).current,e)}connectedCallback(){super.connectedCallback(),t(this,Ft).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Ft).close()}}Ft=new WeakMap;customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",De);var j,$t;class Ae extends qe{constructor(){super(...arguments);s(this,j,new S.CSSProperty(this,"--step",1));s(this,$t,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,j).current>0&&this.scrollElement.scrollLine==="end"||t(this,j).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,j).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,j).subscribe(()=>{t(this,$t).call(this)}),t(this,j).observe(),this.scrollElement.addEventListener("scrollLine",t(this,$t)),t(this,$t).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,j).close(),this.removeAttribute("disabled")}}j=new WeakMap,$t=new WeakMap;customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",Ae);var K,St,Nt,ne,he,Ut;class Xe{constructor(h,e,i){s(this,K,null);s(this,St,null);s(this,Nt,null);s(this,ne,null);s(this,he,()=>{t(this,St).scrollToSection(t(this,Nt),{behaviour:t(this,ne)})});s(this,Ut,()=>{t(this,K).classList.toggle("current",t(this,St).counter.current===t(this,Nt))});Se.isBrowser&&(r(this,K,document.createElement("button")),r(this,St,h),r(this,ne,i),r(this,Nt,e),t(this,K).addEventListener("click",t(this,he)),t(this,St).counter.subscribe(t(this,Ut)),t(this,Ut).call(this))}get element(){return t(this,K)}destroy(){t(this,K).removeEventListener("click",t(this,he)),t(this,St).counter.unsubscribe(t(this,Ut)),t(this,K).remove()}}K=new WeakMap,St=new WeakMap,Nt=new WeakMap,ne=new WeakMap,he=new WeakMap,Ut=new WeakMap;var pt,Gt;class Me extends Ce{constructor(){super(...arguments);s(this,pt,[]);s(this,Gt,je.debounce(()=>{t(this,pt).forEach(e=>e.destroy()),r(this,pt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Xe(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),t(this,pt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,Gt)),t(this,Gt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,Gt)),t(this,pt).forEach(e=>e.destroy()),r(this,pt,[])}}pt=new WeakMap,Gt=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Me);class Oe extends Ke.ScrollSegmentElement{connectedCallback(){const h=Re.findParentElement(this,Zt);h instanceof Zt?(this.scrollContainer=h,this.scrollContainer.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries)):console.error(this,"e-scroll not found")}}customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",Oe);exports.ScrollBulletButtonsElement=Me;exports.ScrollElement=Zt;exports.ScrollSegmentElement=Oe;exports.ScrollSetButtonElement=De;exports.ScrollStepButtonElement=Ae;exports.ScrollbarElement=Te;
1
+ "use strict";var Be=Object.defineProperty;var Pe=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var Ee=u=>{throw TypeError(u)};var we=(u,h,e)=>h in u?Be(u,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[h]=e,xe=(u,h)=>{for(var e in h||(h={}))_e.call(h,e)&&we(u,e,h[e]);if(Pe)for(var e of Pe(h))He.call(h,e)&&we(u,e,h[e]);return u};var be=(u,h,e)=>h.has(u)||Ee("Cannot "+e);var t=(u,h,e)=>(be(u,h,"read from private field"),e?e.call(u):h.get(u)),s=(u,h,e)=>h.has(u)?Ee("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(u):h.set(u,e),r=(u,h,e,i)=>(be(u,h,"write to private field"),i?i.call(u,e):h.set(u,e),e),c=(u,h,e)=>(be(u,h,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("../Store-C2J4Q87x.cjs"),Se=require("../browser-CpzFX2xg.cjs"),Fe=require("../easings-GegIwET5.cjs"),le=require("../events-KVanG9sR.cjs"),ze=require("../jss-GJLvaNfT.cjs"),zt=require("../layout-Ctc2p3uz.cjs"),ke=require("../math-GDWEqu7y.cjs"),$e=require("../polyfills-BANSrI_m.cjs");require("../ticker/index.cjs");const ce=require("../order/index.cjs"),Ne=require("../Damped-CHZ314Rn.cjs"),Ue=require("../Tweened-Dn6CMA-p.cjs"),oe=require("../controls/index.cjs"),kt=require("../window-resizer/index.cjs"),ft=require("../scroll-entries/index.cjs"),Le=require("../css-unit-parser/index.cjs"),S=require("../css-property/index.cjs"),Ge=require("../device/index.cjs"),Jt=require("../element-resizer/index.cjs"),Ze=require("../gestures-DHLrn6Q8.cjs"),Re=require("../dom-JBOkFLTh.cjs"),je=require("../function-MthRj-GJ.cjs"),Ke=require("../scroll-segment/index.cjs");var f,Qt,g,mt,V,J;class Je{constructor(h,e,i){s(this,f);s(this,Qt);s(this,g);s(this,mt,0);s(this,V,0);s(this,J,null);r(this,f,h),r(this,Qt,e),r(this,g,i),ft.scrollEntries.register(t(this,f))}get index(){return t(this,Qt)}get size(){return t(this,mt)}get position(){return t(this,V)}destroy(){ft.scrollEntries.unregister(t(this,f)),this.unsetTransform()}unsetTransform(){t(this,f).style.transform="",this.mark(null),this.setSize()}setSize(h){h?(t(this,f).style.setProperty("--size",h+"px"),t(this,g).axisCSSProperty.current==="x"?(t(this,f).style.width=h+"px",t(this,f).style.height=""):(t(this,f).style.height=h+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){r(this,mt,t(this,g).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),r(this,V,t(this,g).vertical?zt.getCumulativeOffsetTop(t(this,f)):zt.getCumulativeOffsetLeft(t(this,f))),r(this,V,t(this,V)-t(this,g).contentPosition)}transform(){let h=0;const e=t(this,g).viewportSize*t(this,g).sectionDistanceScaleCSSProperty.current;t(this,g).loopCSSProperty.current&&t(this,g).overscroll&&t(this,V)+t(this,mt)<t(this,g).currentScrollValue&&(h=t(this,g).distance*-1-t(this,g).gap),ft.scrollEntries.update(t(this,f),t(this,g).axisCSSProperty.current,h);const i=t(this,g).currentScrollValue+h,n=t(this,V)-t(this,g).viewportSize-e,d=t(this,V)+t(this,mt)+e,b=ke.clamp(i,n,d);t(this,g).vertical?t(this,f).style.transform=`translate3d(0px, ${b*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${b*-1}px, 0px, 0px)`}mark(h){t(this,J)!==h&&(t(this,J)&&t(this,f).classList.remove(t(this,J)),h&&t(this,f).classList.add(h),r(this,J,h),le.dispatchEvent(t(this,f),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,J)},custom:!0}))}}f=new WeakMap,Qt=new WeakMap,g=new WeakMap,mt=new WeakMap,V=new WeakMap,J=new WeakMap;const Qe=ze.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".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-wrapper":{width:"100%",height:"100%",overflow:"var(--overflow, initial)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,gt,x,Q,B,_,H,I,X,Y,W,tt,yt,q,v,vt,Ct,Pt,wt,Rt,T,Et,et,D,st,F,it,xt,rt,nt,ht,p,Tt,l,Xt,Yt,y,m,z,A,ot,M,P,w,It,lt,$,N,ct,qt,ut,U,Dt,O,E,o,fe,Kt,Lt,ue,ae,me,ge,k,At,Te,Mt,te,ye,ve,bt,de,ee;class Zt extends HTMLElement{constructor(){super();s(this,o);s(this,a,null);s(this,gt,new S.CSSProperty(this,"--controls",!0));s(this,x,new S.CSSProperty(this,"--axis","y"));s(this,Q,new S.CSSProperty(this,"--reverse",!1));s(this,B,new S.CSSProperty(this,"--direction",0));s(this,_,new S.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));s(this,H,new S.CSSProperty(this,"--split",!1));s(this,I,new S.CSSProperty(this,"--sectional",!1));s(this,X,new S.CSSProperty(this,"--tween-easing",!1));s(this,Y,new S.CSSProperty(this,"--tween-duration",!1));s(this,W,new S.CSSProperty(this,"--auto-size",!1));s(this,tt,new S.CSSProperty(this,"--wheel-max-delta",!1));s(this,yt,new S.CSSProperty(this,"--drag-inertion",1));s(this,q,new S.CSSProperty(this,"--sections-in-view",1));s(this,v,new S.CSSProperty(this,"--loop",!1));s(this,vt,new S.CSSProperty(this,"--damping",20));s(this,Ct,new S.CSSProperty(this,"--mass",0));s(this,Pt,new S.CSSProperty(this,"--stiffness",0));s(this,wt,new S.CSSProperty(this,"--mouse-drag",!1));s(this,Rt,new S.CSSProperty(this,"--section-distance-scale",.5));s(this,T,new S.CSSProperty(this,"--autoplay",0));s(this,Et,new S.CSSProperty(this,"--autoplay-pause-duration",0));s(this,et,new S.CSSProperty(this,"--autoplay-user-direction",!1));s(this,D,new S.CSSProperty(this,"--classes",!1));s(this,st,new S.CSSProperty(this,"--current-index-start-offset",0));s(this,F,new S.CSSProperty(this,"--current-index-end-offset",0));s(this,it,new S.CSSProperty(this,"--focus-delay",0));s(this,xt,new S.CSSProperty(this,"--focus-duration",3e3));s(this,rt,new S.CSSProperty(this,"--disabled",!1));s(this,nt,new S.CSSProperty(this,"--hibernate",!1));s(this,ht,null);s(this,p,null);s(this,Tt,null);s(this,l,[]);s(this,Xt,0);s(this,Yt,0);s(this,y,0);s(this,m,0);s(this,z,0);s(this,A,null);s(this,ot,null);s(this,M,null);s(this,P,null);s(this,w,new We.Store(0));s(this,It,0);s(this,lt,0);s(this,$,!1);s(this,N,!0);s(this,ct,!0);s(this,qt);s(this,ut);s(this,U,new Ue.Tweened);s(this,Dt,!1);s(this,O,null);s(this,E,!1);s(this,k,()=>{if(t(this,nt).current)return;t(this,a).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,m)||0,i=t(this,w).current;if(r(this,Xt,this.vertical?zt.getCumulativeOffsetTop(this):zt.getCumulativeOffsetLeft(this)),r(this,Yt,this.vertical?zt.getCumulativeOffsetTop(t(this,p)):zt.getCumulativeOffsetLeft(t(this,p))),r(this,y,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,z,Le.cssUnitParser.parse(getComputedStyle(t(this,p)).rowGap)):r(this,z,Le.cssUnitParser.parse(getComputedStyle(t(this,p)).columnGap)),t(this,W).current&&t(this,l).length){const n=t(this,q).current,d=(t(this,y)-t(this,z)*(n-1))/n;t(this,l).forEach(b=>{b.setSize(d)})}else t(this,l).forEach(n=>{n.setSize()});if(t(this,l).forEach(n=>{n.resize()}),t(this,_).current){r(this,m,t(this,y)*t(this,_).current);const n=t(this,m)+t(this,y);this.vertical?(t(this,p).style.width=n+"px",t(this,p).style.height="100%"):(t(this,p).style.height=n+"px",t(this,p).style.width="100%")}else this.vertical?(t(this,p).style.width="100%",t(this,p).style.height="max-content",r(this,m,t(this,p).offsetHeight-t(this,y))):(t(this,p).style.width="max-content",t(this,p).style.height="100%",r(this,m,t(this,p).offsetWidth-t(this,y)));if(!t(this,v).current){const n=getComputedStyle(this),d=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,m,t(this,m)+d),t(this,a).max=t(this,m)}if(t(this,v).current&&t(this,l).length){const n=t(this,l)[t(this,l).length-1],d=n.position+n.size-t(this,y),b=t(this,m)-d;r(this,lt,n.position+n.size+b)}else r(this,lt,t(this,m));if(t(this,I).current&&t(this,l).length){const n=t(this,l)[i];t(this,a).set(n.position,{equalize:!0})}else t(this,a).set(e*t(this,m),{equalize:!0});r(this,$,(this.vertical?t(this,p).offsetHeight:t(this,p).offsetWidth)>t(this,y)),this.classList.toggle("has-overflow",t(this,$)),t(this,$)?t(this,rt).current||c(this,o,ae).call(this):c(this,o,ue).call(this),t(this,At).call(this)});s(this,At,()=>{if(!t(this,$)||t(this,ct)||t(this,N))return;const e=this.currentScrollValue;if(r(this,It,Math.max(0,e-t(this,m))),t(this,l).length){for(let i=0;i<t(this,l).length;i++)t(this,l)[i].transform();t(this,w).current=c(this,o,de).call(this)}else this.vertical?t(this,p).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,p).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;ft.scrollEntries.update(this,t(this,x).current,e)});s(this,Mt,(e,i)=>{t(this,gt).current&&(c(this,o,ye).call(this,Math.sign(i)||1),t(this,te).call(this,e,i))});s(this,te,(e,i)=>{if(t(this,B).current){if(t(this,B).current<0&&i>0)return;if(t(this,B).current>0&&i<0)return}if(t(this,ut)||t(this,U).unlistenAnimationFrame(),!t(this,T).current&&t(this,it).current&&(clearInterval(t(this,qt)),r(this,qt,setTimeout(()=>{const n=t(this,l)[c(this,o,de).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,xt).current,easing:Fe.easeInOutExpo}})},t(this,it).current))),!(e.includes("drag")&&!Ge.device.isTouch&&!t(this,wt).current)){if(out&&(out.innerText=e+" "+i),t(this,I).current&&e!=="drag"){const n=Math.sign(i);if(t(this,l).length){const d={tween:t(this,X).current||t(this,Y).current?{easing:t(this,X).current||"easeInOutCubic",duration:t(this,Y).current||500}:void 0};t(this,Dt)?this.scrollToSection(t(this,w).current,d):this.shiftSections(n,d)}else t(this,a).shift(n*t(this,y))}else t(this,a).shift(i);r(this,Dt,e==="drag")}});s(this,ee,()=>{r(this,E,!0),this.hibernatedCSSProperty.current||c(this,o,ge).call(this)});if(Se.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Qe];const i=document.createElement("div");i.className="static",i.innerHTML='<slot name="static"></slot>',e.appendChild(i),r(this,ht,document.createElement("div")),t(this,ht).className="content-wrapper",r(this,p,document.createElement("div")),t(this,p).className="content",r(this,Tt,document.createElement("slot")),t(this,p).appendChild(t(this,Tt)),t(this,ht).appendChild(t(this,p)),e.appendChild(t(this,ht))}}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,gt)}get axisCSSProperty(){return t(this,x)}get reverseCSSProperty(){return t(this,Q)}get directionCSSProperty(){return t(this,B)}get pagesCSSProperty(){return t(this,_)}get splitCSSProperty(){return t(this,H)}get sectionalCSSProperty(){return t(this,I)}get easingCSSProperty(){return t(this,X)}get durationCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,W)}get wheelMaxDeltaCSSProperty(){return t(this,tt)}get dragInertionCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,q)}get loopCSSProperty(){return t(this,v)}get dampingCSSProperty(){return t(this,vt)}get massCSSProperty(){return t(this,Ct)}get stiffnessCSSProperty(){return t(this,Pt)}get mouseDragCSSProperty(){return t(this,wt)}get sectionDistanceScaleCSSProperty(){return t(this,Rt)}get autoplayCSSProperty(){return t(this,T)}get autoplayPauseDurationCSSProperty(){return t(this,Et)}get autoplayUserDirectionCSSProperty(){return t(this,et)}get classesCSSProperty(){return t(this,D)}get currentIndexStartOffsetCSSProperty(){return t(this,st)}get currentIndexEndOffsetCSSProperty(){return t(this,F)}get focusDelayCSSProperty(){return t(this,it)}get focusDurationCSSProperty(){return t(this,xt)}get disabledCSSProperty(){return t(this,rt)}get hibernatedCSSProperty(){return t(this,nt)}get currentScrollValue(){return c(this,o,ve).call(this,"current")}get targetScrollValue(){return c(this,o,ve).call(this,"target")}get contentWrapperElement(){return t(this,ht)}get contentElement(){return t(this,p)}get sections(){return t(this,l)}get position(){return t(this,Xt)}get contentPosition(){return t(this,Yt)}get viewportSize(){return t(this,y)}get scrollSize(){return t(this,m)}get gap(){return t(this,z)}get counter(){return t(this,w)}get limit(){return Math.ceil(t(this,l).length-t(this,q).current)}get distance(){return t(this,lt)}get loopDistance(){return t(this,v).current?t(this,lt)+t(this,z):t(this,lt)}get hasOverflow(){return t(this,$)}get overscroll(){return t(this,It)}get scrollLine(){return t(this,O)}get vertical(){return t(this,x).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,x).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,x).current==="x"?0:t(this,a).distance}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}range(e,i,n=0){const d=e-n,b=d+i+n*2;return this.currentProgress<d?0:this.currentProgress>b?1:(this.currentProgress-d)/(b-d)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const d=e-n,b=d+i+n*2;return this.currentProgress>=d&&this.currentProgress<=b}scrollToSection(e,i){if(!t(this,l).length)return;const n=t(this,w).current,d=c(this,o,Te).call(this,e),b=t(this,l)[n],C=t(this,l)[d];if(b&&C){let R=0;const pe=c(this,o,de).call(this),jt=t(this,l)[pe],Ve=jt?this.targetScrollValue-jt.position:0;t(this,v).current?d===0&&n===t(this,l).length-1?R=t(this,m)+t(this,y)-b.position+t(this,z):d===t(this,l).length-1&&n===0?R=C.position-(t(this,m)+t(this,y)+t(this,z)):R=C.position-b.position:R=C.position-b.position,this.shiftPosition(R-Ve,i)}}shiftSections(e,i){t(this,l).length&&this.scrollToSection(t(this,w).current+e,i)}setPosition(e,i){c(this,o,ye).call(this,Math.sign(e)||1),i!=null&&i.tween?t(this,ut)||(t(this,U).set(t(this,a).current,{equalize:!0}),t(this,U).set(e,xe({},i.tween)),r(this,ut,setTimeout(()=>{r(this,ut,void 0)},i.tween.duration||0))):t(this,a).set(e,{equalize:(i==null?void 0:i.behaviour)==="instant"})}shiftPosition(e,i){this.setPosition(t(this,a).target+e,i)}connectedCallback(){ft.scrollEntries.register(this),r(this,a,new Ne.Damped(0,{damping:.01,min:0,order:ce.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,A,new oe.WheelControls({element:t(this,p)})),t(this,A).changeEvent.subscribe(t(this,Mt)),r(this,ot,new oe.KeyboardControls({element:this})),t(this,ot).changeEvent.subscribe(t(this,Mt)),r(this,M,new oe.DragControls({element:t(this,p)})),t(this,M).changeEvent.subscribe(t(this,Mt)),r(this,P,new oe.AutoplayControls({culling:this})),t(this,P).changeEvent.subscribe(t(this,te)),t(this,x).subscribe(()=>{c(this,o,fe).call(this)}),t(this,Q).subscribe(()=>{c(this,o,fe).call(this)}),t(this,tt).subscribe(e=>{t(this,A).axis=e.current?"max":t(this,x).current}),t(this,yt).subscribe(e=>{t(this,M).inertion=typeof e.current=="number"?e.current:1}),t(this,_).subscribe(()=>{t(this,E)&&t(this,k).call(this)}),t(this,H).subscribe(({current:e})=>{t(this,E)&&(e?c(this,o,Kt).call(this):c(this,o,Lt).call(this))}),t(this,I).subscribe(e=>{t(this,A).debounce=e.current,t(this,M).swipe=e.current,t(this,P).interval=e.current,t(this,E)&&(e.current&&!e.previous&&!t(this,l).length?c(this,o,Kt).call(this):!e.current&&e.previous&&t(this,l).length&&c(this,o,Lt).call(this))}),t(this,W).subscribe(e=>{t(this,E)&&(t(this,k).call(this),e.current&&!e.previous&&!t(this,l).length?c(this,o,Kt).call(this):!e.current&&e.previous&&t(this,l).length&&c(this,o,Lt).call(this))}),t(this,q).subscribe(e=>{t(this,E)&&(t(this,k).call(this),c(this,o,bt).call(this))}),t(this,v).subscribe(e=>{e.current?(t(this,E)&&(t(this,l).length||(t(this,H).current=!0)),t(this,a).max=1/0,t(this,a).min=-1/0):(r(this,It,0),t(this,a).max=t(this,m),t(this,a).min=0)}),t(this,vt).subscribe(e=>{t(this,a).damping=e.current}),t(this,Ct).subscribe(e=>{t(this,a).mass=e.current}),t(this,Pt).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,T).subscribe(e=>{t(this,P).speed=e.current,!t(this,N)&&e.current&&!e.previous?t(this,P).connect():!e.current&&e.previous&&t(this,P).disconnect()}),t(this,et).subscribe(e=>{e.current||(t(this,P).direction=1)}),t(this,D).subscribe(e=>{t(this,E)&&c(this,o,bt).call(this)}),t(this,st).subscribe(e=>{t(this,E)&&t(this,D).current&&c(this,o,bt).call(this)}),t(this,F).subscribe(e=>{t(this,E)&&t(this,D).current&&c(this,o,bt).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,w).subscribe(e=>{t(this,l).length&&c(this,o,bt).call(this)}),t(this,U).subscribe(e=>{t(this,U).isRunning.current&&t(this,a).set(e.current,{equalize:!0})}),t(this,rt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),c(this,o,ue).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),c(this,o,ae).call(this))}),t(this,nt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),c(this,o,me).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),c(this,o,ge).call(this))}),t(this,gt).observe(),t(this,x).observe(),t(this,Q).observe(),t(this,B).observe(),t(this,_).observe(),t(this,H).observe(),t(this,I).observe(),t(this,X).observe(),t(this,Y).observe(),t(this,W).observe(),t(this,tt).observe(),t(this,yt).observe(),t(this,q).observe(),t(this,v).observe(),t(this,vt).observe(),t(this,Ct).observe(),t(this,Pt).observe(),t(this,wt).observe(),t(this,Rt).observe(),t(this,T).observe(),t(this,T).observe(),t(this,Et).observe(),t(this,et).observe(),t(this,D).observe(),t(this,st).observe(),t(this,F).observe(),t(this,it).observe(),t(this,xt).observe(),t(this,rt).observe(),t(this,nt).observe(),kt.windowResizer.subscribe(t(this,ee),ce.RESIZE_ORDER.LAST)}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,gt).unobserve(),t(this,x).unobserve(),t(this,Q).unobserve(),t(this,B).unobserve(),t(this,_).unobserve(),t(this,H).unobserve(),t(this,I).unobserve(),t(this,X).unobserve(),t(this,Y).unobserve(),t(this,W).unobserve(),t(this,tt).unobserve(),t(this,yt).unobserve(),t(this,q).unobserve(),t(this,v).unobserve(),t(this,vt).unobserve(),t(this,Ct).unobserve(),t(this,Pt).unobserve(),t(this,wt).unobserve(),t(this,Rt).unobserve(),t(this,T).unobserve(),t(this,Et).unobserve(),t(this,et).unobserve(),t(this,D).unobserve(),t(this,st).unobserve(),t(this,F).unobserve(),t(this,it).unobserve(),t(this,xt).unobserve(),t(this,rt).unobserve(),t(this,nt).unobserve(),kt.windowResizer.unsubscribe(t(this,ee)),c(this,o,me).call(this)}}a=new WeakMap,gt=new WeakMap,x=new WeakMap,Q=new WeakMap,B=new WeakMap,_=new WeakMap,H=new WeakMap,I=new WeakMap,X=new WeakMap,Y=new WeakMap,W=new WeakMap,tt=new WeakMap,yt=new WeakMap,q=new WeakMap,v=new WeakMap,vt=new WeakMap,Ct=new WeakMap,Pt=new WeakMap,wt=new WeakMap,Rt=new WeakMap,T=new WeakMap,Et=new WeakMap,et=new WeakMap,D=new WeakMap,st=new WeakMap,F=new WeakMap,it=new WeakMap,xt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ht=new WeakMap,p=new WeakMap,Tt=new WeakMap,l=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,y=new WeakMap,m=new WeakMap,z=new WeakMap,A=new WeakMap,ot=new WeakMap,M=new WeakMap,P=new WeakMap,w=new WeakMap,It=new WeakMap,lt=new WeakMap,$=new WeakMap,N=new WeakMap,ct=new WeakMap,qt=new WeakMap,ut=new WeakMap,U=new WeakMap,Dt=new WeakMap,O=new WeakMap,E=new WeakMap,o=new WeakSet,fe=function(){const e=t(this,x).current,i=t(this,Q).current?"-reverse":"";t(this,p).style.flexDirection=e==="x"?`row${i}`:`column${i}`,t(this,A).axis=t(this,tt).current?"max":e,t(this,ot).dimension=e==="x"?"width":"height",t(this,M).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,E)&&t(this,k).call(this)},Kt=function(){c(this,o,Lt).call(this),t(this,Tt).assignedElements().forEach((e,i)=>{e instanceof HTMLElement&&t(this,l).push(new Je(e,i,this))}),t(this,p).style.transform="",le.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,k).call(this),c(this,o,bt).call(this)},Lt=function(){t(this,l).forEach(e=>{e.destroy()}),r(this,l,[]),t(this,w).reset(),t(this,a).reset(),le.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ue=function(){t(this,N)||(r(this,N,!0),t(this,a).unsubscribe(t(this,At)),t(this,a).unlistenAnimationFrame(),clearInterval(t(this,qt)),clearInterval(t(this,ut)),t(this,U).unlistenAnimationFrame(),t(this,A).disconnect(),t(this,ot).disconnect(),t(this,M).disconnect(),t(this,P).disconnect(),t(this,$)||this.sections.forEach(e=>{e.unsetTransform()}))},ae=function(){t(this,N)&&(r(this,N,!1),t(this,a).subscribe(t(this,At)),t(this,A).connect(),t(this,ot).connect(),t(this,M).connect(),t(this,T).current&&t(this,P).connect())},me=function(){t(this,ct)||(r(this,ct,!0),kt.windowResizer.unsubscribe(t(this,k)),Jt.elementResizer.unsubscribe(t(this,k)),c(this,o,ue).call(this),t(this,p).style.transform="",t(this,p).style.height="",t(this,p).style.width="",this.classList.remove("has-overflow","start","end"),t(this,l).length?c(this,o,Lt).call(this):(t(this,w).reset(),t(this,a).reset()),ft.scrollEntries.unregister(this))},ge=function(){t(this,ct)&&(r(this,ct,!1),ft.scrollEntries.register(this),(t(this,v).current||t(this,H).current||t(this,v).current||t(this,W).current||t(this,I).current)&&c(this,o,Kt).call(this),c(this,o,ae).call(this),kt.windowResizer.subscribe(t(this,k),ce.RESIZE_ORDER.SCROLL),Jt.elementResizer.subscribe(this,t(this,k)))},k=new WeakMap,At=new WeakMap,Te=function(e){let i=t(this,w).current;return t(this,v).current?i=$e.loopNumber(e,t(this,l).length):i=ke.clamp(e,0,this.limit),i},Mt=new WeakMap,te=new WeakMap,ye=function(e=1){t(this,et).current&&(t(this,P).direction=e),t(this,T).current&&t(this,P).pauseAndContinue(t(this,Et).current,this.sectionalCSSProperty.current)},ve=function(e="current"){if(t(this,v).current&&t(this,l).length){const i=t(this,a)[e]%(t(this,m)+t(this,y)+t(this,z));return i<0?t(this,m)+i+t(this,y)+t(this,z):i}else return t(this,a)[e]},bt=function(){if(t(this,l).length){const e=t(this,w).current+t(this,st).current;if(e===0?r(this,O,"start"):e===this.limit?r(this,O,"end"):r(this,O,null),le.dispatchEvent(this,"scrollLine",{detail:{line:t(this,O)}}),t(this,D).current){this.classList.remove("end","start"),t(this,O)&&this.classList.add(t(this,O));const i=t(this,q).current+t(this,F).current;t(this,l).forEach((n,d)=>{const b=e-this.limit-1+t(this,F).current,C=e+i,R=this.sections.length-C;d>=e&&d<C||d<=b?n.mark("current"):d>=C&&d<C+R/2||d<=b+i?n.mark("next"):n.mark("previous")})}}},de=function(){let e=this.targetScrollValue,i=1/0,n=0;const d=t(this,a).direction;for(let b=0;b<t(this,l).length;b++){const C=t(this,l)[b];let R=t(this,Dt)?C.size*d*-1*.4:0,pe=C.position;const jt=Math.abs(pe+R-e);jt<i&&(i=jt,n=b)}return n},ee=new WeakMap;customElements.get("e-scroll")||customElements.define("e-scroll",Zt);var se;class Ce extends HTMLElement{constructor(){super(...arguments);s(this,se,null)}get scrollElement(){return t(this,se)}connectedCallback(){const e=Re.findParentElement(this,Zt);e instanceof Zt?r(this,se,e):console.error(this,"e-scroll not found")}}se=new WeakMap;var at,L,G,Z,Ot,Vt,dt,Bt,ie,re;class Ie extends Ce{constructor(){super();s(this,at,null);s(this,L,null);s(this,G,!1);s(this,Z,0);s(this,Ot,0);s(this,Vt,0);s(this,dt,()=>{r(this,G,this.offsetWidth>this.offsetHeight);const e=t(this,G)?this.offsetWidth:this.offsetHeight;r(this,Z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Z,Math.max(t(this,Z),30)),t(this,G)?(t(this,L).style.width=t(this,Z)+"px",t(this,L).style.height="100%"):(t(this,L).style.width="100%",t(this,L).style.height=t(this,Z)+"px"),r(this,Ot,e-t(this,Z)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Bt).call(this)});s(this,Bt,()=>{r(this,Vt,this.scrollElement.currentProgress*t(this,Ot)),t(this,G)?t(this,L).style.transform=`translate3d(${t(this,Vt)}px, 0px, 0px)`:t(this,L).style.transform=`translate3d(0px, ${t(this,Vt)}px, 0px)`});s(this,ie,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});s(this,re,e=>{document.documentElement.classList.add("grabbing"),Ze.setupDrag(d=>{const b=t(this,G)?d.x:d.y,C=this.scrollElement.distance/t(this,Ot),R=(b-n)*C;this.scrollElement.setPosition(i+R)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.damped.target,n=t(this,G)?e.x:e.y});if(Se.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[ze.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':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:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,at,document.createElement("slot")),t(this,at).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,at))}}get thumbElement(){return t(this,L)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,at).assignedElements()[0]||t(this,at).firstElementChild;r(this,L,e),t(this,L).addEventListener("pointerdown",t(this,re)),kt.windowResizer.subscribe(t(this,dt),ce.RESIZE_ORDER.SCROLL),Jt.elementResizer.subscribe(this,t(this,dt)),Jt.elementResizer.subscribe(this.scrollElement,t(this,dt)),this.scrollElement.onScroll(t(this,Bt)),this.scrollElement.axisCSSProperty.subscribe(t(this,ie))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,L).removeEventListener("pointerdown",t(this,re)),kt.windowResizer.unsubscribe(t(this,dt)),Jt.elementResizer.unsubscribe(t(this,dt)),this.scrollElement.offScroll(t(this,Bt)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,ie))}}at=new WeakMap,L=new WeakMap,G=new WeakMap,Z=new WeakMap,Ot=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Bt=new WeakMap,ie=new WeakMap,re=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",Ie);var _t,Ht,Wt;class qe extends Ce{constructor(){super();s(this,_t,new S.CSSProperty(this,"--behaviour","smooth"));s(this,Ht,new S.CSSProperty(this,"--tween-easing",!1));s(this,Wt,new S.CSSProperty(this,"--tween-duration",0));Se.isBrowser&&this.addEventListener("click",()=>{const e=t(this,_t).current,i=t(this,Ht).current,n=t(this,Wt).current;this.handleClick({behaviour:e,tween:i||n?{easing:i,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),t(this,_t).observe(),t(this,Ht).observe(),t(this,Wt).observe()}disconnectedCallback(){t(this,_t).close(),t(this,Ht).close(),t(this,Wt).close()}}_t=new WeakMap,Ht=new WeakMap,Wt=new WeakMap;var Ft;class De extends qe{constructor(){super(...arguments);s(this,Ft,new S.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Ft).current,e)}connectedCallback(){super.connectedCallback(),t(this,Ft).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Ft).close()}}Ft=new WeakMap;customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",De);var j,$t;class Ae extends qe{constructor(){super(...arguments);s(this,j,new S.CSSProperty(this,"--step",1));s(this,$t,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,j).current>0&&this.scrollElement.scrollLine==="end"||t(this,j).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,j).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,j).subscribe(()=>{t(this,$t).call(this)}),t(this,j).observe(),this.scrollElement.addEventListener("scrollLine",t(this,$t)),t(this,$t).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,j).close(),this.removeAttribute("disabled")}}j=new WeakMap,$t=new WeakMap;customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",Ae);var K,St,Nt,ne,he,Ut;class Xe{constructor(h,e,i){s(this,K,null);s(this,St,null);s(this,Nt,null);s(this,ne,null);s(this,he,()=>{t(this,St).scrollToSection(t(this,Nt),{behaviour:t(this,ne)})});s(this,Ut,()=>{t(this,K).classList.toggle("current",t(this,St).counter.current===t(this,Nt))});Se.isBrowser&&(r(this,K,document.createElement("button")),r(this,St,h),r(this,ne,i),r(this,Nt,e),t(this,K).addEventListener("click",t(this,he)),t(this,St).counter.subscribe(t(this,Ut)),t(this,Ut).call(this))}get element(){return t(this,K)}destroy(){t(this,K).removeEventListener("click",t(this,he)),t(this,St).counter.unsubscribe(t(this,Ut)),t(this,K).remove()}}K=new WeakMap,St=new WeakMap,Nt=new WeakMap,ne=new WeakMap,he=new WeakMap,Ut=new WeakMap;var pt,Gt;class Me extends Ce{constructor(){super(...arguments);s(this,pt,[]);s(this,Gt,je.debounce(()=>{t(this,pt).forEach(e=>e.destroy()),r(this,pt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Xe(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),t(this,pt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,Gt)),t(this,Gt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,Gt)),t(this,pt).forEach(e=>e.destroy()),r(this,pt,[])}}pt=new WeakMap,Gt=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Me);class Oe extends Ke.ScrollSegmentElement{connectedCallback(){const h=Re.findParentElement(this,Zt);h instanceof Zt?(this.scrollContainer=h,this.scrollContainer.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries)):console.error(this,"e-scroll not found")}}customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",Oe);exports.ScrollBulletButtonsElement=Me;exports.ScrollElement=Zt;exports.ScrollSegmentElement=Oe;exports.ScrollSetButtonElement=De;exports.ScrollStepButtonElement=Ae;exports.ScrollbarElement=Ie;
@@ -129,7 +129,7 @@ const Qe = ke({
129
129
  flexShrink: "0"
130
130
  }
131
131
  });
132
- var u, gt, P, Q, B, W, F, D, X, Y, $, tt, vt, T, y, yt, Ct, wt, Et, zt, A, xt, et, M, st, N, it, Pt, rt, nt, ht, f, It, l, Qt, Xt, v, S, k, V, ot, O, w, E, At, lt, q, U, ct, Dt, at, G, Tt, R, x, o, be, _t, Lt, oe, le, Se, ge, z, Mt, Ae, Vt, Yt, ve, ye, mt, ce, te;
132
+ var u, gt, P, Q, B, W, F, A, X, Y, $, tt, vt, D, y, yt, Ct, wt, Et, zt, T, xt, et, M, st, N, it, Pt, rt, nt, ht, f, It, l, Qt, Xt, v, S, k, V, ot, O, w, E, Tt, lt, q, U, ct, At, at, G, Dt, R, x, o, be, _t, Lt, oe, le, Se, ge, z, Mt, Te, Vt, Yt, ve, ye, mt, ce, te;
133
133
  class jt extends HTMLElement {
134
134
  constructor() {
135
135
  super();
@@ -143,7 +143,7 @@ class jt extends HTMLElement {
143
143
  validate: (e) => Math.max(0, e - 1)
144
144
  }));
145
145
  s(this, F, new p(this, "--split", !1));
146
- s(this, D, new p(this, "--sectional", !1));
146
+ s(this, A, new p(this, "--sectional", !1));
147
147
  s(this, X, new p(
148
148
  this,
149
149
  "--tween-easing",
@@ -161,7 +161,7 @@ class jt extends HTMLElement {
161
161
  !1
162
162
  ));
163
163
  s(this, vt, new p(this, "--drag-inertion", 1));
164
- s(this, T, new p(
164
+ s(this, D, new p(
165
165
  this,
166
166
  "--sections-in-view",
167
167
  1
@@ -176,7 +176,7 @@ class jt extends HTMLElement {
176
176
  "--section-distance-scale",
177
177
  0.5
178
178
  ));
179
- s(this, A, new p(this, "--autoplay", 0));
179
+ s(this, T, new p(this, "--autoplay", 0));
180
180
  s(this, xt, new p(
181
181
  this,
182
182
  "--autoplay-pause-duration",
@@ -220,15 +220,15 @@ class jt extends HTMLElement {
220
220
  s(this, O, null);
221
221
  s(this, w, null);
222
222
  s(this, E, new Re(0));
223
- s(this, At, 0);
223
+ s(this, Tt, 0);
224
224
  s(this, lt, 0);
225
225
  s(this, q, !1);
226
226
  s(this, U, !0);
227
227
  s(this, ct, !0);
228
- s(this, Dt);
228
+ s(this, At);
229
229
  s(this, at);
230
230
  s(this, G, new $e());
231
- s(this, Tt, !1);
231
+ s(this, Dt, !1);
232
232
  s(this, R, null);
233
233
  s(this, x, !1);
234
234
  s(this, z, () => {
@@ -241,7 +241,7 @@ class jt extends HTMLElement {
241
241
  )) : r(this, k, Le.parse(
242
242
  getComputedStyle(t(this, f)).columnGap
243
243
  )), t(this, $).current && t(this, l).length) {
244
- const n = t(this, T).current, d = (t(this, v) - t(this, k) * (n - 1)) / n;
244
+ const n = t(this, D).current, d = (t(this, v) - t(this, k) * (n - 1)) / n;
245
245
  t(this, l).forEach((m) => {
246
246
  m.setSize(d);
247
247
  });
@@ -266,7 +266,7 @@ class jt extends HTMLElement {
266
266
  r(this, lt, n.position + n.size + m);
267
267
  } else
268
268
  r(this, lt, t(this, S));
269
- if (t(this, D).current && t(this, l).length) {
269
+ if (t(this, A).current && t(this, l).length) {
270
270
  const n = t(this, l)[i];
271
271
  t(this, u).set(n.position, {
272
272
  equalize: !0
@@ -281,7 +281,7 @@ class jt extends HTMLElement {
281
281
  if (!t(this, q) || t(this, ct) || t(this, U))
282
282
  return;
283
283
  const e = this.currentScrollValue;
284
- if (r(this, At, Math.max(0, e - t(this, S))), t(this, l).length) {
284
+ if (r(this, Tt, Math.max(0, e - t(this, S))), t(this, l).length) {
285
285
  for (let i = 0; i < t(this, l).length; i++)
286
286
  t(this, l)[i].transform();
287
287
  t(this, E).current = c(this, o, ce).call(this);
@@ -303,7 +303,7 @@ class jt extends HTMLElement {
303
303
  if (t(this, B).current > 0 && i < 0)
304
304
  return;
305
305
  }
306
- if (t(this, at) || t(this, G).unlistenAnimationFrame(), !t(this, A).current && t(this, it).current && (clearInterval(t(this, Dt)), r(this, Dt, setTimeout(() => {
306
+ if (t(this, at) || t(this, G).unlistenAnimationFrame(), !t(this, T).current && t(this, it).current && (clearInterval(t(this, At)), r(this, At, setTimeout(() => {
307
307
  const n = t(this, l)[c(this, o, ce).call(this)];
308
308
  n && this.scrollToSection(n.index, {
309
309
  tween: {
@@ -311,8 +311,8 @@ class jt extends HTMLElement {
311
311
  easing: He
312
312
  }
313
313
  });
314
- }, t(this, it).current))), !(e.includes("drag") && !Ke.isMobile && !t(this, Et).current)) {
315
- if (t(this, D).current && e !== "drag") {
314
+ }, t(this, it).current))), !(e.includes("drag") && !Ke.isTouch && !t(this, Et).current)) {
315
+ if (out && (out.innerText = e + " " + i), t(this, A).current && e !== "drag") {
316
316
  const n = Math.sign(i);
317
317
  if (t(this, l).length) {
318
318
  const d = {
@@ -321,12 +321,12 @@ class jt extends HTMLElement {
321
321
  duration: t(this, Y).current || 500
322
322
  } : void 0
323
323
  };
324
- t(this, Tt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
324
+ t(this, Dt) ? this.scrollToSection(t(this, E).current, d) : this.shiftSections(n, d);
325
325
  } else
326
326
  t(this, u).shift(n * t(this, v));
327
327
  } else
328
328
  t(this, u).shift(i);
329
- r(this, Tt, e === "drag");
329
+ r(this, Dt, e === "drag");
330
330
  }
331
331
  });
332
332
  s(this, te, () => {
@@ -361,7 +361,7 @@ class jt extends HTMLElement {
361
361
  return t(this, F);
362
362
  }
363
363
  get sectionalCSSProperty() {
364
- return t(this, D);
364
+ return t(this, A);
365
365
  }
366
366
  get easingCSSProperty() {
367
367
  return t(this, X);
@@ -379,7 +379,7 @@ class jt extends HTMLElement {
379
379
  return t(this, vt);
380
380
  }
381
381
  get sectionsInViewCSSProperty() {
382
- return t(this, T);
382
+ return t(this, D);
383
383
  }
384
384
  get loopCSSProperty() {
385
385
  return t(this, y);
@@ -400,7 +400,7 @@ class jt extends HTMLElement {
400
400
  return t(this, zt);
401
401
  }
402
402
  get autoplayCSSProperty() {
403
- return t(this, A);
403
+ return t(this, T);
404
404
  }
405
405
  get autoplayPauseDurationCSSProperty() {
406
406
  return t(this, xt);
@@ -464,7 +464,7 @@ class jt extends HTMLElement {
464
464
  }
465
465
  get limit() {
466
466
  return Math.ceil(
467
- t(this, l).length - t(this, T).current
467
+ t(this, l).length - t(this, D).current
468
468
  );
469
469
  }
470
470
  get distance() {
@@ -477,7 +477,7 @@ class jt extends HTMLElement {
477
477
  return t(this, q);
478
478
  }
479
479
  get overscroll() {
480
- return t(this, At);
480
+ return t(this, Tt);
481
481
  }
482
482
  get scrollLine() {
483
483
  return t(this, R);
@@ -518,11 +518,11 @@ class jt extends HTMLElement {
518
518
  scrollToSection(e, i) {
519
519
  if (!t(this, l).length)
520
520
  return;
521
- const n = t(this, E).current, d = c(this, o, Ae).call(this, e), m = t(this, l)[n], C = t(this, l)[d];
521
+ const n = t(this, E).current, d = c(this, o, Te).call(this, e), m = t(this, l)[n], C = t(this, l)[d];
522
522
  if (m && C) {
523
523
  let I = 0;
524
- const ue = c(this, o, ce).call(this), Kt = t(this, l)[ue], Te = Kt ? this.targetScrollValue - Kt.position : 0;
525
- t(this, y).current ? d === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : d === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - Te, i);
524
+ const ue = c(this, o, ce).call(this), Kt = t(this, l)[ue], De = Kt ? this.targetScrollValue - Kt.position : 0;
525
+ t(this, y).current ? d === 0 && n === t(this, l).length - 1 ? I = t(this, S) + t(this, v) - m.position + t(this, k) : d === t(this, l).length - 1 && n === 0 ? I = C.position - (t(this, S) + t(this, v) + t(this, k)) : I = C.position - m.position : I = C.position - m.position, this.shiftPosition(I - De, i);
526
526
  }
527
527
  }
528
528
  shiftSections(e, i) {
@@ -561,21 +561,21 @@ class jt extends HTMLElement {
561
561
  t(this, x) && t(this, z).call(this);
562
562
  }), t(this, F).subscribe(({ current: e }) => {
563
563
  t(this, x) && (e ? c(this, o, _t).call(this) : c(this, o, Lt).call(this));
564
- }), t(this, D).subscribe((e) => {
564
+ }), t(this, A).subscribe((e) => {
565
565
  t(this, V).debounce = e.current, t(this, O).swipe = e.current, t(this, w).interval = e.current, t(this, x) && (e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
566
566
  }), t(this, $).subscribe((e) => {
567
567
  t(this, x) && (t(this, z).call(this), e.current && !e.previous && !t(this, l).length ? c(this, o, _t).call(this) : !e.current && e.previous && t(this, l).length && c(this, o, Lt).call(this));
568
- }), t(this, T).subscribe((e) => {
568
+ }), t(this, D).subscribe((e) => {
569
569
  t(this, x) && (t(this, z).call(this), c(this, o, mt).call(this));
570
570
  }), t(this, y).subscribe((e) => {
571
- e.current ? (t(this, x) && (t(this, l).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, At, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
571
+ e.current ? (t(this, x) && (t(this, l).length || (t(this, F).current = !0)), t(this, u).max = 1 / 0, t(this, u).min = -1 / 0) : (r(this, Tt, 0), t(this, u).max = t(this, S), t(this, u).min = 0);
572
572
  }), t(this, yt).subscribe((e) => {
573
573
  t(this, u).damping = e.current;
574
574
  }), t(this, Ct).subscribe((e) => {
575
575
  t(this, u).mass = e.current;
576
576
  }), t(this, wt).subscribe((e) => {
577
577
  t(this, u).stiffness = e.current;
578
- }), t(this, A).subscribe((e) => {
578
+ }), t(this, T).subscribe((e) => {
579
579
  t(this, w).speed = e.current, !t(this, U) && e.current && !e.previous ? t(this, w).connect() : !e.current && e.previous && t(this, w).disconnect();
580
580
  }), t(this, et).subscribe((e) => {
581
581
  e.current || (t(this, w).direction = 1);
@@ -595,13 +595,13 @@ class jt extends HTMLElement {
595
595
  e.current && !e.previous ? (this.classList.add("disabled"), c(this, o, oe).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), c(this, o, le).call(this));
596
596
  }), t(this, nt).subscribe((e) => {
597
597
  e.current && !e.previous ? (this.classList.add("hibernated"), c(this, o, Se).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), c(this, o, ge).call(this));
598
- }), t(this, gt).observe(), t(this, P).observe(), t(this, Q).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, D).observe(), t(this, X).observe(), t(this, Y).observe(), t(this, $).observe(), t(this, tt).observe(), t(this, vt).observe(), t(this, T).observe(), t(this, y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, zt).observe(), t(this, A).observe(), t(this, A).observe(), t(this, xt).observe(), t(this, et).observe(), t(this, M).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, Pt).observe(), t(this, rt).observe(), t(this, nt).observe(), kt.subscribe(t(this, te), me.LAST);
598
+ }), t(this, gt).observe(), t(this, P).observe(), t(this, Q).observe(), t(this, B).observe(), t(this, W).observe(), t(this, F).observe(), t(this, A).observe(), t(this, X).observe(), t(this, Y).observe(), t(this, $).observe(), t(this, tt).observe(), t(this, vt).observe(), t(this, D).observe(), t(this, y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, zt).observe(), t(this, T).observe(), t(this, T).observe(), t(this, xt).observe(), t(this, et).observe(), t(this, M).observe(), t(this, st).observe(), t(this, N).observe(), t(this, it).observe(), t(this, Pt).observe(), t(this, rt).observe(), t(this, nt).observe(), kt.subscribe(t(this, te), me.LAST);
599
599
  }
600
600
  disconnectedCallback() {
601
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, gt).unobserve(), t(this, P).unobserve(), t(this, Q).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, D).unobserve(), t(this, X).unobserve(), t(this, Y).unobserve(), t(this, $).unobserve(), t(this, tt).unobserve(), t(this, vt).unobserve(), t(this, T).unobserve(), t(this, y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, Et).unobserve(), t(this, zt).unobserve(), t(this, A).unobserve(), t(this, xt).unobserve(), t(this, et).unobserve(), t(this, M).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, Pt).unobserve(), t(this, rt).unobserve(), t(this, nt).unobserve(), kt.unsubscribe(t(this, te)), c(this, o, Se).call(this);
601
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, gt).unobserve(), t(this, P).unobserve(), t(this, Q).unobserve(), t(this, B).unobserve(), t(this, W).unobserve(), t(this, F).unobserve(), t(this, A).unobserve(), t(this, X).unobserve(), t(this, Y).unobserve(), t(this, $).unobserve(), t(this, tt).unobserve(), t(this, vt).unobserve(), t(this, D).unobserve(), t(this, y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, wt).unobserve(), t(this, Et).unobserve(), t(this, zt).unobserve(), t(this, T).unobserve(), t(this, xt).unobserve(), t(this, et).unobserve(), t(this, M).unobserve(), t(this, st).unobserve(), t(this, N).unobserve(), t(this, it).unobserve(), t(this, Pt).unobserve(), t(this, rt).unobserve(), t(this, nt).unobserve(), kt.unsubscribe(t(this, te)), c(this, o, Se).call(this);
602
602
  }
603
603
  }
604
- u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), D = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), $ = new WeakMap(), tt = new WeakMap(), vt = new WeakMap(), T = new WeakMap(), y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), A = new WeakMap(), xt = new WeakMap(), et = new WeakMap(), M = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), Pt = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), ht = new WeakMap(), f = new WeakMap(), It = new WeakMap(), l = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), ot = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), At = new WeakMap(), lt = new WeakMap(), q = new WeakMap(), U = new WeakMap(), ct = new WeakMap(), Dt = new WeakMap(), at = new WeakMap(), G = new WeakMap(), Tt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
604
+ u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B = new WeakMap(), W = new WeakMap(), F = new WeakMap(), A = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), $ = new WeakMap(), tt = new WeakMap(), vt = new WeakMap(), D = new WeakMap(), y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), T = new WeakMap(), xt = new WeakMap(), et = new WeakMap(), M = new WeakMap(), st = new WeakMap(), N = new WeakMap(), it = new WeakMap(), Pt = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), ht = new WeakMap(), f = new WeakMap(), It = new WeakMap(), l = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), v = new WeakMap(), S = new WeakMap(), k = new WeakMap(), V = new WeakMap(), ot = new WeakMap(), O = new WeakMap(), w = new WeakMap(), E = new WeakMap(), Tt = new WeakMap(), lt = new WeakMap(), q = new WeakMap(), U = new WeakMap(), ct = new WeakMap(), At = new WeakMap(), at = new WeakMap(), G = new WeakMap(), Dt = new WeakMap(), R = new WeakMap(), x = new WeakMap(), o = new WeakSet(), be = function() {
605
605
  const e = t(this, P).current, i = t(this, Q).current ? "-reverse" : "";
606
606
  t(this, f).style.flexDirection = e === "x" ? `row${i}` : `column${i}`, t(this, V).axis = t(this, tt).current ? "max" : e, t(this, ot).dimension = e === "x" ? "width" : "height", t(this, O).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, x) && t(this, z).call(this);
607
607
  }, _t = function() {
@@ -619,20 +619,20 @@ u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B =
619
619
  composed: !0
620
620
  });
621
621
  }, oe = function() {
622
- t(this, U) || (r(this, U, !0), t(this, u).unsubscribe(t(this, Mt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, Dt)), clearInterval(t(this, at)), t(this, G).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, ot).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, q) || this.sections.forEach((e) => {
622
+ t(this, U) || (r(this, U, !0), t(this, u).unsubscribe(t(this, Mt)), t(this, u).unlistenAnimationFrame(), clearInterval(t(this, At)), clearInterval(t(this, at)), t(this, G).unlistenAnimationFrame(), t(this, V).disconnect(), t(this, ot).disconnect(), t(this, O).disconnect(), t(this, w).disconnect(), t(this, q) || this.sections.forEach((e) => {
623
623
  e.unsetTransform();
624
624
  }));
625
625
  }, le = function() {
626
- t(this, U) && (r(this, U, !1), t(this, u).subscribe(t(this, Mt)), t(this, V).connect(), t(this, ot).connect(), t(this, O).connect(), t(this, A).current && t(this, w).connect());
626
+ t(this, U) && (r(this, U, !1), t(this, u).subscribe(t(this, Mt)), t(this, V).connect(), t(this, ot).connect(), t(this, O).connect(), t(this, T).current && t(this, w).connect());
627
627
  }, Se = function() {
628
628
  t(this, ct) || (r(this, ct, !0), kt.unsubscribe(t(this, z)), Zt.unsubscribe(t(this, z)), c(this, o, oe).call(this), t(this, f).style.transform = "", t(this, f).style.height = "", t(this, f).style.width = "", this.classList.remove("has-overflow", "start", "end"), t(this, l).length ? c(this, o, Lt).call(this) : (t(this, E).reset(), t(this, u).reset()), bt.unregister(this));
629
629
  }, ge = function() {
630
- t(this, ct) && (r(this, ct, !1), bt.register(this), (t(this, y).current || t(this, F).current || t(this, y).current || t(this, $).current || t(this, D).current) && c(this, o, _t).call(this), c(this, o, le).call(this), kt.subscribe(t(this, z), me.SCROLL), Zt.subscribe(this, t(this, z)));
631
- }, z = new WeakMap(), Mt = new WeakMap(), Ae = function(e) {
630
+ t(this, ct) && (r(this, ct, !1), bt.register(this), (t(this, y).current || t(this, F).current || t(this, y).current || t(this, $).current || t(this, A).current) && c(this, o, _t).call(this), c(this, o, le).call(this), kt.subscribe(t(this, z), me.SCROLL), Zt.subscribe(this, t(this, z)));
631
+ }, z = new WeakMap(), Mt = new WeakMap(), Te = function(e) {
632
632
  let i = t(this, E).current;
633
633
  return t(this, y).current ? i = Be(e, t(this, l).length) : i = ze(e, 0, this.limit), i;
634
634
  }, Vt = new WeakMap(), Yt = new WeakMap(), ve = function(e = 1) {
635
- t(this, et).current && (t(this, w).direction = e), t(this, A).current && t(this, w).pauseAndContinue(
635
+ t(this, et).current && (t(this, w).direction = e), t(this, T).current && t(this, w).pauseAndContinue(
636
636
  t(this, xt).current,
637
637
  this.sectionalCSSProperty.current
638
638
  );
@@ -649,7 +649,7 @@ u = new WeakMap(), gt = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), B =
649
649
  detail: { line: t(this, R) }
650
650
  }), t(this, M).current) {
651
651
  this.classList.remove("end", "start"), t(this, R) && this.classList.add(t(this, R));
652
- const i = t(this, T).current + t(this, N).current;
652
+ const i = t(this, D).current + t(this, N).current;
653
653
  t(this, l).forEach((n, d) => {
654
654
  const m = e - this.limit - 1 + t(this, N).current, C = e + i, I = this.sections.length - C;
655
655
  d >= e && d < C || d <= m ? n.mark("current") : d >= C && d < C + I / 2 || d <= m + i ? n.mark("next") : n.mark("previous");
@@ -662,7 +662,7 @@ ce = function() {
662
662
  const d = t(this, u).direction;
663
663
  for (let m = 0; m < t(this, l).length; m++) {
664
664
  const C = t(this, l)[m];
665
- let I = t(this, Tt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
665
+ let I = t(this, Dt) ? C.size * d * -1 * 0.4 : 0, ue = C.position;
666
666
  const Kt = Math.abs(ue + I - e);
667
667
  Kt < i && (i = Kt, n = m);
668
668
  }
@@ -767,7 +767,7 @@ class Xe extends Ce {
767
767
  ut = new WeakMap(), L = new WeakMap(), K = new WeakMap(), _ = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), dt = new WeakMap(), Ht = new WeakMap(), se = new WeakMap(), ie = new WeakMap();
768
768
  customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Xe);
769
769
  var Bt, Wt, Ft;
770
- class De extends Ce {
770
+ class Ae extends Ce {
771
771
  constructor() {
772
772
  super();
773
773
  s(this, Bt, new p(this, "--behaviour", "smooth"));
@@ -794,7 +794,7 @@ class De extends Ce {
794
794
  }
795
795
  Bt = new WeakMap(), Wt = new WeakMap(), Ft = new WeakMap();
796
796
  var $t;
797
- class Ye extends De {
797
+ class Ye extends Ae {
798
798
  constructor() {
799
799
  super(...arguments);
800
800
  s(this, $t, new p(this, "--set", 1));
@@ -812,7 +812,7 @@ class Ye extends De {
812
812
  $t = new WeakMap();
813
813
  customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Ye);
814
814
  var Z, Nt;
815
- class ts extends De {
815
+ class ts extends Ae {
816
816
  constructor() {
817
817
  super(...arguments);
818
818
  s(this, Z, new p(this, "--step", 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.42.1",
3
+ "version": "0.42.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"