aptechka 0.77.2 → 0.77.3

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.
@@ -90,7 +90,6 @@ export declare class ScrollElement extends HTMLElement {
90
90
  shiftPosition(value: number, options?: ScrollSetOptions): void;
91
91
  resize(): void;
92
92
  protected connectedCallback(): void;
93
- protected adoptedCallback(): void;
94
93
  protected disconnectedCallback(): void;
95
94
  }
96
95
  declare global {
@@ -1 +1 @@
1
- "use strict";var fi=Object.defineProperty;var Ns=Object.getOwnPropertySymbols,bi=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Ci=Reflect.get;var Gs=d=>{throw TypeError(d)};var Us=(d,h,e)=>h in d?fi(d,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[h]=e,Zs=(d,h)=>{for(var e in h||(h={}))mi.call(h,e)&&Us(d,e,h[e]);if(Ns)for(var e of Ns(h))gi.call(h,e)&&Us(d,e,h[e]);return d};var Is=(d,h,e)=>h.has(d)||Gs("Cannot "+e);var t=(d,h,e)=>(Is(d,h,"read from private field"),e?e.call(d):h.get(d)),i=(d,h,e)=>h.has(d)?Gs("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(d):h.set(d,e),r=(d,h,e,s)=>(Is(d,h,"write to private field"),s?s.call(d,e):h.set(d,e),e),o=(d,h,e)=>(Is(d,h,"access private method"),e);var Rs=(d,h,e)=>Ci(bi(d),e,h);var As=(d,h,e)=>new Promise((s,n)=>{var u=v=>{try{C(e.next(v))}catch(ae){n(ae)}},g=v=>{try{C(e.throw(v))}catch(ae){n(ae)}},C=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);C((e=e.apply(d,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const de=require("../Store-Cd1GlEmZ.cjs"),_=require("../index-DekP7OZe.cjs"),yi=require("../easings-GegIwET5.cjs"),vi=require("../element-yhcBhsho.cjs"),st=require("../events-KVanG9sR.cjs"),Ls=require("../function-MthRj-GJ.cjs"),it=require("../layout-Ctc2p3uz.cjs"),$s=require("../math-GDWEqu7y.cjs"),Js=require("../number-ChAm68cm.cjs"),Qs=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Te=require("../order/index.cjs"),Xs=require("../Damped-z9Uaw2MJ.cjs"),Pi=require("../Tweened-mvHucL4Y.cjs"),Es=require("../DragControls-tVaq-vIe.cjs"),ft=require("../window-resizer/index.cjs"),ue=require("../scroll-entries/index.cjs"),Ks=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),Ei=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const cs=require("../element-resizer/index.cjs"),wi=require("../gestures-C7gbKx11.cjs"),xi=require("../dom-JBOkFLTh.cjs");var p,De,E,us,as,fe,bt,$t,be,Ht,Fe;class Li{constructor(h,e,s){i(this,Ht);i(this,p);i(this,De);i(this,E);i(this,us,0);i(this,as,0);i(this,fe,0);i(this,bt,0);i(this,$t,null);i(this,be,0);r(this,p,h),r(this,De,e),r(this,E,s),ue.scrollEntries.register(t(this,p)),this.setIndex(t(this,De))}get element(){return t(this,p)}get index(){return t(this,De)}get size(){return t(this,fe)}get width(){return t(this,us)}get height(){return t(this,as)}get position(){return t(this,bt)}get transformPosition(){return t(this,be)}destroy(){ue.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setOffsetIndex(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,us,t(this,p).offsetWidth),r(this,as,t(this,p).offsetHeight),r(this,fe,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,bt,t(this,E).vertical?it.getCumulativeOffsetTop(t(this,p)):it.getCumulativeOffsetLeft(t(this,p))),r(this,bt,t(this,bt)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,bt)+t(this,fe)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),ue.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,bt)-t(this,E).viewportSize-s,g=t(this,bt)+t(this,fe)+s,C=Js.preciseNumber($s.clamp(n,u,g),3);r(this,be,C*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,be)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,be)}px, 0px, 0px)`}setMark(h){t(this,$t)!==h&&(t(this,$t)&&t(this,p).classList.remove(t(this,$t)),h&&t(this,p).classList.add(h),r(this,$t,h),st.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,$t)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,Ht,Fe).call(this,"index",h)}setCurrentIndex(h){o(this,Ht,Fe).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,Ht,Fe).call(this,"current-index-arc",h)}setOffsetIndex(h){o(this,Ht,Fe).call(this,"offset-index",h)}setCurrentIndexArcAbs(h){o(this,Ht,Fe).call(this,"current-index-arc-abs",h)}}p=new WeakMap,De=new WeakMap,E=new WeakMap,us=new WeakMap,as=new WeakMap,fe=new WeakMap,bt=new WeakMap,$t=new WeakMap,be=new WeakMap,Ht=new WeakSet,Fe=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const js=Qs.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:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".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 S,me,T,Wt,mt,gt,Ct,j,_t,Nt,yt,Ut,ge,J,k,Ce,ye,ve,Pe,qe,Ee,Q,we,Gt,X,vt,Pt,xe,Zt,Le,ze,Kt,jt,Jt,f,Be,N,a,ds,Ss,L,P,U,rt,Qt,nt,M,V,$e,Et,wt,xt,G,He,Lt,Xt,zt,ht,I,We,kt,ke,_e,c,Ms,os,Oe,ws,xs,Fs,Os,F,ps,Ys,Ne,fs,Ts,Ds,Se,ti,bs,ls,Ue;class zs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,me,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,Wt,new l.CSSProperty(this,"--reverse",!1));i(this,mt,new l.CSSProperty(this,"--direction",0));i(this,gt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,Ct,new l.CSSProperty(this,"--split",!1));i(this,j,new l.CSSProperty(this,"--sectional",!1));i(this,_t,new l.CSSProperty(this,"--tween-easing",!1));i(this,Nt,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,Ut,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,ge,new l.CSSProperty(this,"--drag-inertion",1));i(this,J,new l.CSSProperty(this,"--sections-in-view",1));i(this,k,new l.CSSProperty(this,"--loop",!1));i(this,Ce,new l.CSSProperty(this,"--damping",20));i(this,ye,new l.CSSProperty(this,"--mass",0));i(this,ve,new l.CSSProperty(this,"--stiffness",0));i(this,Pe,new l.CSSProperty(this,"--mouse-drag",!1));i(this,qe,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,Ee,new l.CSSProperty(this,"--start-section",0));i(this,Q,new l.CSSProperty(this,"--autoplay",0));i(this,we,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,Gt,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,X,new l.CSSProperty(this,"--classes",!1));i(this,vt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Pt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,xe,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Zt,new l.CSSProperty(this,"--focus-delay",0));i(this,Le,new l.CSSProperty(this,"--focus-duration",3e3));i(this,ze,new l.CSSProperty(this,"--shift-limit",0));i(this,Kt,new l.CSSProperty(this,"--disabled",!1));i(this,jt,new l.CSSProperty(this,"--hibernate",!1));i(this,Jt,null);i(this,f,null);i(this,Be,null);i(this,N,[]);i(this,a,[]);i(this,ds,0);i(this,Ss,0);i(this,L,0);i(this,P,0);i(this,U,0);i(this,rt,null);i(this,Qt,null);i(this,nt,null);i(this,M,null);i(this,V,new de.Store(0));i(this,$e,0);i(this,Et,0);i(this,wt,!1);i(this,xt,!0);i(this,G,!0);i(this,He);i(this,Lt);i(this,Xt,new Pi.Tweened);i(this,zt,!1);i(this,ht,null);i(this,I,!1);i(this,We,null);i(this,kt,[]);i(this,ke,!1);i(this,_e);i(this,F,e=>{if(e&&t(this,ke)){r(this,ke,!1);return}this.resize()});i(this,ps,()=>{if(!t(this,wt)||t(this,G)||t(this,xt))return;const e=this.currentScrollValue;if(r(this,$e,Math.max(0,e-t(this,P))),t(this,a).length){for(let s=0;s<t(this,N).length;s++)t(this,N)[s].transform();(t(this,zt)||!t(this,j).current)&&(t(this,V).current=o(this,c,ls).call(this))}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,ti).call(this),ue.scrollEntries.update(this,t(this,T).current,e)});i(this,Ne,(e,s)=>{t(this,me).current&&(o(this,c,Ts).call(this,Math.sign(s)||1),t(this,fs).call(this,e,s))});i(this,fs,(e,s)=>{if(!t(this,Lt)){if(t(this,mt).current){if(t(this,mt).current<0&&s>0)return;if(t(this,mt).current>0&&s<0)return}if(!t(this,Q).current&&t(this,Zt).current&&(clearInterval(t(this,He)),r(this,He,setTimeout(()=>{const n=t(this,a)[o(this,c,ls).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,Le).current,easing:yi.easeInOutExpo}})},t(this,Zt).current))),!(e.includes("drag")&&!Ei.device.isTouch&&!t(this,Pe).current)){if(t(this,j).current&&e!=="drag"){const n=Math.sign(s);t(this,a).length?t(this,zt)?this.scrollToSection(o(this,c,ls).call(this,!0)):this.shiftSections(n,{tween:t(this,_t).current||t(this,Nt).current?{easing:t(this,_t).current||"easeInOutCubic",duration:t(this,Nt).current||500}:void 0}):t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,zt,e==="drag")}}});i(this,bs,Ls.debounce(()=>{const e=t(this,kt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,_e)),r(this,ke,!0),this.style.setProperty("--max-section-size",""),r(this,_e,setTimeout(()=>{r(this,ke,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ue,()=>{r(this,I,!0),this.hibernatedCSSProperty.current||o(this,c,Os).call(this),cs.elementResizer.subscribe(this,t(this,F)),ft.windowResizer.unsubscribe(t(this,Ue))});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[js];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Jt,document.createElement("div")),t(this,Jt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Be,document.createElement("slot")),t(this,f).appendChild(t(this,Be)),t(this,Jt).appendChild(t(this,f)),e.appendChild(t(this,Jt)),r(this,We,new MutationObserver(Ls.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,me)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,Wt)}get directionCSSProperty(){return t(this,mt)}get pagesCSSProperty(){return t(this,gt)}get splitCSSProperty(){return t(this,Ct)}get sectionalCSSProperty(){return t(this,j)}get easingCSSProperty(){return t(this,_t)}get durationCSSProperty(){return t(this,Nt)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Ut)}get dragInertionCSSProperty(){return t(this,ge)}get sectionsInViewCSSProperty(){return t(this,J)}get loopCSSProperty(){return t(this,k)}get dampingCSSProperty(){return t(this,Ce)}get massCSSProperty(){return t(this,ye)}get stiffnessCSSProperty(){return t(this,ve)}get mouseDragCSSProperty(){return t(this,Pe)}get sectionDistanceScaleCSSProperty(){return t(this,qe)}get startSectionCSSProperty(){return t(this,Ee)}get autoplayCSSProperty(){return t(this,Q)}get autoplayPauseDurationCSSProperty(){return t(this,we)}get autoplayUserDirectionCSSProperty(){return t(this,Gt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,vt)}get currentIndexEndOffsetCSSProperty(){return t(this,Pt)}get shiftSectionPositionCSSProperty(){return t(this,xe)}get focusDelayCSSProperty(){return t(this,Zt)}get focusDurationCSSProperty(){return t(this,Le)}get shiftLimitCSSProperty(){return t(this,ze)}get disabledCSSProperty(){return t(this,Kt)}get hibernatedCSSProperty(){return t(this,jt)}get currentScrollValue(){return o(this,c,Ds).call(this,"current")}get targetScrollValue(){return o(this,c,Ds).call(this,"target")}get contentWrapperElement(){return t(this,Jt)}get contentElement(){return t(this,f)}get sections(){return t(this,N)}get visibleSections(){return t(this,a)}get position(){return t(this,ds)}get contentPosition(){return t(this,Ss)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,U)}get counter(){return t(this,V)}get limit(){return Math.ceil(t(this,a).length-t(this,J).current+t(this,ze).current)}get distance(){return t(this,Et)}get loopDistance(){return t(this,k).current?t(this,Et)+t(this,U):t(this,Et)}get hasOverflow(){return t(this,wt)}get overscroll(){return t(this,$e)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,G)&&(t(this,k).current||t(this,Ct).current||t(this,k).current||t(this,yt).current||t(this,j).current)&&o(this,c,os).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,a).length||t(this,G)||t(this,Lt))return;const n=t(this,V).current,u=o(this,c,Ys).call(this,e);t(this,zt)||(t(this,V).current=u);const g=t(this,a)[n],C=t(this,a)[u];if(g&&C){let v=0;const ae=o(this,c,ls).call(this),Me=t(this,a)[ae];let hs=Me?this.targetScrollValue-Me.position:0;t(this,k).current?u===0&&n===t(this,a).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,U),t(this,zt)||(hs=0)):u===t(this,a).length-1&&n===0?v=C.position-(t(this,P)+t(this,L)+t(this,U)):v=C.position-g.position:v=C.position-g.position,this.shiftPosition(v-hs,s)}}shiftSections(e,s){t(this,a).length&&this.scrollToSection(t(this,V).current+e,s)}setPosition(e,s){t(this,G)||(o(this,c,Ts).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,Lt)),t(this,Xt).set(t(this,S).current,{equalize:!0}),t(this,Xt).set(e,Zs({},s.tween)),r(this,Lt,setTimeout(()=>{r(this,Lt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,jt).current)return;r(this,a,t(this,N).filter(n=>vi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,a).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,V).current;if(r(this,ds,this.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this)),r(this,Ss,this.vertical?it.getCumulativeOffsetTop(t(this,f)):it.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,a).length){const n=t(this,J).current,u=(t(this,L)-t(this,U)*(n-1))/n;t(this,a).forEach(g=>{g.setSize(u)})}else t(this,a).forEach(n=>{n.setSize()});if(t(this,a).forEach(n=>{n.resize()}),t(this,gt).current){r(this,P,t(this,L)*t(this,gt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,k).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,k).current&&t(this,a).length){const n=t(this,a)[t(this,a).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Et,n.position+n.size+g)}else r(this,Et,t(this,P));if(t(this,j).current&&t(this,a).length){const n=t(this,a)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,wt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,wt)),t(this,wt)?t(this,Kt).current||o(this,c,xs).call(this):o(this,c,ws).call(this),t(this,bs).call(this),st.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){ue.scrollEntries.register(this),r(this,S,new Xs.Damped(0,{damping:.01,min:0,order:Te.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new Es.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,Ne)),r(this,Qt,new Es.KeyboardControls({element:this})),t(this,Qt).changeEvent.subscribe(t(this,Ne)),r(this,nt,new Es.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,Ne)),r(this,M,new Es.AutoplayControls({culling:this})),t(this,M).changeEvent.subscribe(t(this,fs)),t(this,T).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Wt).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Ut).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,ge).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,gt).subscribe(()=>{t(this,I)&&t(this,F).call(this)}),t(this,Ct).subscribe(({current:e})=>{t(this,I)&&(e?o(this,c,os).call(this):o(this,c,Oe).call(this))}),t(this,j).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,M).interval=e.current,t(this,I)&&(e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,yt).subscribe(e=>{t(this,I)&&(t(this,F).call(this),e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,J).subscribe(e=>{t(this,I)&&(t(this,F).call(this),o(this,c,Se).call(this))}),t(this,k).subscribe(e=>{e.current?(t(this,I)&&(t(this,a).length||(t(this,Ct).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,$e,0),t(this,S).max=t(this,P),t(this,S).min=0),this.classList.toggle("loop",!!e.current)}),t(this,Ce).subscribe(e=>{t(this,S).damping=e.current}),t(this,ye).subscribe(e=>{t(this,S).mass=e.current}),t(this,ve).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,Q).subscribe(e=>{t(this,M).speed=e.current,!t(this,xt)&&e.current&&!e.previous?t(this,M).connect():!e.current&&e.previous&&t(this,M).disconnect()}),t(this,Gt).subscribe(e=>{e.current||(t(this,M).direction=1)}),t(this,X).subscribe(e=>{t(this,I)&&o(this,c,Se).call(this)}),t(this,vt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,Se).call(this)}),t(this,Pt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,Se).call(this)}),t(this,xe).subscribe(e=>{t(this,I)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,V).subscribe(e=>{t(this,G)||(t(this,a).length&&o(this,c,Se).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Xt).subscribe(e=>{t(this,Xt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Kt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,ws).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,xs).call(this))}),t(this,jt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,Fs).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Os).call(this))}),t(this,me).observe(),t(this,T).observe(),t(this,Wt).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,Ct).observe(),t(this,j).observe(),t(this,_t).observe(),t(this,Nt).observe(),t(this,yt).observe(),t(this,Ut).observe(),t(this,ge).observe(),t(this,J).observe(),t(this,k).observe(),t(this,Ce).observe(),t(this,ye).observe(),t(this,ve).observe(),t(this,Pe).observe(),t(this,qe).observe(),t(this,Ee).observe(),t(this,Q).observe(),t(this,Q).observe(),t(this,we).observe(),t(this,Gt).observe(),t(this,X).observe(),t(this,vt).observe(),t(this,Pt).observe(),t(this,xe).observe(),t(this,Zt).observe(),t(this,Le).observe(),t(this,ze).observe(),t(this,Kt).observe(),t(this,jt).observe(),ft.windowResizer.subscribe(t(this,Ue),Te.RESIZE_ORDER.LAST),t(this,We).observe(this,{childList:!0})}adoptedCallback(){this.shadowRoot.adoptedStyleSheets=[js]}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,me).unobserve(),t(this,T).unobserve(),t(this,Wt).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,Ct).unobserve(),t(this,j).unobserve(),t(this,_t).unobserve(),t(this,Nt).unobserve(),t(this,yt).unobserve(),t(this,Ut).unobserve(),t(this,ge).unobserve(),t(this,J).unobserve(),t(this,k).unobserve(),t(this,Ce).unobserve(),t(this,ye).unobserve(),t(this,ve).unobserve(),t(this,Pe).unobserve(),t(this,qe).unobserve(),t(this,Ee).unobserve(),t(this,Q).unobserve(),t(this,we).unobserve(),t(this,Gt).unobserve(),t(this,X).unobserve(),t(this,vt).unobserve(),t(this,Pt).unobserve(),t(this,xe).unobserve(),t(this,Zt).unobserve(),t(this,Le).unobserve(),t(this,ze).unobserve(),t(this,Kt).unobserve(),t(this,jt).unobserve(),ft.windowResizer.unsubscribe(t(this,Ue)),ft.windowResizer.unsubscribe(t(this,F)),cs.elementResizer.unsubscribe(t(this,F)),o(this,c,Fs).call(this),t(this,We).disconnect()}}S=new WeakMap,me=new WeakMap,T=new WeakMap,Wt=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ct=new WeakMap,j=new WeakMap,_t=new WeakMap,Nt=new WeakMap,yt=new WeakMap,Ut=new WeakMap,ge=new WeakMap,J=new WeakMap,k=new WeakMap,Ce=new WeakMap,ye=new WeakMap,ve=new WeakMap,Pe=new WeakMap,qe=new WeakMap,Ee=new WeakMap,Q=new WeakMap,we=new WeakMap,Gt=new WeakMap,X=new WeakMap,vt=new WeakMap,Pt=new WeakMap,xe=new WeakMap,Zt=new WeakMap,Le=new WeakMap,ze=new WeakMap,Kt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,f=new WeakMap,Be=new WeakMap,N=new WeakMap,a=new WeakMap,ds=new WeakMap,Ss=new WeakMap,L=new WeakMap,P=new WeakMap,U=new WeakMap,rt=new WeakMap,Qt=new WeakMap,nt=new WeakMap,M=new WeakMap,V=new WeakMap,$e=new WeakMap,Et=new WeakMap,wt=new WeakMap,xt=new WeakMap,G=new WeakMap,He=new WeakMap,Lt=new WeakMap,Xt=new WeakMap,zt=new WeakMap,ht=new WeakMap,I=new WeakMap,We=new WeakMap,kt=new WeakMap,ke=new WeakMap,_e=new WeakMap,c=new WeakSet,Ms=function(){const e=t(this,T).current,s=t(this,Wt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,Ut).current?"max":e,t(this,Qt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,I)&&t(this,F).call(this)},os=function(){o(this,c,Oe).call(this),t(this,Be).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,N).push(new Li(e,s,this))}),r(this,a,[...t(this,N)]),t(this,f).style.transform="",st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,F).call(this),o(this,c,Se).call(this)},Oe=function(){t(this,N).forEach(e=>{e.destroy()}),r(this,N,[]),r(this,a,[]),t(this,V).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ws=function(){t(this,xt)||(r(this,xt,!0),t(this,S).unsubscribe(t(this,ps)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,He)),clearInterval(t(this,Lt)),t(this,Xt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Qt).disconnect(),t(this,nt).disconnect(),t(this,M).disconnect(),t(this,wt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,F).call(this)))},xs=function(){t(this,xt)&&(r(this,xt,!1),t(this,S).subscribe(t(this,ps),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Qt).connect(),t(this,nt).connect(),t(this,Q).current&&t(this,M).connect())},Fs=function(){t(this,G)||(r(this,G,!0),clearTimeout(t(this,_e)),ft.windowResizer.unsubscribe(t(this,F)),o(this,c,ws).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,N).length?o(this,c,Oe).call(this):(t(this,V).reset(),t(this,S).reset()),ue.scrollEntries.unregister(this))},Os=function(){t(this,G)&&(r(this,G,!1),ue.scrollEntries.register(this),this.tryResplit(),o(this,c,xs).call(this),this.scrollToSection(t(this,Ee).current,{behaviour:"instant"}),ft.windowResizer.subscribe(t(this,F),Te.RESIZE_ORDER.SCROLL))},F=new WeakMap,ps=new WeakMap,Ys=function(e){let s=t(this,V).current;return t(this,k).current?s=Js.loopNumber(e,t(this,a).length):s=$s.clamp(e,0,this.limit),s},Ne=new WeakMap,fs=new WeakMap,Ts=function(e=1){t(this,Gt).current&&(t(this,M).direction=e),t(this,Q).current&&t(this,M).pauseAndContinue(t(this,we).current,this.sectionalCSSProperty.current)},Ds=function(e="current"){if(t(this,k).current&&t(this,a).length){const s=Math.floor(t(this,S)[e])%Math.floor(t(this,P)+t(this,L)+t(this,U));return s<0?t(this,P)+s+t(this,L)+t(this,U):s}else return t(this,S)[e]},Se=function(){if(t(this,a).length){const e=t(this,V).current+t(this,vt).current;if(e===t(this,vt).current?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),st.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,X).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,J).current+t(this,Pt).current;r(this,kt,[]),t(this,a).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Pt).current,C=e+s,v=this.sections.length-C;u>=e&&u<C||u<=g?(n.setMark("current"),t(this,kt).push(n)):u>=C&&u<C+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,bs).call(this)}}},ti=function(){if(t(this,X).current){const e=Math.floor(t(this,kt).length/2);t(this,kt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,kt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)}),t(this,a).forEach((s,n)=>{s.setOffsetIndex(n-(t(this,V).current+t(this,J).current))})}},bs=new WeakMap,ls=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let C=0;C<t(this,a).length;C++){const v=t(this,a)[C];let ae=t(this,zt)?v.size*g*-1*.4:0,Me=v.position;this.overscroll&&Me===0&&e&&(Me=t(this,Et));let hs=Math.abs(Me+ae-s);hs<=n&&(n=hs,u=C)}return u},Ue=new WeakMap;_.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",zs);var ms;class ns extends HTMLElement{constructor(){super(...arguments);i(this,ms,null)}get scrollElement(){return t(this,ms)}connectedCallback(){const e=xi.findParentElement(this,zs);e instanceof zs?r(this,ms,e):console.error(this,"e-scroll not found")}}ms=new WeakMap;var Yt,D,Vt,It,Ge,Ze,te,Ke,gs,Cs;class ei extends ns{constructor(){super();i(this,Yt,null);i(this,D,null);i(this,Vt,!1);i(this,It,0);i(this,Ge,0);i(this,Ze,0);i(this,te,()=>{r(this,Vt,this.offsetWidth>this.offsetHeight);const e=t(this,Vt)?this.offsetWidth:this.offsetHeight;r(this,It,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,It,Math.max(t(this,It),30)),t(this,Vt)?(t(this,D).style.width=t(this,It)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,It)+"px"),r(this,Ge,e-t(this,It)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ke).call(this)});i(this,Ke,()=>{r(this,Ze,this.scrollElement.currentProgress*t(this,Ge)),t(this,Vt)?t(this,D).style.transform=`translate3d(${t(this,Ze)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ze)}px, 0px)`});i(this,gs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Cs,e=>{document.documentElement.classList.add("grabbing"),wi.setupDrag(u=>{const g=t(this,Vt)?u.x:u.y,C=this.scrollElement.distance/t(this,Ge),v=(g-n)*C;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,Vt)?e.x:e.y});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Qs.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,Yt,document.createElement("slot")),t(this,Yt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Yt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Yt).assignedElements()[0]||t(this,Yt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,Cs)),ft.windowResizer.subscribe(t(this,te),Te.RESIZE_ORDER.SCROLL),cs.elementResizer.subscribe(this,t(this,te)),cs.elementResizer.subscribe(this.scrollElement,t(this,te)),this.scrollElement.onScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.subscribe(t(this,gs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,Cs)),ft.windowResizer.unsubscribe(t(this,te)),cs.elementResizer.unsubscribe(t(this,te)),this.scrollElement.offScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,gs))}}Yt=new WeakMap,D=new WeakMap,Vt=new WeakMap,It=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,te=new WeakMap,Ke=new WeakMap,gs=new WeakMap,Cs=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-scrollbar")&&customElements.define("e-scroll-scrollbar",ei);var je,Je,Qe;class Hs extends ns{constructor(){super();i(this,je,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Je,new l.CSSProperty(this,"--tween-easing",!1));i(this,Qe,new l.CSSProperty(this,"--tween-duration",0));_.isBrowser&&this.addEventListener("click",()=>{const e=t(this,je).current,s=t(this,Je).current,n=t(this,Qe).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,je).observe(),t(this,Je).observe(),t(this,Qe).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,je).close(),t(this,Je).close(),t(this,Qe).close()}}je=new WeakMap,Je=new WeakMap,Qe=new WeakMap;var Xe;class si extends Hs{constructor(){super(...arguments);i(this,Xe,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Xe).current,e)}connectedCallback(){super.connectedCallback(),t(this,Xe).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Xe).close()}}Xe=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",si);var Rt,Ye;class ii extends Hs{constructor(){super(...arguments);i(this,Rt,new l.CSSProperty(this,"--step",1));i(this,Ye,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,Rt).current>0&&this.scrollElement.scrollLine==="end"||t(this,Rt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,Rt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,Rt).subscribe(()=>{t(this,Ye).call(this)}),t(this,Rt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Ye)),t(this,Ye).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,Rt).close(),this.removeAttribute("disabled")}}Rt=new WeakMap,Ye=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",ii);var ot,ee,ts,ys,vs,es;class zi{constructor(h,e,s){i(this,ot,null);i(this,ee,null);i(this,ts,null);i(this,ys,null);i(this,vs,()=>{t(this,ee).scrollToSection(t(this,ts),{behaviour:t(this,ys)})});i(this,es,()=>{t(this,ot).classList.toggle("current",t(this,ee).counter.current===t(this,ts))});_.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,ee,h),r(this,ys,s),r(this,ts,e),t(this,ot).addEventListener("click",t(this,vs)),t(this,ee).counter.subscribe(t(this,es)),t(this,es).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,vs)),t(this,ee).counter.unsubscribe(t(this,es)),t(this,ot).remove()}}ot=new WeakMap,ee=new WeakMap,ts=new WeakMap,ys=new WeakMap,vs=new WeakMap,es=new WeakMap;var Ve,se,lt;class ri extends ns{constructor(){super(...arguments);i(this,Ve,null);i(this,se,[]);i(this,lt,Ls.debounce(()=>{t(this,se).forEach(s=>s.destroy()),r(this,se,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new zi(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,Ve).appendChild(n.element),t(this,se).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",r(this,Ve,document.createElement("div")),this.appendChild(t(this,Ve)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,lt)),this.scrollElement.loopCSSProperty.subscribe(t(this,lt)),t(this,lt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,lt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,lt)),t(this,se).forEach(e=>e.destroy()),r(this,se,[]),t(this,Ve).remove()}}Ve=new WeakMap,se=new WeakMap,lt=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",ri);var ie,re,ne,he,At,Mt,Ft,Ot,R,q,B,$,Tt,z,ct,ut,Y,Dt,Ie,at,dt,St,w,H,W,tt,et,Z,ss,m,qt,oe,is,x,pt,O,A,K,Re,Bt,y,le,b,hi,oi,li,ci,ui,ai,rs,Ae,qs,pe,di,Si,Bs;class ni extends ns{constructor(){super(...arguments);i(this,b);i(this,ie);i(this,re);i(this,ne);i(this,he);i(this,At);i(this,Mt);i(this,Ft);i(this,Ot);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Tt);i(this,z);i(this,ct);i(this,ut);i(this,Y);i(this,Dt);i(this,Ie);i(this,at);i(this,dt);i(this,St);i(this,w);i(this,H);i(this,W);i(this,tt);i(this,et);i(this,Z);i(this,ss);i(this,m);i(this,qt);i(this,oe);i(this,is);i(this,x);i(this,pt);i(this,O);i(this,A);i(this,K);i(this,Re);i(this,Bt);i(this,y);i(this,le);i(this,rs);i(this,Ae);r(this,ie,new l.CSSProperty(this,"--damping",20)),r(this,re,new l.CSSProperty(this,"--mass",0)),r(this,ne,new l.CSSProperty(this,"--stiffness",0)),r(this,he,new l.CSSProperty(this,"--target","")),r(this,At,new l.CSSProperty(this,"--disabled",!1)),r(this,Mt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,Ft,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,Ot,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Tt,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,ct,new l.CSSProperty(this,"--passed-var","")),r(this,ut,new l.CSSProperty(this,"--progress-var","")),r(this,Y,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Dt,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ie,new l.CSSProperty(this,"--animation-var-type","target")),r(this,at,new l.CSSProperty(this,"--distance-var","")),r(this,dt,new l.CSSProperty(this,"--start-var","")),r(this,St,new l.CSSProperty(this,"--finish-var","")),r(this,w,new de.Store(!1)),r(this,H,new de.Store(!1)),r(this,W,new de.Store(!1)),r(this,tt,new de.Store(!1)),r(this,et,new de.Store(!1)),r(this,Z,new de.Store(!1)),r(this,ss,[]),r(this,m,this),r(this,qt,0),r(this,oe,0),r(this,is,0),r(this,x,new Xs.Damped(0,{order:Te.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),r(this,Bt,!1),r(this,y,!0),r(this,le,!1),this.resize=()=>{r(this,oe,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,qt,this.scrollElement.vertical?it.getCumulativeOffsetTop(this,this.scrollElement):it.getCumulativeOffsetLeft(this,this.scrollElement));const e=it.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,qt,t(this,qt)-e),r(this,O,this.getStart()),r(this,A,this.getDistance()),r(this,O,t(this,O)+t(this,Ft).current),r(this,A,t(this,A)+t(this,Mt).current),r(this,K,t(this,O)+t(this,A)),this.scrollElement.currentScrollValue>t(this,K)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,dt).current,t(this,O)),this.setVar(t(this,St).current,t(this,K)),this.setVar(t(this,at).current,t(this,A)),t(this,x).max=t(this,A),r(this,Re,!0),t(this,Ae).call(this)},this.findAnotherScrollEntries=Ls.debounce(()=>{const e=ue.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,ss,e.slice(s+1)),this.tick()},0),r(this,rs,()=>{t(this,y)||this.resize()}),r(this,Ae,()=>{!t(this,y)&&t(this,Re)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Mt)}get startOffsetCSSProperty(){return t(this,Ft)}get captureOnceCSSProperty(){return t(this,Ot)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Tt)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,ct)}get progressVarCSSProperty(){return t(this,ut)}get progressArcVarCSSProperty(){return t(this,Y)}get progressArcMultCSSProperty(){return t(this,Dt)}get animationVarTypeCSSProperty(){return t(this,Ie)}get distanceVarCSSProperty(){return t(this,at)}get startVarCSSProperty(){return t(this,dt)}get finishVarCSSProperty(){return t(this,St)}get disabledCSSProperty(){return t(this,At)}get dampingCSSProperty(){return t(this,ie)}get massCSSProperty(){return t(this,re)}get stiffnessCSSProperty(){return t(this,ne)}get targetCSSProperty(){return t(this,he)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,W)}get isReleasedFromStart(){return t(this,tt)}get isCapturedFromFinish(){return t(this,et)}get isReleasedFromFinish(){return t(this,Z)}get directionPosition(){return t(this,qt)}get directionSize(){return t(this,oe)}get passed(){return t(this,x)}get progress(){return t(this,pt)}get progressArc(){return Math.abs(Math.cos(t(this,pt)*Math.PI))*t(this,Dt).current}get start(){return t(this,O)}get finish(){return t(this,K)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Bt)}get isDisabled(){return t(this,y)}tick(){let e=this.scrollElement.currentScrollValue;t(this,ss).forEach(u=>{e+=u.value});const s=e-t(this,O);t(this,le)||r(this,le,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,O)?t(this,W).current||o(this,b,li).call(this):t(this,W).current&&!t(this,tt).current&&o(this,b,ui).call(this),n<t(this,K)?t(this,Z).current&&!t(this,et).current&&o(this,b,ci).call(this):t(this,W).current&&!t(this,Z).current&&o(this,b,ai).call(this)),n>=t(this,O)&&n<t(this,K)?t(this,w).current||o(this,b,hi).call(this):t(this,w).current&&(t(this,x).set($s.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,oi).call(this)),t(this,Bt)&&t(this,Ot).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,y,!0))}disable(){this.style.cssText="",r(this,qt,0),r(this,oe,0),t(this,x).reset(),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,W).current=!1,t(this,tt).current=!1,t(this,et).current=!1,t(this,Z).current=!1,r(this,Bt,!1),r(this,y,!0),o(this,b,Bs).call(this)}enable(){r(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,W).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,et).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,tt).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,Z).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,ie).observe(),t(this,re).observe(),t(this,ne).observe(),t(this,he).observe(),t(this,At).observe(),t(this,Mt).observe(),t(this,Ft).observe(),t(this,Ot).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Tt).observe(),t(this,z).observe(),t(this,ct).observe(),t(this,ut).observe(),t(this,Y).observe(),t(this,Dt).observe(),t(this,Ie).observe(),t(this,at).observe(),t(this,dt).observe(),t(this,St).observe();let e=!1;this.findAnotherScrollEntries(),t(this,At).current||this.enable(),t(this,ie).subscribe(s=>{t(this,x).damping=s.current}),t(this,re).subscribe(s=>{t(this,x).mass=s.current}),t(this,ne).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,he).subscribe(s=>{s.previous&&o(this,b,Bs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,At).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,Ft).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,Mt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,Tt).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,Ot).subscribe(s=>{t(this,y)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,ct).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ut).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,pt)))}),t(this,Y).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Dt).subscribe(s=>{t(this,y)||o(this,b,qs).call(this)}),t(this,dt).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,O)))}),t(this,St).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,K)))}),t(this,at).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,le)){r(this,le,!1);return}o(this,b,qs).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),ft.windowResizer.subscribe(t(this,rs),Te.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Ae)),e=!0}disconnectedCallback(){ft.windowResizer.unsubscribe(t(this,rs)),this.scrollElement.offScroll(t(this,Ae)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,ie).close(),t(this,re).close(),t(this,ne).close(),t(this,he).close(),t(this,At).close(),t(this,Mt).close(),t(this,Ft).close(),t(this,Ot).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Tt).close(),t(this,z).close(),t(this,ct).close(),t(this,ut).close(),t(this,Y).close(),t(this,Dt).close(),t(this,at).close(),t(this,dt).close(),t(this,St).close(),t(this,w).close(),t(this,H).close(),t(this,W).close(),t(this,tt).close(),t(this,et).close(),t(this,Z).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,oe)+t(this,is)}getStart(){return t(this,qt)-t(this,is)}}ie=new WeakMap,re=new WeakMap,ne=new WeakMap,he=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ft=new WeakMap,Ot=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Tt=new WeakMap,z=new WeakMap,ct=new WeakMap,ut=new WeakMap,Y=new WeakMap,Dt=new WeakMap,Ie=new WeakMap,at=new WeakMap,dt=new WeakMap,St=new WeakMap,w=new WeakMap,H=new WeakMap,W=new WeakMap,tt=new WeakMap,et=new WeakMap,Z=new WeakMap,ss=new WeakMap,m=new WeakMap,qt=new WeakMap,oe=new WeakMap,is=new WeakMap,x=new WeakMap,pt=new WeakMap,O=new WeakMap,A=new WeakMap,K=new WeakMap,Re=new WeakMap,Bt=new WeakMap,y=new WeakMap,le=new WeakMap,b=new WeakSet,hi=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Bt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},oi=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Bt,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},li=function(){t(this,w).current=!0,t(this,W).current=!0,t(this,tt).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},ci=function(){t(this,w).current=!0,t(this,et).current=!0,t(this,Z).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ui=function(){t(this,H).current=!0,t(this,tt).current=!0,t(this,W).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ai=function(){t(this,H).current=!0,t(this,Z).current=!0,t(this,et).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},rs=new WeakMap,Ae=new WeakMap,qs=function(){const e=t(this,x)[t(this,Ie).current];this.setVar(t(this,ct).current,e),r(this,pt,e/t(this,A)||0),this.setVar(t(this,ut).current,t(this,pt)),t(this,Y).current&&this.setVar(t(this,Y).current,this.progressArc)},pe=function(e){if(t(this,y)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},di=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},Si=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Bs=function(){o(this,b,di).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Tt).current,t(this,z).current),o(this,b,Si).call(this,t(this,ct).current,t(this,ut).current,t(this,Y).current,t(this,at).current,t(this,dt).current,t(this,St).current)};_.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ni);class pi extends Hs{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}_.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",pi);var Ps;const Ws=class Ws extends ns{constructor(){super(...arguments);i(this,Ps,()=>{const e=this.scrollElement.counter.current+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(Ws.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,Ps))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,Ps))}};Ps=new WeakMap;let ks=Ws;_.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",ks);var ce;const _s=class _s extends ns{constructor(){super(...arguments);i(this,ce,()=>{const e=this.scrollElement.limit+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(_s.prototype,this,"connectedCallback").call(this),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,ce)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,ce)),t(this,ce).call(this)})}disconnectedCallback(){this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,ce)),this.scrollElement.removeEventListener("scrollSectionsChange",t(this,ce))}};ce=new WeakMap;let Vs=_s;_.isBrowser&&!customElements.get("e-scroll-total")&&customElements.define("e-scroll-total",Vs);exports.ScrollBulletButtonsElement=ri;exports.ScrollCounterElement=ks;exports.ScrollElement=zs;exports.ScrollScrollbarElement=ei;exports.ScrollSectionButtonElement=pi;exports.ScrollSegmentElement=ni;exports.ScrollSetButtonElement=si;exports.ScrollStepButtonElement=ii;exports.ScrollTotalElement=Vs;
1
+ "use strict";var pi=Object.defineProperty;var Ns=Object.getOwnPropertySymbols,fi=Object.getPrototypeOf,bi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,gi=Reflect.get;var Gs=d=>{throw TypeError(d)};var Us=(d,h,e)=>h in d?pi(d,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[h]=e,Zs=(d,h)=>{for(var e in h||(h={}))bi.call(h,e)&&Us(d,e,h[e]);if(Ns)for(var e of Ns(h))mi.call(h,e)&&Us(d,e,h[e]);return d};var Is=(d,h,e)=>h.has(d)||Gs("Cannot "+e);var t=(d,h,e)=>(Is(d,h,"read from private field"),e?e.call(d):h.get(d)),i=(d,h,e)=>h.has(d)?Gs("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(d):h.set(d,e),r=(d,h,e,s)=>(Is(d,h,"write to private field"),s?s.call(d,e):h.set(d,e),e),o=(d,h,e)=>(Is(d,h,"access private method"),e);var Rs=(d,h,e)=>gi(fi(d),e,h);var As=(d,h,e)=>new Promise((s,n)=>{var u=v=>{try{C(e.next(v))}catch(ae){n(ae)}},g=v=>{try{C(e.throw(v))}catch(ae){n(ae)}},C=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);C((e=e.apply(d,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const de=require("../Store-Cd1GlEmZ.cjs"),_=require("../index-DekP7OZe.cjs"),Ci=require("../easings-GegIwET5.cjs"),yi=require("../element-yhcBhsho.cjs"),st=require("../events-KVanG9sR.cjs"),Ls=require("../function-MthRj-GJ.cjs"),it=require("../layout-Ctc2p3uz.cjs"),$s=require("../math-GDWEqu7y.cjs"),js=require("../number-ChAm68cm.cjs"),Js=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Te=require("../order/index.cjs"),Qs=require("../Damped-z9Uaw2MJ.cjs"),vi=require("../Tweened-mvHucL4Y.cjs"),Es=require("../DragControls-tVaq-vIe.cjs"),ft=require("../window-resizer/index.cjs"),ue=require("../scroll-entries/index.cjs"),Ks=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),Pi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const cs=require("../element-resizer/index.cjs"),Ei=require("../gestures-C7gbKx11.cjs"),wi=require("../dom-JBOkFLTh.cjs");var p,De,E,us,as,fe,bt,$t,be,Ht,Fe;class xi{constructor(h,e,s){i(this,Ht);i(this,p);i(this,De);i(this,E);i(this,us,0);i(this,as,0);i(this,fe,0);i(this,bt,0);i(this,$t,null);i(this,be,0);r(this,p,h),r(this,De,e),r(this,E,s),ue.scrollEntries.register(t(this,p)),this.setIndex(t(this,De))}get element(){return t(this,p)}get index(){return t(this,De)}get size(){return t(this,fe)}get width(){return t(this,us)}get height(){return t(this,as)}get position(){return t(this,bt)}get transformPosition(){return t(this,be)}destroy(){ue.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setOffsetIndex(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,us,t(this,p).offsetWidth),r(this,as,t(this,p).offsetHeight),r(this,fe,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,bt,t(this,E).vertical?it.getCumulativeOffsetTop(t(this,p)):it.getCumulativeOffsetLeft(t(this,p))),r(this,bt,t(this,bt)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,bt)+t(this,fe)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),ue.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,bt)-t(this,E).viewportSize-s,g=t(this,bt)+t(this,fe)+s,C=js.preciseNumber($s.clamp(n,u,g),3);r(this,be,C*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,be)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,be)}px, 0px, 0px)`}setMark(h){t(this,$t)!==h&&(t(this,$t)&&t(this,p).classList.remove(t(this,$t)),h&&t(this,p).classList.add(h),r(this,$t,h),st.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,$t)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,Ht,Fe).call(this,"index",h)}setCurrentIndex(h){o(this,Ht,Fe).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,Ht,Fe).call(this,"current-index-arc",h)}setOffsetIndex(h){o(this,Ht,Fe).call(this,"offset-index",h)}setCurrentIndexArcAbs(h){o(this,Ht,Fe).call(this,"current-index-arc-abs",h)}}p=new WeakMap,De=new WeakMap,E=new WeakMap,us=new WeakMap,as=new WeakMap,fe=new WeakMap,bt=new WeakMap,$t=new WeakMap,be=new WeakMap,Ht=new WeakSet,Fe=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const Li=Js.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:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".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 S,me,T,Wt,mt,gt,Ct,j,_t,Nt,yt,Ut,ge,J,V,Ce,ye,ve,Pe,qe,Ee,Q,we,Gt,X,vt,Pt,xe,Zt,Le,ze,Kt,jt,Jt,f,Be,N,a,ds,Ss,L,P,U,rt,Qt,nt,M,k,$e,Et,wt,xt,G,He,Lt,Xt,zt,ht,I,We,Vt,Ve,_e,c,Ms,os,Oe,ws,xs,Fs,Os,F,ps,Xs,Ne,fs,Ts,Ds,Se,Ys,bs,ls,Ue;class zs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,me,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,Wt,new l.CSSProperty(this,"--reverse",!1));i(this,mt,new l.CSSProperty(this,"--direction",0));i(this,gt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,Ct,new l.CSSProperty(this,"--split",!1));i(this,j,new l.CSSProperty(this,"--sectional",!1));i(this,_t,new l.CSSProperty(this,"--tween-easing",!1));i(this,Nt,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,Ut,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,ge,new l.CSSProperty(this,"--drag-inertion",1));i(this,J,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,Ce,new l.CSSProperty(this,"--damping",20));i(this,ye,new l.CSSProperty(this,"--mass",0));i(this,ve,new l.CSSProperty(this,"--stiffness",0));i(this,Pe,new l.CSSProperty(this,"--mouse-drag",!1));i(this,qe,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,Ee,new l.CSSProperty(this,"--start-section",0));i(this,Q,new l.CSSProperty(this,"--autoplay",0));i(this,we,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,Gt,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,X,new l.CSSProperty(this,"--classes",!1));i(this,vt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Pt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,xe,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Zt,new l.CSSProperty(this,"--focus-delay",0));i(this,Le,new l.CSSProperty(this,"--focus-duration",3e3));i(this,ze,new l.CSSProperty(this,"--shift-limit",0));i(this,Kt,new l.CSSProperty(this,"--disabled",!1));i(this,jt,new l.CSSProperty(this,"--hibernate",!1));i(this,Jt,null);i(this,f,null);i(this,Be,null);i(this,N,[]);i(this,a,[]);i(this,ds,0);i(this,Ss,0);i(this,L,0);i(this,P,0);i(this,U,0);i(this,rt,null);i(this,Qt,null);i(this,nt,null);i(this,M,null);i(this,k,new de.Store(0));i(this,$e,0);i(this,Et,0);i(this,wt,!1);i(this,xt,!0);i(this,G,!0);i(this,He);i(this,Lt);i(this,Xt,new vi.Tweened);i(this,zt,!1);i(this,ht,null);i(this,I,!1);i(this,We,null);i(this,Vt,[]);i(this,Ve,!1);i(this,_e);i(this,F,e=>{if(e&&t(this,Ve)){r(this,Ve,!1);return}this.resize()});i(this,ps,()=>{if(!t(this,wt)||t(this,G)||t(this,xt))return;const e=this.currentScrollValue;if(r(this,$e,Math.max(0,e-t(this,P))),t(this,a).length){for(let s=0;s<t(this,N).length;s++)t(this,N)[s].transform();(t(this,zt)||!t(this,j).current)&&(t(this,k).current=o(this,c,ls).call(this))}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,Ys).call(this),ue.scrollEntries.update(this,t(this,T).current,e)});i(this,Ne,(e,s)=>{t(this,me).current&&(o(this,c,Ts).call(this,Math.sign(s)||1),t(this,fs).call(this,e,s))});i(this,fs,(e,s)=>{if(!t(this,Lt)){if(t(this,mt).current){if(t(this,mt).current<0&&s>0)return;if(t(this,mt).current>0&&s<0)return}if(!t(this,Q).current&&t(this,Zt).current&&(clearInterval(t(this,He)),r(this,He,setTimeout(()=>{const n=t(this,a)[o(this,c,ls).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,Le).current,easing:Ci.easeInOutExpo}})},t(this,Zt).current))),!(e.includes("drag")&&!Pi.device.isTouch&&!t(this,Pe).current)){if(t(this,j).current&&e!=="drag"){const n=Math.sign(s);t(this,a).length?t(this,zt)?this.scrollToSection(o(this,c,ls).call(this,!0)):this.shiftSections(n,{tween:t(this,_t).current||t(this,Nt).current?{easing:t(this,_t).current||"easeInOutCubic",duration:t(this,Nt).current||500}:void 0}):t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,zt,e==="drag")}}});i(this,bs,Ls.debounce(()=>{const e=t(this,Vt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,_e)),r(this,Ve,!0),this.style.setProperty("--max-section-size",""),r(this,_e,setTimeout(()=>{r(this,Ve,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ue,()=>{r(this,I,!0),this.hibernatedCSSProperty.current||o(this,c,Os).call(this),cs.elementResizer.subscribe(this,t(this,F)),ft.windowResizer.unsubscribe(t(this,Ue))});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Li];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Jt,document.createElement("div")),t(this,Jt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Be,document.createElement("slot")),t(this,f).appendChild(t(this,Be)),t(this,Jt).appendChild(t(this,f)),e.appendChild(t(this,Jt)),r(this,We,new MutationObserver(Ls.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,me)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,Wt)}get directionCSSProperty(){return t(this,mt)}get pagesCSSProperty(){return t(this,gt)}get splitCSSProperty(){return t(this,Ct)}get sectionalCSSProperty(){return t(this,j)}get easingCSSProperty(){return t(this,_t)}get durationCSSProperty(){return t(this,Nt)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Ut)}get dragInertionCSSProperty(){return t(this,ge)}get sectionsInViewCSSProperty(){return t(this,J)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,Ce)}get massCSSProperty(){return t(this,ye)}get stiffnessCSSProperty(){return t(this,ve)}get mouseDragCSSProperty(){return t(this,Pe)}get sectionDistanceScaleCSSProperty(){return t(this,qe)}get startSectionCSSProperty(){return t(this,Ee)}get autoplayCSSProperty(){return t(this,Q)}get autoplayPauseDurationCSSProperty(){return t(this,we)}get autoplayUserDirectionCSSProperty(){return t(this,Gt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,vt)}get currentIndexEndOffsetCSSProperty(){return t(this,Pt)}get shiftSectionPositionCSSProperty(){return t(this,xe)}get focusDelayCSSProperty(){return t(this,Zt)}get focusDurationCSSProperty(){return t(this,Le)}get shiftLimitCSSProperty(){return t(this,ze)}get disabledCSSProperty(){return t(this,Kt)}get hibernatedCSSProperty(){return t(this,jt)}get currentScrollValue(){return o(this,c,Ds).call(this,"current")}get targetScrollValue(){return o(this,c,Ds).call(this,"target")}get contentWrapperElement(){return t(this,Jt)}get contentElement(){return t(this,f)}get sections(){return t(this,N)}get visibleSections(){return t(this,a)}get position(){return t(this,ds)}get contentPosition(){return t(this,Ss)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,U)}get counter(){return t(this,k)}get limit(){return Math.ceil(t(this,a).length-t(this,J).current+t(this,ze).current)}get distance(){return t(this,Et)}get loopDistance(){return t(this,V).current?t(this,Et)+t(this,U):t(this,Et)}get hasOverflow(){return t(this,wt)}get overscroll(){return t(this,$e)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,G)&&(t(this,V).current||t(this,Ct).current||t(this,V).current||t(this,yt).current||t(this,j).current)&&o(this,c,os).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,a).length||t(this,G)||t(this,Lt))return;const n=t(this,k).current,u=o(this,c,Xs).call(this,e);t(this,zt)||(t(this,k).current=u);const g=t(this,a)[n],C=t(this,a)[u];if(g&&C){let v=0;const ae=o(this,c,ls).call(this),Me=t(this,a)[ae];let hs=Me?this.targetScrollValue-Me.position:0;t(this,V).current?u===0&&n===t(this,a).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,U),t(this,zt)||(hs=0)):u===t(this,a).length-1&&n===0?v=C.position-(t(this,P)+t(this,L)+t(this,U)):v=C.position-g.position:v=C.position-g.position,this.shiftPosition(v-hs,s)}}shiftSections(e,s){t(this,a).length&&this.scrollToSection(t(this,k).current+e,s)}setPosition(e,s){t(this,G)||(o(this,c,Ts).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,Lt)),t(this,Xt).set(t(this,S).current,{equalize:!0}),t(this,Xt).set(e,Zs({},s.tween)),r(this,Lt,setTimeout(()=>{r(this,Lt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,jt).current)return;r(this,a,t(this,N).filter(n=>yi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,a).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,k).current;if(r(this,ds,this.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this)),r(this,Ss,this.vertical?it.getCumulativeOffsetTop(t(this,f)):it.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,a).length){const n=t(this,J).current,u=(t(this,L)-t(this,U)*(n-1))/n;t(this,a).forEach(g=>{g.setSize(u)})}else t(this,a).forEach(n=>{n.setSize()});if(t(this,a).forEach(n=>{n.resize()}),t(this,gt).current){r(this,P,t(this,L)*t(this,gt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,V).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,V).current&&t(this,a).length){const n=t(this,a)[t(this,a).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Et,n.position+n.size+g)}else r(this,Et,t(this,P));if(t(this,j).current&&t(this,a).length){const n=t(this,a)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,wt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,wt)),t(this,wt)?t(this,Kt).current||o(this,c,xs).call(this):o(this,c,ws).call(this),t(this,bs).call(this),st.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){ue.scrollEntries.register(this),r(this,S,new Qs.Damped(0,{damping:.01,min:0,order:Te.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new Es.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,Ne)),r(this,Qt,new Es.KeyboardControls({element:this})),t(this,Qt).changeEvent.subscribe(t(this,Ne)),r(this,nt,new Es.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,Ne)),r(this,M,new Es.AutoplayControls({culling:this})),t(this,M).changeEvent.subscribe(t(this,fs)),t(this,T).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Wt).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Ut).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,ge).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,gt).subscribe(()=>{t(this,I)&&t(this,F).call(this)}),t(this,Ct).subscribe(({current:e})=>{t(this,I)&&(e?o(this,c,os).call(this):o(this,c,Oe).call(this))}),t(this,j).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,M).interval=e.current,t(this,I)&&(e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,yt).subscribe(e=>{t(this,I)&&(t(this,F).call(this),e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,J).subscribe(e=>{t(this,I)&&(t(this,F).call(this),o(this,c,Se).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,I)&&(t(this,a).length||(t(this,Ct).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,$e,0),t(this,S).max=t(this,P),t(this,S).min=0),this.classList.toggle("loop",!!e.current)}),t(this,Ce).subscribe(e=>{t(this,S).damping=e.current}),t(this,ye).subscribe(e=>{t(this,S).mass=e.current}),t(this,ve).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,Q).subscribe(e=>{t(this,M).speed=e.current,!t(this,xt)&&e.current&&!e.previous?t(this,M).connect():!e.current&&e.previous&&t(this,M).disconnect()}),t(this,Gt).subscribe(e=>{e.current||(t(this,M).direction=1)}),t(this,X).subscribe(e=>{t(this,I)&&o(this,c,Se).call(this)}),t(this,vt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,Se).call(this)}),t(this,Pt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,Se).call(this)}),t(this,xe).subscribe(e=>{t(this,I)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,k).subscribe(e=>{t(this,G)||(t(this,a).length&&o(this,c,Se).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Xt).subscribe(e=>{t(this,Xt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Kt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,ws).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,xs).call(this))}),t(this,jt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,Fs).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Os).call(this))}),t(this,me).observe(),t(this,T).observe(),t(this,Wt).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,Ct).observe(),t(this,j).observe(),t(this,_t).observe(),t(this,Nt).observe(),t(this,yt).observe(),t(this,Ut).observe(),t(this,ge).observe(),t(this,J).observe(),t(this,V).observe(),t(this,Ce).observe(),t(this,ye).observe(),t(this,ve).observe(),t(this,Pe).observe(),t(this,qe).observe(),t(this,Ee).observe(),t(this,Q).observe(),t(this,Q).observe(),t(this,we).observe(),t(this,Gt).observe(),t(this,X).observe(),t(this,vt).observe(),t(this,Pt).observe(),t(this,xe).observe(),t(this,Zt).observe(),t(this,Le).observe(),t(this,ze).observe(),t(this,Kt).observe(),t(this,jt).observe(),ft.windowResizer.subscribe(t(this,Ue),Te.RESIZE_ORDER.LAST),t(this,We).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,me).unobserve(),t(this,T).unobserve(),t(this,Wt).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,Ct).unobserve(),t(this,j).unobserve(),t(this,_t).unobserve(),t(this,Nt).unobserve(),t(this,yt).unobserve(),t(this,Ut).unobserve(),t(this,ge).unobserve(),t(this,J).unobserve(),t(this,V).unobserve(),t(this,Ce).unobserve(),t(this,ye).unobserve(),t(this,ve).unobserve(),t(this,Pe).unobserve(),t(this,qe).unobserve(),t(this,Ee).unobserve(),t(this,Q).unobserve(),t(this,we).unobserve(),t(this,Gt).unobserve(),t(this,X).unobserve(),t(this,vt).unobserve(),t(this,Pt).unobserve(),t(this,xe).unobserve(),t(this,Zt).unobserve(),t(this,Le).unobserve(),t(this,ze).unobserve(),t(this,Kt).unobserve(),t(this,jt).unobserve(),ft.windowResizer.unsubscribe(t(this,Ue)),ft.windowResizer.unsubscribe(t(this,F)),cs.elementResizer.unsubscribe(t(this,F)),o(this,c,Fs).call(this),t(this,We).disconnect()}}S=new WeakMap,me=new WeakMap,T=new WeakMap,Wt=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ct=new WeakMap,j=new WeakMap,_t=new WeakMap,Nt=new WeakMap,yt=new WeakMap,Ut=new WeakMap,ge=new WeakMap,J=new WeakMap,V=new WeakMap,Ce=new WeakMap,ye=new WeakMap,ve=new WeakMap,Pe=new WeakMap,qe=new WeakMap,Ee=new WeakMap,Q=new WeakMap,we=new WeakMap,Gt=new WeakMap,X=new WeakMap,vt=new WeakMap,Pt=new WeakMap,xe=new WeakMap,Zt=new WeakMap,Le=new WeakMap,ze=new WeakMap,Kt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,f=new WeakMap,Be=new WeakMap,N=new WeakMap,a=new WeakMap,ds=new WeakMap,Ss=new WeakMap,L=new WeakMap,P=new WeakMap,U=new WeakMap,rt=new WeakMap,Qt=new WeakMap,nt=new WeakMap,M=new WeakMap,k=new WeakMap,$e=new WeakMap,Et=new WeakMap,wt=new WeakMap,xt=new WeakMap,G=new WeakMap,He=new WeakMap,Lt=new WeakMap,Xt=new WeakMap,zt=new WeakMap,ht=new WeakMap,I=new WeakMap,We=new WeakMap,Vt=new WeakMap,Ve=new WeakMap,_e=new WeakMap,c=new WeakSet,Ms=function(){const e=t(this,T).current,s=t(this,Wt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,Ut).current?"max":e,t(this,Qt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,I)&&t(this,F).call(this)},os=function(){o(this,c,Oe).call(this),t(this,Be).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,N).push(new xi(e,s,this))}),r(this,a,[...t(this,N)]),t(this,f).style.transform="",st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,F).call(this),o(this,c,Se).call(this)},Oe=function(){t(this,N).forEach(e=>{e.destroy()}),r(this,N,[]),r(this,a,[]),t(this,k).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ws=function(){t(this,xt)||(r(this,xt,!0),t(this,S).unsubscribe(t(this,ps)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,He)),clearInterval(t(this,Lt)),t(this,Xt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Qt).disconnect(),t(this,nt).disconnect(),t(this,M).disconnect(),t(this,wt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,F).call(this)))},xs=function(){t(this,xt)&&(r(this,xt,!1),t(this,S).subscribe(t(this,ps),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Qt).connect(),t(this,nt).connect(),t(this,Q).current&&t(this,M).connect())},Fs=function(){t(this,G)||(r(this,G,!0),clearTimeout(t(this,_e)),ft.windowResizer.unsubscribe(t(this,F)),o(this,c,ws).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,N).length?o(this,c,Oe).call(this):(t(this,k).reset(),t(this,S).reset()),ue.scrollEntries.unregister(this))},Os=function(){t(this,G)&&(r(this,G,!1),ue.scrollEntries.register(this),this.tryResplit(),o(this,c,xs).call(this),this.scrollToSection(t(this,Ee).current,{behaviour:"instant"}),ft.windowResizer.subscribe(t(this,F),Te.RESIZE_ORDER.SCROLL))},F=new WeakMap,ps=new WeakMap,Xs=function(e){let s=t(this,k).current;return t(this,V).current?s=js.loopNumber(e,t(this,a).length):s=$s.clamp(e,0,this.limit),s},Ne=new WeakMap,fs=new WeakMap,Ts=function(e=1){t(this,Gt).current&&(t(this,M).direction=e),t(this,Q).current&&t(this,M).pauseAndContinue(t(this,we).current,this.sectionalCSSProperty.current)},Ds=function(e="current"){if(t(this,V).current&&t(this,a).length){const s=Math.floor(t(this,S)[e])%Math.floor(t(this,P)+t(this,L)+t(this,U));return s<0?t(this,P)+s+t(this,L)+t(this,U):s}else return t(this,S)[e]},Se=function(){if(t(this,a).length){const e=t(this,k).current+t(this,vt).current;if(e===t(this,vt).current?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),st.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,X).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,J).current+t(this,Pt).current;r(this,Vt,[]),t(this,a).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Pt).current,C=e+s,v=this.sections.length-C;u>=e&&u<C||u<=g?(n.setMark("current"),t(this,Vt).push(n)):u>=C&&u<C+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,bs).call(this)}}},Ys=function(){if(t(this,X).current){const e=Math.floor(t(this,Vt).length/2);t(this,Vt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,Vt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)}),t(this,a).forEach((s,n)=>{s.setOffsetIndex(n-(t(this,k).current+t(this,J).current))})}},bs=new WeakMap,ls=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let C=0;C<t(this,a).length;C++){const v=t(this,a)[C];let ae=t(this,zt)?v.size*g*-1*.4:0,Me=v.position;this.overscroll&&Me===0&&e&&(Me=t(this,Et));let hs=Math.abs(Me+ae-s);hs<=n&&(n=hs,u=C)}return u},Ue=new WeakMap;_.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",zs);var ms;class ns extends HTMLElement{constructor(){super(...arguments);i(this,ms,null)}get scrollElement(){return t(this,ms)}connectedCallback(){const e=wi.findParentElement(this,zs);e instanceof zs?r(this,ms,e):console.error(this,"e-scroll not found")}}ms=new WeakMap;var Yt,D,kt,It,Ge,Ze,te,Ke,gs,Cs;class ti extends ns{constructor(){super();i(this,Yt,null);i(this,D,null);i(this,kt,!1);i(this,It,0);i(this,Ge,0);i(this,Ze,0);i(this,te,()=>{r(this,kt,this.offsetWidth>this.offsetHeight);const e=t(this,kt)?this.offsetWidth:this.offsetHeight;r(this,It,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,It,Math.max(t(this,It),30)),t(this,kt)?(t(this,D).style.width=t(this,It)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,It)+"px"),r(this,Ge,e-t(this,It)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ke).call(this)});i(this,Ke,()=>{r(this,Ze,this.scrollElement.currentProgress*t(this,Ge)),t(this,kt)?t(this,D).style.transform=`translate3d(${t(this,Ze)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ze)}px, 0px)`});i(this,gs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Cs,e=>{document.documentElement.classList.add("grabbing"),Ei.setupDrag(u=>{const g=t(this,kt)?u.x:u.y,C=this.scrollElement.distance/t(this,Ge),v=(g-n)*C;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,kt)?e.x:e.y});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Js.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,Yt,document.createElement("slot")),t(this,Yt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Yt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Yt).assignedElements()[0]||t(this,Yt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,Cs)),ft.windowResizer.subscribe(t(this,te),Te.RESIZE_ORDER.SCROLL),cs.elementResizer.subscribe(this,t(this,te)),cs.elementResizer.subscribe(this.scrollElement,t(this,te)),this.scrollElement.onScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.subscribe(t(this,gs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,Cs)),ft.windowResizer.unsubscribe(t(this,te)),cs.elementResizer.unsubscribe(t(this,te)),this.scrollElement.offScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,gs))}}Yt=new WeakMap,D=new WeakMap,kt=new WeakMap,It=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,te=new WeakMap,Ke=new WeakMap,gs=new WeakMap,Cs=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-scrollbar")&&customElements.define("e-scroll-scrollbar",ti);var je,Je,Qe;class Hs extends ns{constructor(){super();i(this,je,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Je,new l.CSSProperty(this,"--tween-easing",!1));i(this,Qe,new l.CSSProperty(this,"--tween-duration",0));_.isBrowser&&this.addEventListener("click",()=>{const e=t(this,je).current,s=t(this,Je).current,n=t(this,Qe).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,je).observe(),t(this,Je).observe(),t(this,Qe).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,je).close(),t(this,Je).close(),t(this,Qe).close()}}je=new WeakMap,Je=new WeakMap,Qe=new WeakMap;var Xe;class ei extends Hs{constructor(){super(...arguments);i(this,Xe,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Xe).current,e)}connectedCallback(){super.connectedCallback(),t(this,Xe).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Xe).close()}}Xe=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",ei);var Rt,Ye;class si extends Hs{constructor(){super(...arguments);i(this,Rt,new l.CSSProperty(this,"--step",1));i(this,Ye,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,Rt).current>0&&this.scrollElement.scrollLine==="end"||t(this,Rt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,Rt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,Rt).subscribe(()=>{t(this,Ye).call(this)}),t(this,Rt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Ye)),t(this,Ye).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,Rt).close(),this.removeAttribute("disabled")}}Rt=new WeakMap,Ye=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",si);var ot,ee,ts,ys,vs,es;class zi{constructor(h,e,s){i(this,ot,null);i(this,ee,null);i(this,ts,null);i(this,ys,null);i(this,vs,()=>{t(this,ee).scrollToSection(t(this,ts),{behaviour:t(this,ys)})});i(this,es,()=>{t(this,ot).classList.toggle("current",t(this,ee).counter.current===t(this,ts))});_.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,ee,h),r(this,ys,s),r(this,ts,e),t(this,ot).addEventListener("click",t(this,vs)),t(this,ee).counter.subscribe(t(this,es)),t(this,es).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,vs)),t(this,ee).counter.unsubscribe(t(this,es)),t(this,ot).remove()}}ot=new WeakMap,ee=new WeakMap,ts=new WeakMap,ys=new WeakMap,vs=new WeakMap,es=new WeakMap;var ke,se,lt;class ii extends ns{constructor(){super(...arguments);i(this,ke,null);i(this,se,[]);i(this,lt,Ls.debounce(()=>{t(this,se).forEach(s=>s.destroy()),r(this,se,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new zi(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ke).appendChild(n.element),t(this,se).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",r(this,ke,document.createElement("div")),this.appendChild(t(this,ke)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,lt)),this.scrollElement.loopCSSProperty.subscribe(t(this,lt)),t(this,lt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,lt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,lt)),t(this,se).forEach(e=>e.destroy()),r(this,se,[]),t(this,ke).remove()}}ke=new WeakMap,se=new WeakMap,lt=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",ii);var ie,re,ne,he,At,Mt,Ft,Ot,R,q,B,$,Tt,z,ct,ut,Y,Dt,Ie,at,dt,St,w,H,W,tt,et,Z,ss,m,qt,oe,is,x,pt,O,A,K,Re,Bt,y,le,b,ni,hi,oi,li,ci,ui,rs,Ae,qs,pe,ai,di,Bs;class ri extends ns{constructor(){super(...arguments);i(this,b);i(this,ie);i(this,re);i(this,ne);i(this,he);i(this,At);i(this,Mt);i(this,Ft);i(this,Ot);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Tt);i(this,z);i(this,ct);i(this,ut);i(this,Y);i(this,Dt);i(this,Ie);i(this,at);i(this,dt);i(this,St);i(this,w);i(this,H);i(this,W);i(this,tt);i(this,et);i(this,Z);i(this,ss);i(this,m);i(this,qt);i(this,oe);i(this,is);i(this,x);i(this,pt);i(this,O);i(this,A);i(this,K);i(this,Re);i(this,Bt);i(this,y);i(this,le);i(this,rs);i(this,Ae);r(this,ie,new l.CSSProperty(this,"--damping",20)),r(this,re,new l.CSSProperty(this,"--mass",0)),r(this,ne,new l.CSSProperty(this,"--stiffness",0)),r(this,he,new l.CSSProperty(this,"--target","")),r(this,At,new l.CSSProperty(this,"--disabled",!1)),r(this,Mt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,Ft,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,Ot,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Tt,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,ct,new l.CSSProperty(this,"--passed-var","")),r(this,ut,new l.CSSProperty(this,"--progress-var","")),r(this,Y,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Dt,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ie,new l.CSSProperty(this,"--animation-var-type","target")),r(this,at,new l.CSSProperty(this,"--distance-var","")),r(this,dt,new l.CSSProperty(this,"--start-var","")),r(this,St,new l.CSSProperty(this,"--finish-var","")),r(this,w,new de.Store(!1)),r(this,H,new de.Store(!1)),r(this,W,new de.Store(!1)),r(this,tt,new de.Store(!1)),r(this,et,new de.Store(!1)),r(this,Z,new de.Store(!1)),r(this,ss,[]),r(this,m,this),r(this,qt,0),r(this,oe,0),r(this,is,0),r(this,x,new Qs.Damped(0,{order:Te.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),r(this,Bt,!1),r(this,y,!0),r(this,le,!1),this.resize=()=>{r(this,oe,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,qt,this.scrollElement.vertical?it.getCumulativeOffsetTop(this,this.scrollElement):it.getCumulativeOffsetLeft(this,this.scrollElement));const e=it.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,qt,t(this,qt)-e),r(this,O,this.getStart()),r(this,A,this.getDistance()),r(this,O,t(this,O)+t(this,Ft).current),r(this,A,t(this,A)+t(this,Mt).current),r(this,K,t(this,O)+t(this,A)),this.scrollElement.currentScrollValue>t(this,K)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,dt).current,t(this,O)),this.setVar(t(this,St).current,t(this,K)),this.setVar(t(this,at).current,t(this,A)),t(this,x).max=t(this,A),r(this,Re,!0),t(this,Ae).call(this)},this.findAnotherScrollEntries=Ls.debounce(()=>{const e=ue.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,ss,e.slice(s+1)),this.tick()},0),r(this,rs,()=>{t(this,y)||this.resize()}),r(this,Ae,()=>{!t(this,y)&&t(this,Re)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Mt)}get startOffsetCSSProperty(){return t(this,Ft)}get captureOnceCSSProperty(){return t(this,Ot)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Tt)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,ct)}get progressVarCSSProperty(){return t(this,ut)}get progressArcVarCSSProperty(){return t(this,Y)}get progressArcMultCSSProperty(){return t(this,Dt)}get animationVarTypeCSSProperty(){return t(this,Ie)}get distanceVarCSSProperty(){return t(this,at)}get startVarCSSProperty(){return t(this,dt)}get finishVarCSSProperty(){return t(this,St)}get disabledCSSProperty(){return t(this,At)}get dampingCSSProperty(){return t(this,ie)}get massCSSProperty(){return t(this,re)}get stiffnessCSSProperty(){return t(this,ne)}get targetCSSProperty(){return t(this,he)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,W)}get isReleasedFromStart(){return t(this,tt)}get isCapturedFromFinish(){return t(this,et)}get isReleasedFromFinish(){return t(this,Z)}get directionPosition(){return t(this,qt)}get directionSize(){return t(this,oe)}get passed(){return t(this,x)}get progress(){return t(this,pt)}get progressArc(){return Math.abs(Math.cos(t(this,pt)*Math.PI))*t(this,Dt).current}get start(){return t(this,O)}get finish(){return t(this,K)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Bt)}get isDisabled(){return t(this,y)}tick(){let e=this.scrollElement.currentScrollValue;t(this,ss).forEach(u=>{e+=u.value});const s=e-t(this,O);t(this,le)||r(this,le,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,O)?t(this,W).current||o(this,b,oi).call(this):t(this,W).current&&!t(this,tt).current&&o(this,b,ci).call(this),n<t(this,K)?t(this,Z).current&&!t(this,et).current&&o(this,b,li).call(this):t(this,W).current&&!t(this,Z).current&&o(this,b,ui).call(this)),n>=t(this,O)&&n<t(this,K)?t(this,w).current||o(this,b,ni).call(this):t(this,w).current&&(t(this,x).set($s.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,hi).call(this)),t(this,Bt)&&t(this,Ot).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,y,!0))}disable(){this.style.cssText="",r(this,qt,0),r(this,oe,0),t(this,x).reset(),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,W).current=!1,t(this,tt).current=!1,t(this,et).current=!1,t(this,Z).current=!1,r(this,Bt,!1),r(this,y,!0),o(this,b,Bs).call(this)}enable(){r(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,W).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,et).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,tt).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,Z).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,ie).observe(),t(this,re).observe(),t(this,ne).observe(),t(this,he).observe(),t(this,At).observe(),t(this,Mt).observe(),t(this,Ft).observe(),t(this,Ot).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Tt).observe(),t(this,z).observe(),t(this,ct).observe(),t(this,ut).observe(),t(this,Y).observe(),t(this,Dt).observe(),t(this,Ie).observe(),t(this,at).observe(),t(this,dt).observe(),t(this,St).observe();let e=!1;this.findAnotherScrollEntries(),t(this,At).current||this.enable(),t(this,ie).subscribe(s=>{t(this,x).damping=s.current}),t(this,re).subscribe(s=>{t(this,x).mass=s.current}),t(this,ne).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,he).subscribe(s=>{s.previous&&o(this,b,Bs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,At).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,Ft).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,Mt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,Tt).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,pe).call(this,s)}),t(this,Ot).subscribe(s=>{t(this,y)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,ct).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ut).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,pt)))}),t(this,Y).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Dt).subscribe(s=>{t(this,y)||o(this,b,qs).call(this)}),t(this,dt).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,O)))}),t(this,St).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,K)))}),t(this,at).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,le)){r(this,le,!1);return}o(this,b,qs).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),ft.windowResizer.subscribe(t(this,rs),Te.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Ae)),e=!0}disconnectedCallback(){ft.windowResizer.unsubscribe(t(this,rs)),this.scrollElement.offScroll(t(this,Ae)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,ie).close(),t(this,re).close(),t(this,ne).close(),t(this,he).close(),t(this,At).close(),t(this,Mt).close(),t(this,Ft).close(),t(this,Ot).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Tt).close(),t(this,z).close(),t(this,ct).close(),t(this,ut).close(),t(this,Y).close(),t(this,Dt).close(),t(this,at).close(),t(this,dt).close(),t(this,St).close(),t(this,w).close(),t(this,H).close(),t(this,W).close(),t(this,tt).close(),t(this,et).close(),t(this,Z).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,oe)+t(this,is)}getStart(){return t(this,qt)-t(this,is)}}ie=new WeakMap,re=new WeakMap,ne=new WeakMap,he=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ft=new WeakMap,Ot=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Tt=new WeakMap,z=new WeakMap,ct=new WeakMap,ut=new WeakMap,Y=new WeakMap,Dt=new WeakMap,Ie=new WeakMap,at=new WeakMap,dt=new WeakMap,St=new WeakMap,w=new WeakMap,H=new WeakMap,W=new WeakMap,tt=new WeakMap,et=new WeakMap,Z=new WeakMap,ss=new WeakMap,m=new WeakMap,qt=new WeakMap,oe=new WeakMap,is=new WeakMap,x=new WeakMap,pt=new WeakMap,O=new WeakMap,A=new WeakMap,K=new WeakMap,Re=new WeakMap,Bt=new WeakMap,y=new WeakMap,le=new WeakMap,b=new WeakSet,ni=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Bt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},hi=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Bt,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},oi=function(){t(this,w).current=!0,t(this,W).current=!0,t(this,tt).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},li=function(){t(this,w).current=!0,t(this,et).current=!0,t(this,Z).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ci=function(){t(this,H).current=!0,t(this,tt).current=!0,t(this,W).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ui=function(){t(this,H).current=!0,t(this,Z).current=!0,t(this,et).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},rs=new WeakMap,Ae=new WeakMap,qs=function(){const e=t(this,x)[t(this,Ie).current];this.setVar(t(this,ct).current,e),r(this,pt,e/t(this,A)||0),this.setVar(t(this,ut).current,t(this,pt)),t(this,Y).current&&this.setVar(t(this,Y).current,this.progressArc)},pe=function(e){if(t(this,y)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},ai=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},di=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Bs=function(){o(this,b,ai).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Tt).current,t(this,z).current),o(this,b,di).call(this,t(this,ct).current,t(this,ut).current,t(this,Y).current,t(this,at).current,t(this,dt).current,t(this,St).current)};_.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ri);class Si extends Hs{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}_.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",Si);var Ps;const Ws=class Ws extends ns{constructor(){super(...arguments);i(this,Ps,()=>{const e=this.scrollElement.counter.current+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(Ws.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,Ps))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,Ps))}};Ps=new WeakMap;let Vs=Ws;_.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Vs);var ce;const _s=class _s extends ns{constructor(){super(...arguments);i(this,ce,()=>{const e=this.scrollElement.limit+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(_s.prototype,this,"connectedCallback").call(this),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,ce)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,ce)),t(this,ce).call(this)})}disconnectedCallback(){this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,ce)),this.scrollElement.removeEventListener("scrollSectionsChange",t(this,ce))}};ce=new WeakMap;let ks=_s;_.isBrowser&&!customElements.get("e-scroll-total")&&customElements.define("e-scroll-total",ks);exports.ScrollBulletButtonsElement=ii;exports.ScrollCounterElement=Vs;exports.ScrollElement=zs;exports.ScrollScrollbarElement=ti;exports.ScrollSectionButtonElement=Si;exports.ScrollSegmentElement=ri;exports.ScrollSetButtonElement=ei;exports.ScrollStepButtonElement=si;exports.ScrollTotalElement=ks;
@@ -1,19 +1,19 @@
1
- var ci = Object.defineProperty;
2
- var qs = Object.getOwnPropertySymbols, ui = Object.getPrototypeOf, ai = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, fi = Reflect.get;
1
+ var li = Object.defineProperty;
2
+ var qs = Object.getOwnPropertySymbols, ci = Object.getPrototypeOf, ui = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, di = Reflect.get;
3
3
  var Us = (d) => {
4
4
  throw TypeError(d);
5
5
  };
