aptechka 0.68.3 → 0.68.5
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.
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +165 -165
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=r=>{throw TypeError(r)};var f=(r,s,e)=>s.has(r)||w("Cannot "+e);var t=(r,s,e)=>(f(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>s.has(r)?w("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),u=(r,s,e,i)=>(f(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),p=require("../Store-Cd1GlEmZ.cjs"),q=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");const g=require("../window-resizer/index.cjs");var l,a,c,b,n,o;class v extends p.Store{constructor(e,i,d,S){super(d,S);h(this,l);h(this,a);h(this,c);h(this,b);h(this,n,!1);h(this,o,()=>{this.check()});u(this,l,q.getElement(e)),u(this,a,i),u(this,c,d.toString()),u(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,c)}observe(){t(this,n)||(u(this,n,!0),g.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(u(this,n,!1),g.windowResizer.unsubscribe(t(this,o)))}subscribe(e,i){return this.subscribers.length||this.observe(),super.subscribe(e,i)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,l)).getPropertyValue(t(this,a)).trim();if(!(t(this,b)&&t(this,c)===e))if(u(this,c,e),e){const i=R.cssValueParser.parse(t(this,c));this.current=i}else this.current=this.initial}}l=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=v;
|
|
1
|
+
"use strict";var w=r=>{throw TypeError(r)};var f=(r,s,e)=>s.has(r)||w("Cannot "+e);var t=(r,s,e)=>(f(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>s.has(r)?w("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),u=(r,s,e,i)=>(f(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),p=require("../Store-Cd1GlEmZ.cjs"),q=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");const g=require("../window-resizer/index.cjs");var l,a,c,b,n,o;class v extends p.Store{constructor(e,i,d,S){super(d,S);h(this,l);h(this,a);h(this,c);h(this,b);h(this,n,!1);h(this,o,()=>{this.check()});u(this,l,q.getElement(e)),u(this,a,i),u(this,c,d.toString()),u(this,b,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,c)}observe(){t(this,n)||(u(this,n,!0),g.windowResizer.subscribe(t(this,o),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,n)&&(u(this,n,!1),g.windowResizer.unsubscribe(t(this,o)))}subscribe(e,i){return this.subscribers.length||this.observe(),super.subscribe(e,i)}unsubscribe(e){super.unsubscribe(e),this.subscribers.length||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,l)).getPropertyValue(t(this,a)).trim();if(!(t(this,b)&&t(this,c)===e))if(u(this,c,e),e){const i=R.cssValueParser.parse(t(this,c),t(this,l));this.current=i}else this.current=this.initial}}l=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,n=new WeakMap,o=new WeakMap;exports.CSSProperty=v;
|
|
@@ -46,7 +46,7 @@ class A extends V {
|
|
|
46
46
|
const e = getComputedStyle(t(this, b)).getPropertyValue(t(this, o)).trim();
|
|
47
47
|
if (!(t(this, l) && t(this, h) === e))
|
|
48
48
|
if (u(this, h, e), e) {
|
|
49
|
-
const i = w.parse(t(this, h));
|
|
49
|
+
const i = w.parse(t(this, h), t(this, b));
|
|
50
50
|
this.current = i;
|
|
51
51
|
} else
|
|
52
52
|
this.current = this.initial;
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ui=Object.defineProperty;var qs=Object.getOwnPropertySymbols,ai=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,pi=Reflect.get;var $s=a=>{throw TypeError(a)};var Bs=(a,h,e)=>h in a?ui(a,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[h]=e,Hs=(a,h)=>{for(var e in h||(h={}))di.call(h,e)&&Bs(a,e,h[e]);if(qs)for(var e of qs(h))Si.call(h,e)&&Bs(a,e,h[e]);return a};var zs=(a,h,e)=>h.has(a)||$s("Cannot "+e);var t=(a,h,e)=>(zs(a,h,"read from private field"),e?e.call(a):h.get(a)),i=(a,h,e)=>h.has(a)?$s("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(a):h.set(a,e),r=(a,h,e,s)=>(zs(a,h,"write to private field"),s?s.call(a,e):h.set(a,e),e),o=(a,h,e)=>(zs(a,h,"access private method"),e);var _s=(a,h,e)=>pi(ai(a),e,h);var Ws=(a,h,e)=>new Promise((s,n)=>{var u=v=>{try{C(e.next(v))}catch(le){n(le)}},g=v=>{try{C(e.throw(v))}catch(le){n(le)}},C=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);C((e=e.apply(a,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("../Store-Cd1GlEmZ.cjs"),Z=require("../index-DekP7OZe.cjs"),fi=require("../easings-GegIwET5.cjs"),bi=require("../element-yhcBhsho.cjs"),Y=require("../events-KVanG9sR.cjs"),ws=require("../function-MthRj-GJ.cjs"),tt=require("../layout-Ctc2p3uz.cjs"),Ts=require("../math-GDWEqu7y.cjs"),Us=require("../number-ChAm68cm.cjs"),Gs=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Me=require("../order/index.cjs"),Zs=require("../Damped-z9Uaw2MJ.cjs"),mi=require("../Tweened-mvHucL4Y.cjs"),vs=require("../DragControls-CfE2oPAi.cjs"),he=require("../window-resizer/index.cjs"),oe=require("../scroll-entries/index.cjs"),Ns=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),gi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const ns=require("../element-resizer/index.cjs"),Ci=require("../gestures-C7gbKx11.cjs"),yi=require("../dom-JBOkFLTh.cjs");var p,Fe,E,hs,os,de,St,Dt,Se,pe,ss;class vi{constructor(h,e,s){i(this,pe);i(this,p);i(this,Fe);i(this,E);i(this,hs,0);i(this,os,0);i(this,de,0);i(this,St,0);i(this,Dt,null);i(this,Se,0);r(this,p,h),r(this,Fe,e),r(this,E,s),oe.scrollEntries.register(t(this,p)),this.setIndex(t(this,Fe))}get element(){return t(this,p)}get index(){return t(this,Fe)}get size(){return t(this,de)}get width(){return t(this,hs)}get height(){return t(this,os)}get position(){return t(this,St)}get transformPosition(){return t(this,Se)}destroy(){oe.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.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,hs,t(this,p).offsetWidth),r(this,os,t(this,p).offsetHeight),r(this,de,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,St,t(this,E).vertical?tt.getCumulativeOffsetTop(t(this,p)):tt.getCumulativeOffsetLeft(t(this,p))),r(this,St,t(this,St)-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,St)+t(this,de)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),oe.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,St)-t(this,E).viewportSize-s,g=t(this,St)+t(this,de)+s,C=Us.preciseNumber(Ts.clamp(n,u,g),3);r(this,Se,C*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,Se)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,Se)}px, 0px, 0px)`}setMark(h){t(this,Dt)!==h&&(t(this,Dt)&&t(this,p).classList.remove(t(this,Dt)),h&&t(this,p).classList.add(h),r(this,Dt,h),Y.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,Dt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,pe,ss).call(this,"index",h)}setCurrentIndex(h){o(this,pe,ss).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,pe,ss).call(this,"current-index-arc",h)}setCurrentIndexArcAbs(h){o(this,pe,ss).call(this,"current-index-arc-abs",h)}}p=new WeakMap,Fe=new WeakMap,E=new WeakMap,hs=new WeakMap,os=new WeakMap,de=new WeakMap,St=new WeakMap,Dt=new WeakMap,Se=new WeakMap,pe=new WeakSet,ss=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 Pi=Gs.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,fe,F,qt,pt,ft,bt,et,Bt,$t,mt,Ht,be,st,V,me,ge,Ce,ye,Te,ve,K,Pe,_t,j,Wt,gt,Ee,Nt,we,Ut,Gt,Zt,f,Oe,W,d,ls,cs,L,P,N,it,Kt,rt,I,T,De,Ct,yt,vt,Pt,qe,jt,Et,xe,nt,k,Be,wt,Le,$e,c,Vs,is,Ie,Ps,Es,ks,Rs,O,us,Ks,He,as,As,Is,ue,js,ds,rs,Ss;class xs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,fe,new l.CSSProperty(this,"--controls",!0));i(this,F,new l.CSSProperty(this,"--axis","y"));i(this,qt,new l.CSSProperty(this,"--reverse",!1));i(this,pt,new l.CSSProperty(this,"--direction",0));i(this,ft,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,bt,new l.CSSProperty(this,"--split",!1));i(this,et,new l.CSSProperty(this,"--sectional",!1));i(this,Bt,new l.CSSProperty(this,"--tween-easing",!1));i(this,$t,new l.CSSProperty(this,"--tween-duration",!1));i(this,mt,new l.CSSProperty(this,"--auto-size",!1));i(this,Ht,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,be,new l.CSSProperty(this,"--drag-inertion",1));i(this,st,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,me,new l.CSSProperty(this,"--damping",20));i(this,ge,new l.CSSProperty(this,"--mass",0));i(this,Ce,new l.CSSProperty(this,"--stiffness",0));i(this,ye,new l.CSSProperty(this,"--mouse-drag",!1));i(this,Te,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,ve,new l.CSSProperty(this,"--start-section",0));i(this,K,new l.CSSProperty(this,"--autoplay",0));i(this,Pe,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,_t,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,j,new l.CSSProperty(this,"--classes",!1));i(this,Wt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,gt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,Ee,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Nt,new l.CSSProperty(this,"--focus-delay",0));i(this,we,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Ut,new l.CSSProperty(this,"--disabled",!1));i(this,Gt,new l.CSSProperty(this,"--hibernate",!1));i(this,Zt,null);i(this,f,null);i(this,Oe,null);i(this,W,[]);i(this,d,[]);i(this,ls,0);i(this,cs,0);i(this,L,0);i(this,P,0);i(this,N,0);i(this,it,null);i(this,Kt,null);i(this,rt,null);i(this,I,null);i(this,T,new ce.Store(0));i(this,De,0);i(this,Ct,0);i(this,yt,!1);i(this,vt,!0);i(this,Pt,!0);i(this,qe);i(this,jt);i(this,Et,new mi.Tweened);i(this,xe,!1);i(this,nt,null);i(this,k,!1);i(this,Be,null);i(this,wt,[]);i(this,Le,!1);i(this,$e);i(this,O,e=>{if(e&&t(this,Le)){r(this,Le,!1);return}this.resize()});i(this,us,()=>{if(!t(this,yt)||t(this,Pt)||t(this,vt))return;const e=this.currentScrollValue;if(r(this,De,Math.max(0,e-t(this,P))),t(this,d).length){for(let s=0;s<t(this,W).length;s++)t(this,W)[s].transform();t(this,T).current=o(this,c,rs).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,js).call(this),oe.scrollEntries.update(this,t(this,F).current,e)});i(this,He,(e,s)=>{t(this,fe).current&&(o(this,c,As).call(this,Math.sign(s)||1),t(this,as).call(this,e,s))});i(this,as,(e,s)=>{if(t(this,pt).current){if(t(this,pt).current<0&&s>0)return;if(t(this,pt).current>0&&s<0)return}if(t(this,jt)||t(this,Et).unlistenAnimationFrame(),!t(this,K).current&&t(this,Nt).current&&(clearInterval(t(this,qe)),r(this,qe,setTimeout(()=>{const n=t(this,d)[o(this,c,rs).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,we).current,easing:fi.easeInOutExpo}})},t(this,Nt).current))),!(e.includes("drag")&&!gi.device.isTouch&&!t(this,ye).current)){if(t(this,et).current&&e!=="drag"){const n=Math.sign(s);if(t(this,d).length){const u={tween:t(this,Bt).current||t(this,$t).current?{easing:t(this,Bt).current||"easeInOutCubic",duration:t(this,$t).current||500}:void 0};t(this,xe)?this.scrollToSection(o(this,c,rs).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,xe,e==="drag")}});i(this,ds,ws.debounce(()=>{const e=t(this,wt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,$e)),r(this,Le,!0),this.style.setProperty("--max-section-size",""),r(this,$e,setTimeout(()=>{r(this,Le,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ss,()=>{r(this,k,!0),this.hibernatedCSSProperty.current||o(this,c,Rs).call(this)});if(Z.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Pi];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Zt,document.createElement("div")),t(this,Zt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Oe,document.createElement("slot")),t(this,f).appendChild(t(this,Oe)),t(this,Zt).appendChild(t(this,f)),e.appendChild(t(this,Zt)),r(this,Be,new MutationObserver(ws.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,fe)}get axisCSSProperty(){return t(this,F)}get reverseCSSProperty(){return t(this,qt)}get directionCSSProperty(){return t(this,pt)}get pagesCSSProperty(){return t(this,ft)}get splitCSSProperty(){return t(this,bt)}get sectionalCSSProperty(){return t(this,et)}get easingCSSProperty(){return t(this,Bt)}get durationCSSProperty(){return t(this,$t)}get autoSizeCSSProperty(){return t(this,mt)}get wheelMaxDeltaCSSProperty(){return t(this,Ht)}get dragInertionCSSProperty(){return t(this,be)}get sectionsInViewCSSProperty(){return t(this,st)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,me)}get massCSSProperty(){return t(this,ge)}get stiffnessCSSProperty(){return t(this,Ce)}get mouseDragCSSProperty(){return t(this,ye)}get sectionDistanceScaleCSSProperty(){return t(this,Te)}get startSectionCSSProperty(){return t(this,ve)}get autoplayCSSProperty(){return t(this,K)}get autoplayPauseDurationCSSProperty(){return t(this,Pe)}get autoplayUserDirectionCSSProperty(){return t(this,_t)}get classesCSSProperty(){return t(this,j)}get currentIndexStartOffsetCSSProperty(){return t(this,Wt)}get currentIndexEndOffsetCSSProperty(){return t(this,gt)}get shiftSectionPositionCSSProperty(){return t(this,Ee)}get focusDelayCSSProperty(){return t(this,Nt)}get focusDurationCSSProperty(){return t(this,we)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Gt)}get currentScrollValue(){return o(this,c,Is).call(this,"current")}get targetScrollValue(){return o(this,c,Is).call(this,"target")}get contentWrapperElement(){return t(this,Zt)}get contentElement(){return t(this,f)}get sections(){return t(this,W)}get visibleSections(){return t(this,d)}get position(){return t(this,ls)}get contentPosition(){return t(this,cs)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,N)}get counter(){return t(this,T)}get limit(){return Math.ceil(t(this,d).length-t(this,st).current)}get distance(){return t(this,Ct)}get loopDistance(){return t(this,V).current?t(this,Ct)+t(this,N):t(this,Ct)}get hasOverflow(){return t(this,yt)}get overscroll(){return t(this,De)}get scrollLine(){return t(this,nt)}get vertical(){return t(this,F).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,F).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,F).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,Pt)&&(t(this,V).current||t(this,bt).current||t(this,V).current||t(this,mt).current||t(this,et).current)&&o(this,c,is).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,d).length)return;const n=t(this,T).current,u=o(this,c,Ks).call(this,e),g=t(this,d)[n],C=t(this,d)[u];if(g&&C){let v=0;const le=o(this,c,rs).call(this),Ae=t(this,d)[le];let es=Ae?this.targetScrollValue-Ae.position:0;t(this,V).current?u===0&&n===t(this,d).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,N),t(this,xe)||(es=0)):u===t(this,d).length-1&&n===0?v=C.position-(t(this,P)+t(this,L)+t(this,N)):v=C.position-g.position:v=C.position-g.position,this.shiftPosition(v-es,s)}}shiftSections(e,s){t(this,d).length&&this.scrollToSection(t(this,T).current+e,s)}setPosition(e,s){o(this,c,As).call(this,Math.sign(e)||1),s!=null&&s.tween?t(this,jt)||(t(this,Et).set(t(this,S).current,{equalize:!0}),t(this,Et).set(Math.min(e,this.distance),Hs({},s.tween)),r(this,jt,setTimeout(()=>{r(this,jt,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,Gt).current)return;r(this,d,t(this,W).filter(n=>bi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,d).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,T).current;if(r(this,ls,this.vertical?tt.getCumulativeOffsetTop(this):tt.getCumulativeOffsetLeft(this)),r(this,cs,this.vertical?tt.getCumulativeOffsetTop(t(this,f)):tt.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,mt).current&&t(this,d).length){const n=t(this,st).current,u=(t(this,L)-t(this,N)*(n-1))/n;t(this,d).forEach(g=>{g.setSize(u)})}else t(this,d).forEach(n=>{n.setSize()});if(t(this,d).forEach(n=>{n.resize()}),t(this,ft).current){r(this,P,t(this,L)*t(this,ft).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,d).length){const n=t(this,d)[t(this,d).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Ct,n.position+n.size+g)}else r(this,Ct,t(this,P));if(t(this,et).current&&t(this,d).length){const n=t(this,d)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,yt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,yt)),t(this,yt)?t(this,Ut).current||o(this,c,Es).call(this):o(this,c,Ps).call(this),t(this,ds).call(this),Y.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){oe.scrollEntries.register(this),r(this,S,new Zs.Damped(0,{damping:.01,min:0,order:Me.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,it,new vs.WheelControls({element:t(this,f)})),t(this,it).changeEvent.subscribe(t(this,He)),r(this,Kt,new vs.KeyboardControls({element:this})),t(this,Kt).changeEvent.subscribe(t(this,He)),r(this,rt,new vs.DragControls({element:t(this,f),rootElement:this})),t(this,rt).changeEvent.subscribe(t(this,He)),r(this,I,new vs.AutoplayControls({culling:this})),t(this,I).changeEvent.subscribe(t(this,as)),t(this,F).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,qt).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,Ht).subscribe(e=>{t(this,it).axis=e.current?"max":t(this,F).current}),t(this,be).subscribe(e=>{t(this,rt).inertion=typeof e.current=="number"?e.current:1}),t(this,ft).subscribe(()=>{t(this,k)&&t(this,O).call(this)}),t(this,bt).subscribe(({current:e})=>{t(this,k)&&(e?o(this,c,is).call(this):o(this,c,Ie).call(this))}),t(this,et).subscribe(e=>{t(this,it).debounce=e.current,t(this,rt).swipe=e.current,t(this,I).interval=e.current,t(this,k)&&(e.current&&!e.previous&&!t(this,d).length?o(this,c,is).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,mt).subscribe(e=>{t(this,k)&&(t(this,O).call(this),e.current&&!e.previous&&!t(this,d).length?o(this,c,is).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,st).subscribe(e=>{t(this,k)&&(t(this,O).call(this),o(this,c,ue).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,k)&&(t(this,d).length||(t(this,bt).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,De,0),t(this,S).max=t(this,P),t(this,S).min=0)}),t(this,me).subscribe(e=>{t(this,S).damping=e.current}),t(this,ge).subscribe(e=>{t(this,S).mass=e.current}),t(this,Ce).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,K).subscribe(e=>{t(this,I).speed=e.current,!t(this,vt)&&e.current&&!e.previous?t(this,I).connect():!e.current&&e.previous&&t(this,I).disconnect()}),t(this,_t).subscribe(e=>{e.current||(t(this,I).direction=1)}),t(this,j).subscribe(e=>{t(this,k)&&o(this,c,ue).call(this)}),t(this,Wt).subscribe(e=>{t(this,k)&&t(this,j).current&&o(this,c,ue).call(this)}),t(this,gt).subscribe(e=>{t(this,k)&&t(this,j).current&&o(this,c,ue).call(this)}),t(this,Ee).subscribe(e=>{t(this,k)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,T).subscribe(e=>{t(this,d).length&&o(this,c,ue).call(this),this.style.setProperty("--counter",e.current+"")}),t(this,Et).subscribe(e=>{t(this,Et).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,Ps).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,Es).call(this))}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,ks).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Rs).call(this))}),t(this,fe).observe(),t(this,F).observe(),t(this,qt).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,bt).observe(),t(this,et).observe(),t(this,Bt).observe(),t(this,$t).observe(),t(this,mt).observe(),t(this,Ht).observe(),t(this,be).observe(),t(this,st).observe(),t(this,V).observe(),t(this,me).observe(),t(this,ge).observe(),t(this,Ce).observe(),t(this,ye).observe(),t(this,Te).observe(),t(this,ve).observe(),t(this,K).observe(),t(this,K).observe(),t(this,Pe).observe(),t(this,_t).observe(),t(this,j).observe(),t(this,Wt).observe(),t(this,gt).observe(),t(this,Ee).observe(),t(this,Nt).observe(),t(this,we).observe(),t(this,Ut).observe(),t(this,Gt).observe(),he.windowResizer.subscribe(t(this,Ss),Me.RESIZE_ORDER.LAST),ns.elementResizer.subscribe(this,t(this,O)),t(this,Be).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,fe).unobserve(),t(this,F).unobserve(),t(this,qt).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,bt).unobserve(),t(this,et).unobserve(),t(this,Bt).unobserve(),t(this,$t).unobserve(),t(this,mt).unobserve(),t(this,Ht).unobserve(),t(this,be).unobserve(),t(this,st).unobserve(),t(this,V).unobserve(),t(this,me).unobserve(),t(this,ge).unobserve(),t(this,Ce).unobserve(),t(this,ye).unobserve(),t(this,Te).unobserve(),t(this,ve).unobserve(),t(this,K).unobserve(),t(this,Pe).unobserve(),t(this,_t).unobserve(),t(this,j).unobserve(),t(this,Wt).unobserve(),t(this,gt).unobserve(),t(this,Ee).unobserve(),t(this,Nt).unobserve(),t(this,we).unobserve(),t(this,Ut).unobserve(),t(this,Gt).unobserve(),he.windowResizer.unsubscribe(t(this,Ss)),ns.elementResizer.unsubscribe(t(this,O)),o(this,c,ks).call(this),t(this,Be).disconnect()}}S=new WeakMap,fe=new WeakMap,F=new WeakMap,qt=new WeakMap,pt=new WeakMap,ft=new WeakMap,bt=new WeakMap,et=new WeakMap,Bt=new WeakMap,$t=new WeakMap,mt=new WeakMap,Ht=new WeakMap,be=new WeakMap,st=new WeakMap,V=new WeakMap,me=new WeakMap,ge=new WeakMap,Ce=new WeakMap,ye=new WeakMap,Te=new WeakMap,ve=new WeakMap,K=new WeakMap,Pe=new WeakMap,_t=new WeakMap,j=new WeakMap,Wt=new WeakMap,gt=new WeakMap,Ee=new WeakMap,Nt=new WeakMap,we=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,Zt=new WeakMap,f=new WeakMap,Oe=new WeakMap,W=new WeakMap,d=new WeakMap,ls=new WeakMap,cs=new WeakMap,L=new WeakMap,P=new WeakMap,N=new WeakMap,it=new WeakMap,Kt=new WeakMap,rt=new WeakMap,I=new WeakMap,T=new WeakMap,De=new WeakMap,Ct=new WeakMap,yt=new WeakMap,vt=new WeakMap,Pt=new WeakMap,qe=new WeakMap,jt=new WeakMap,Et=new WeakMap,xe=new WeakMap,nt=new WeakMap,k=new WeakMap,Be=new WeakMap,wt=new WeakMap,Le=new WeakMap,$e=new WeakMap,c=new WeakSet,Vs=function(){const e=t(this,F).current,s=t(this,qt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,it).axis=t(this,Ht).current?"max":e,t(this,Kt).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,k)&&t(this,O).call(this)},is=function(){o(this,c,Ie).call(this),t(this,Oe).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,W).push(new vi(e,s,this))}),r(this,d,[...t(this,W)]),t(this,f).style.transform="",Y.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,O).call(this),o(this,c,ue).call(this)},Ie=function(){t(this,W).forEach(e=>{e.destroy()}),r(this,W,[]),r(this,d,[]),t(this,T).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),Y.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Ps=function(){t(this,vt)||(r(this,vt,!0),t(this,S).unsubscribe(t(this,us)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,qe)),clearInterval(t(this,jt)),t(this,Et).unlistenAnimationFrame(),t(this,it).disconnect(),t(this,Kt).disconnect(),t(this,rt).disconnect(),t(this,I).disconnect(),t(this,yt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,O).call(this)))},Es=function(){t(this,vt)&&(r(this,vt,!1),t(this,S).subscribe(t(this,us),-1e4),t(this,S).notify(),t(this,it).connect(),t(this,Kt).connect(),t(this,rt).connect(),t(this,K).current&&t(this,I).connect())},ks=function(){t(this,Pt)||(r(this,Pt,!0),clearTimeout(t(this,$e)),he.windowResizer.unsubscribe(t(this,O)),o(this,c,Ps).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),t(this,W).length?o(this,c,Ie).call(this):(t(this,T).reset(),t(this,S).reset()),oe.scrollEntries.unregister(this))},Rs=function(){t(this,Pt)&&(r(this,Pt,!1),oe.scrollEntries.register(this),this.tryResplit(),o(this,c,Es).call(this),this.scrollToSection(t(this,ve).current,{behaviour:"instant"}),he.windowResizer.subscribe(t(this,O),Me.RESIZE_ORDER.SCROLL))},O=new WeakMap,us=new WeakMap,Ks=function(e){let s=t(this,T).current;return t(this,V).current?s=Us.loopNumber(e,t(this,d).length):s=Ts.clamp(e,0,this.limit),s},He=new WeakMap,as=new WeakMap,As=function(e=1){t(this,_t).current&&(t(this,I).direction=e),t(this,K).current&&t(this,I).pauseAndContinue(t(this,Pe).current,this.sectionalCSSProperty.current)},Is=function(e="current"){if(t(this,V).current&&t(this,d).length){const s=t(this,S)[e]%Math.round(t(this,P)+t(this,L)+t(this,N));return s<0?t(this,P)+s+t(this,L)+t(this,N):s}else return t(this,S)[e]},ue=function(){if(t(this,d).length){const e=t(this,T).current+t(this,Wt).current;if(e===0?r(this,nt,"start"):e===this.limit?r(this,nt,"end"):r(this,nt,null),Y.dispatchEvent(this,"scrollLine",{detail:{line:t(this,nt)}}),t(this,j).current){this.classList.remove("end","start"),t(this,nt)&&this.classList.add(t(this,nt));const s=t(this,st).current+t(this,gt).current;r(this,wt,[]),t(this,d).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,gt).current,C=e+s,v=this.sections.length-C;u>=e&&u<C||u<=g?(n.setMark("current"),t(this,wt).push(n)):u>=C&&u<C+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,ds).call(this)}}},js=function(){if(t(this,j).current){const e=Math.floor(t(this,wt).length/2);t(this,wt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,wt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)})}},ds=new WeakMap,rs=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,d).length;C++){const v=t(this,d)[C];let le=t(this,xe)?v.size*g*-1*.4:0,Ae=v.position;this.overscroll&&Ae===0&&e&&(Ae=t(this,Ct));let es=Math.abs(Ae+le-s);es<=n&&(n=es,u=C)}return u},Ss=new WeakMap;Z.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",xs);var ps;class ys extends HTMLElement{constructor(){super(...arguments);i(this,ps,null)}get scrollElement(){return t(this,ps)}connectedCallback(){const e=yi.findParentElement(this,xs);e instanceof xs?r(this,ps,e):console.error(this,"e-scroll not found")}}ps=new WeakMap;var Jt,D,xt,Lt,_e,We,Qt,Ne,fs,bs;class Js extends ys{constructor(){super();i(this,Jt,null);i(this,D,null);i(this,xt,!1);i(this,Lt,0);i(this,_e,0);i(this,We,0);i(this,Qt,()=>{r(this,xt,this.offsetWidth>this.offsetHeight);const e=t(this,xt)?this.offsetWidth:this.offsetHeight;r(this,Lt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Lt,Math.max(t(this,Lt),30)),t(this,xt)?(t(this,D).style.width=t(this,Lt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,Lt)+"px"),r(this,_e,e-t(this,Lt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ne).call(this)});i(this,Ne,()=>{r(this,We,this.scrollElement.currentProgress*t(this,_e)),t(this,xt)?t(this,D).style.transform=`translate3d(${t(this,We)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,We)}px, 0px)`});i(this,fs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,bs,e=>{document.documentElement.classList.add("grabbing"),Ci.setupDrag(u=>{const g=t(this,xt)?u.x:u.y,C=this.scrollElement.distance/t(this,_e),v=(g-n)*C;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,xt)?e.x:e.y});if(Z.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Gs.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,Jt,document.createElement("slot")),t(this,Jt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Jt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Jt).assignedElements()[0]||t(this,Jt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,bs)),he.windowResizer.subscribe(t(this,Qt),Me.RESIZE_ORDER.SCROLL),ns.elementResizer.subscribe(this,t(this,Qt)),ns.elementResizer.subscribe(this.scrollElement,t(this,Qt)),this.scrollElement.onScroll(t(this,Ne)),this.scrollElement.axisCSSProperty.subscribe(t(this,fs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,bs)),he.windowResizer.unsubscribe(t(this,Qt)),ns.elementResizer.unsubscribe(t(this,Qt)),this.scrollElement.offScroll(t(this,Ne)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,fs))}}Jt=new WeakMap,D=new WeakMap,xt=new WeakMap,Lt=new WeakMap,_e=new WeakMap,We=new WeakMap,Qt=new WeakMap,Ne=new WeakMap,fs=new WeakMap,bs=new WeakMap;Z.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",Js);var Ue,Ge,Ze;class Os extends ys{constructor(){super();i(this,Ue,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Ge,new l.CSSProperty(this,"--tween-easing",!1));i(this,Ze,new l.CSSProperty(this,"--tween-duration",0));Z.isBrowser&&this.addEventListener("click",()=>{const e=t(this,Ue).current,s=t(this,Ge).current,n=t(this,Ze).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,Ue).observe(),t(this,Ge).observe(),t(this,Ze).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,Ue).close(),t(this,Ge).close(),t(this,Ze).close()}}Ue=new WeakMap,Ge=new WeakMap,Ze=new WeakMap;var Ke;class Qs extends Os{constructor(){super(...arguments);i(this,Ke,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Ke).current,e)}connectedCallback(){super.connectedCallback(),t(this,Ke).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Ke).close()}}Ke=new WeakMap;Z.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",Qs);var zt,je;class Xs extends Os{constructor(){super(...arguments);i(this,zt,new l.CSSProperty(this,"--step",1));i(this,je,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,zt).current>0&&this.scrollElement.scrollLine==="end"||t(this,zt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,zt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,zt).subscribe(()=>{t(this,je).call(this)}),t(this,zt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,je)),t(this,je).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,zt).close(),this.removeAttribute("disabled")}}zt=new WeakMap,je=new WeakMap;Z.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",Xs);var ht,Xt,Je,ms,gs,Qe;class Ei{constructor(h,e,s){i(this,ht,null);i(this,Xt,null);i(this,Je,null);i(this,ms,null);i(this,gs,()=>{t(this,Xt).scrollToSection(t(this,Je),{behaviour:t(this,ms)})});i(this,Qe,()=>{t(this,ht).classList.toggle("current",t(this,Xt).counter.current===t(this,Je))});Z.isBrowser&&(r(this,ht,document.createElement("button")),t(this,ht).setAttribute("aria-label",`Go to section ${e+1}`),r(this,Xt,h),r(this,ms,s),r(this,Je,e),t(this,ht).addEventListener("click",t(this,gs)),t(this,Xt).counter.subscribe(t(this,Qe)),t(this,Qe).call(this))}get element(){return t(this,ht)}destroy(){t(this,ht).removeEventListener("click",t(this,gs)),t(this,Xt).counter.unsubscribe(t(this,Qe)),t(this,ht).remove()}}ht=new WeakMap,Xt=new WeakMap,Je=new WeakMap,ms=new WeakMap,gs=new WeakMap,Qe=new WeakMap;var ze,Yt,Vt;class Ys extends ys{constructor(){super(...arguments);i(this,ze,null);i(this,Yt,[]);i(this,Vt,ws.debounce(()=>{t(this,Yt).forEach(s=>s.destroy()),r(this,Yt,[]);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 Ei(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ze).appendChild(n.element),t(this,Yt).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",this.scrollElement.addEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.subscribe(t(this,Vt)),r(this,ze,document.createElement("div")),this.appendChild(t(this,ze))}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,Vt)),t(this,Yt).forEach(e=>e.destroy()),r(this,Yt,[]),t(this,ze).remove()}}ze=new WeakMap,Yt=new WeakMap,Vt=new WeakMap;Z.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",Ys);var te,ee,se,ie,kt,Rt,At,It,R,q,B,$,Mt,z,ot,lt,J,Ft,Ve,ct,ut,at,w,H,_,Q,X,U,Xe,m,Tt,re,Ye,x,dt,M,A,G,ke,Ot,y,ne,b,ei,si,ii,ri,ni,hi,ts,Re,Ms,ae,oi,li,Fs;class ti extends ys{constructor(){super(...arguments);i(this,b);i(this,te);i(this,ee);i(this,se);i(this,ie);i(this,kt);i(this,Rt);i(this,At);i(this,It);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Mt);i(this,z);i(this,ot);i(this,lt);i(this,J);i(this,Ft);i(this,Ve);i(this,ct);i(this,ut);i(this,at);i(this,w);i(this,H);i(this,_);i(this,Q);i(this,X);i(this,U);i(this,Xe);i(this,m);i(this,Tt);i(this,re);i(this,Ye);i(this,x);i(this,dt);i(this,M);i(this,A);i(this,G);i(this,ke);i(this,Ot);i(this,y);i(this,ne);i(this,ts);i(this,Re);r(this,te,new l.CSSProperty(this,"--damping",20)),r(this,ee,new l.CSSProperty(this,"--mass",0)),r(this,se,new l.CSSProperty(this,"--stiffness",0)),r(this,ie,new l.CSSProperty(this,"--target","")),r(this,kt,new l.CSSProperty(this,"--disabled",!1)),r(this,Rt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,At,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,It,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,Mt,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,ot,new l.CSSProperty(this,"--passed-var","")),r(this,lt,new l.CSSProperty(this,"--progress-var","")),r(this,J,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Ft,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ve,new l.CSSProperty(this,"--animation-var-type","target")),r(this,ct,new l.CSSProperty(this,"--distance-var","")),r(this,ut,new l.CSSProperty(this,"--start-var","")),r(this,at,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ce.Store(!1)),r(this,H,new ce.Store(!1)),r(this,_,new ce.Store(!1)),r(this,Q,new ce.Store(!1)),r(this,X,new ce.Store(!1)),r(this,U,new ce.Store(!1)),r(this,Xe,[]),r(this,m,this),r(this,Tt,0),r(this,re,0),r(this,Ye,0),r(this,x,new Zs.Damped(0,{order:Me.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,dt,0),r(this,M,0),r(this,A,0),r(this,G,0),r(this,ke,!1),r(this,Ot,!1),r(this,y,!0),r(this,ne,!1),this.resize=()=>{r(this,re,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Tt,this.scrollElement.vertical?tt.getCumulativeOffsetTop(this,this.scrollElement):tt.getCumulativeOffsetLeft(this,this.scrollElement));const e=tt.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Tt,t(this,Tt)-e),r(this,M,this.getStart()),r(this,A,this.getDistance()),r(this,M,t(this,M)+t(this,At).current),r(this,A,t(this,A)+t(this,Rt).current),r(this,G,t(this,M)+t(this,A)),this.scrollElement.currentScrollValue>t(this,G)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,ut).current,t(this,M)),this.setVar(t(this,at).current,t(this,G)),this.setVar(t(this,ct).current,t(this,A)),t(this,x).max=t(this,A),r(this,ke,!0),t(this,Re).call(this)},this.findAnotherScrollEntries=ws.debounce(()=>{const e=oe.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,Xe,e.slice(s+1)),this.tick()},0),r(this,ts,()=>{t(this,y)||this.resize()}),r(this,Re,()=>{!t(this,y)&&t(this,ke)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Rt)}get startOffsetCSSProperty(){return t(this,At)}get captureOnceCSSProperty(){return t(this,It)}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,Mt)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,ot)}get progressVarCSSProperty(){return t(this,lt)}get progressArcVarCSSProperty(){return t(this,J)}get progressArcMultCSSProperty(){return t(this,Ft)}get animationVarTypeCSSProperty(){return t(this,Ve)}get distanceVarCSSProperty(){return t(this,ct)}get startVarCSSProperty(){return t(this,ut)}get finishVarCSSProperty(){return t(this,at)}get disabledCSSProperty(){return t(this,kt)}get dampingCSSProperty(){return t(this,te)}get massCSSProperty(){return t(this,ee)}get stiffnessCSSProperty(){return t(this,se)}get targetCSSProperty(){return t(this,ie)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,_)}get isReleasedFromStart(){return t(this,Q)}get isCapturedFromFinish(){return t(this,X)}get isReleasedFromFinish(){return t(this,U)}get directionPosition(){return t(this,Tt)}get directionSize(){return t(this,re)}get passed(){return t(this,x)}get progress(){return t(this,dt)}get progressArc(){return Math.abs(Math.cos(t(this,dt)*Math.PI))*t(this,Ft).current}get start(){return t(this,M)}get finish(){return t(this,G)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Ot)}get isDisabled(){return t(this,y)}tick(){let e=this.scrollElement.currentScrollValue;t(this,Xe).forEach(u=>{e+=u.value});const s=e-t(this,M);t(this,ne)||r(this,ne,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,M)?t(this,_).current||o(this,b,ii).call(this):t(this,_).current&&!t(this,Q).current&&o(this,b,ni).call(this),n<t(this,G)?t(this,U).current&&!t(this,X).current&&o(this,b,ri).call(this):t(this,_).current&&!t(this,U).current&&o(this,b,hi).call(this)),n>=t(this,M)&&n<t(this,G)?t(this,w).current||o(this,b,ei).call(this):t(this,w).current&&(t(this,x).set(Ts.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,si).call(this)),t(this,Ot)&&t(this,It).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,y,!0))}disable(){this.style.cssText="",r(this,Tt,0),r(this,re,0),t(this,x).reset(),r(this,dt,0),r(this,M,0),r(this,A,0),r(this,G,0),r(this,ke,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,_).current=!1,t(this,Q).current=!1,t(this,X).current=!1,t(this,U).current=!1,r(this,Ot,!1),r(this,y,!0),o(this,b,Fs).call(this)}enable(){r(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,_).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,X).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,Q).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,U).subscribe(s=>{s.current&&Y.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,te).observe(),t(this,ee).observe(),t(this,se).observe(),t(this,ie).observe(),t(this,kt).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Mt).observe(),t(this,z).observe(),t(this,ot).observe(),t(this,lt).observe(),t(this,J).observe(),t(this,Ft).observe(),t(this,Ve).observe(),t(this,ct).observe(),t(this,ut).observe(),t(this,at).observe();let e=!1;this.findAnotherScrollEntries(),t(this,kt).current||this.enable(),t(this,te).subscribe(s=>{t(this,x).damping=s.current}),t(this,ee).subscribe(s=>{t(this,x).mass=s.current}),t(this,se).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,ie).subscribe(s=>{s.previous&&o(this,b,Fs).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,kt).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,At).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,Rt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,Mt).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,It).subscribe(s=>{t(this,y)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,ot).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,lt).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,dt)))}),t(this,J).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Ft).subscribe(s=>{t(this,y)||o(this,b,Ms).call(this)}),t(this,ut).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,M)))}),t(this,at).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,G)))}),t(this,ct).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,ne)){r(this,ne,!1);return}o(this,b,Ms).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),he.windowResizer.subscribe(t(this,ts),Me.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Re)),e=!0}disconnectedCallback(){he.windowResizer.unsubscribe(t(this,ts)),this.scrollElement.offScroll(t(this,Re)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,te).close(),t(this,ee).close(),t(this,se).close(),t(this,ie).close(),t(this,kt).close(),t(this,Rt).close(),t(this,At).close(),t(this,It).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Mt).close(),t(this,z).close(),t(this,ot).close(),t(this,lt).close(),t(this,J).close(),t(this,Ft).close(),t(this,ct).close(),t(this,ut).close(),t(this,at).close(),t(this,w).close(),t(this,H).close(),t(this,_).close(),t(this,Q).close(),t(this,X).close(),t(this,U).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,re)+t(this,Ye)}getStart(){return t(this,Tt)-t(this,Ye)}}te=new WeakMap,ee=new WeakMap,se=new WeakMap,ie=new WeakMap,kt=new WeakMap,Rt=new WeakMap,At=new WeakMap,It=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Mt=new WeakMap,z=new WeakMap,ot=new WeakMap,lt=new WeakMap,J=new WeakMap,Ft=new WeakMap,Ve=new WeakMap,ct=new WeakMap,ut=new WeakMap,at=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,Q=new WeakMap,X=new WeakMap,U=new WeakMap,Xe=new WeakMap,m=new WeakMap,Tt=new WeakMap,re=new WeakMap,Ye=new WeakMap,x=new WeakMap,dt=new WeakMap,M=new WeakMap,A=new WeakMap,G=new WeakMap,ke=new WeakMap,Ot=new WeakMap,y=new WeakMap,ne=new WeakMap,b=new WeakSet,ei=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Ot,!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)},si=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Ot,!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)},ii=function(){t(this,w).current=!0,t(this,_).current=!0,t(this,Q).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},ri=function(){t(this,w).current=!0,t(this,X).current=!0,t(this,U).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ni=function(){t(this,H).current=!0,t(this,Q).current=!0,t(this,_).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},hi=function(){t(this,H).current=!0,t(this,U).current=!0,t(this,X).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ts=new WeakMap,Re=new WeakMap,Ms=function(){const e=t(this,x)[t(this,Ve).current];this.setVar(t(this,ot).current,e),r(this,dt,e/t(this,A)||0),this.setVar(t(this,lt).current,t(this,dt)),t(this,J).current&&this.setVar(t(this,J).current,this.progressArc)},ae=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)},oi=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},li=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Fs=function(){o(this,b,oi).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Mt).current,t(this,z).current),o(this,b,li).call(this,t(this,ot).current,t(this,lt).current,t(this,J).current,t(this,ct).current,t(this,ut).current,t(this,at).current)};Z.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ti);class ci extends Os{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?tt.getCumulativeOffsetTop(this):tt.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}Z.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",ci);var Cs;const Ds=class Ds extends ys{constructor(){super(...arguments);i(this,Cs,()=>{this.textContent=`${this.scrollElement.counter.current+1}`})}connectedCallback(){return Ws(this,null,function*(){_s(Ds.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,Cs))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,Cs))}};Cs=new WeakMap;let Ls=Ds;Z.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Ls);exports.ScrollBulletButtonsElement=Ys;exports.ScrollCounterElement=Ls;exports.ScrollElement=xs;exports.ScrollSectionButtonElement=ci;exports.ScrollSegmentElement=ti;exports.ScrollSetButtonElement=Qs;exports.ScrollStepButtonElement=Xs;exports.ScrollbarElement=Js;
|
|
1
|
+
"use strict";var ui=Object.defineProperty;var qs=Object.getOwnPropertySymbols,ai=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,pi=Reflect.get;var $s=a=>{throw TypeError(a)};var Bs=(a,h,e)=>h in a?ui(a,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[h]=e,Hs=(a,h)=>{for(var e in h||(h={}))di.call(h,e)&&Bs(a,e,h[e]);if(qs)for(var e of qs(h))Si.call(h,e)&&Bs(a,e,h[e]);return a};var zs=(a,h,e)=>h.has(a)||$s("Cannot "+e);var t=(a,h,e)=>(zs(a,h,"read from private field"),e?e.call(a):h.get(a)),i=(a,h,e)=>h.has(a)?$s("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(a):h.set(a,e),r=(a,h,e,s)=>(zs(a,h,"write to private field"),s?s.call(a,e):h.set(a,e),e),o=(a,h,e)=>(zs(a,h,"access private method"),e);var _s=(a,h,e)=>pi(ai(a),e,h);var Ws=(a,h,e)=>new Promise((s,n)=>{var u=v=>{try{y(e.next(v))}catch(le){n(le)}},g=v=>{try{y(e.throw(v))}catch(le){n(le)}},y=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);y((e=e.apply(a,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("../Store-Cd1GlEmZ.cjs"),K=require("../index-DekP7OZe.cjs"),fi=require("../easings-GegIwET5.cjs"),bi=require("../element-yhcBhsho.cjs"),tt=require("../events-KVanG9sR.cjs"),ws=require("../function-MthRj-GJ.cjs"),et=require("../layout-Ctc2p3uz.cjs"),Ts=require("../math-GDWEqu7y.cjs"),Us=require("../number-ChAm68cm.cjs"),Gs=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Me=require("../order/index.cjs"),Zs=require("../Damped-z9Uaw2MJ.cjs"),mi=require("../Tweened-mvHucL4Y.cjs"),vs=require("../DragControls-CfE2oPAi.cjs"),he=require("../window-resizer/index.cjs"),oe=require("../scroll-entries/index.cjs"),Ns=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),gi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const ns=require("../element-resizer/index.cjs"),yi=require("../gestures-C7gbKx11.cjs"),Ci=require("../dom-JBOkFLTh.cjs");var p,Fe,E,hs,os,de,pt,Dt,Se,pe,ss;class vi{constructor(h,e,s){i(this,pe);i(this,p);i(this,Fe);i(this,E);i(this,hs,0);i(this,os,0);i(this,de,0);i(this,pt,0);i(this,Dt,null);i(this,Se,0);r(this,p,h),r(this,Fe,e),r(this,E,s),oe.scrollEntries.register(t(this,p)),this.setIndex(t(this,Fe))}get element(){return t(this,p)}get index(){return t(this,Fe)}get size(){return t(this,de)}get width(){return t(this,hs)}get height(){return t(this,os)}get position(){return t(this,pt)}get transformPosition(){return t(this,Se)}destroy(){oe.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.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,hs,t(this,p).offsetWidth),r(this,os,t(this,p).offsetHeight),r(this,de,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,pt,t(this,E).vertical?et.getCumulativeOffsetTop(t(this,p)):et.getCumulativeOffsetLeft(t(this,p))),r(this,pt,t(this,pt)-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,pt)+t(this,de)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),oe.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,pt)-t(this,E).viewportSize-s,g=t(this,pt)+t(this,de)+s,y=Us.preciseNumber(Ts.clamp(n,u,g),3);r(this,Se,y*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,Se)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,Se)}px, 0px, 0px)`}setMark(h){t(this,Dt)!==h&&(t(this,Dt)&&t(this,p).classList.remove(t(this,Dt)),h&&t(this,p).classList.add(h),r(this,Dt,h),tt.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,Dt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,pe,ss).call(this,"index",h)}setCurrentIndex(h){o(this,pe,ss).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,pe,ss).call(this,"current-index-arc",h)}setCurrentIndexArcAbs(h){o(this,pe,ss).call(this,"current-index-arc-abs",h)}}p=new WeakMap,Fe=new WeakMap,E=new WeakMap,hs=new WeakMap,os=new WeakMap,de=new WeakMap,pt=new WeakMap,Dt=new WeakMap,Se=new WeakMap,pe=new WeakSet,ss=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 Pi=Gs.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,fe,F,qt,ft,bt,mt,st,Bt,$t,gt,Ht,be,it,V,me,ge,ye,Ce,Te,ve,j,Pe,_t,J,Wt,yt,Ee,Nt,we,Ut,Gt,Zt,f,Oe,W,d,ls,cs,L,P,N,rt,Kt,nt,I,T,De,Ct,vt,Pt,U,qe,jt,Et,xe,ht,k,Be,wt,Le,$e,c,Vs,is,Ie,Ps,Es,ks,Rs,O,us,Ks,He,as,As,Is,ue,js,ds,rs,Ss;class xs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,fe,new l.CSSProperty(this,"--controls",!0));i(this,F,new l.CSSProperty(this,"--axis","y"));i(this,qt,new l.CSSProperty(this,"--reverse",!1));i(this,ft,new l.CSSProperty(this,"--direction",0));i(this,bt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,mt,new l.CSSProperty(this,"--split",!1));i(this,st,new l.CSSProperty(this,"--sectional",!1));i(this,Bt,new l.CSSProperty(this,"--tween-easing",!1));i(this,$t,new l.CSSProperty(this,"--tween-duration",!1));i(this,gt,new l.CSSProperty(this,"--auto-size",!1));i(this,Ht,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,be,new l.CSSProperty(this,"--drag-inertion",1));i(this,it,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,me,new l.CSSProperty(this,"--damping",20));i(this,ge,new l.CSSProperty(this,"--mass",0));i(this,ye,new l.CSSProperty(this,"--stiffness",0));i(this,Ce,new l.CSSProperty(this,"--mouse-drag",!1));i(this,Te,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,ve,new l.CSSProperty(this,"--start-section",0));i(this,j,new l.CSSProperty(this,"--autoplay",0));i(this,Pe,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,_t,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,J,new l.CSSProperty(this,"--classes",!1));i(this,Wt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,yt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,Ee,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Nt,new l.CSSProperty(this,"--focus-delay",0));i(this,we,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Ut,new l.CSSProperty(this,"--disabled",!1));i(this,Gt,new l.CSSProperty(this,"--hibernate",!1));i(this,Zt,null);i(this,f,null);i(this,Oe,null);i(this,W,[]);i(this,d,[]);i(this,ls,0);i(this,cs,0);i(this,L,0);i(this,P,0);i(this,N,0);i(this,rt,null);i(this,Kt,null);i(this,nt,null);i(this,I,null);i(this,T,new ce.Store(0));i(this,De,0);i(this,Ct,0);i(this,vt,!1);i(this,Pt,!0);i(this,U,!0);i(this,qe);i(this,jt);i(this,Et,new mi.Tweened);i(this,xe,!1);i(this,ht,null);i(this,k,!1);i(this,Be,null);i(this,wt,[]);i(this,Le,!1);i(this,$e);i(this,O,e=>{if(e&&t(this,Le)){r(this,Le,!1);return}this.resize()});i(this,us,()=>{if(!t(this,vt)||t(this,U)||t(this,Pt))return;const e=this.currentScrollValue;if(r(this,De,Math.max(0,e-t(this,P))),t(this,d).length){for(let s=0;s<t(this,W).length;s++)t(this,W)[s].transform();t(this,T).current=o(this,c,rs).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,js).call(this),oe.scrollEntries.update(this,t(this,F).current,e)});i(this,He,(e,s)=>{t(this,fe).current&&(o(this,c,As).call(this,Math.sign(s)||1),t(this,as).call(this,e,s))});i(this,as,(e,s)=>{if(t(this,ft).current){if(t(this,ft).current<0&&s>0)return;if(t(this,ft).current>0&&s<0)return}if(t(this,jt)||t(this,Et).unlistenAnimationFrame(),!t(this,j).current&&t(this,Nt).current&&(clearInterval(t(this,qe)),r(this,qe,setTimeout(()=>{const n=t(this,d)[o(this,c,rs).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,we).current,easing:fi.easeInOutExpo}})},t(this,Nt).current))),!(e.includes("drag")&&!gi.device.isTouch&&!t(this,Ce).current)){if(t(this,st).current&&e!=="drag"){const n=Math.sign(s);if(t(this,d).length){const u={tween:t(this,Bt).current||t(this,$t).current?{easing:t(this,Bt).current||"easeInOutCubic",duration:t(this,$t).current||500}:void 0};t(this,xe)?this.scrollToSection(o(this,c,rs).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,xe,e==="drag")}});i(this,ds,ws.debounce(()=>{const e=t(this,wt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,$e)),r(this,Le,!0),this.style.setProperty("--max-section-size",""),r(this,$e,setTimeout(()=>{r(this,Le,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ss,()=>{r(this,k,!0),this.hibernatedCSSProperty.current||o(this,c,Rs).call(this)});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Pi];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Zt,document.createElement("div")),t(this,Zt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Oe,document.createElement("slot")),t(this,f).appendChild(t(this,Oe)),t(this,Zt).appendChild(t(this,f)),e.appendChild(t(this,Zt)),r(this,Be,new MutationObserver(ws.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,fe)}get axisCSSProperty(){return t(this,F)}get reverseCSSProperty(){return t(this,qt)}get directionCSSProperty(){return t(this,ft)}get pagesCSSProperty(){return t(this,bt)}get splitCSSProperty(){return t(this,mt)}get sectionalCSSProperty(){return t(this,st)}get easingCSSProperty(){return t(this,Bt)}get durationCSSProperty(){return t(this,$t)}get autoSizeCSSProperty(){return t(this,gt)}get wheelMaxDeltaCSSProperty(){return t(this,Ht)}get dragInertionCSSProperty(){return t(this,be)}get sectionsInViewCSSProperty(){return t(this,it)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,me)}get massCSSProperty(){return t(this,ge)}get stiffnessCSSProperty(){return t(this,ye)}get mouseDragCSSProperty(){return t(this,Ce)}get sectionDistanceScaleCSSProperty(){return t(this,Te)}get startSectionCSSProperty(){return t(this,ve)}get autoplayCSSProperty(){return t(this,j)}get autoplayPauseDurationCSSProperty(){return t(this,Pe)}get autoplayUserDirectionCSSProperty(){return t(this,_t)}get classesCSSProperty(){return t(this,J)}get currentIndexStartOffsetCSSProperty(){return t(this,Wt)}get currentIndexEndOffsetCSSProperty(){return t(this,yt)}get shiftSectionPositionCSSProperty(){return t(this,Ee)}get focusDelayCSSProperty(){return t(this,Nt)}get focusDurationCSSProperty(){return t(this,we)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Gt)}get currentScrollValue(){return o(this,c,Is).call(this,"current")}get targetScrollValue(){return o(this,c,Is).call(this,"target")}get contentWrapperElement(){return t(this,Zt)}get contentElement(){return t(this,f)}get sections(){return t(this,W)}get visibleSections(){return t(this,d)}get position(){return t(this,ls)}get contentPosition(){return t(this,cs)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,N)}get counter(){return t(this,T)}get limit(){return Math.ceil(t(this,d).length-t(this,it).current)}get distance(){return t(this,Ct)}get loopDistance(){return t(this,V).current?t(this,Ct)+t(this,N):t(this,Ct)}get hasOverflow(){return t(this,vt)}get overscroll(){return t(this,De)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,F).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,F).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,F).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,U)&&(t(this,V).current||t(this,mt).current||t(this,V).current||t(this,gt).current||t(this,st).current)&&o(this,c,is).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,d).length||t(this,U))return;const n=t(this,T).current,u=o(this,c,Ks).call(this,e),g=t(this,d)[n],y=t(this,d)[u];if(g&&y){let v=0;const le=o(this,c,rs).call(this),Ae=t(this,d)[le];let es=Ae?this.targetScrollValue-Ae.position:0;t(this,V).current?u===0&&n===t(this,d).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,N),t(this,xe)||(es=0)):u===t(this,d).length-1&&n===0?v=y.position-(t(this,P)+t(this,L)+t(this,N)):v=y.position-g.position:v=y.position-g.position,this.shiftPosition(v-es,s)}}shiftSections(e,s){t(this,d).length&&this.scrollToSection(t(this,T).current+e,s)}setPosition(e,s){t(this,U)||(o(this,c,As).call(this,Math.sign(e)||1),s!=null&&s.tween?t(this,jt)||(t(this,Et).set(t(this,S).current,{equalize:!0}),t(this,Et).set(Math.min(e,this.distance),Hs({},s.tween)),r(this,jt,setTimeout(()=>{r(this,jt,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,Gt).current)return;r(this,d,t(this,W).filter(n=>bi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,d).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,T).current;if(r(this,ls,this.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this)),r(this,cs,this.vertical?et.getCumulativeOffsetTop(t(this,f)):et.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,gt).current&&t(this,d).length){const n=t(this,it).current,u=(t(this,L)-t(this,N)*(n-1))/n;t(this,d).forEach(g=>{g.setSize(u)})}else t(this,d).forEach(n=>{n.setSize()});if(t(this,d).forEach(n=>{n.resize()}),t(this,bt).current){r(this,P,t(this,L)*t(this,bt).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,d).length){const n=t(this,d)[t(this,d).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Ct,n.position+n.size+g)}else r(this,Ct,t(this,P));if(t(this,st).current&&t(this,d).length){const n=t(this,d)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,vt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,vt)),t(this,vt)?t(this,Ut).current||o(this,c,Es).call(this):o(this,c,Ps).call(this),t(this,ds).call(this),tt.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){oe.scrollEntries.register(this),r(this,S,new Zs.Damped(0,{damping:.01,min:0,order:Me.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new vs.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,He)),r(this,Kt,new vs.KeyboardControls({element:this})),t(this,Kt).changeEvent.subscribe(t(this,He)),r(this,nt,new vs.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,He)),r(this,I,new vs.AutoplayControls({culling:this})),t(this,I).changeEvent.subscribe(t(this,as)),t(this,F).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,qt).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,Ht).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,F).current}),t(this,be).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,bt).subscribe(()=>{t(this,k)&&t(this,O).call(this)}),t(this,mt).subscribe(({current:e})=>{t(this,k)&&(e?o(this,c,is).call(this):o(this,c,Ie).call(this))}),t(this,st).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,I).interval=e.current,t(this,k)&&(e.current&&!e.previous&&!t(this,d).length?o(this,c,is).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,gt).subscribe(e=>{t(this,k)&&(t(this,O).call(this),e.current&&!e.previous&&!t(this,d).length?o(this,c,is).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,it).subscribe(e=>{t(this,k)&&(t(this,O).call(this),o(this,c,ue).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,k)&&(t(this,d).length||(t(this,mt).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,De,0),t(this,S).max=t(this,P),t(this,S).min=0)}),t(this,me).subscribe(e=>{t(this,S).damping=e.current}),t(this,ge).subscribe(e=>{t(this,S).mass=e.current}),t(this,ye).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,j).subscribe(e=>{t(this,I).speed=e.current,!t(this,Pt)&&e.current&&!e.previous?t(this,I).connect():!e.current&&e.previous&&t(this,I).disconnect()}),t(this,_t).subscribe(e=>{e.current||(t(this,I).direction=1)}),t(this,J).subscribe(e=>{t(this,k)&&o(this,c,ue).call(this)}),t(this,Wt).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,yt).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,Ee).subscribe(e=>{t(this,k)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,T).subscribe(e=>{t(this,U)||(t(this,d).length&&o(this,c,ue).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Et).subscribe(e=>{t(this,Et).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,Ps).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,Es).call(this))}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,ks).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Rs).call(this))}),t(this,fe).observe(),t(this,F).observe(),t(this,qt).observe(),t(this,ft).observe(),t(this,bt).observe(),t(this,mt).observe(),t(this,st).observe(),t(this,Bt).observe(),t(this,$t).observe(),t(this,gt).observe(),t(this,Ht).observe(),t(this,be).observe(),t(this,it).observe(),t(this,V).observe(),t(this,me).observe(),t(this,ge).observe(),t(this,ye).observe(),t(this,Ce).observe(),t(this,Te).observe(),t(this,ve).observe(),t(this,j).observe(),t(this,j).observe(),t(this,Pe).observe(),t(this,_t).observe(),t(this,J).observe(),t(this,Wt).observe(),t(this,yt).observe(),t(this,Ee).observe(),t(this,Nt).observe(),t(this,we).observe(),t(this,Ut).observe(),t(this,Gt).observe(),he.windowResizer.subscribe(t(this,Ss),Me.RESIZE_ORDER.LAST),ns.elementResizer.subscribe(this,t(this,O)),t(this,Be).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,fe).unobserve(),t(this,F).unobserve(),t(this,qt).unobserve(),t(this,ft).unobserve(),t(this,bt).unobserve(),t(this,mt).unobserve(),t(this,st).unobserve(),t(this,Bt).unobserve(),t(this,$t).unobserve(),t(this,gt).unobserve(),t(this,Ht).unobserve(),t(this,be).unobserve(),t(this,it).unobserve(),t(this,V).unobserve(),t(this,me).unobserve(),t(this,ge).unobserve(),t(this,ye).unobserve(),t(this,Ce).unobserve(),t(this,Te).unobserve(),t(this,ve).unobserve(),t(this,j).unobserve(),t(this,Pe).unobserve(),t(this,_t).unobserve(),t(this,J).unobserve(),t(this,Wt).unobserve(),t(this,yt).unobserve(),t(this,Ee).unobserve(),t(this,Nt).unobserve(),t(this,we).unobserve(),t(this,Ut).unobserve(),t(this,Gt).unobserve(),he.windowResizer.unsubscribe(t(this,Ss)),ns.elementResizer.unsubscribe(t(this,O)),o(this,c,ks).call(this),t(this,Be).disconnect()}}S=new WeakMap,fe=new WeakMap,F=new WeakMap,qt=new WeakMap,ft=new WeakMap,bt=new WeakMap,mt=new WeakMap,st=new WeakMap,Bt=new WeakMap,$t=new WeakMap,gt=new WeakMap,Ht=new WeakMap,be=new WeakMap,it=new WeakMap,V=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=new WeakMap,Ce=new WeakMap,Te=new WeakMap,ve=new WeakMap,j=new WeakMap,Pe=new WeakMap,_t=new WeakMap,J=new WeakMap,Wt=new WeakMap,yt=new WeakMap,Ee=new WeakMap,Nt=new WeakMap,we=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,Zt=new WeakMap,f=new WeakMap,Oe=new WeakMap,W=new WeakMap,d=new WeakMap,ls=new WeakMap,cs=new WeakMap,L=new WeakMap,P=new WeakMap,N=new WeakMap,rt=new WeakMap,Kt=new WeakMap,nt=new WeakMap,I=new WeakMap,T=new WeakMap,De=new WeakMap,Ct=new WeakMap,vt=new WeakMap,Pt=new WeakMap,U=new WeakMap,qe=new WeakMap,jt=new WeakMap,Et=new WeakMap,xe=new WeakMap,ht=new WeakMap,k=new WeakMap,Be=new WeakMap,wt=new WeakMap,Le=new WeakMap,$e=new WeakMap,c=new WeakSet,Vs=function(){const e=t(this,F).current,s=t(this,qt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,Ht).current?"max":e,t(this,Kt).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,k)&&t(this,O).call(this)},is=function(){o(this,c,Ie).call(this),t(this,Oe).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,W).push(new vi(e,s,this))}),r(this,d,[...t(this,W)]),t(this,f).style.transform="",tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,O).call(this),o(this,c,ue).call(this)},Ie=function(){t(this,W).forEach(e=>{e.destroy()}),r(this,W,[]),r(this,d,[]),t(this,T).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Ps=function(){t(this,Pt)||(r(this,Pt,!0),t(this,S).unsubscribe(t(this,us)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,qe)),clearInterval(t(this,jt)),t(this,Et).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Kt).disconnect(),t(this,nt).disconnect(),t(this,I).disconnect(),t(this,vt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,O).call(this)))},Es=function(){t(this,Pt)&&(r(this,Pt,!1),t(this,S).subscribe(t(this,us),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Kt).connect(),t(this,nt).connect(),t(this,j).current&&t(this,I).connect())},ks=function(){t(this,U)||(r(this,U,!0),clearTimeout(t(this,$e)),he.windowResizer.unsubscribe(t(this,O)),o(this,c,Ps).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,W).length?o(this,c,Ie).call(this):(t(this,T).reset(),t(this,S).reset()),oe.scrollEntries.unregister(this))},Rs=function(){t(this,U)&&(r(this,U,!1),oe.scrollEntries.register(this),this.tryResplit(),o(this,c,Es).call(this),this.scrollToSection(t(this,ve).current,{behaviour:"instant"}),he.windowResizer.subscribe(t(this,O),Me.RESIZE_ORDER.SCROLL))},O=new WeakMap,us=new WeakMap,Ks=function(e){let s=t(this,T).current;return t(this,V).current?s=Us.loopNumber(e,t(this,d).length):s=Ts.clamp(e,0,this.limit),s},He=new WeakMap,as=new WeakMap,As=function(e=1){t(this,_t).current&&(t(this,I).direction=e),t(this,j).current&&t(this,I).pauseAndContinue(t(this,Pe).current,this.sectionalCSSProperty.current)},Is=function(e="current"){if(t(this,V).current&&t(this,d).length){const s=t(this,S)[e]%Math.round(t(this,P)+t(this,L)+t(this,N));return s<0?t(this,P)+s+t(this,L)+t(this,N):s}else return t(this,S)[e]},ue=function(){if(t(this,d).length){const e=t(this,T).current+t(this,Wt).current;if(e===0?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),tt.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,J).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,it).current+t(this,yt).current;r(this,wt,[]),t(this,d).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,yt).current,y=e+s,v=this.sections.length-y;u>=e&&u<y||u<=g?(n.setMark("current"),t(this,wt).push(n)):u>=y&&u<y+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,ds).call(this)}}},js=function(){if(t(this,J).current){const e=Math.floor(t(this,wt).length/2);t(this,wt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,wt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)})}},ds=new WeakMap,rs=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let y=0;y<t(this,d).length;y++){const v=t(this,d)[y];let le=t(this,xe)?v.size*g*-1*.4:0,Ae=v.position;this.overscroll&&Ae===0&&e&&(Ae=t(this,Ct));let es=Math.abs(Ae+le-s);es<=n&&(n=es,u=y)}return u},Ss=new WeakMap;K.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",xs);var ps;class Cs extends HTMLElement{constructor(){super(...arguments);i(this,ps,null)}get scrollElement(){return t(this,ps)}connectedCallback(){const e=Ci.findParentElement(this,xs);e instanceof xs?r(this,ps,e):console.error(this,"e-scroll not found")}}ps=new WeakMap;var Jt,D,xt,Lt,_e,We,Qt,Ne,fs,bs;class Js extends Cs{constructor(){super();i(this,Jt,null);i(this,D,null);i(this,xt,!1);i(this,Lt,0);i(this,_e,0);i(this,We,0);i(this,Qt,()=>{r(this,xt,this.offsetWidth>this.offsetHeight);const e=t(this,xt)?this.offsetWidth:this.offsetHeight;r(this,Lt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Lt,Math.max(t(this,Lt),30)),t(this,xt)?(t(this,D).style.width=t(this,Lt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,Lt)+"px"),r(this,_e,e-t(this,Lt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ne).call(this)});i(this,Ne,()=>{r(this,We,this.scrollElement.currentProgress*t(this,_e)),t(this,xt)?t(this,D).style.transform=`translate3d(${t(this,We)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,We)}px, 0px)`});i(this,fs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,bs,e=>{document.documentElement.classList.add("grabbing"),yi.setupDrag(u=>{const g=t(this,xt)?u.x:u.y,y=this.scrollElement.distance/t(this,_e),v=(g-n)*y;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,xt)?e.x:e.y});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Gs.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,Jt,document.createElement("slot")),t(this,Jt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Jt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Jt).assignedElements()[0]||t(this,Jt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,bs)),he.windowResizer.subscribe(t(this,Qt),Me.RESIZE_ORDER.SCROLL),ns.elementResizer.subscribe(this,t(this,Qt)),ns.elementResizer.subscribe(this.scrollElement,t(this,Qt)),this.scrollElement.onScroll(t(this,Ne)),this.scrollElement.axisCSSProperty.subscribe(t(this,fs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,bs)),he.windowResizer.unsubscribe(t(this,Qt)),ns.elementResizer.unsubscribe(t(this,Qt)),this.scrollElement.offScroll(t(this,Ne)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,fs))}}Jt=new WeakMap,D=new WeakMap,xt=new WeakMap,Lt=new WeakMap,_e=new WeakMap,We=new WeakMap,Qt=new WeakMap,Ne=new WeakMap,fs=new WeakMap,bs=new WeakMap;K.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",Js);var Ue,Ge,Ze;class Os extends Cs{constructor(){super();i(this,Ue,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Ge,new l.CSSProperty(this,"--tween-easing",!1));i(this,Ze,new l.CSSProperty(this,"--tween-duration",0));K.isBrowser&&this.addEventListener("click",()=>{const e=t(this,Ue).current,s=t(this,Ge).current,n=t(this,Ze).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,Ue).observe(),t(this,Ge).observe(),t(this,Ze).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,Ue).close(),t(this,Ge).close(),t(this,Ze).close()}}Ue=new WeakMap,Ge=new WeakMap,Ze=new WeakMap;var Ke;class Qs extends Os{constructor(){super(...arguments);i(this,Ke,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Ke).current,e)}connectedCallback(){super.connectedCallback(),t(this,Ke).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Ke).close()}}Ke=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",Qs);var zt,je;class Xs extends Os{constructor(){super(...arguments);i(this,zt,new l.CSSProperty(this,"--step",1));i(this,je,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,zt).current>0&&this.scrollElement.scrollLine==="end"||t(this,zt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,zt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,zt).subscribe(()=>{t(this,je).call(this)}),t(this,zt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,je)),t(this,je).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,zt).close(),this.removeAttribute("disabled")}}zt=new WeakMap,je=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",Xs);var ot,Xt,Je,ms,gs,Qe;class Ei{constructor(h,e,s){i(this,ot,null);i(this,Xt,null);i(this,Je,null);i(this,ms,null);i(this,gs,()=>{t(this,Xt).scrollToSection(t(this,Je),{behaviour:t(this,ms)})});i(this,Qe,()=>{t(this,ot).classList.toggle("current",t(this,Xt).counter.current===t(this,Je))});K.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,Xt,h),r(this,ms,s),r(this,Je,e),t(this,ot).addEventListener("click",t(this,gs)),t(this,Xt).counter.subscribe(t(this,Qe)),t(this,Qe).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,gs)),t(this,Xt).counter.unsubscribe(t(this,Qe)),t(this,ot).remove()}}ot=new WeakMap,Xt=new WeakMap,Je=new WeakMap,ms=new WeakMap,gs=new WeakMap,Qe=new WeakMap;var ze,Yt,Vt;class Ys extends Cs{constructor(){super(...arguments);i(this,ze,null);i(this,Yt,[]);i(this,Vt,ws.debounce(()=>{t(this,Yt).forEach(s=>s.destroy()),r(this,Yt,[]);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 Ei(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ze).appendChild(n.element),t(this,Yt).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",this.scrollElement.addEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.subscribe(t(this,Vt)),r(this,ze,document.createElement("div")),this.appendChild(t(this,ze))}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,Vt)),t(this,Yt).forEach(e=>e.destroy()),r(this,Yt,[]),t(this,ze).remove()}}ze=new WeakMap,Yt=new WeakMap,Vt=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",Ys);var te,ee,se,ie,kt,Rt,At,It,R,q,B,$,Mt,z,lt,ct,Q,Ft,Ve,ut,at,dt,w,H,_,X,Y,G,Xe,m,Tt,re,Ye,x,St,M,A,Z,ke,Ot,C,ne,b,ei,si,ii,ri,ni,hi,ts,Re,Ms,ae,oi,li,Fs;class ti extends Cs{constructor(){super(...arguments);i(this,b);i(this,te);i(this,ee);i(this,se);i(this,ie);i(this,kt);i(this,Rt);i(this,At);i(this,It);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Mt);i(this,z);i(this,lt);i(this,ct);i(this,Q);i(this,Ft);i(this,Ve);i(this,ut);i(this,at);i(this,dt);i(this,w);i(this,H);i(this,_);i(this,X);i(this,Y);i(this,G);i(this,Xe);i(this,m);i(this,Tt);i(this,re);i(this,Ye);i(this,x);i(this,St);i(this,M);i(this,A);i(this,Z);i(this,ke);i(this,Ot);i(this,C);i(this,ne);i(this,ts);i(this,Re);r(this,te,new l.CSSProperty(this,"--damping",20)),r(this,ee,new l.CSSProperty(this,"--mass",0)),r(this,se,new l.CSSProperty(this,"--stiffness",0)),r(this,ie,new l.CSSProperty(this,"--target","")),r(this,kt,new l.CSSProperty(this,"--disabled",!1)),r(this,Rt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,At,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,It,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,Mt,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,lt,new l.CSSProperty(this,"--passed-var","")),r(this,ct,new l.CSSProperty(this,"--progress-var","")),r(this,Q,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Ft,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ve,new l.CSSProperty(this,"--animation-var-type","target")),r(this,ut,new l.CSSProperty(this,"--distance-var","")),r(this,at,new l.CSSProperty(this,"--start-var","")),r(this,dt,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ce.Store(!1)),r(this,H,new ce.Store(!1)),r(this,_,new ce.Store(!1)),r(this,X,new ce.Store(!1)),r(this,Y,new ce.Store(!1)),r(this,G,new ce.Store(!1)),r(this,Xe,[]),r(this,m,this),r(this,Tt,0),r(this,re,0),r(this,Ye,0),r(this,x,new Zs.Damped(0,{order:Me.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,St,0),r(this,M,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),r(this,Ot,!1),r(this,C,!0),r(this,ne,!1),this.resize=()=>{r(this,re,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Tt,this.scrollElement.vertical?et.getCumulativeOffsetTop(this,this.scrollElement):et.getCumulativeOffsetLeft(this,this.scrollElement));const e=et.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Tt,t(this,Tt)-e),r(this,M,this.getStart()),r(this,A,this.getDistance()),r(this,M,t(this,M)+t(this,At).current),r(this,A,t(this,A)+t(this,Rt).current),r(this,Z,t(this,M)+t(this,A)),this.scrollElement.currentScrollValue>t(this,Z)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,at).current,t(this,M)),this.setVar(t(this,dt).current,t(this,Z)),this.setVar(t(this,ut).current,t(this,A)),t(this,x).max=t(this,A),r(this,ke,!0),t(this,Re).call(this)},this.findAnotherScrollEntries=ws.debounce(()=>{const e=oe.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,Xe,e.slice(s+1)),this.tick()},0),r(this,ts,()=>{t(this,C)||this.resize()}),r(this,Re,()=>{!t(this,C)&&t(this,ke)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Rt)}get startOffsetCSSProperty(){return t(this,At)}get captureOnceCSSProperty(){return t(this,It)}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,Mt)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,lt)}get progressVarCSSProperty(){return t(this,ct)}get progressArcVarCSSProperty(){return t(this,Q)}get progressArcMultCSSProperty(){return t(this,Ft)}get animationVarTypeCSSProperty(){return t(this,Ve)}get distanceVarCSSProperty(){return t(this,ut)}get startVarCSSProperty(){return t(this,at)}get finishVarCSSProperty(){return t(this,dt)}get disabledCSSProperty(){return t(this,kt)}get dampingCSSProperty(){return t(this,te)}get massCSSProperty(){return t(this,ee)}get stiffnessCSSProperty(){return t(this,se)}get targetCSSProperty(){return t(this,ie)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,_)}get isReleasedFromStart(){return t(this,X)}get isCapturedFromFinish(){return t(this,Y)}get isReleasedFromFinish(){return t(this,G)}get directionPosition(){return t(this,Tt)}get directionSize(){return t(this,re)}get passed(){return t(this,x)}get progress(){return t(this,St)}get progressArc(){return Math.abs(Math.cos(t(this,St)*Math.PI))*t(this,Ft).current}get start(){return t(this,M)}get finish(){return t(this,Z)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Ot)}get isDisabled(){return t(this,C)}tick(){let e=this.scrollElement.currentScrollValue;t(this,Xe).forEach(u=>{e+=u.value});const s=e-t(this,M);t(this,ne)||r(this,ne,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,M)?t(this,_).current||o(this,b,ii).call(this):t(this,_).current&&!t(this,X).current&&o(this,b,ni).call(this),n<t(this,Z)?t(this,G).current&&!t(this,Y).current&&o(this,b,ri).call(this):t(this,_).current&&!t(this,G).current&&o(this,b,hi).call(this)),n>=t(this,M)&&n<t(this,Z)?t(this,w).current||o(this,b,ei).call(this):t(this,w).current&&(t(this,x).set(Ts.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,si).call(this)),t(this,Ot)&&t(this,It).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,C,!0))}disable(){this.style.cssText="",r(this,Tt,0),r(this,re,0),t(this,x).reset(),r(this,St,0),r(this,M,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,_).current=!1,t(this,X).current=!1,t(this,Y).current=!1,t(this,G).current=!1,r(this,Ot,!1),r(this,C,!0),o(this,b,Fs).call(this)}enable(){r(this,C,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,_).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,Y).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,X).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,G).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,te).observe(),t(this,ee).observe(),t(this,se).observe(),t(this,ie).observe(),t(this,kt).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Mt).observe(),t(this,z).observe(),t(this,lt).observe(),t(this,ct).observe(),t(this,Q).observe(),t(this,Ft).observe(),t(this,Ve).observe(),t(this,ut).observe(),t(this,at).observe(),t(this,dt).observe();let e=!1;this.findAnotherScrollEntries(),t(this,kt).current||this.enable(),t(this,te).subscribe(s=>{t(this,x).damping=s.current}),t(this,ee).subscribe(s=>{t(this,x).mass=s.current}),t(this,se).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,ie).subscribe(s=>{s.previous&&o(this,b,Fs).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,kt).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,At).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,Rt).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,Mt).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,It).subscribe(s=>{t(this,C)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,lt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ct).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,St)))}),t(this,Q).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Ft).subscribe(s=>{t(this,C)||o(this,b,Ms).call(this)}),t(this,at).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,M)))}),t(this,dt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,Z)))}),t(this,ut).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,ne)){r(this,ne,!1);return}o(this,b,Ms).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),he.windowResizer.subscribe(t(this,ts),Me.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Re)),e=!0}disconnectedCallback(){he.windowResizer.unsubscribe(t(this,ts)),this.scrollElement.offScroll(t(this,Re)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,te).close(),t(this,ee).close(),t(this,se).close(),t(this,ie).close(),t(this,kt).close(),t(this,Rt).close(),t(this,At).close(),t(this,It).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Mt).close(),t(this,z).close(),t(this,lt).close(),t(this,ct).close(),t(this,Q).close(),t(this,Ft).close(),t(this,ut).close(),t(this,at).close(),t(this,dt).close(),t(this,w).close(),t(this,H).close(),t(this,_).close(),t(this,X).close(),t(this,Y).close(),t(this,G).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,re)+t(this,Ye)}getStart(){return t(this,Tt)-t(this,Ye)}}te=new WeakMap,ee=new WeakMap,se=new WeakMap,ie=new WeakMap,kt=new WeakMap,Rt=new WeakMap,At=new WeakMap,It=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Mt=new WeakMap,z=new WeakMap,lt=new WeakMap,ct=new WeakMap,Q=new WeakMap,Ft=new WeakMap,Ve=new WeakMap,ut=new WeakMap,at=new WeakMap,dt=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,Xe=new WeakMap,m=new WeakMap,Tt=new WeakMap,re=new WeakMap,Ye=new WeakMap,x=new WeakMap,St=new WeakMap,M=new WeakMap,A=new WeakMap,Z=new WeakMap,ke=new WeakMap,Ot=new WeakMap,C=new WeakMap,ne=new WeakMap,b=new WeakSet,ei=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Ot,!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)},si=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Ot,!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)},ii=function(){t(this,w).current=!0,t(this,_).current=!0,t(this,X).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},ri=function(){t(this,w).current=!0,t(this,Y).current=!0,t(this,G).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ni=function(){t(this,H).current=!0,t(this,X).current=!0,t(this,_).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},hi=function(){t(this,H).current=!0,t(this,G).current=!0,t(this,Y).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ts=new WeakMap,Re=new WeakMap,Ms=function(){const e=t(this,x)[t(this,Ve).current];this.setVar(t(this,lt).current,e),r(this,St,e/t(this,A)||0),this.setVar(t(this,ct).current,t(this,St)),t(this,Q).current&&this.setVar(t(this,Q).current,this.progressArc)},ae=function(e){if(t(this,C)){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)},oi=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},li=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Fs=function(){o(this,b,oi).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Mt).current,t(this,z).current),o(this,b,li).call(this,t(this,lt).current,t(this,ct).current,t(this,Q).current,t(this,ut).current,t(this,at).current,t(this,dt).current)};K.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ti);class ci extends Os{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}K.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",ci);var ys;const Ds=class Ds extends Cs{constructor(){super(...arguments);i(this,ys,()=>{this.textContent=`${this.scrollElement.counter.current+1}`})}connectedCallback(){return Ws(this,null,function*(){_s(Ds.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,ys))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,ys))}};ys=new WeakMap;let Ls=Ds;K.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Ls);exports.ScrollBulletButtonsElement=Ys;exports.ScrollCounterElement=Ls;exports.ScrollElement=xs;exports.ScrollSectionButtonElement=ci;exports.ScrollSegmentElement=ti;exports.ScrollSetButtonElement=Qs;exports.ScrollStepButtonElement=Xs;exports.ScrollbarElement=Js;
|
package/lib/scroll/index.js
CHANGED
|
@@ -31,10 +31,10 @@ var Ns = (a, n, e) => new Promise((s, h) => {
|
|
|
31
31
|
v((e = e.apply(a, n)).next());
|
|
32
32
|
});
|
|
33
33
|
import { S as le } from "../Store-0BVty6AZ.js";
|
|
34
|
-
import { i as
|
|
34
|
+
import { i as _ } from "../index-Bv9zgfdb.js";
|
|
35
35
|
import { q as ci } from "../easings-BEmRlrDd.js";
|
|
36
36
|
import { i as ui } from "../element-CGVl1jA-.js";
|
|
37
|
-
import { d as
|
|
37
|
+
import { d as tt } from "../events-CsVF98U6.js";
|
|
38
38
|
import { d as ws } from "../function-C10DGppn.js";
|
|
39
39
|
import { a as rs, g as hs, c as ai } from "../layout-DpZo-I0y.js";
|
|
40
40
|
import { c as Gs, s as di } from "../math-BOBiC4TN.js";
|
|
@@ -54,7 +54,7 @@ import "construct-style-sheets-polyfill";
|
|
|
54
54
|
import { elementResizer as is } from "../element-resizer/index.js";
|
|
55
55
|
import { s as Ci } from "../gestures-CcXV6fCp.js";
|
|
56
56
|
import { b as Pi } from "../dom-CVWzyXPH.js";
|
|
57
|
-
var p, Me, w, ns, os, ae,
|
|
57
|
+
var p, Me, w, ns, os, ae, ft, Dt, de, fe, ts;
|
|
58
58
|
class wi {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
60
|
i(this, fe);
|
|
@@ -64,7 +64,7 @@ class wi {
|
|
|
64
64
|
i(this, ns, 0);
|
|
65
65
|
i(this, os, 0);
|
|
66
66
|
i(this, ae, 0);
|
|
67
|
-
i(this,
|
|
67
|
+
i(this, ft, 0);
|
|
68
68
|
i(this, Dt, null);
|
|
69
69
|
i(this, de, 0);
|
|
70
70
|
r(this, p, n), r(this, Me, e), r(this, w, s), ne.register(t(this, p)), this.setIndex(t(this, Me));
|
|
@@ -85,7 +85,7 @@ class wi {
|
|
|
85
85
|
return t(this, os);
|
|
86
86
|
}
|
|
87
87
|
get position() {
|
|
88
|
-
return t(this,
|
|
88
|
+
return t(this, ft);
|
|
89
89
|
}
|
|
90
90
|
get transformPosition() {
|
|
91
91
|
return t(this, de);
|
|
@@ -100,22 +100,22 @@ class wi {
|
|
|
100
100
|
n ? (t(this, p).style.setProperty("--size", n + "px"), t(this, w).axisCSSProperty.current === "x" ? (t(this, p).style.width = n + "px", t(this, p).style.height = "") : (t(this, p).style.height = n + "px", t(this, p).style.width = "")) : (t(this, p).style.width = "", t(this, p).style.height = "", t(this, p).style.removeProperty("--size"));
|
|
101
101
|
}
|
|
102
102
|
resize() {
|
|
103
|
-
r(this, ns, t(this, p).offsetWidth), r(this, os, t(this, p).offsetHeight), r(this, ae, t(this, w).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this,
|
|
103
|
+
r(this, ns, t(this, p).offsetWidth), r(this, os, t(this, p).offsetHeight), r(this, ae, t(this, w).vertical ? t(this, p).offsetHeight : t(this, p).offsetWidth), r(this, ft, t(this, w).vertical ? rs(t(this, p)) : hs(t(this, p))), r(this, ft, t(this, ft) - t(this, w).contentPosition);
|
|
104
104
|
}
|
|
105
105
|
transform() {
|
|
106
106
|
const n = t(this, w).shiftSectionPositionCSSProperty.current;
|
|
107
107
|
let e = n;
|
|
108
108
|
const s = t(this, w).viewportSize * t(this, w).sectionDistanceScaleCSSProperty.current;
|
|
109
|
-
t(this, w).loopCSSProperty.current && t(this,
|
|
109
|
+
t(this, w).loopCSSProperty.current && t(this, ft) + t(this, ae) <= t(this, w).currentScrollValue - n / 2 && (e = (t(this, w).distance - n) * -1 - t(this, w).gap), ne.update(
|
|
110
110
|
t(this, p),
|
|
111
111
|
t(this, w).axisCSSProperty.current,
|
|
112
112
|
e
|
|
113
113
|
);
|
|
114
|
-
const h = t(this, w).currentScrollValue + e, u = t(this,
|
|
114
|
+
const h = t(this, w).currentScrollValue + e, u = t(this, ft) - t(this, w).viewportSize - s, g = t(this, ft) + t(this, ae) + s, v = fi(Gs(h, u, g), 3);
|
|
115
115
|
r(this, de, v * -1), t(this, w).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, de)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, de)}px, 0px, 0px)`;
|
|
116
116
|
}
|
|
117
117
|
setMark(n) {
|
|
118
|
-
t(this, Dt) !== n && (t(this, Dt) && t(this, p).classList.remove(t(this, Dt)), n && t(this, p).classList.add(n), r(this, Dt, n),
|
|
118
|
+
t(this, Dt) !== n && (t(this, Dt) && t(this, p).classList.remove(t(this, Dt)), n && t(this, p).classList.add(n), r(this, Dt, n), tt(t(this, p), "scrollSectionMarkChange", {
|
|
119
119
|
composed: !0,
|
|
120
120
|
detail: {
|
|
121
121
|
mark: t(this, Dt)
|
|
@@ -139,7 +139,7 @@ class wi {
|
|
|
139
139
|
o(this, fe, ts).call(this, "current-index-arc-abs", n);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
p = new WeakMap(), Me = new WeakMap(), w = new WeakMap(), ns = new WeakMap(), os = new WeakMap(), ae = new WeakMap(),
|
|
142
|
+
p = new WeakMap(), Me = new WeakMap(), w = new WeakMap(), ns = new WeakMap(), os = new WeakMap(), ae = new WeakMap(), ft = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), fe = new WeakSet(), ts = function(n, e) {
|
|
143
143
|
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}`));
|
|
144
144
|
};
|
|
145
145
|
const Ei = Us({
|
|
@@ -181,7 +181,7 @@ const Ei = Us({
|
|
|
181
181
|
flexShrink: "0"
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
var f, pe, T, Ot,
|
|
184
|
+
var f, pe, T, Ot, pt, bt, mt, et, $t, Ht, St, Bt, be, st, V, me, Se, ge, ve, Fe, ye, j, Ce, Wt, J, Nt, gt, Pe, qt, we, Gt, Ut, Kt, b, Te, q, d, ls, cs, L, P, G, it, Zt, rt, M, R, Re, vt, yt, Ct, U, De, _t, Pt, Ee, ht, k, Oe, wt, xe, $e, c, zs, es, Ie, Cs, Ps, Vs, ks, D, us, _s, He, as, As, Is, ce, js, ds, ss, fs;
|
|
185
185
|
class Ls extends HTMLElement {
|
|
186
186
|
constructor() {
|
|
187
187
|
super();
|
|
@@ -190,12 +190,12 @@ class Ls extends HTMLElement {
|
|
|
190
190
|
i(this, pe, new l(this, "--controls", !0));
|
|
191
191
|
i(this, T, new l(this, "--axis", "y"));
|
|
192
192
|
i(this, Ot, new l(this, "--reverse", !1));
|
|
193
|
-
i(this,
|
|
194
|
-
i(this,
|
|
193
|
+
i(this, pt, new l(this, "--direction", 0));
|
|
194
|
+
i(this, bt, new l(this, "--pages", 0, {
|
|
195
195
|
validate: (e) => Math.max(0, e - 1)
|
|
196
196
|
}));
|
|
197
|
-
i(this,
|
|
198
|
-
i(this,
|
|
197
|
+
i(this, mt, new l(this, "--split", !1));
|
|
198
|
+
i(this, et, new l(this, "--sectional", !1));
|
|
199
199
|
i(this, $t, new l(
|
|
200
200
|
this,
|
|
201
201
|
"--tween-easing",
|
|
@@ -206,14 +206,14 @@ class Ls extends HTMLElement {
|
|
|
206
206
|
"--tween-duration",
|
|
207
207
|
!1
|
|
208
208
|
));
|
|
209
|
-
i(this,
|
|
209
|
+
i(this, St, new l(this, "--auto-size", !1));
|
|
210
210
|
i(this, Bt, new l(
|
|
211
211
|
this,
|
|
212
212
|
"--wheel-max-delta",
|
|
213
213
|
!1
|
|
214
214
|
));
|
|
215
215
|
i(this, be, new l(this, "--drag-inertion", 1));
|
|
216
|
-
i(this,
|
|
216
|
+
i(this, st, new l(
|
|
217
217
|
this,
|
|
218
218
|
"--sections-in-view",
|
|
219
219
|
1
|
|
@@ -229,7 +229,7 @@ class Ls extends HTMLElement {
|
|
|
229
229
|
0.5
|
|
230
230
|
));
|
|
231
231
|
i(this, ye, new l(this, "--start-section", 0));
|
|
232
|
-
i(this,
|
|
232
|
+
i(this, j, new l(this, "--autoplay", 0));
|
|
233
233
|
i(this, Ce, new l(
|
|
234
234
|
this,
|
|
235
235
|
"--autoplay-pause-duration",
|
|
@@ -240,13 +240,13 @@ class Ls extends HTMLElement {
|
|
|
240
240
|
"--autoplay-user-direction",
|
|
241
241
|
!1
|
|
242
242
|
));
|
|
243
|
-
i(this,
|
|
243
|
+
i(this, J, new l(this, "--classes", !1));
|
|
244
244
|
i(this, Nt, new l(
|
|
245
245
|
this,
|
|
246
246
|
"--current-index-start-offset",
|
|
247
247
|
0
|
|
248
248
|
));
|
|
249
|
-
i(this,
|
|
249
|
+
i(this, gt, new l(
|
|
250
250
|
this,
|
|
251
251
|
"--current-index-end-offset",
|
|
252
252
|
0
|
|
@@ -275,21 +275,21 @@ class Ls extends HTMLElement {
|
|
|
275
275
|
i(this, L, 0);
|
|
276
276
|
i(this, P, 0);
|
|
277
277
|
i(this, G, 0);
|
|
278
|
-
i(this, st, null);
|
|
279
|
-
i(this, Zt, null);
|
|
280
278
|
i(this, it, null);
|
|
279
|
+
i(this, Zt, null);
|
|
280
|
+
i(this, rt, null);
|
|
281
281
|
i(this, M, null);
|
|
282
282
|
i(this, R, new le(0));
|
|
283
283
|
i(this, Re, 0);
|
|
284
|
-
i(this,
|
|
285
|
-
i(this,
|
|
286
|
-
i(this, yt, !0);
|
|
284
|
+
i(this, vt, 0);
|
|
285
|
+
i(this, yt, !1);
|
|
287
286
|
i(this, Ct, !0);
|
|
287
|
+
i(this, U, !0);
|
|
288
288
|
i(this, De);
|
|
289
289
|
i(this, _t);
|
|
290
290
|
i(this, Pt, new bi());
|
|
291
291
|
i(this, Ee, !1);
|
|
292
|
-
i(this,
|
|
292
|
+
i(this, ht, null);
|
|
293
293
|
i(this, k, !1);
|
|
294
294
|
i(this, Oe, null);
|
|
295
295
|
i(this, wt, []);
|
|
@@ -303,7 +303,7 @@ class Ls extends HTMLElement {
|
|
|
303
303
|
this.resize();
|
|
304
304
|
});
|
|
305
305
|
i(this, us, () => {
|
|
306
|
-
if (!t(this,
|
|
306
|
+
if (!t(this, yt) || t(this, U) || t(this, Ct))
|
|
307
307
|
return;
|
|
308
308
|
const e = this.currentScrollValue;
|
|
309
309
|
if (r(this, Re, Math.max(0, e - t(this, P))), t(this, d).length) {
|
|
@@ -322,13 +322,13 @@ class Ls extends HTMLElement {
|
|
|
322
322
|
t(this, pe).current && (o(this, c, As).call(this, Math.sign(s) || 1), t(this, as).call(this, e, s));
|
|
323
323
|
});
|
|
324
324
|
i(this, as, (e, s) => {
|
|
325
|
-
if (t(this,
|
|
326
|
-
if (t(this,
|
|
325
|
+
if (t(this, pt).current) {
|
|
326
|
+
if (t(this, pt).current < 0 && s > 0)
|
|
327
327
|
return;
|
|
328
|
-
if (t(this,
|
|
328
|
+
if (t(this, pt).current > 0 && s < 0)
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
|
-
if (t(this, _t) || t(this, Pt).unlistenAnimationFrame(), !t(this,
|
|
331
|
+
if (t(this, _t) || t(this, Pt).unlistenAnimationFrame(), !t(this, j).current && t(this, qt).current && (clearInterval(t(this, De)), r(this, De, setTimeout(() => {
|
|
332
332
|
const h = t(this, d)[o(this, c, ss).call(this)];
|
|
333
333
|
h && this.scrollToSection(h.index, {
|
|
334
334
|
tween: {
|
|
@@ -337,7 +337,7 @@ class Ls extends HTMLElement {
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
}, t(this, qt).current))), !(e.includes("drag") && !yi.isTouch && !t(this, ve).current)) {
|
|
340
|
-
if (t(this,
|
|
340
|
+
if (t(this, et).current && e !== "drag") {
|
|
341
341
|
const h = Math.sign(s);
|
|
342
342
|
if (t(this, d).length) {
|
|
343
343
|
const u = {
|
|
@@ -366,7 +366,7 @@ class Ls extends HTMLElement {
|
|
|
366
366
|
i(this, fs, () => {
|
|
367
367
|
r(this, k, !0), this.hibernatedCSSProperty.current || o(this, c, ks).call(this);
|
|
368
368
|
});
|
|
369
|
-
if (
|
|
369
|
+
if (_) {
|
|
370
370
|
const e = this.attachShadow({ mode: "open" });
|
|
371
371
|
e.adoptedStyleSheets = [Ei];
|
|
372
372
|
const s = document.createElement("div");
|
|
@@ -390,16 +390,16 @@ class Ls extends HTMLElement {
|
|
|
390
390
|
return t(this, Ot);
|
|
391
391
|
}
|
|
392
392
|
get directionCSSProperty() {
|
|
393
|
-
return t(this,
|
|
393
|
+
return t(this, pt);
|
|
394
394
|
}
|
|
395
395
|
get pagesCSSProperty() {
|
|
396
|
-
return t(this,
|
|
396
|
+
return t(this, bt);
|
|
397
397
|
}
|
|
398
398
|
get splitCSSProperty() {
|
|
399
|
-
return t(this,
|
|
399
|
+
return t(this, mt);
|
|
400
400
|
}
|
|
401
401
|
get sectionalCSSProperty() {
|
|
402
|
-
return t(this,
|
|
402
|
+
return t(this, et);
|
|
403
403
|
}
|
|
404
404
|
get easingCSSProperty() {
|
|
405
405
|
return t(this, $t);
|
|
@@ -408,7 +408,7 @@ class Ls extends HTMLElement {
|
|
|
408
408
|
return t(this, Ht);
|
|
409
409
|
}
|
|
410
410
|
get autoSizeCSSProperty() {
|
|
411
|
-
return t(this,
|
|
411
|
+
return t(this, St);
|
|
412
412
|
}
|
|
413
413
|
get wheelMaxDeltaCSSProperty() {
|
|
414
414
|
return t(this, Bt);
|
|
@@ -417,7 +417,7 @@ class Ls extends HTMLElement {
|
|
|
417
417
|
return t(this, be);
|
|
418
418
|
}
|
|
419
419
|
get sectionsInViewCSSProperty() {
|
|
420
|
-
return t(this,
|
|
420
|
+
return t(this, st);
|
|
421
421
|
}
|
|
422
422
|
get loopCSSProperty() {
|
|
423
423
|
return t(this, V);
|
|
@@ -441,7 +441,7 @@ class Ls extends HTMLElement {
|
|
|
441
441
|
return t(this, ye);
|
|
442
442
|
}
|
|
443
443
|
get autoplayCSSProperty() {
|
|
444
|
-
return t(this,
|
|
444
|
+
return t(this, j);
|
|
445
445
|
}
|
|
446
446
|
get autoplayPauseDurationCSSProperty() {
|
|
447
447
|
return t(this, Ce);
|
|
@@ -450,13 +450,13 @@ class Ls extends HTMLElement {
|
|
|
450
450
|
return t(this, Wt);
|
|
451
451
|
}
|
|
452
452
|
get classesCSSProperty() {
|
|
453
|
-
return t(this,
|
|
453
|
+
return t(this, J);
|
|
454
454
|
}
|
|
455
455
|
get currentIndexStartOffsetCSSProperty() {
|
|
456
456
|
return t(this, Nt);
|
|
457
457
|
}
|
|
458
458
|
get currentIndexEndOffsetCSSProperty() {
|
|
459
|
-
return t(this,
|
|
459
|
+
return t(this, gt);
|
|
460
460
|
}
|
|
461
461
|
get shiftSectionPositionCSSProperty() {
|
|
462
462
|
return t(this, Pe);
|
|
@@ -511,23 +511,23 @@ class Ls extends HTMLElement {
|
|
|
511
511
|
}
|
|
512
512
|
get limit() {
|
|
513
513
|
return Math.ceil(
|
|
514
|
-
t(this, d).length - t(this,
|
|
514
|
+
t(this, d).length - t(this, st).current
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
517
|
get distance() {
|
|
518
|
-
return t(this,
|
|
518
|
+
return t(this, vt);
|
|
519
519
|
}
|
|
520
520
|
get loopDistance() {
|
|
521
|
-
return t(this, V).current ? t(this,
|
|
521
|
+
return t(this, V).current ? t(this, vt) + t(this, G) : t(this, vt);
|
|
522
522
|
}
|
|
523
523
|
get hasOverflow() {
|
|
524
|
-
return t(this,
|
|
524
|
+
return t(this, yt);
|
|
525
525
|
}
|
|
526
526
|
get overscroll() {
|
|
527
527
|
return t(this, Re);
|
|
528
528
|
}
|
|
529
529
|
get scrollLine() {
|
|
530
|
-
return t(this,
|
|
530
|
+
return t(this, ht);
|
|
531
531
|
}
|
|
532
532
|
get vertical() {
|
|
533
533
|
return t(this, T).current === "y";
|
|
@@ -545,7 +545,7 @@ class Ls extends HTMLElement {
|
|
|
545
545
|
return t(this, T).current === "x" ? 0 : t(this, f).distance;
|
|
546
546
|
}
|
|
547
547
|
tryResplit() {
|
|
548
|
-
!t(this,
|
|
548
|
+
!t(this, U) && (t(this, V).current || t(this, mt).current || t(this, V).current || t(this, St).current || t(this, et).current) && o(this, c, es).call(this);
|
|
549
549
|
}
|
|
550
550
|
onScroll(...e) {
|
|
551
551
|
return t(this, f).subscribe(...e);
|
|
@@ -566,7 +566,7 @@ class Ls extends HTMLElement {
|
|
|
566
566
|
return this.currentProgress >= u && this.currentProgress <= g;
|
|
567
567
|
}
|
|
568
568
|
scrollToSection(e, s) {
|
|
569
|
-
if (!t(this, d).length)
|
|
569
|
+
if (!t(this, d).length || t(this, U))
|
|
570
570
|
return;
|
|
571
571
|
const h = t(this, R).current, u = o(this, c, _s).call(this, e), g = t(this, d)[h], v = t(this, d)[u];
|
|
572
572
|
if (g && v) {
|
|
@@ -580,11 +580,11 @@ class Ls extends HTMLElement {
|
|
|
580
580
|
t(this, d).length && this.scrollToSection(t(this, R).current + e, s);
|
|
581
581
|
}
|
|
582
582
|
setPosition(e, s) {
|
|
583
|
-
o(this, c, As).call(this, Math.sign(e) || 1), s != null && s.tween ? t(this, _t) || (t(this, Pt).set(t(this, f).current, { equalize: !0 }), t(this, Pt).set(Math.min(e, this.distance), Bs({}, s.tween)), r(this, _t, setTimeout(() => {
|
|
583
|
+
t(this, U) || (o(this, c, As).call(this, Math.sign(e) || 1), s != null && s.tween ? t(this, _t) || (t(this, Pt).set(t(this, f).current, { equalize: !0 }), t(this, Pt).set(Math.min(e, this.distance), Bs({}, s.tween)), r(this, _t, setTimeout(() => {
|
|
584
584
|
r(this, _t, void 0);
|
|
585
585
|
}, s.tween.duration || 0))) : t(this, f).set(e, {
|
|
586
586
|
equalize: (s == null ? void 0 : s.behaviour) === "instant"
|
|
587
|
-
});
|
|
587
|
+
}));
|
|
588
588
|
}
|
|
589
589
|
shiftPosition(e, s) {
|
|
590
590
|
this.setPosition(t(this, f).target + e, s);
|
|
@@ -603,8 +603,8 @@ class Ls extends HTMLElement {
|
|
|
603
603
|
getComputedStyle(t(this, b)).rowGap
|
|
604
604
|
)) : r(this, G, qs.parse(
|
|
605
605
|
getComputedStyle(t(this, b)).columnGap
|
|
606
|
-
)), t(this,
|
|
607
|
-
const h = t(this,
|
|
606
|
+
)), t(this, St).current && t(this, d).length) {
|
|
607
|
+
const h = t(this, st).current, u = (t(this, L) - t(this, G) * (h - 1)) / h;
|
|
608
608
|
t(this, d).forEach((g) => {
|
|
609
609
|
g.setSize(u);
|
|
610
610
|
});
|
|
@@ -614,8 +614,8 @@ class Ls extends HTMLElement {
|
|
|
614
614
|
});
|
|
615
615
|
if (t(this, d).forEach((h) => {
|
|
616
616
|
h.resize();
|
|
617
|
-
}), t(this,
|
|
618
|
-
r(this, P, t(this, L) * t(this,
|
|
617
|
+
}), t(this, bt).current) {
|
|
618
|
+
r(this, P, t(this, L) * t(this, bt).current);
|
|
619
619
|
const h = t(this, P) + t(this, L);
|
|
620
620
|
this.vertical ? (t(this, b).style.width = h + "px", t(this, b).style.height = "100%") : (t(this, b).style.height = h + "px", t(this, b).style.width = "100%");
|
|
621
621
|
} else
|
|
@@ -626,10 +626,10 @@ class Ls extends HTMLElement {
|
|
|
626
626
|
}
|
|
627
627
|
if (t(this, V).current && t(this, d).length) {
|
|
628
628
|
const h = t(this, d)[t(this, d).length - 1], u = h.position + h.size - t(this, L), g = t(this, P) - u;
|
|
629
|
-
r(this,
|
|
629
|
+
r(this, vt, h.position + h.size + g);
|
|
630
630
|
} else
|
|
631
|
-
r(this,
|
|
632
|
-
if (t(this,
|
|
631
|
+
r(this, vt, t(this, P));
|
|
632
|
+
if (t(this, et).current && t(this, d).length) {
|
|
633
633
|
const h = t(this, d)[s];
|
|
634
634
|
t(this, f).set(h.position, {
|
|
635
635
|
equalize: !0
|
|
@@ -638,110 +638,110 @@ class Ls extends HTMLElement {
|
|
|
638
638
|
t(this, f).set(e * t(this, P), {
|
|
639
639
|
equalize: !0
|
|
640
640
|
});
|
|
641
|
-
r(this,
|
|
641
|
+
r(this, yt, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, yt)), t(this, yt) ? t(this, Gt).current || o(this, c, Ps).call(this) : o(this, c, Cs).call(this), t(this, ds).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, f).notify();
|
|
642
642
|
}
|
|
643
643
|
connectedCallback() {
|
|
644
644
|
ne.register(this), r(this, f, new Zs(0, {
|
|
645
645
|
damping: 0.01,
|
|
646
646
|
min: 0,
|
|
647
647
|
order: Ks.SCROLL
|
|
648
|
-
})), this.setAttribute("tabindex", "0"), r(this,
|
|
648
|
+
})), this.setAttribute("tabindex", "0"), r(this, it, new mi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, He)), r(this, Zt, new Si({
|
|
649
649
|
element: this
|
|
650
650
|
})), t(this, Zt).changeEvent.subscribe(
|
|
651
651
|
t(this, He)
|
|
652
|
-
), r(this,
|
|
652
|
+
), r(this, rt, new gi({
|
|
653
653
|
element: t(this, b),
|
|
654
654
|
rootElement: this
|
|
655
|
-
})), t(this,
|
|
655
|
+
})), t(this, rt).changeEvent.subscribe(t(this, He)), r(this, M, new vi({
|
|
656
656
|
culling: this
|
|
657
657
|
})), t(this, M).changeEvent.subscribe(t(this, as)), t(this, T).subscribe(() => {
|
|
658
658
|
o(this, c, zs).call(this);
|
|
659
659
|
}), t(this, Ot).subscribe(() => {
|
|
660
660
|
o(this, c, zs).call(this);
|
|
661
661
|
}), t(this, Bt).subscribe((e) => {
|
|
662
|
-
t(this,
|
|
662
|
+
t(this, it).axis = e.current ? "max" : t(this, T).current;
|
|
663
663
|
}), t(this, be).subscribe((e) => {
|
|
664
|
-
t(this,
|
|
665
|
-
}), t(this,
|
|
664
|
+
t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
|
|
665
|
+
}), t(this, bt).subscribe(() => {
|
|
666
666
|
t(this, k) && t(this, D).call(this);
|
|
667
|
-
}), t(this,
|
|
667
|
+
}), t(this, mt).subscribe(({ current: e }) => {
|
|
668
668
|
t(this, k) && (e ? o(this, c, es).call(this) : o(this, c, Ie).call(this));
|
|
669
|
-
}), t(this, tt).subscribe((e) => {
|
|
670
|
-
t(this, st).debounce = e.current, t(this, it).swipe = e.current, t(this, M).interval = e.current, t(this, k) && (e.current && !e.previous && !t(this, d).length ? o(this, c, es).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
|
|
671
|
-
}), t(this, mt).subscribe((e) => {
|
|
672
|
-
t(this, k) && (t(this, D).call(this), e.current && !e.previous && !t(this, d).length ? o(this, c, es).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
|
|
673
669
|
}), t(this, et).subscribe((e) => {
|
|
670
|
+
t(this, it).debounce = e.current, t(this, rt).swipe = e.current, t(this, M).interval = e.current, t(this, k) && (e.current && !e.previous && !t(this, d).length ? o(this, c, es).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
|
|
671
|
+
}), t(this, St).subscribe((e) => {
|
|
672
|
+
t(this, k) && (t(this, D).call(this), e.current && !e.previous && !t(this, d).length ? o(this, c, es).call(this) : !e.current && e.previous && t(this, d).length && o(this, c, Ie).call(this));
|
|
673
|
+
}), t(this, st).subscribe((e) => {
|
|
674
674
|
t(this, k) && (t(this, D).call(this), o(this, c, ce).call(this));
|
|
675
675
|
}), t(this, V).subscribe((e) => {
|
|
676
|
-
e.current ? (t(this, k) && (t(this, d).length || (t(this,
|
|
676
|
+
e.current ? (t(this, k) && (t(this, d).length || (t(this, mt).current = !0)), t(this, f).max = 1 / 0, t(this, f).min = -1 / 0) : (r(this, Re, 0), t(this, f).max = t(this, P), t(this, f).min = 0);
|
|
677
677
|
}), t(this, me).subscribe((e) => {
|
|
678
678
|
t(this, f).damping = e.current;
|
|
679
679
|
}), t(this, Se).subscribe((e) => {
|
|
680
680
|
t(this, f).mass = e.current;
|
|
681
681
|
}), t(this, ge).subscribe((e) => {
|
|
682
682
|
t(this, f).stiffness = e.current;
|
|
683
|
-
}), t(this,
|
|
684
|
-
t(this, M).speed = e.current, !t(this,
|
|
683
|
+
}), t(this, j).subscribe((e) => {
|
|
684
|
+
t(this, M).speed = e.current, !t(this, Ct) && e.current && !e.previous ? t(this, M).connect() : !e.current && e.previous && t(this, M).disconnect();
|
|
685
685
|
}), t(this, Wt).subscribe((e) => {
|
|
686
686
|
e.current || (t(this, M).direction = 1);
|
|
687
|
-
}), t(this,
|
|
687
|
+
}), t(this, J).subscribe((e) => {
|
|
688
688
|
t(this, k) && o(this, c, ce).call(this);
|
|
689
689
|
}), t(this, Nt).subscribe((e) => {
|
|
690
|
-
t(this, k) && t(this,
|
|
691
|
-
}), t(this,
|
|
692
|
-
t(this, k) && t(this,
|
|
690
|
+
t(this, k) && t(this, J).current && o(this, c, ce).call(this);
|
|
691
|
+
}), t(this, gt).subscribe((e) => {
|
|
692
|
+
t(this, k) && t(this, J).current && o(this, c, ce).call(this);
|
|
693
693
|
}), t(this, Pe).subscribe((e) => {
|
|
694
694
|
t(this, k) && t(this, f).notify();
|
|
695
695
|
}), t(this, f).isRunning.subscribe((e) => {
|
|
696
696
|
this.classList.toggle("active", e.current);
|
|
697
697
|
}), t(this, R).subscribe((e) => {
|
|
698
|
-
t(this, d).length && o(this, c, ce).call(this), this.style.setProperty("--counter", e.current + "");
|
|
698
|
+
t(this, U) || (t(this, d).length && o(this, c, ce).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
699
699
|
}), t(this, Pt).subscribe((e) => {
|
|
700
700
|
t(this, Pt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
|
|
701
701
|
}), t(this, Gt).subscribe((e) => {
|
|
702
702
|
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Cs).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, Ps).call(this));
|
|
703
703
|
}), t(this, Ut).subscribe((e) => {
|
|
704
704
|
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Vs).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, ks).call(this));
|
|
705
|
-
}), t(this, pe).observe(), t(this, T).observe(), t(this, Ot).observe(), t(this,
|
|
705
|
+
}), t(this, pe).observe(), t(this, T).observe(), t(this, Ot).observe(), t(this, pt).observe(), t(this, bt).observe(), t(this, mt).observe(), t(this, et).observe(), t(this, $t).observe(), t(this, Ht).observe(), t(this, St).observe(), t(this, Bt).observe(), t(this, be).observe(), t(this, st).observe(), t(this, V).observe(), t(this, me).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, Fe).observe(), t(this, ye).observe(), t(this, j).observe(), t(this, j).observe(), t(this, Ce).observe(), t(this, Wt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, gt).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, we).observe(), t(this, Gt).observe(), t(this, Ut).observe(), he.subscribe(t(this, fs), Es.LAST), is.subscribe(this, t(this, D)), t(this, Oe).observe(this, { childList: !0 });
|
|
706
706
|
}
|
|
707
707
|
disconnectedCallback() {
|
|
708
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, pe).unobserve(), t(this, T).unobserve(), t(this, Ot).unobserve(), t(this,
|
|
708
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, pe).unobserve(), t(this, T).unobserve(), t(this, Ot).unobserve(), t(this, pt).unobserve(), t(this, bt).unobserve(), t(this, mt).unobserve(), t(this, et).unobserve(), t(this, $t).unobserve(), t(this, Ht).unobserve(), t(this, St).unobserve(), t(this, Bt).unobserve(), t(this, be).unobserve(), t(this, st).unobserve(), t(this, V).unobserve(), t(this, me).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, Fe).unobserve(), t(this, ye).unobserve(), t(this, j).unobserve(), t(this, Ce).unobserve(), t(this, Wt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, gt).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, we).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), he.unsubscribe(t(this, fs)), is.unsubscribe(t(this, D)), o(this, c, Vs).call(this), t(this, Oe).disconnect();
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
f = new WeakMap(), pe = new WeakMap(), T = new WeakMap(), Ot = new WeakMap(),
|
|
711
|
+
f = new WeakMap(), pe = new WeakMap(), T = new WeakMap(), Ot = new WeakMap(), pt = new WeakMap(), bt = new WeakMap(), mt = new WeakMap(), et = new WeakMap(), $t = new WeakMap(), Ht = new WeakMap(), St = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), me = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), ye = new WeakMap(), j = new WeakMap(), Ce = new WeakMap(), Wt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), gt = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), we = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Te = new WeakMap(), q = new WeakMap(), d = new WeakMap(), ls = new WeakMap(), cs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), G = new WeakMap(), it = new WeakMap(), Zt = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), R = new WeakMap(), Re = new WeakMap(), vt = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), U = new WeakMap(), De = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), Ee = new WeakMap(), ht = new WeakMap(), k = new WeakMap(), Oe = new WeakMap(), wt = new WeakMap(), xe = new WeakMap(), $e = new WeakMap(), c = new WeakSet(), zs = function() {
|
|
712
712
|
const e = t(this, T).current, s = t(this, Ot).current ? "-reverse" : "";
|
|
713
|
-
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this,
|
|
713
|
+
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).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, k) && t(this, D).call(this);
|
|
714
714
|
}, es = function() {
|
|
715
715
|
o(this, c, Ie).call(this), t(this, Te).assignedElements().forEach((e, s) => {
|
|
716
716
|
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, q).push(new wi(e, s, this));
|
|
717
|
-
}), r(this, d, [...t(this, q)]), t(this, b).style.transform = "",
|
|
717
|
+
}), r(this, d, [...t(this, q)]), t(this, b).style.transform = "", tt(this, "scrollSectionsChange", {
|
|
718
718
|
custom: !0,
|
|
719
719
|
composed: !0
|
|
720
720
|
}), t(this, D).call(this), o(this, c, ce).call(this);
|
|
721
721
|
}, Ie = function() {
|
|
722
722
|
t(this, q).forEach((e) => {
|
|
723
723
|
e.destroy();
|
|
724
|
-
}), r(this, q, []), r(this, d, []), t(this, R).reset(), t(this, f).reset(), this.style.removeProperty("--max-section-size"),
|
|
724
|
+
}), r(this, q, []), r(this, d, []), t(this, R).reset(), t(this, f).reset(), this.style.removeProperty("--max-section-size"), tt(this, "scrollSectionsChange", {
|
|
725
725
|
custom: !0,
|
|
726
726
|
composed: !0
|
|
727
727
|
});
|
|
728
728
|
}, Cs = function() {
|
|
729
|
-
t(this,
|
|
729
|
+
t(this, Ct) || (r(this, Ct, !0), t(this, f).unsubscribe(t(this, us)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, De)), clearInterval(t(this, _t)), t(this, Pt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Zt).disconnect(), t(this, rt).disconnect(), t(this, M).disconnect(), t(this, yt) || (this.sections.forEach((e) => {
|
|
730
730
|
e.unsetTransform();
|
|
731
731
|
}), t(this, D).call(this)));
|
|
732
732
|
}, Ps = function() {
|
|
733
|
-
t(this,
|
|
733
|
+
t(this, Ct) && (r(this, Ct, !1), t(this, f).subscribe(t(this, us), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Zt).connect(), t(this, rt).connect(), t(this, j).current && t(this, M).connect());
|
|
734
734
|
}, Vs = function() {
|
|
735
|
-
t(this,
|
|
735
|
+
t(this, U) || (r(this, U, !0), clearTimeout(t(this, $e)), he.unsubscribe(t(this, D)), o(this, c, Cs).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, q).length ? o(this, c, Ie).call(this) : (t(this, R).reset(), t(this, f).reset()), ne.unregister(this));
|
|
736
736
|
}, ks = function() {
|
|
737
|
-
t(this,
|
|
737
|
+
t(this, U) && (r(this, U, !1), ne.register(this), this.tryResplit(), o(this, c, Ps).call(this), this.scrollToSection(t(this, ye).current, {
|
|
738
738
|
behaviour: "instant"
|
|
739
739
|
}), he.subscribe(t(this, D), Es.SCROLL));
|
|
740
740
|
}, D = new WeakMap(), us = new WeakMap(), _s = function(e) {
|
|
741
741
|
let s = t(this, R).current;
|
|
742
742
|
return t(this, V).current ? s = pi(e, t(this, d).length) : s = Gs(e, 0, this.limit), s;
|
|
743
743
|
}, He = new WeakMap(), as = new WeakMap(), As = function(e = 1) {
|
|
744
|
-
t(this, Wt).current && (t(this, M).direction = e), t(this,
|
|
744
|
+
t(this, Wt).current && (t(this, M).direction = e), t(this, j).current && t(this, M).pauseAndContinue(
|
|
745
745
|
t(this, Ce).current,
|
|
746
746
|
this.sectionalCSSProperty.current
|
|
747
747
|
);
|
|
@@ -754,20 +754,20 @@ f = new WeakMap(), pe = new WeakMap(), T = new WeakMap(), Ot = new WeakMap(), ft
|
|
|
754
754
|
}, ce = function() {
|
|
755
755
|
if (t(this, d).length) {
|
|
756
756
|
const e = t(this, R).current + t(this, Nt).current;
|
|
757
|
-
if (e === 0 ? r(this,
|
|
758
|
-
detail: { line: t(this,
|
|
759
|
-
}), t(this,
|
|
760
|
-
this.classList.remove("end", "start"), t(this,
|
|
761
|
-
const s = t(this,
|
|
757
|
+
if (e === 0 ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), tt(this, "scrollLine", {
|
|
758
|
+
detail: { line: t(this, ht) }
|
|
759
|
+
}), t(this, J).current) {
|
|
760
|
+
this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
|
|
761
|
+
const s = t(this, st).current + t(this, gt).current;
|
|
762
762
|
r(this, wt, []), t(this, d).forEach((h, u) => {
|
|
763
763
|
h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
|
|
764
|
-
const g = e - this.limit - 1 + t(this,
|
|
764
|
+
const g = e - this.limit - 1 + t(this, gt).current, v = e + s, C = this.sections.length - v;
|
|
765
765
|
u >= e && u < v || u <= g ? (h.setMark("current"), t(this, wt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
|
|
766
766
|
}), t(this, ds).call(this);
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
}, js = function() {
|
|
770
|
-
if (t(this,
|
|
770
|
+
if (t(this, J).current) {
|
|
771
771
|
const e = Math.floor(t(this, wt).length / 2);
|
|
772
772
|
t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
|
|
773
773
|
const u = h - e;
|
|
@@ -780,13 +780,13 @@ f = new WeakMap(), pe = new WeakMap(), T = new WeakMap(), Ot = new WeakMap(), ft
|
|
|
780
780
|
for (let v = 0; v < t(this, d).length; v++) {
|
|
781
781
|
const C = t(this, d)[v];
|
|
782
782
|
let oe = t(this, Ee) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
|
|
783
|
-
this.overscroll && Ae === 0 && e && (Ae = t(this,
|
|
783
|
+
this.overscroll && Ae === 0 && e && (Ae = t(this, vt));
|
|
784
784
|
let Ye = Math.abs(Ae + oe - s);
|
|
785
785
|
Ye <= h && (h = Ye, u = v);
|
|
786
786
|
}
|
|
787
787
|
return u;
|
|
788
788
|
}, fs = new WeakMap();
|
|
789
|
-
|
|
789
|
+
_ && !customElements.get("e-scroll") && customElements.define("e-scroll", Ls);
|
|
790
790
|
var ps;
|
|
791
791
|
class ys extends HTMLElement {
|
|
792
792
|
constructor() {
|
|
@@ -835,7 +835,7 @@ class xi extends ys {
|
|
|
835
835
|
);
|
|
836
836
|
const s = this.scrollElement.damped.target, h = t(this, Et) ? e.x : e.y;
|
|
837
837
|
});
|
|
838
|
-
if (
|
|
838
|
+
if (_) {
|
|
839
839
|
const e = this.attachShadow({ mode: "open" });
|
|
840
840
|
e.adoptedStyleSheets = [
|
|
841
841
|
Us({
|
|
@@ -883,7 +883,7 @@ class xi extends ys {
|
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
jt = new WeakMap(), O = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), Be = new WeakMap(), We = new WeakMap(), Jt = new WeakMap(), Ne = new WeakMap(), bs = new WeakMap(), ms = new WeakMap();
|
|
886
|
-
|
|
886
|
+
_ && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", xi);
|
|
887
887
|
var qe, Ge, Ue;
|
|
888
888
|
class Rs extends ys {
|
|
889
889
|
constructor() {
|
|
@@ -895,7 +895,7 @@ class Rs extends ys {
|
|
|
895
895
|
!1
|
|
896
896
|
));
|
|
897
897
|
i(this, Ue, new l(this, "--tween-duration", 0));
|
|
898
|
-
|
|
898
|
+
_ && this.addEventListener("click", () => {
|
|
899
899
|
const e = t(this, qe).current, s = t(this, Ge).current, h = t(this, Ue).current;
|
|
900
900
|
this.handleClick({
|
|
901
901
|
behaviour: e,
|
|
@@ -928,7 +928,7 @@ class Li extends Rs {
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
Ke = new WeakMap();
|
|
931
|
-
|
|
931
|
+
_ && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Li);
|
|
932
932
|
var Lt, Ze;
|
|
933
933
|
class zi extends Rs {
|
|
934
934
|
constructor() {
|
|
@@ -954,11 +954,11 @@ class zi extends Rs {
|
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
Lt = new WeakMap(), Ze = new WeakMap();
|
|
957
|
-
|
|
958
|
-
var
|
|
957
|
+
_ && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", zi);
|
|
958
|
+
var nt, Qt, _e, Ss, gs, je;
|
|
959
959
|
class Vi {
|
|
960
960
|
constructor(n, e, s) {
|
|
961
|
-
i(this,
|
|
961
|
+
i(this, nt, null);
|
|
962
962
|
i(this, Qt, null);
|
|
963
963
|
i(this, _e, null);
|
|
964
964
|
i(this, Ss, null);
|
|
@@ -968,21 +968,21 @@ class Vi {
|
|
|
968
968
|
});
|
|
969
969
|
});
|
|
970
970
|
i(this, je, () => {
|
|
971
|
-
t(this,
|
|
971
|
+
t(this, nt).classList.toggle(
|
|
972
972
|
"current",
|
|
973
973
|
t(this, Qt).counter.current === t(this, _e)
|
|
974
974
|
);
|
|
975
975
|
});
|
|
976
|
-
|
|
976
|
+
_ && (r(this, nt, document.createElement("button")), t(this, nt).setAttribute("aria-label", `Go to section ${e + 1}`), r(this, Qt, n), r(this, Ss, s), r(this, _e, e), t(this, nt).addEventListener("click", t(this, gs)), t(this, Qt).counter.subscribe(t(this, je)), t(this, je).call(this));
|
|
977
977
|
}
|
|
978
978
|
get element() {
|
|
979
|
-
return t(this,
|
|
979
|
+
return t(this, nt);
|
|
980
980
|
}
|
|
981
981
|
destroy() {
|
|
982
|
-
t(this,
|
|
982
|
+
t(this, nt).removeEventListener("click", t(this, gs)), t(this, Qt).counter.unsubscribe(t(this, je)), t(this, nt).remove();
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
|
|
985
|
+
nt = new WeakMap(), Qt = new WeakMap(), _e = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap(), je = new WeakMap();
|
|
986
986
|
var Le, Xt, zt;
|
|
987
987
|
class ki extends ys {
|
|
988
988
|
constructor() {
|
|
@@ -1021,8 +1021,8 @@ class ki extends ys {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
Le = new WeakMap(), Xt = new WeakMap(), zt = new WeakMap();
|
|
1024
|
-
|
|
1025
|
-
var Yt, te, ee, se, Vt, kt, At, It, A, $, H, B, Mt, z,
|
|
1024
|
+
_ && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", ki);
|
|
1025
|
+
var Yt, te, ee, se, Vt, kt, At, It, A, $, H, B, Mt, z, ot, lt, Q, Ft, ze, ct, ut, at, E, W, N, X, Y, K, Je, S, Tt, ie, Qe, x, dt, F, I, Z, Ve, Rt, y, re, m, Js, Qs, Xs, Ys, ti, ei, Xe, ke, Ms, ue, si, ii, Fs;
|
|
1026
1026
|
class Ai extends ys {
|
|
1027
1027
|
constructor() {
|
|
1028
1028
|
super(...arguments);
|
|
@@ -1041,30 +1041,30 @@ class Ai extends ys {
|
|
|
1041
1041
|
i(this, B);
|
|
1042
1042
|
i(this, Mt);
|
|
1043
1043
|
i(this, z);
|
|
1044
|
-
i(this, nt);
|
|
1045
1044
|
i(this, ot);
|
|
1046
|
-
i(this,
|
|
1045
|
+
i(this, lt);
|
|
1046
|
+
i(this, Q);
|
|
1047
1047
|
i(this, Ft);
|
|
1048
1048
|
i(this, ze);
|
|
1049
|
-
i(this, lt);
|
|
1050
1049
|
i(this, ct);
|
|
1051
1050
|
i(this, ut);
|
|
1051
|
+
i(this, at);
|
|
1052
1052
|
i(this, E);
|
|
1053
1053
|
i(this, W);
|
|
1054
1054
|
i(this, N);
|
|
1055
|
-
i(this, Q);
|
|
1056
1055
|
i(this, X);
|
|
1057
|
-
i(this,
|
|
1056
|
+
i(this, Y);
|
|
1057
|
+
i(this, K);
|
|
1058
1058
|
i(this, Je);
|
|
1059
1059
|
i(this, S);
|
|
1060
1060
|
i(this, Tt);
|
|
1061
1061
|
i(this, ie);
|
|
1062
1062
|
i(this, Qe);
|
|
1063
1063
|
i(this, x);
|
|
1064
|
-
i(this,
|
|
1064
|
+
i(this, dt);
|
|
1065
1065
|
i(this, F);
|
|
1066
1066
|
i(this, I);
|
|
1067
|
-
i(this,
|
|
1067
|
+
i(this, Z);
|
|
1068
1068
|
i(this, Ve);
|
|
1069
1069
|
i(this, Rt);
|
|
1070
1070
|
i(this, y);
|
|
@@ -1098,7 +1098,7 @@ class Ai extends ys {
|
|
|
1098
1098
|
this,
|
|
1099
1099
|
"--released-from-finish",
|
|
1100
1100
|
""
|
|
1101
|
-
)), r(this,
|
|
1101
|
+
)), r(this, ot, new l(this, "--passed-var", "")), r(this, lt, new l(this, "--progress-var", "")), r(this, Q, new l(
|
|
1102
1102
|
this,
|
|
1103
1103
|
"--progress-arc-var",
|
|
1104
1104
|
""
|
|
@@ -1110,13 +1110,13 @@ class Ai extends ys {
|
|
|
1110
1110
|
this,
|
|
1111
1111
|
"--animation-var-type",
|
|
1112
1112
|
"target"
|
|
1113
|
-
)), r(this,
|
|
1113
|
+
)), r(this, ct, new l(this, "--distance-var", "")), r(this, ut, new l(this, "--start-var", "")), r(this, at, new l(this, "--finish-var", "")), r(this, E, new le(!1)), r(this, W, new le(!1)), r(this, N, new le(!1)), r(this, X, new le(!1)), r(this, Y, new le(!1)), r(this, K, new le(!1)), r(this, Je, []), r(this, S, this), r(this, Tt, 0), r(this, ie, 0), r(this, Qe, 0), r(this, x, new Zs(0, { order: Ks.SEGMENT, min: 0, max: 1 })), r(this, dt, 0), r(this, F, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), r(this, Rt, !1), r(this, y, !0), r(this, re, !1), this.resize = () => {
|
|
1114
1114
|
r(this, ie, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? rs(this, this.scrollElement) : hs(this, this.scrollElement));
|
|
1115
1115
|
const e = ai(
|
|
1116
1116
|
this,
|
|
1117
1117
|
this.scrollElement.vertical ? "top" : "left"
|
|
1118
1118
|
);
|
|
1119
|
-
r(this, Tt, t(this, Tt) - e), r(this, F, this.getStart()), r(this, I, this.getDistance()), r(this, F, t(this, F) + t(this, At).current), r(this, I, t(this, I) + t(this, kt).current), r(this,
|
|
1119
|
+
r(this, Tt, t(this, Tt) - e), r(this, F, this.getStart()), r(this, I, this.getDistance()), r(this, F, t(this, F) + t(this, At).current), r(this, I, t(this, I) + t(this, kt).current), r(this, Z, t(this, F) + t(this, I)), this.scrollElement.currentScrollValue > t(this, Z) && !t(this, E).current && !t(this, W).current && (t(this, E).current = !0), this.setVar(t(this, ut).current, t(this, F)), this.setVar(t(this, at).current, t(this, Z)), this.setVar(t(this, ct).current, t(this, I)), t(this, x).max = t(this, I), r(this, Ve, !0), t(this, ke).call(this);
|
|
1120
1120
|
}, this.findAnotherScrollEntries = ws(() => {
|
|
1121
1121
|
const e = ne.getAll(this).reverse();
|
|
1122
1122
|
let s = 0;
|
|
@@ -1157,13 +1157,13 @@ class Ai extends ys {
|
|
|
1157
1157
|
return t(this, z);
|
|
1158
1158
|
}
|
|
1159
1159
|
get passedVarCSSProperty() {
|
|
1160
|
-
return t(this,
|
|
1160
|
+
return t(this, ot);
|
|
1161
1161
|
}
|
|
1162
1162
|
get progressVarCSSProperty() {
|
|
1163
|
-
return t(this,
|
|
1163
|
+
return t(this, lt);
|
|
1164
1164
|
}
|
|
1165
1165
|
get progressArcVarCSSProperty() {
|
|
1166
|
-
return t(this,
|
|
1166
|
+
return t(this, Q);
|
|
1167
1167
|
}
|
|
1168
1168
|
get progressArcMultCSSProperty() {
|
|
1169
1169
|
return t(this, Ft);
|
|
@@ -1172,13 +1172,13 @@ class Ai extends ys {
|
|
|
1172
1172
|
return t(this, ze);
|
|
1173
1173
|
}
|
|
1174
1174
|
get distanceVarCSSProperty() {
|
|
1175
|
-
return t(this,
|
|
1175
|
+
return t(this, ct);
|
|
1176
1176
|
}
|
|
1177
1177
|
get startVarCSSProperty() {
|
|
1178
|
-
return t(this,
|
|
1178
|
+
return t(this, ut);
|
|
1179
1179
|
}
|
|
1180
1180
|
get finishVarCSSProperty() {
|
|
1181
|
-
return t(this,
|
|
1181
|
+
return t(this, at);
|
|
1182
1182
|
}
|
|
1183
1183
|
get disabledCSSProperty() {
|
|
1184
1184
|
return t(this, Vt);
|
|
@@ -1205,13 +1205,13 @@ class Ai extends ys {
|
|
|
1205
1205
|
return t(this, N);
|
|
1206
1206
|
}
|
|
1207
1207
|
get isReleasedFromStart() {
|
|
1208
|
-
return t(this,
|
|
1208
|
+
return t(this, X);
|
|
1209
1209
|
}
|
|
1210
1210
|
get isCapturedFromFinish() {
|
|
1211
|
-
return t(this,
|
|
1211
|
+
return t(this, Y);
|
|
1212
1212
|
}
|
|
1213
1213
|
get isReleasedFromFinish() {
|
|
1214
|
-
return t(this,
|
|
1214
|
+
return t(this, K);
|
|
1215
1215
|
}
|
|
1216
1216
|
get directionPosition() {
|
|
1217
1217
|
return t(this, Tt);
|
|
@@ -1223,16 +1223,16 @@ class Ai extends ys {
|
|
|
1223
1223
|
return t(this, x);
|
|
1224
1224
|
}
|
|
1225
1225
|
get progress() {
|
|
1226
|
-
return t(this,
|
|
1226
|
+
return t(this, dt);
|
|
1227
1227
|
}
|
|
1228
1228
|
get progressArc() {
|
|
1229
|
-
return Math.abs(Math.cos(t(this,
|
|
1229
|
+
return Math.abs(Math.cos(t(this, dt) * Math.PI)) * t(this, Ft).current;
|
|
1230
1230
|
}
|
|
1231
1231
|
get start() {
|
|
1232
1232
|
return t(this, F);
|
|
1233
1233
|
}
|
|
1234
1234
|
get finish() {
|
|
1235
|
-
return t(this,
|
|
1235
|
+
return t(this, Z);
|
|
1236
1236
|
}
|
|
1237
1237
|
get distance() {
|
|
1238
1238
|
return t(this, I);
|
|
@@ -1251,48 +1251,48 @@ class Ai extends ys {
|
|
|
1251
1251
|
const s = e - t(this, F);
|
|
1252
1252
|
t(this, re) || r(this, re, t(this, x).previous ? Math.abs(t(this, x).previous - s) > 1e3 : !1), t(this, x).set(s);
|
|
1253
1253
|
const h = Math.round(e);
|
|
1254
|
-
t(this, E).current && (h >= t(this, F) ? t(this, N).current || o(this, m, Xs).call(this) : t(this, N).current && !t(this,
|
|
1254
|
+
t(this, E).current && (h >= t(this, F) ? t(this, N).current || o(this, m, Xs).call(this) : t(this, N).current && !t(this, X).current && o(this, m, ti).call(this), h < t(this, Z) ? t(this, K).current && !t(this, Y).current && o(this, m, Ys).call(this) : t(this, N).current && !t(this, K).current && o(this, m, ei).call(this)), h >= t(this, F) && h < t(this, Z) ? t(this, E).current || o(this, m, Js).call(this) : t(this, E).current && (t(this, x).set(
|
|
1255
1255
|
di(t(this, I) / 2, t(this, x).target, 0, t(this, I))
|
|
1256
1256
|
), o(this, m, Qs).call(this)), t(this, Rt) && t(this, It).current && (t(this, A).current && t(this, S).classList.add(t(this, A).current), r(this, y, !0));
|
|
1257
1257
|
}
|
|
1258
1258
|
disable() {
|
|
1259
|
-
this.style.cssText = "", r(this, Tt, 0), r(this, ie, 0), t(this, x).reset(), r(this,
|
|
1259
|
+
this.style.cssText = "", r(this, Tt, 0), r(this, ie, 0), t(this, x).reset(), r(this, dt, 0), r(this, F, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), t(this, E).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, X).current = !1, t(this, Y).current = !1, t(this, K).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Fs).call(this);
|
|
1260
1260
|
}
|
|
1261
1261
|
enable() {
|
|
1262
1262
|
r(this, y, !1);
|
|
1263
1263
|
}
|
|
1264
1264
|
connectedCallback() {
|
|
1265
1265
|
super.connectedCallback(), t(this, E).subscribe((s) => {
|
|
1266
|
-
s.current &&
|
|
1266
|
+
s.current && tt(this, "scrollSegmentCapture", {
|
|
1267
1267
|
composed: !0,
|
|
1268
1268
|
custom: !0
|
|
1269
1269
|
});
|
|
1270
1270
|
}), t(this, N).subscribe((s) => {
|
|
1271
|
-
s.current &&
|
|
1271
|
+
s.current && tt(this, "scrollSegmentCaptureFromStart", {
|
|
1272
1272
|
composed: !0,
|
|
1273
1273
|
custom: !0
|
|
1274
1274
|
});
|
|
1275
|
-
}), t(this,
|
|
1276
|
-
s.current &&
|
|
1275
|
+
}), t(this, Y).subscribe((s) => {
|
|
1276
|
+
s.current && tt(this, "scrollSegmentCaptureFromFinish", {
|
|
1277
1277
|
composed: !0,
|
|
1278
1278
|
custom: !0
|
|
1279
1279
|
});
|
|
1280
1280
|
}), t(this, W).subscribe((s) => {
|
|
1281
|
-
s.current &&
|
|
1281
|
+
s.current && tt(this, "scrollSegmentRelease", {
|
|
1282
1282
|
composed: !0,
|
|
1283
1283
|
custom: !0
|
|
1284
1284
|
});
|
|
1285
|
-
}), t(this,
|
|
1286
|
-
s.current &&
|
|
1285
|
+
}), t(this, X).subscribe((s) => {
|
|
1286
|
+
s.current && tt(this, "scrollSegmentReleaseFromStart", {
|
|
1287
1287
|
composed: !0,
|
|
1288
1288
|
custom: !0
|
|
1289
1289
|
});
|
|
1290
|
-
}), t(this,
|
|
1291
|
-
s.current &&
|
|
1290
|
+
}), t(this, K).subscribe((s) => {
|
|
1291
|
+
s.current && tt(this, "scrollSegmentReleaseFromFinish", {
|
|
1292
1292
|
composed: !0,
|
|
1293
1293
|
custom: !0
|
|
1294
1294
|
});
|
|
1295
|
-
}), t(this, Yt).observe(), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, Vt).observe(), t(this, kt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, $).observe(), t(this, H).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, z).observe(), t(this,
|
|
1295
|
+
}), t(this, Yt).observe(), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, Vt).observe(), t(this, kt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, $).observe(), t(this, H).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, z).observe(), t(this, ot).observe(), t(this, lt).observe(), t(this, Q).observe(), t(this, Ft).observe(), t(this, ze).observe(), t(this, ct).observe(), t(this, ut).observe(), t(this, at).observe();
|
|
1296
1296
|
let e = !1;
|
|
1297
1297
|
this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, Yt).subscribe((s) => {
|
|
1298
1298
|
t(this, x).damping = s.current;
|
|
@@ -1322,19 +1322,19 @@ class Ai extends ys {
|
|
|
1322
1322
|
o(this, m, ue).call(this, s);
|
|
1323
1323
|
}), t(this, It).subscribe((s) => {
|
|
1324
1324
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1325
|
-
}), t(this, nt).subscribe((s) => {
|
|
1326
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1327
1325
|
}), t(this, ot).subscribe((s) => {
|
|
1328
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current,
|
|
1329
|
-
}), t(this,
|
|
1326
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
1327
|
+
}), t(this, lt).subscribe((s) => {
|
|
1328
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, dt)));
|
|
1329
|
+
}), t(this, Q).subscribe((s) => {
|
|
1330
1330
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
1331
1331
|
}), t(this, Ft).subscribe((s) => {
|
|
1332
1332
|
t(this, y) || o(this, m, Ms).call(this);
|
|
1333
|
-
}), t(this, ct).subscribe((s) => {
|
|
1334
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, F)));
|
|
1335
1333
|
}), t(this, ut).subscribe((s) => {
|
|
1336
|
-
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this,
|
|
1337
|
-
}), t(this,
|
|
1334
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, F)));
|
|
1335
|
+
}), t(this, at).subscribe((s) => {
|
|
1336
|
+
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, Z)));
|
|
1337
|
+
}), t(this, ct).subscribe((s) => {
|
|
1338
1338
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, I)));
|
|
1339
1339
|
}), t(this, x).subscribe((s) => {
|
|
1340
1340
|
if (t(this, re)) {
|
|
@@ -1351,7 +1351,7 @@ class Ai extends ys {
|
|
|
1351
1351
|
he.unsubscribe(t(this, Xe)), this.scrollElement.offScroll(t(this, ke)), this.scrollElement.removeEventListener(
|
|
1352
1352
|
"scrollSectionsChange",
|
|
1353
1353
|
this.findAnotherScrollEntries
|
|
1354
|
-
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, Yt).close(), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, Vt).close(), t(this, kt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, $).close(), t(this, H).close(), t(this, B).close(), t(this, Mt).close(), t(this, z).close(), t(this,
|
|
1354
|
+
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, Yt).close(), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, Vt).close(), t(this, kt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, $).close(), t(this, H).close(), t(this, B).close(), t(this, Mt).close(), t(this, z).close(), t(this, ot).close(), t(this, lt).close(), t(this, Q).close(), t(this, Ft).close(), t(this, ct).close(), t(this, ut).close(), t(this, at).close(), t(this, E).close(), t(this, W).close(), t(this, N).close(), t(this, X).close(), t(this, Y).close(), t(this, K).close(), this.disable(), t(this, x).close();
|
|
1355
1355
|
}
|
|
1356
1356
|
removeVar(e) {
|
|
1357
1357
|
e && t(this, S).style.removeProperty(`--${e}`);
|
|
@@ -1369,7 +1369,7 @@ class Ai extends ys {
|
|
|
1369
1369
|
return t(this, Tt) - t(this, Qe);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
Yt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), z = new WeakMap(),
|
|
1372
|
+
Yt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), z = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Q = new WeakMap(), Ft = new WeakMap(), ze = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), E = new WeakMap(), W = new WeakMap(), N = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), K = new WeakMap(), Je = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), ie = new WeakMap(), Qe = new WeakMap(), x = new WeakMap(), dt = new WeakMap(), F = new WeakMap(), I = new WeakMap(), Z = new WeakMap(), Ve = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), re = new WeakMap(), m = new WeakSet(), Js = function() {
|
|
1373
1373
|
t(this, E).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, $).current && t(this, S).classList.remove(t(this, $).current), t(this, z).current && t(this, S).classList.remove(
|
|
1374
1374
|
t(this, z).current
|
|
1375
1375
|
), t(this, z).current && t(this, S).classList.remove(
|
|
@@ -1382,24 +1382,24 @@ Yt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(),
|
|
|
1382
1382
|
t(this, B).current
|
|
1383
1383
|
), t(this, $).current && t(this, S).classList.add(t(this, $).current);
|
|
1384
1384
|
}, Xs = function() {
|
|
1385
|
-
t(this, E).current = !0, t(this, N).current = !0, t(this,
|
|
1385
|
+
t(this, E).current = !0, t(this, N).current = !0, t(this, X).current = !1, t(this, H).current && t(this, S).classList.add(
|
|
1386
1386
|
t(this, H).current
|
|
1387
1387
|
);
|
|
1388
1388
|
}, Ys = function() {
|
|
1389
|
-
t(this, E).current = !0, t(this,
|
|
1389
|
+
t(this, E).current = !0, t(this, Y).current = !0, t(this, K).current = !1, t(this, B).current && t(this, S).classList.add(
|
|
1390
1390
|
t(this, B).current
|
|
1391
1391
|
);
|
|
1392
1392
|
}, ti = function() {
|
|
1393
|
-
t(this, W).current = !0, t(this,
|
|
1393
|
+
t(this, W).current = !0, t(this, X).current = !0, t(this, N).current = !1, t(this, z).current && t(this, S).classList.add(
|
|
1394
1394
|
t(this, z).current
|
|
1395
1395
|
);
|
|
1396
1396
|
}, ei = function() {
|
|
1397
|
-
t(this, W).current = !0, t(this,
|
|
1397
|
+
t(this, W).current = !0, t(this, K).current = !0, t(this, Y).current = !1, t(this, z).current && t(this, S).classList.add(
|
|
1398
1398
|
t(this, z).current
|
|
1399
1399
|
);
|
|
1400
1400
|
}, Xe = new WeakMap(), ke = new WeakMap(), Ms = function() {
|
|
1401
1401
|
const e = t(this, x)[t(this, ze).current];
|
|
1402
|
-
this.setVar(t(this,
|
|
1402
|
+
this.setVar(t(this, ot).current, e), r(this, dt, e / t(this, I) || 0), this.setVar(t(this, lt).current, t(this, dt)), t(this, Q).current && this.setVar(t(this, Q).current, this.progressArc);
|
|
1403
1403
|
}, ue = function(e) {
|
|
1404
1404
|
if (t(this, y)) {
|
|
1405
1405
|
e.previous && t(this, S).classList.remove(e.previous), e.current && t(this, S).classList.remove(e.current);
|
|
@@ -1415,9 +1415,9 @@ Yt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(),
|
|
|
1415
1415
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1416
1416
|
});
|
|
1417
1417
|
}, Fs = function() {
|
|
1418
|
-
o(this, m, si).call(this, t(this, A).current, t(this, H).current, t(this, B).current, t(this, $).current, t(this, Mt).current, t(this, z).current), o(this, m, ii).call(this, t(this,
|
|
1418
|
+
o(this, m, si).call(this, t(this, A).current, t(this, H).current, t(this, B).current, t(this, $).current, t(this, Mt).current, t(this, z).current), o(this, m, ii).call(this, t(this, ot).current, t(this, lt).current, t(this, Q).current, t(this, ct).current, t(this, ut).current, t(this, at).current);
|
|
1419
1419
|
};
|
|
1420
|
-
|
|
1420
|
+
_ && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ai);
|
|
1421
1421
|
class Ii extends Rs {
|
|
1422
1422
|
handleClick(n) {
|
|
1423
1423
|
this.scrollElement.setPosition(
|
|
@@ -1432,7 +1432,7 @@ class Ii extends Rs {
|
|
|
1432
1432
|
super.disconnectedCallback();
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
|
|
1435
|
+
_ && !customElements.get("e-scroll-section-button") && customElements.define("e-scroll-section-button", Ii);
|
|
1436
1436
|
var vs;
|
|
1437
1437
|
const Ds = class Ds extends ys {
|
|
1438
1438
|
constructor() {
|
|
@@ -1452,7 +1452,7 @@ const Ds = class Ds extends ys {
|
|
|
1452
1452
|
};
|
|
1453
1453
|
vs = new WeakMap();
|
|
1454
1454
|
let Ts = Ds;
|
|
1455
|
-
|
|
1455
|
+
_ && !customElements.get("e-scroll-counter") && customElements.define("e-scroll-counter", Ts);
|
|
1456
1456
|
export {
|
|
1457
1457
|
ki as ScrollBulletButtonsElement,
|
|
1458
1458
|
Ts as ScrollCounterElement,
|