6
- var Gs = (d, n, e) => n in d ? ci(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Ks = (d, n) => {
6
+ var Gs = (d, n, e) => n in d ? li(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, Ks = (d, n) => {
7
7
  for (var e in n || (n = {}))
8
- ai.call(n, e) && Gs(d, e, n[e]);
8
+ ui.call(n, e) && Gs(d, e, n[e]);
9
9
  if (qs)
10
10
  for (var e of qs(n))
11
- di.call(n, e) && Gs(d, e, n[e]);
11
+ ai.call(n, e) && Gs(d, e, n[e]);
12
12
  return d;
13
13
  };
14
14
  var ks = (d, n, e) => n.has(d) || Us("Cannot " + e);
15
15
  var t = (d, n, e) => (ks(d, n, "read from private field"), e ? e.call(d) : n.get(d)), i = (d, n, e) => n.has(d) ? Us("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(d) : n.set(d, e), r = (d, n, e, s) => (ks(d, n, "write to private field"), s ? s.call(d, e) : n.set(d, e), e), o = (d, n, e) => (ks(d, n, "access private method"), e);
16
- var Vs = (d, n, e) => fi(ui(d), e, n);
16
+ var Vs = (d, n, e) => di(ci(d), e, n);
17
17
  var zs = (d, n, e) => new Promise((s, h) => {
18
18
  var u = (C) => {
19
19
  try {
@@ -32,34 +32,34 @@ var zs = (d, n, e) => new Promise((s, h) => {
32
32
  });
33
33
  import { S as ae } from "../Store-0BVty6AZ.js";
34
34
  import { i as q } from "../index-Bv9zgfdb.js";
35
- import { q as pi } from "../easings-BEmRlrDd.js";
36
- import { i as bi } from "../element-CGVl1jA-.js";
35
+ import { q as fi } from "../easings-BEmRlrDd.js";
36
+ import { i as pi } from "../element-CGVl1jA-.js";
37
37
  import { d as st } from "../events-CsVF98U6.js";
38
38
  import { d as xs } from "../function-C10DGppn.js";
39
- import { a as ls, g as cs, b as mi } from "../layout-BSMtwCga.js";
40
- import { c as Js, s as Si } from "../math-BOBiC4TN.js";
41
- import { p as gi, l as vi } from "../number-CumqY64S.js";
42
- import { c as Qs } from "../stylesheet-DpnWNVyD.js";
39
+ import { a as ls, g as cs, b as bi } from "../layout-BSMtwCga.js";
40
+ import { c as js, s as mi } from "../math-BOBiC4TN.js";
41
+ import { p as Si, l as gi } from "../number-CumqY64S.js";
42
+ import { c as Js } from "../stylesheet-DpnWNVyD.js";
43
43
  import "../ticker/index.js";
44
- import { TICK_ORDER as Xs, RESIZE_ORDER as Ls } from "../order/index.js";
45
- import { D as Ys } from "../Damped-CtQmJ52v.js";
46
- import { T as yi } from "../Tweened-BlZB0vl4.js";
47
- import { W as Ci, K as Pi, D as Ei, A as wi } from "../DragControls-B7q22wzw.js";
44
+ import { TICK_ORDER as Qs, RESIZE_ORDER as Ls } from "../order/index.js";
45
+ import { D as Xs } from "../Damped-CtQmJ52v.js";
46
+ import { T as vi } from "../Tweened-BlZB0vl4.js";
47
+ import { W as yi, K as Ci, D as Pi, A as Ei } from "../DragControls-B7q22wzw.js";
48
48
  import { windowResizer as pt } from "../window-resizer/index.js";
49
49
  import { scrollEntries as ce } from "../scroll-entries/index.js";
50
50
  import { cssUnitParser as Zs } from "../css-unit-parser/index.js";
51
51
  import { CSSProperty as l } from "../css-property/index.js";
52
- import { d as xi } from "../Viewport-DA10iWAO.js";
52
+ import { d as wi } from "../Viewport-DA10iWAO.js";
53
53
  import "construct-style-sheets-polyfill";
54
54
  import { elementResizer as os } from "../element-resizer/index.js";
55
- import { s as Li } from "../gestures-CcXV6fCp.js";
56
- import { b as ki } from "../dom-CVWzyXPH.js";
57
- var p, Te, E, us, as, pe, bt, $t, be, Bt, Fe;
58
- class Vi {
55
+ import { s as xi } from "../gestures-CcXV6fCp.js";
56
+ import { b as Li } from "../dom-CVWzyXPH.js";
57
+ var p, Re, E, us, as, pe, bt, $t, be, Bt, Fe;
58
+ class ki {
59
59
  constructor(n, e, s) {
60
60
  i(this, Bt);
61
61
  i(this, p);
62
- i(this, Te);
62
+ i(this, Re);
63
63
  i(this, E);
64
64
  i(this, us, 0);
65
65
  i(this, as, 0);
@@ -67,13 +67,13 @@ class Vi {
67
67
  i(this, bt, 0);
68
68
  i(this, $t, null);
69
69
  i(this, be, 0);
70
- r(this, p, n), r(this, Te, e), r(this, E, s), ce.register(t(this, p)), this.setIndex(t(this, Te));
70
+ r(this, p, n), r(this, Re, e), r(this, E, s), ce.register(t(this, p)), this.setIndex(t(this, Re));
71
71
  }
72
72
  get element() {
73
73
  return t(this, p);
74
74
  }
75
75
  get index() {
76
- return t(this, Te);
76
+ return t(this, Re);
77
77
  }
78
78
  get size() {
79
79
  return t(this, pe);
@@ -111,7 +111,7 @@ class Vi {
111
111
  t(this, E).axisCSSProperty.current,
112
112
  e
113
113
  );
114
- const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, pe) + s, v = gi(Js(h, u, g), 3);
114
+ const h = t(this, E).currentScrollValue + e, u = t(this, bt) - t(this, E).viewportSize - s, g = t(this, bt) + t(this, pe) + s, v = Si(js(h, u, g), 3);
115
115
  r(this, be, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, be)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, be)}px, 0px, 0px)`;
116
116
  }
117
117
  setMark(n) {
@@ -142,10 +142,10 @@ class Vi {
142
142
  o(this, Bt, Fe).call(this, "current-index-arc-abs", n);
143
143
  }
144
144
  }
145
- p = new WeakMap(), Te = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), pe = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), be = new WeakMap(), Bt = new WeakSet(), Fe = function(n, e) {
145
+ p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), pe = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), be = new WeakMap(), Bt = new WeakSet(), Fe = function(n, e) {
146
146
  e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
147
147
  };
148
- const js = Qs({
148
+ const Vi = Js({
149
149
  ":host": {
150
150
  position: "relative",
151
151
  width: "100%",
@@ -184,7 +184,7 @@ const js = Qs({
184
184
  flexShrink: "0"
185
185
  }
186
186
  });
187
- var f, me, D, Wt, mt, St, gt, J, Nt, qt, vt, Gt, Se, Q, V, ge, ve, ye, Ce, De, Pe, X, Ee, Ut, Y, yt, Ct, we, Kt, xe, Le, Zt, jt, Jt, b, Oe, G, a, ds, fs, L, P, U, it, Qt, rt, F, z, He, Pt, Et, wt, K, $e, xt, Xt, Lt, ht, A, Be, kt, ke, We, c, Is, hs, Re, Es, ws, Ms, Fs, R, ps, _s, Ne, bs, Rs, Ts, de, ti, ms, ns, qe;
187
+ var f, me, D, Wt, mt, St, gt, J, Nt, qt, vt, Gt, Se, Q, V, ge, ve, ye, Ce, De, Pe, X, Ee, Ut, Y, yt, Ct, we, Kt, xe, Le, Zt, jt, Jt, b, Oe, G, a, ds, fs, L, P, U, it, Qt, rt, F, z, He, Pt, Et, wt, K, $e, xt, Xt, Lt, ht, A, Be, kt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, de, _s, ms, ns, qe;
188
188
  class As extends HTMLElement {
189
189
  constructor() {
190
190
  super();
@@ -291,7 +291,7 @@ class As extends HTMLElement {
291
291
  i(this, K, !0);
292
292
  i(this, $e);
293
293
  i(this, xt);
294
- i(this, Xt, new yi());
294
+ i(this, Xt, new vi());
295
295
  i(this, Lt, !1);
296
296
  i(this, ht, null);
297
297
  i(this, A, !1);
@@ -299,7 +299,7 @@ class As extends HTMLElement {
299
299
  i(this, kt, []);
300
300
  i(this, ke, !1);
301
301
  i(this, We);
302
- i(this, R, (e) => {
302
+ i(this, T, (e) => {
303
303
  if (e && t(this, ke)) {
304
304
  r(this, ke, !1);
305
305
  return;
@@ -316,14 +316,14 @@ class As extends HTMLElement {
316
316
  (t(this, Lt) || !t(this, J).current) && (t(this, z).current = o(this, c, ns).call(this));
317
317
  } else
318
318
  this.vertical ? t(this, b).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
319
- o(this, c, ti).call(this), ce.update(
319
+ o(this, c, _s).call(this), ce.update(
320
320
  this,
321
321
  t(this, D).current,
322
322
  e
323
323
  );
324
324
  });
325
325
  i(this, Ne, (e, s) => {
326
- t(this, me).current && (o(this, c, Rs).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
326
+ t(this, me).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
327
327
  });
328
328
  i(this, bs, (e, s) => {
329
329
  if (!t(this, xt)) {
@@ -338,10 +338,10 @@ class As extends HTMLElement {
338
338
  h && this.scrollToSection(h.index, {
339
339
  tween: {
340
340
  duration: t(this, xe).current,
341
- easing: pi
341
+ easing: fi
342
342
  }
343
343
  });
344
- }, t(this, Kt).current))), !(e.includes("drag") && !xi.isTouch && !t(this, Ce).current)) {
344
+ }, t(this, Kt).current))), !(e.includes("drag") && !wi.isTouch && !t(this, Ce).current)) {
345
345
  if (t(this, J).current && e !== "drag") {
346
346
  const h = Math.sign(s);
347
347
  t(this, a).length ? t(this, Lt) ? this.scrollToSection(o(this, c, ns).call(this, !0)) : this.shiftSections(h, {
@@ -366,11 +366,11 @@ class As extends HTMLElement {
366
366
  }, 10));
367
367
  }, 20));
368
368
  i(this, qe, () => {
369
- r(this, A, !0), this.hibernatedCSSProperty.current || o(this, c, Fs).call(this), os.subscribe(this, t(this, R)), pt.unsubscribe(t(this, qe));
369
+ r(this, A, !0), this.hibernatedCSSProperty.current || o(this, c, Fs).call(this), os.subscribe(this, t(this, T)), pt.unsubscribe(t(this, qe));
370
370
  });
371
371
  if (q) {
372
372
  const e = this.attachShadow({ mode: "open" });
373
- e.adoptedStyleSheets = [js];
373
+ e.adoptedStyleSheets = [Vi];
374
374
  const s = document.createElement("div");
375
375
  s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, Jt, document.createElement("div")), t(this, Jt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, Jt).appendChild(t(this, b)), e.appendChild(t(this, Jt)), r(this, Be, new MutationObserver(
376
376
  xs(() => {
@@ -479,10 +479,10 @@ class As extends HTMLElement {
479
479
  return t(this, jt);
480
480
  }
481
481
  get currentScrollValue() {
482
- return o(this, c, Ts).call(this, "current");
482
+ return o(this, c, Rs).call(this, "current");
483
483
  }
484
484
  get targetScrollValue() {
485
- return o(this, c, Ts).call(this, "target");
485
+ return o(this, c, Rs).call(this, "target");
486
486
  }
487
487
  get contentWrapperElement() {
488
488
  return t(this, Jt);
@@ -573,7 +573,7 @@ class As extends HTMLElement {
573
573
  scrollToSection(e, s) {
574
574
  if (!t(this, a).length || t(this, K) || t(this, xt))
575
575
  return;
576
- const h = t(this, z).current, u = o(this, c, _s).call(this, e);
576
+ const h = t(this, z).current, u = o(this, c, Ys).call(this, e);
577
577
  t(this, Lt) || (t(this, z).current = u);
578
578
  const g = t(this, a)[h], v = t(this, a)[u];
579
579
  if (g && v) {
@@ -587,7 +587,7 @@ class As extends HTMLElement {
587
587
  t(this, a).length && this.scrollToSection(t(this, z).current + e, s);
588
588
  }
589
589
  setPosition(e, s) {
590
- t(this, K) || (o(this, c, Rs).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, xt)), t(this, Xt).set(t(this, f).current, { equalize: !0 }), t(this, Xt).set(e, Ks({}, s.tween)), r(this, xt, setTimeout(() => {
590
+ t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, xt)), t(this, Xt).set(t(this, f).current, { equalize: !0 }), t(this, Xt).set(e, Ks({}, s.tween)), r(this, xt, setTimeout(() => {
591
591
  r(this, xt, void 0);
592
592
  }, s.tween.duration || 0))) : t(this, f).set(e, {
593
593
  equalize: (s == null ? void 0 : s.behaviour) === "instant"
@@ -600,7 +600,7 @@ class As extends HTMLElement {
600
600
  if (t(this, jt).current)
601
601
  return;
602
602
  r(this, a, t(this, G).filter(
603
- (h) => bi(h.element)
603
+ (h) => pi(h.element)
604
604
  )), this.style.setProperty(
605
605
  "--sections",
606
606
  t(this, a).length.toString()
@@ -648,18 +648,18 @@ class As extends HTMLElement {
648
648
  r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Zt).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
649
649
  }
650
650
  connectedCallback() {
651
- ce.register(this), r(this, f, new Ys(0, {
651
+ ce.register(this), r(this, f, new Xs(0, {
652
652
  damping: 0.01,
653
653
  min: 0,
654
- order: Xs.SCROLL
655
- })), this.setAttribute("tabindex", "0"), r(this, it, new Ci({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, Qt, new Pi({
654
+ order: Qs.SCROLL
655
+ })), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, Qt, new Ci({
656
656
  element: this
657
657
  })), t(this, Qt).changeEvent.subscribe(
658
658
  t(this, Ne)
659
- ), r(this, rt, new Ei({
659
+ ), r(this, rt, new Pi({
660
660
  element: t(this, b),
661
661
  rootElement: this
662
- })), t(this, rt).changeEvent.subscribe(t(this, Ne)), r(this, F, new wi({
662
+ })), t(this, rt).changeEvent.subscribe(t(this, Ne)), r(this, F, new Ei({
663
663
  culling: this
664
664
  })), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
665
665
  o(this, c, Is).call(this);
@@ -670,15 +670,15 @@ class As extends HTMLElement {
670
670
  }), t(this, Se).subscribe((e) => {
671
671
  t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
672
672
  }), t(this, St).subscribe(() => {
673
- t(this, A) && t(this, R).call(this);
673
+ t(this, A) && t(this, T).call(this);
674
674
  }), t(this, gt).subscribe(({ current: e }) => {
675
- t(this, A) && (e ? o(this, c, hs).call(this) : o(this, c, Re).call(this));
675
+ t(this, A) && (e ? o(this, c, hs).call(this) : o(this, c, Te).call(this));
676
676
  }), t(this, J).subscribe((e) => {
677
- t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, F).interval = e.current, t(this, A) && (e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Re).call(this));
677
+ t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, F).interval = e.current, t(this, A) && (e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
678
678
  }), t(this, vt).subscribe((e) => {
679
- t(this, A) && (t(this, R).call(this), e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Re).call(this));
679
+ t(this, A) && (t(this, T).call(this), e.current && !e.previous && !t(this, a).length ? o(this, c, hs).call(this) : !e.current && e.previous && t(this, a).length && o(this, c, Te).call(this));
680
680
  }), t(this, Q).subscribe((e) => {
681
- t(this, A) && (t(this, R).call(this), o(this, c, de).call(this));
681
+ t(this, A) && (t(this, T).call(this), o(this, c, de).call(this));
682
682
  }), t(this, V).subscribe((e) => {
683
683
  e.current ? (t(this, A) && (t(this, a).length || (t(this, gt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, He, 0), t(this, f).max = t(this, P), t(this, f).min = 0), this.classList.toggle("loop", !!e.current);
684
684
  }), t(this, ge).subscribe((e) => {
@@ -711,24 +711,21 @@ class As extends HTMLElement {
711
711
  e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Fs).call(this));
712
712
  }), t(this, me).observe(), t(this, D).observe(), t(this, Wt).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, qt).observe(), t(this, vt).observe(), t(this, Gt).observe(), t(this, Se).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, Ce).observe(), t(this, De).observe(), t(this, Pe).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Ee).observe(), t(this, Ut).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, we).observe(), t(this, Kt).observe(), t(this, xe).observe(), t(this, Le).observe(), t(this, Zt).observe(), t(this, jt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
713
713
  }
714
- adoptedCallback() {
715
- this.shadowRoot.adoptedStyleSheets = [js];
716
- }
717
714
  disconnectedCallback() {
718
- this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, me).unobserve(), t(this, D).unobserve(), t(this, Wt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, qt).unobserve(), t(this, vt).unobserve(), t(this, Gt).unobserve(), t(this, Se).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Ce).unobserve(), t(this, De).unobserve(), t(this, Pe).unobserve(), t(this, X).unobserve(), t(this, Ee).unobserve(), t(this, Ut).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, we).unobserve(), t(this, Kt).unobserve(), t(this, xe).unobserve(), t(this, Le).unobserve(), t(this, Zt).unobserve(), t(this, jt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, R)), os.unsubscribe(t(this, R)), o(this, c, Ms).call(this), t(this, Be).disconnect();
715
+ this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, me).unobserve(), t(this, D).unobserve(), t(this, Wt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, qt).unobserve(), t(this, vt).unobserve(), t(this, Gt).unobserve(), t(this, Se).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, Ce).unobserve(), t(this, De).unobserve(), t(this, Pe).unobserve(), t(this, X).unobserve(), t(this, Ee).unobserve(), t(this, Ut).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, we).unobserve(), t(this, Kt).unobserve(), t(this, xe).unobserve(), t(this, Le).unobserve(), t(this, Zt).unobserve(), t(this, jt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
719
716
  }
720
717
  }
721
718
  f = new WeakMap(), me = new WeakMap(), D = new WeakMap(), Wt = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), qt = new WeakMap(), vt = new WeakMap(), Gt = new WeakMap(), Se = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), Ce = new WeakMap(), De = new WeakMap(), Pe = new WeakMap(), X = new WeakMap(), Ee = new WeakMap(), Ut = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), we = new WeakMap(), Kt = new WeakMap(), xe = new WeakMap(), Le = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Qt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), xt = new WeakMap(), Xt = new WeakMap(), Lt = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), kt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
722
719
  const e = t(this, D).current, s = t(this, Wt).current ? "-reverse" : "";
723
- t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Gt).current ? "max" : e, t(this, Qt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, R).call(this);
720
+ t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Gt).current ? "max" : e, t(this, Qt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
724
721
  }, hs = function() {
725
- o(this, c, Re).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
726
- e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new Vi(e, s, this));
722
+ o(this, c, Te).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
723
+ e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new ki(e, s, this));
727
724
  }), r(this, a, [...t(this, G)]), t(this, b).style.transform = "", st(this, "scrollSectionsChange", {
728
725
  custom: !0,
729
726
  composed: !0
730
- }), t(this, R).call(this), o(this, c, de).call(this);
731
- }, Re = function() {
727
+ }), t(this, T).call(this), o(this, c, de).call(this);
728
+ }, Te = function() {
732
729
  t(this, G).forEach((e) => {
733
730
  e.destroy();
734
731
  }), r(this, G, []), r(this, a, []), t(this, z).reset(), t(this, f).reset(), this.style.removeProperty("--max-section-size"), st(this, "scrollSectionsChange", {
@@ -738,24 +735,24 @@ f = new WeakMap(), me = new WeakMap(), D = new WeakMap(), Wt = new WeakMap(), mt
738
735
  }, Es = function() {
739
736
  t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, xt)), t(this, Xt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Qt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
740
737
  e.unsetTransform();
741
- }), t(this, R).call(this)));
738
+ }), t(this, T).call(this)));
742
739
  }, ws = function() {
743
740
  t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Qt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
744
741
  }, Ms = function() {
745
- t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, R)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Re).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
742
+ t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), ce.unregister(this));
746
743
  }, Fs = function() {
747
744
  t(this, K) && (r(this, K, !1), ce.register(this), this.tryResplit(), o(this, c, ws).call(this), this.scrollToSection(t(this, Pe).current, {
748
745
  behaviour: "instant"
749
- }), pt.subscribe(t(this, R), Ls.SCROLL));
750
- }, R = new WeakMap(), ps = new WeakMap(), _s = function(e) {
746
+ }), pt.subscribe(t(this, T), Ls.SCROLL));
747
+ }, T = new WeakMap(), ps = new WeakMap(), Ys = function(e) {
751
748
  let s = t(this, z).current;
752
- return t(this, V).current ? s = vi(e, t(this, a).length) : s = Js(e, 0, this.limit), s;
753
- }, Ne = new WeakMap(), bs = new WeakMap(), Rs = function(e = 1) {
749
+ return t(this, V).current ? s = gi(e, t(this, a).length) : s = js(e, 0, this.limit), s;
750
+ }, Ne = new WeakMap(), bs = new WeakMap(), Ts = function(e = 1) {
754
751
  t(this, Ut).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
755
752
  t(this, Ee).current,
756
753
  this.sectionalCSSProperty.current
757
754
  );
758
- }, Ts = function(e = "current") {
755
+ }, Rs = function(e = "current") {
759
756
  if (t(this, V).current && t(this, a).length) {
760
757
  const s = Math.floor(t(this, f)[e]) % Math.floor(t(this, P) + t(this, L) + t(this, U));
761
758
  return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
@@ -776,7 +773,7 @@ f = new WeakMap(), me = new WeakMap(), D = new WeakMap(), Wt = new WeakMap(), mt
776
773
  }), t(this, ms).call(this);
777
774
  }
778
775
  }
779
- }, ti = function() {
776
+ }, _s = function() {
780
777
  if (t(this, Y).current) {
781
778
  const e = Math.floor(t(this, kt).length / 2);
782
779
  t(this, kt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, kt).forEach((s, h) => {
@@ -811,7 +808,7 @@ class is extends HTMLElement {
811
808
  return t(this, Ss);
812
809
  }
813
810
  connectedCallback() {
814
- const e = ki(this, As);
811
+ const e = Li(this, As);
815
812
  e instanceof As ? r(this, Ss, e) : console.error(this, "e-scroll not found");
816
813
  }
817
814
  }
@@ -838,7 +835,7 @@ class zi extends is {
838
835
  this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
839
836
  });
840
837
  i(this, vs, (e) => {
841
- document.documentElement.classList.add("grabbing"), Li(
838
+ document.documentElement.classList.add("grabbing"), xi(
842
839
  (u) => {
843
840
  const g = t(this, Vt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
844
841
  this.scrollElement.setPosition(s + C);
@@ -852,7 +849,7 @@ class zi extends is {
852
849
  if (q) {
853
850
  const e = this.attachShadow({ mode: "open" });
854
851
  e.adoptedStyleSheets = [
855
- Qs({
852
+ Js({
856
853
  ":host": {
857
854
  display: "inline-block",
858
855
  zIndex: "1",
@@ -1036,8 +1033,8 @@ class Fi extends is {
1036
1033
  }
1037
1034
  Ve = new WeakMap(), ee = new WeakMap(), ot = new WeakMap();
1038
1035
  q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Fi);
1039
- var se, ie, re, he, It, Mt, Ft, Rt, I, H, $, B, Tt, k, lt, ct, _, Dt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Ot, ne, es, x, ft, T, M, j, Ae, Ht, y, oe, m, ei, si, ii, ri, hi, ni, ss, Ie, Ds, fe, oi, li, Os;
1040
- class Ri extends is {
1036
+ var se, ie, re, he, It, Mt, Ft, Tt, I, H, $, B, Rt, k, lt, ct, _, Dt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Ot, ne, es, x, ft, R, M, j, Ae, Ht, y, oe, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, fe, ni, oi, Os;
1037
+ class Ti extends is {
1041
1038
  constructor() {
1042
1039
  super(...arguments);
1043
1040
  i(this, m);
@@ -1048,12 +1045,12 @@ class Ri extends is {
1048
1045
  i(this, It);
1049
1046
  i(this, Mt);
1050
1047
  i(this, Ft);
1051
- i(this, Rt);
1048
+ i(this, Tt);
1052
1049
  i(this, I);
1053
1050
  i(this, H);
1054
1051
  i(this, $);
1055
1052
  i(this, B);
1056
- i(this, Tt);
1053
+ i(this, Rt);
1057
1054
  i(this, k);
1058
1055
  i(this, lt);
1059
1056
  i(this, ct);
@@ -1076,7 +1073,7 @@ class Ri extends is {
1076
1073
  i(this, es);
1077
1074
  i(this, x);
1078
1075
  i(this, ft);
1079
- i(this, T);
1076
+ i(this, R);
1080
1077
  i(this, M);
1081
1078
  i(this, j);
1082
1079
  i(this, Ae);
@@ -1092,7 +1089,7 @@ class Ri extends is {
1092
1089
  { rawValueCheck: !1 }
1093
1090
  )), r(this, Ft, new l(this, "--start-offset", 0, {
1094
1091
  rawValueCheck: !1
1095
- })), r(this, Rt, new l(
1092
+ })), r(this, Tt, new l(
1096
1093
  this,
1097
1094
  "--capture-once",
1098
1095
  !1
@@ -1104,7 +1101,7 @@ class Ri extends is {
1104
1101
  this,
1105
1102
  "--captured-from-finish",
1106
1103
  ""
1107
- )), r(this, Tt, new l(
1104
+ )), r(this, Rt, new l(
1108
1105
  this,
1109
1106
  "--released-from-start",
1110
1107
  ""
@@ -1124,13 +1121,13 @@ class Ri extends is {
1124
1121
  this,
1125
1122
  "--animation-var-type",
1126
1123
  "target"
1127
- )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ae(!1)), r(this, W, new ae(!1)), r(this, N, new ae(!1)), r(this, tt, new ae(!1)), r(this, et, new ae(!1)), r(this, Z, new ae(!1)), r(this, ts, []), r(this, S, this), r(this, Ot, 0), r(this, ne, 0), r(this, es, 0), r(this, x, new Ys(0, { order: Xs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, T, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Ht, !1), r(this, y, !0), r(this, oe, !1), this.resize = () => {
1124
+ )), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ae(!1)), r(this, W, new ae(!1)), r(this, N, new ae(!1)), r(this, tt, new ae(!1)), r(this, et, new ae(!1)), r(this, Z, new ae(!1)), r(this, ts, []), r(this, S, this), r(this, Ot, 0), r(this, ne, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Ht, !1), r(this, y, !0), r(this, oe, !1), this.resize = () => {
1128
1125
  r(this, ne, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Ot, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
1129
- const e = mi(
1126
+ const e = bi(
1130
1127
  this,
1131
1128
  this.scrollElement.vertical ? "top" : "left"
1132
1129
  );
1133
- r(this, Ot, t(this, Ot) - e), r(this, T, this.getStart()), r(this, M, this.getDistance()), r(this, T, t(this, T) + t(this, Ft).current), r(this, M, t(this, M) + t(this, Mt).current), r(this, j, t(this, T) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, T)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
1130
+ r(this, Ot, t(this, Ot) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, Ft).current), r(this, M, t(this, M) + t(this, Mt).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
1134
1131
  }, this.findAnotherScrollEntries = xs(() => {
1135
1132
  const e = ce.getAll(this).reverse();
1136
1133
  let s = 0;
@@ -1150,7 +1147,7 @@ class Ri extends is {
1150
1147
  return t(this, Ft);
1151
1148
  }
1152
1149
  get captureOnceCSSProperty() {
1153
- return t(this, Rt);
1150
+ return t(this, Tt);
1154
1151
  }
1155
1152
  get capturedCSSProperty() {
1156
1153
  return t(this, I);
@@ -1165,7 +1162,7 @@ class Ri extends is {
1165
1162
  return t(this, B);
1166
1163
  }
1167
1164
  get releasedFromStartCSSProperty() {
1168
- return t(this, Tt);
1165
+ return t(this, Rt);
1169
1166
  }
1170
1167
  get releasedFromFinishCSSProperty() {
1171
1168
  return t(this, k);
@@ -1243,7 +1240,7 @@ class Ri extends is {
1243
1240
  return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Dt).current;
1244
1241
  }
1245
1242
  get start() {
1246
- return t(this, T);
1243
+ return t(this, R);
1247
1244
  }
1248
1245
  get finish() {
1249
1246
  return t(this, j);
@@ -1262,15 +1259,15 @@ class Ri extends is {
1262
1259
  t(this, ts).forEach((u) => {
1263
1260
  e += u.value;
1264
1261
  });
1265
- const s = e - t(this, T);
1262
+ const s = e - t(this, R);
1266
1263
  t(this, oe) || r(this, oe, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
1267
1264
  const h = Math.round(e);
1268
- t(this, w).current && (h >= t(this, T) ? t(this, N).current || o(this, m, ii).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, hi).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ri).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, ni).call(this)), h >= t(this, T) && h < t(this, j) ? t(this, w).current || o(this, m, ei).call(this) : t(this, w).current && (t(this, x).set(
1269
- Si(t(this, M) / 2, t(this, x).target, 0, t(this, M))
1270
- ), o(this, m, si).call(this)), t(this, Ht) && t(this, Rt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1265
+ t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, si).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ri).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ii).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, hi).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, ti).call(this) : t(this, w).current && (t(this, x).set(
1266
+ mi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
1267
+ ), o(this, m, ei).call(this)), t(this, Ht) && t(this, Tt).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
1271
1268
  }
1272
1269
  disable() {
1273
- this.style.cssText = "", r(this, Ot, 0), r(this, ne, 0), t(this, x).reset(), r(this, ft, 0), r(this, T, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Ht, !1), r(this, y, !0), o(this, m, Os).call(this);
1270
+ this.style.cssText = "", r(this, Ot, 0), r(this, ne, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Ht, !1), r(this, y, !0), o(this, m, Os).call(this);
1274
1271
  }
1275
1272
  enable() {
1276
1273
  r(this, y, !1);
@@ -1306,7 +1303,7 @@ class Ri extends is {
1306
1303
  composed: !0,
1307
1304
  custom: !0
1308
1305
  });
1309
- }), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, he).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, Ft).observe(), t(this, Rt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Tt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Dt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1306
+ }), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, he).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, Ft).observe(), t(this, Tt).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Rt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Dt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
1310
1307
  let e = !1;
1311
1308
  this.findAnotherScrollEntries(), t(this, It).current || this.enable(), t(this, se).subscribe((s) => {
1312
1309
  t(this, x).damping = s.current;
@@ -1330,11 +1327,11 @@ class Ri extends is {
1330
1327
  o(this, m, fe).call(this, s);
1331
1328
  }), t(this, H).subscribe((s) => {
1332
1329
  o(this, m, fe).call(this, s);
1333
- }), t(this, Tt).subscribe((s) => {
1330
+ }), t(this, Rt).subscribe((s) => {
1334
1331
  o(this, m, fe).call(this, s);
1335
1332
  }), t(this, k).subscribe((s) => {
1336
1333
  o(this, m, fe).call(this, s);
1337
- }), t(this, Rt).subscribe((s) => {
1334
+ }), t(this, Tt).subscribe((s) => {
1338
1335
  t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
1339
1336
  }), t(this, lt).subscribe((s) => {
1340
1337
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
@@ -1345,7 +1342,7 @@ class Ri extends is {
1345
1342
  }), t(this, Dt).subscribe((s) => {
1346
1343
  t(this, y) || o(this, m, Ds).call(this);
1347
1344
  }), t(this, at).subscribe((s) => {
1348
- t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, T)));
1345
+ t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, R)));
1349
1346
  }), t(this, dt).subscribe((s) => {
1350
1347
  t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, j)));
1351
1348
  }), t(this, ut).subscribe((s) => {
@@ -1365,7 +1362,7 @@ class Ri extends is {
1365
1362
  pt.unsubscribe(t(this, ss)), this.scrollElement.offScroll(t(this, Ie)), this.scrollElement.removeEventListener(
1366
1363
  "scrollSectionsChange",
1367
1364
  this.findAnotherScrollEntries
1368
- ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, he).close(), t(this, It).close(), t(this, Mt).close(), t(this, Ft).close(), t(this, Rt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Tt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Dt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1365
+ ), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, he).close(), t(this, It).close(), t(this, Mt).close(), t(this, Ft).close(), t(this, Tt).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Rt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Dt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
1369
1366
  }
1370
1367
  removeVar(e) {
1371
1368
  e && t(this, S).style.removeProperty(`--${e}`);
@@ -1383,31 +1380,31 @@ class Ri extends is {
1383
1380
  return t(this, Ot) - t(this, es);
1384
1381
  }
1385
1382
  }
1386
- se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), he = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), Rt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Tt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Dt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Ot = new WeakMap(), ne = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), T = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), oe = new WeakMap(), m = new WeakSet(), ei = function() {
1383
+ se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), he = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), Tt = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Rt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Dt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Ot = new WeakMap(), ne = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), oe = new WeakMap(), m = new WeakSet(), ti = function() {
1387
1384
  t(this, w).current = !0, t(this, W).current = !1, r(this, Ht, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
1388
1385
  t(this, k).current
1389
1386
  ), t(this, k).current && t(this, S).classList.remove(
1390
1387
  t(this, k).current
1391
1388
  ), t(this, I).current && t(this, S).classList.add(t(this, I).current);
1392
- }, si = function() {
1389
+ }, ei = function() {
1393
1390
  t(this, W).current = !0, t(this, w).current = !1, r(this, Ht, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
1394
1391
  t(this, $).current
1395
1392
  ), t(this, B).current && t(this, S).classList.remove(
1396
1393
  t(this, B).current
1397
1394
  ), t(this, H).current && t(this, S).classList.add(t(this, H).current);
1398
- }, ii = function() {
1395
+ }, si = function() {
1399
1396
  t(this, w).current = !0, t(this, N).current = !0, t(this, tt).current = !1, t(this, $).current && t(this, S).classList.add(
1400
1397
  t(this, $).current
1401
1398
  );
1402
- }, ri = function() {
1399
+ }, ii = function() {
1403
1400
  t(this, w).current = !0, t(this, et).current = !0, t(this, Z).current = !1, t(this, B).current && t(this, S).classList.add(
1404
1401
  t(this, B).current
1405
1402
  );
1406
- }, hi = function() {
1403
+ }, ri = function() {
1407
1404
  t(this, W).current = !0, t(this, tt).current = !0, t(this, N).current = !1, t(this, k).current && t(this, S).classList.add(
1408
1405
  t(this, k).current
1409
1406
  );
1410
- }, ni = function() {
1407
+ }, hi = function() {
1411
1408
  t(this, W).current = !0, t(this, Z).current = !0, t(this, et).current = !1, t(this, k).current && t(this, S).classList.add(
1412
1409
  t(this, k).current
1413
1410
  );
@@ -1420,19 +1417,19 @@ se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), he = new WeakMap(),
1420
1417
  return;
1421
1418
  }
1422
1419
  e.current && t(this, w).current ? (e.previous && t(this, S).classList.remove(e.previous), t(this, S).classList.add(e.current)) : !e.current && e.previous && t(this, S).classList.remove(e.previous);
1423
- }, oi = function(...e) {
1420
+ }, ni = function(...e) {
1424
1421
  e.forEach((s) => {
1425
1422
  s && t(this, S).classList.remove(s);
1426
1423
  });
1427
- }, li = function(...e) {
1424
+ }, oi = function(...e) {
1428
1425
  e.forEach((s) => {
1429
1426
  s && t(this, S).style.removeProperty(`--${s}`);
1430
1427
  });
1431
1428
  }, Os = function() {
1432
- o(this, m, oi).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Tt).current, t(this, k).current), o(this, m, li).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1429
+ o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Rt).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
1433
1430
  };
1434
- q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ri);
1435
- class Ti extends Bs {
1431
+ q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ti);
1432
+ class Ri extends Bs {
1436
1433
  handleClick(n) {
1437
1434
  this.scrollElement.setPosition(
1438
1435
  this.scrollElement.vertical ? ls(this) : cs(this),
@@ -1446,7 +1443,7 @@ class Ti extends Bs {
1446
1443
  super.disconnectedCallback();
1447
1444
  }
1448
1445
  }
1449
- q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ti);
1446
+ q && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ri);
1450
1447
  var Ps;
1451
1448
  const Ws = class Ws extends is {
1452
1449
  constructor() {
@@ -1504,8 +1501,8 @@ export {
1504
1501
  Hs as ScrollCounterElement,
1505
1502
  As as ScrollElement,
1506
1503
  zi as ScrollScrollbarElement,
1507
- Ti as ScrollSectionButtonElement,
1508
- Ri as ScrollSegmentElement,
1504
+ Ri as ScrollSectionButtonElement,
1505
+ Ti as ScrollSegmentElement,
1509
1506
  Ai as ScrollSetButtonElement,
1510
1507
  Ii as ScrollStepButtonElement,
1511
1508
  $s as ScrollTotalElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.77.2",
3
+ "version": "0.77.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"