aptechka 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
  2. package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
  3. package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
  4. package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
  5. package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
  6. package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
  7. package/lib/Derived-BIBU-y7Z.cjs +1 -0
  8. package/lib/Derived-Vo_RsJfi.js +23 -0
  9. package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
  10. package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
  11. package/lib/Store-C46i0nvr.js +137 -0
  12. package/lib/Store-npaZHvX4.cjs +1 -0
  13. package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
  14. package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
  15. package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
  16. package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +3 -3
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +1 -1
  21. package/lib/canvas/index.cjs +1 -1
  22. package/lib/canvas/index.js +3 -3
  23. package/lib/checkbox/index.cjs +1 -1
  24. package/lib/checkbox/index.js +3 -3
  25. package/lib/class-linked-status/index.cjs +1 -1
  26. package/lib/class-linked-status/index.js +1 -1
  27. package/lib/controls/index.cjs +1 -1
  28. package/lib/controls/index.js +2 -2
  29. package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-COAZH1Mw.js} +1 -1
  30. package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
  31. package/lib/css-property/index.cjs +1 -1
  32. package/lib/css-property/index.js +1 -1
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +1 -1
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +1 -1
  37. package/lib/element-constructor/index.cjs +1 -1
  38. package/lib/element-constructor/index.js +2 -2
  39. package/lib/en3/helpers/index.cjs +1 -1
  40. package/lib/en3/helpers/index.js +2 -2
  41. package/lib/en3/misc/index.cjs +1 -1
  42. package/lib/en3/misc/index.js +2 -2
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +1 -1
  45. package/lib/{index-BpsQqM-8.cjs → index-BuAuBz2_.cjs} +1 -1
  46. package/lib/{index-BhbT9PrL.js → index-CenF0JbH.js} +3 -3
  47. package/lib/ladder/index.cjs +1 -1
  48. package/lib/ladder/index.js +1 -1
  49. package/lib/media/index.cjs +1 -1
  50. package/lib/media/index.js +1 -1
  51. package/lib/modal/index.cjs +1 -1
  52. package/lib/modal/index.js +3 -3
  53. package/lib/pointer/index.cjs +1 -1
  54. package/lib/pointer/index.js +2 -2
  55. package/lib/popover/index.cjs +1 -1
  56. package/lib/popover/index.js +2 -2
  57. package/lib/scroll/index.cjs +1 -1
  58. package/lib/scroll/index.js +7 -7
  59. package/lib/select/index.cjs +1 -1
  60. package/lib/select/index.js +1 -1
  61. package/lib/sequence/index.cjs +1 -1
  62. package/lib/sequence/index.js +1 -1
  63. package/lib/source/index.cjs +1 -1
  64. package/lib/source/index.js +2 -2
  65. package/lib/store/index.cjs +1 -1
  66. package/lib/store/index.js +38 -112
  67. package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
  68. package/lib/{tags-4AoxVUe3.js → tags-BL3kQp9o.js} +1 -1
  69. package/lib/theme/index.cjs +1 -1
  70. package/lib/theme/index.js +2 -2
  71. package/lib/tweaker/index.cjs +2 -2
  72. package/lib/tweaker/index.js +50 -53
  73. package/lib/video/index.cjs +1 -1
  74. package/lib/video/index.js +1 -1
  75. package/package.json +1 -9
  76. package/lib/Derived-B-2UXnVE.cjs +0 -1
  77. package/lib/Derived-CDGpSMKu.js +0 -56
  78. package/lib/Store-BnA-dJsE.cjs +0 -1
  79. package/lib/Store-DGtldlBH.js +0 -147
  80. package/lib/svg-path-data/index.cjs +0 -3
  81. package/lib/svg-path-data/index.js +0 -490
@@ -1 +1 @@
1
- "use strict";var gs=Object.defineProperty;var Ze=Object.getOwnPropertySymbols;var ys=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable;var Je=S=>{throw TypeError(S)};var je=(S,n,s)=>n in S?gs(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,Qe=(S,n)=>{for(var s in n||(n={}))ys.call(n,s)&&je(S,s,n[s]);if(Ze)for(var s of Ze(n))Cs.call(n,s)&&je(S,s,n[s]);return S};var Me=(S,n,s)=>n.has(S)||Je("Cannot "+s);var t=(S,n,s)=>(Me(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>n.has(S)?Je("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(S):n.set(S,s),r=(S,n,s,e)=>(Me(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s),o=(S,n,s)=>(Me(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rt=require("../Store-BnA-dJsE.cjs"),vs=require("../Derived-B-2UXnVE.cjs"),Ge=require("../browser-CpzFX2xg.cjs"),Ps=require("../easings-DsS5-Kqc.cjs"),kt=require("../layout-8ryRAMGJ.cjs"),Ke=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const be=require("../order/index.cjs"),ts=require("../Damped-C7WAqKPh.cjs"),ws=require("../Tweened-DSXD0I0k.cjs"),Oe=require("../controls/index.cjs"),pe=require("../window-resizer/index.cjs"),Yt=require("../scroll-entries/index.cjs"),W=require("../tags-v-OSVkiQ.cjs"),Ne=require("../createStylesheet-CaDI99iu.cjs"),Xe=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Es=require("../Viewport-BmLTk_6k.cjs"),qe=require("../element-resizer/index.cjs"),xs=require("../gestures-DHLrn6Q8.cjs"),Ye=require("../theme/index.cjs"),Ls=require("../dom-JBOkFLTh.cjs"),es=require("../function-MthRj-GJ.cjs");var m,me,v,qt,J,dt;class zs{constructor(n,s,e){i(this,m);i(this,me);i(this,v);i(this,qt,0);i(this,J,0);i(this,dt,null);r(this,m,n),r(this,me,s),r(this,v,e),Yt.scrollEntries.register(t(this,m))}get index(){return t(this,me)}get size(){return t(this,qt)}get position(){return t(this,J)}destroy(){Yt.scrollEntries.unregister(t(this,m)),t(this,m).style.transform="",this.mark(null)}setSize(n){n?(t(this,m).style.setProperty("--size",n+"px"),t(this,v).axisCSSProperty.current==="x"?(t(this,m).style.width=n+"px",t(this,m).style.height=""):(t(this,m).style.height=n+"px",t(this,m).style.width="")):(t(this,m).style.width="",t(this,m).style.height="",t(this,m).style.removeProperty("--size"))}resize(){r(this,qt,t(this,v).vertical?t(this,m).offsetHeight:t(this,m).offsetWidth),r(this,J,t(this,v).vertical?kt.getCumulativeOffsetTop(t(this,m)):kt.getCumulativeOffsetLeft(t(this,m))),r(this,J,t(this,J)-t(this,v).contentPosition)}transform(){let n=0;const s=t(this,v).viewportSize*t(this,v).sectionDistanceScaleCSSProperty.current;t(this,v).loopCSSProperty.current&&t(this,v).overscroll&&t(this,J)+t(this,qt)<t(this,v).currentScrollValue&&(n=t(this,v).distance*-1-t(this,v).gap),Yt.scrollEntries.update(t(this,m),t(this,v).axisCSSProperty.current,n);const e=t(this,v).currentScrollValue+n,h=t(this,J)-t(this,v).viewportSize-s,a=t(this,J)+t(this,qt)+s,g=Ke.clamp(e,h,a);t(this,v).vertical?t(this,m).style.transform=`translate3d(0px, ${g*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${g*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,m).classList.remove(t(this,dt)),n&&t(this,m).classList.add(n),r(this,dt,n),t(this,m).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}m=new WeakMap,me=new WeakMap,v=new WeakMap,qt=new WeakMap,J=new WeakMap,dt=new WeakMap;const Vs=Ne.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var d,It,k,Q,X,U,Y,pt,ft,G,R,Tt,Mt,At,Bt,se,K,_t,bt,N,mt,tt,gt,Ht,$t,Wt,b,ge,l,ye,Ce,w,y,I,Z,yt,et,z,C,ie,Ct,Ut,Gt,re,st,u,fe,ee,Ae,Be,_e,He,T,ve,ss,he,Pe,$e,Dt,We;class Ie extends HTMLElement{constructor(){super();i(this,u);i(this,d,null);i(this,It,new c.CSSProperty(this,"--controls",!0));i(this,k,new c.CSSProperty(this,"--axis","y"));i(this,Q,new c.CSSProperty(this,"--direction",0));i(this,X,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,U,new c.CSSProperty(this,"--split",!1));i(this,Y,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,G,new c.CSSProperty(this,"--sections-in-view",1));i(this,R,new c.CSSProperty(this,"--loop",!1));i(this,Tt,new c.CSSProperty(this,"--damping",20));i(this,Mt,new c.CSSProperty(this,"--mass",0));i(this,At,new c.CSSProperty(this,"--stiffness",0));i(this,Bt,new c.CSSProperty(this,"--mouse-drag",!1));i(this,se,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,K,new c.CSSProperty(this,"--autoplay",0));i(this,_t,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,N,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,tt,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,Ht,new c.CSSProperty(this,"--focus-duration",3e3));i(this,$t,new c.CSSProperty(this,"--disabled",!1));i(this,Wt,new c.CSSProperty(this,"--hibernated",!1));i(this,b,null);i(this,ge,null);i(this,l,[]);i(this,ye,0);i(this,Ce,0);i(this,w,0);i(this,y,0);i(this,I,0);i(this,Z,null);i(this,yt,null);i(this,et,null);i(this,z,null);i(this,C,new Rt.Store(0));i(this,ie,0);i(this,Ct,0);i(this,Ut,!0);i(this,Gt,!0);i(this,re);i(this,st,new ws.Tweened);i(this,T,()=>{t(this,d).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,y)||0,e=t(this,C).current;if(r(this,ye,this.vertical?kt.getCumulativeOffsetTop(this):kt.getCumulativeOffsetLeft(this)),r(this,Ce,this.vertical?kt.getCumulativeOffsetTop(t(this,b)):kt.getCumulativeOffsetLeft(t(this,b))),r(this,w,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,G).current,a=(t(this,w)-t(this,I)*(h-1))/h;t(this,l).forEach(g=>{g.setSize(a)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,X).current){r(this,y,t(this,w)*t(this,X).current);const h=t(this,y)+t(this,w);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%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",r(this,y,t(this,b).offsetHeight-t(this,w))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",r(this,y,t(this,b).offsetWidth-t(this,w)));if(!t(this,R).current){const h=getComputedStyle(this),a=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,y,t(this,y)+a),t(this,d).max=t(this,y)}if(t(this,R).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],a=h.position+h.size-t(this,w),g=t(this,y)-a;r(this,Ct,h.position+h.size+g)}else r(this,Ct,t(this,y));if(t(this,Y).current&&t(this,l).length){const h=t(this,l)[e];t(this,d).set(h.position,{equalize:!0})}else t(this,d).set(s*t(this,y),{equalize:!0})});i(this,ve,()=>{const s=this.currentScrollValue;if(r(this,ie,Math.max(0,s-t(this,y))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const a=t(this,l)[h];a.transform(),this.targetScrollValue+a.size/2>=a.position&&(e=h)}t(this,C).current=e}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;Yt.scrollEntries.update(this,t(this,k).current,s)});i(this,he,(s,e)=>{t(this,It).current&&(t(this,bt).current&&(t(this,z).pauseAndContinue(t(this,_t).current),t(this,z).direction=Math.sign(e)||1),t(this,Pe).call(this,s,e))});i(this,Pe,(s,e)=>{if(t(this,Q).current){if(t(this,Q).current<0&&e>0)return;if(t(this,Q).current>0&&e<0)return}if(t(this,st).unlistenAnimationFrame(),!t(this,K).current&&t(this,gt).current&&(clearInterval(t(this,re)),r(this,re,setTimeout(()=>{const h=o(this,u,We).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,Ht).current,easing:Ps.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Es.device.isMobile&&!t(this,Bt).current))if(t(this,Y).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,d).shift(h*t(this,w))}else t(this,d).shift(e)});Ge.isBrowser&&(r(this,d,new ts.Damped(0,{damping:.01,min:0,order:be.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Vs),W.element(this,{tabIndex:0,children:[W.div({class:"static",children:[W.slot({name:"static"})]}),W.div({class:"content",children:[W.slot({ref:e=>r(this,ge,e)})],style:{flexDirection:new vs.Derived(t(this,k),e=>e==="x"?"row":"column")},ref:e=>r(this,b,e)})]}),r(this,Z,new Oe.WheelControls({element:t(this,b)})),t(this,Z).changeEvent.subscribe(t(this,he)),r(this,yt,new Oe.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,he)),r(this,et,new Oe.DragControls({element:t(this,b)})),t(this,et).changeEvent.subscribe(t(this,he)),r(this,z,new Oe.AutoplayControls({culling:this})),t(this,z).changeEvent.subscribe(t(this,Pe)),t(this,k).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,Z).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,et).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,T).call(this)}),t(this,ft).subscribe(e=>{t(this,Z).axis=e.current?"max":t(this,k).current}),t(this,X).subscribe(()=>{this.isConnected&&t(this,T).call(this)}),t(this,U).subscribe(({current:e})=>{this.isConnected&&(e?o(this,u,fe).call(this):o(this,u,ee).call(this))}),t(this,Y).subscribe(e=>{t(this,Z).debounce=e.current,t(this,et).swipe=e.current,t(this,z).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,T).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,G).subscribe(e=>{this.isConnected&&(t(this,T).call(this),o(this,u,Dt).call(this))}),t(this,R).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,U).current=!0)),t(this,l).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(r(this,ie,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Tt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Mt).subscribe(e=>{t(this,d).mass=e.current}),t(this,At).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,$t).subscribe(e=>{e.current&&!e.previous?o(this,u,Ae).call(this):!e.current&&e.previous&&o(this,u,Be).call(this)}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,u,_e).call(this):!e.current&&e.previous&&o(this,u,He).call(this)}),t(this,K).subscribe(e=>{t(this,z).speed=e.current,e.current&&!e.previous?t(this,z).connect():!e.current&&e.previous&&t(this,z).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,z).direction=1)}),t(this,N).subscribe(e=>{this.isConnected&&o(this,u,Dt).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,tt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,C).subscribe(e=>{t(this,l).length&&o(this,u,Dt).call(this)}),t(this,st).subscribe(e=>{t(this,st).isRunning.current&&t(this,d).set(e.current)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,It)}get axisCSSProperty(){return t(this,k)}get directionCSSProperty(){return t(this,Q)}get pagesCSSProperty(){return t(this,X)}get splitCSSProperty(){return t(this,U)}get sectionalCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,G)}get loopCSSProperty(){return t(this,R)}get dampingCSSProperty(){return t(this,Tt)}get massCSSProperty(){return t(this,Mt)}get stiffnessCSSProperty(){return t(this,At)}get mouseDragCSSProperty(){return t(this,Bt)}get sectionDistanceScaleCSSProperty(){return t(this,se)}get autoplayCSSProperty(){return t(this,K)}get autoplayPauseDurationCSSProperty(){return t(this,_t)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,N)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,tt)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,Ht)}get disabledCSSProperty(){return t(this,$t)}get hibernatedCSSProperty(){return t(this,Wt)}get currentScrollValue(){return o(this,u,$e).call(this,"current")}get targetScrollValue(){return o(this,u,$e).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,l)}get position(){return t(this,ye)}get contentPosition(){return t(this,Ce)}get viewportSize(){return t(this,w)}get scrollSize(){return t(this,y)}get gap(){return t(this,I)}get counter(){return t(this,C)}get limit(){return t(this,l).length-t(this,G).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,R).current?t(this,Ct)+t(this,I):t(this,Ct)}get overscroll(){return t(this,ie)}get vertical(){return t(this,k).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,k).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,k).current==="x"?0:t(this,d).distance}onScroll(...s){return t(this,d).subscribe(...s)}offScroll(...s){t(this,d).unsubscribe(...s)}range(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress<a?0:this.currentProgress>g?1:(this.currentProgress-a)/(g-a)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress>=a&&this.currentProgress<=g}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,C).current;o(this,u,ss).call(this,s);const a=t(this,l)[h],g=t(this,l)[t(this,C).current];if(a&&g){let q=0;const te=o(this,u,We).call(this),ms=te?this.targetScrollValue-te.position:0;t(this,R).current?t(this,C).current===0&&h===t(this,l).length-1?q=t(this,y)+t(this,w)-a.position+t(this,I):t(this,C).current===t(this,l).length-1&&h===0?q=g.position-(t(this,y)+t(this,w)+t(this,I)):q=g.position-a.position:q=g.position-a.position,this.shiftPosition(q-ms,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,C).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,st).set(t(this,d).current,{equalize:!0}),t(this,st).set(s,Qe({},e.tween))):t(this,d).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,d).target+s,e)}connectedCallback(){t(this,It).observe(),t(this,k).observe(),t(this,Q).observe(),t(this,X).observe(),t(this,U).observe(),t(this,Y).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,G).observe(),t(this,R).observe(),t(this,Tt).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,se).observe(),t(this,K).observe(),t(this,K).observe(),t(this,_t).observe(),t(this,bt).observe(),t(this,N).observe(),t(this,mt).observe(),t(this,tt).observe(),t(this,gt).observe(),t(this,Ht).observe(),t(this,$t).observe(),t(this,Wt).observe(),o(this,u,He).call(this)}disconnectedCallback(){t(this,It).unobserve(),t(this,k).unobserve(),t(this,Q).unobserve(),t(this,X).unobserve(),t(this,U).unobserve(),t(this,Y).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,G).unobserve(),t(this,R).unobserve(),t(this,Tt).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,se).unobserve(),t(this,K).unobserve(),t(this,_t).unobserve(),t(this,bt).unobserve(),t(this,N).unobserve(),t(this,mt).unobserve(),t(this,tt).unobserve(),t(this,gt).unobserve(),t(this,Ht).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),o(this,u,_e).call(this)}}d=new WeakMap,It=new WeakMap,k=new WeakMap,Q=new WeakMap,X=new WeakMap,U=new WeakMap,Y=new WeakMap,pt=new WeakMap,ft=new WeakMap,G=new WeakMap,R=new WeakMap,Tt=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,se=new WeakMap,K=new WeakMap,_t=new WeakMap,bt=new WeakMap,N=new WeakMap,mt=new WeakMap,tt=new WeakMap,gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Wt=new WeakMap,b=new WeakMap,ge=new WeakMap,l=new WeakMap,ye=new WeakMap,Ce=new WeakMap,w=new WeakMap,y=new WeakMap,I=new WeakMap,Z=new WeakMap,yt=new WeakMap,et=new WeakMap,z=new WeakMap,C=new WeakMap,ie=new WeakMap,Ct=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,re=new WeakMap,st=new WeakMap,u=new WeakSet,fe=function(){o(this,u,ee).call(this),t(this,ge).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new zs(s,e,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,T).call(this),o(this,u,Dt).call(this)},ee=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,C).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},Ae=function(){t(this,Ut)||(r(this,Ut,!0),t(this,d).unsubscribe(t(this,ve)),t(this,d).unlistenAnimationFrame(),t(this,Z).disconnect(),t(this,yt).disconnect(),t(this,et).disconnect(),t(this,z).disconnect(),clearInterval(t(this,re)),t(this,st).unlistenAnimationFrame())},Be=function(){t(this,Ut)&&(r(this,Ut,!1),t(this,d).subscribe(t(this,ve)),t(this,Z).connect(),t(this,yt).connect(),t(this,et).connect(),t(this,K).current&&t(this,z).connect())},_e=function(){t(this,Gt)||(r(this,Gt,!0),pe.windowResizer.unsubscribe(t(this,T)),qe.elementResizer.unsubscribe(t(this,T)),t(this,d).reset(),o(this,u,Ae).call(this),t(this,b).style.transform="",t(this,U).current&&o(this,u,ee).call(this),Yt.scrollEntries.unregister(this))},He=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,U).current&&o(this,u,fe).call(this),Yt.scrollEntries.register(this),pe.windowResizer.subscribe(t(this,T),be.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,T)),o(this,u,Be).call(this))},T=new WeakMap,ve=new WeakMap,ss=function(s){t(this,R).current?(t(this,C).current=s%t(this,l).length,t(this,C).current=t(this,C).current<0?t(this,l).length+t(this,C).current:t(this,C).current):t(this,C).current=Ke.clamp(s,0,this.limit)},he=new WeakMap,Pe=new WeakMap,$e=function(s="current"){if(t(this,R).current&&t(this,l).length){const e=t(this,d)[s]%(t(this,y)+t(this,w)+t(this,I));return e<0?t(this,y)+e+t(this,w)+t(this,I):e}else return t(this,d)[s]},Dt=function(){if(t(this,N).current&&t(this,l).length){const s=t(this,C).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,G).current+t(this,tt).current;t(this,l).forEach((h,a)=>{const g=s-this.limit-1+t(this,tt).current,q=s+e,te=this.sections.length-q;a>=s&&a<q||a<=g?h.mark("current"):a>=q&&a<q+te/2||a<=g+e?h.mark("next"):h.mark("previous")})}},We=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const a=Math.abs(t(this,l)[h].position-this.targetScrollValue);a<e&&(e=a,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ie);var we;class Te extends HTMLElement{constructor(){super(...arguments);i(this,we,null)}get scrollElement(){return t(this,we)}connectedCallback(){const s=Ls.findParentElement(this,Ie);s instanceof Ie?r(this,we,s):console.error(this,"e-scroll not found")}}we=new WeakMap;const Fs=Ne.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ye.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ye.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ne,D,it,rt,oe,ce,Kt,Ee,xe,Le;class is extends Te{constructor(){super();i(this,ne,null);i(this,D,null);i(this,it,!1);i(this,rt,0);i(this,oe,0);i(this,ce,0);i(this,Kt,()=>{r(this,it,this.offsetWidth>this.offsetHeight);const s=t(this,it)?this.offsetWidth:this.offsetHeight;r(this,rt,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,rt,Math.max(t(this,rt),30)),t(this,it)?(t(this,D).style.width=t(this,rt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,rt)+"px"),r(this,oe,s-t(this,rt)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,Ee,()=>{r(this,ce,this.scrollElement.currentProgress*t(this,oe)),t(this,it)?t(this,D).style.transform=`translate3d(${t(this,ce)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,ce)}px, 0px)`});i(this,xe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Le,s=>{document.documentElement.classList.add("grabbing"),xs.setupDrag(a=>{const g=t(this,it)?a.x:a.y,q=this.scrollElement.distance/t(this,oe),te=(g-h)*q;this.scrollElement.setPosition(e+te)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,it)?s.x:s.y});Ge.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Fs),W.element(this,{slot:"static","drag-dead-zone":"",children:[W.slot({ref:e=>r(this,ne,e),children:W.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback();const s=t(this,ne).assignedElements()[0]||t(this,ne).firstElementChild;r(this,D,s),t(this,D).addEventListener("pointerdown",t(this,Le)),pe.windowResizer.subscribe(t(this,Kt),be.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,t(this,Kt)),this.scrollElement.onScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.subscribe(t(this,xe))}disconnectedCallback(){t(this,D).removeEventListener("pointerdown",t(this,Le)),pe.windowResizer.unsubscribe(t(this,Kt)),qe.elementResizer.unsubscribe(t(this,Kt)),this.scrollElement.offScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,xe))}}ne=new WeakMap,D=new WeakMap,it=new WeakMap,rt=new WeakMap,oe=new WeakMap,ce=new WeakMap,Kt=new WeakMap,Ee=new WeakMap,xe=new WeakMap,Le=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",is);const ks=Ne.createStylesheet({button:{all:"inherit"}});class rs extends Te{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ks),Ge.isBrowser&&W.element(this,{children:[W.button({onClick:()=>{this.handleClick()},children:[W.slot()]})]})}}class hs extends rs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",hs);class ns extends rs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ns);var ht,vt,le,ze,Ve,ue;class Rs{constructor(n,s,e){i(this,ht);i(this,vt);i(this,le);i(this,ze);i(this,Ve,()=>{t(this,vt).scrollToSection(t(this,le),{behaviour:t(this,ze)})});i(this,ue,()=>{t(this,ht).classList.toggle("current",t(this,vt).counter.current===t(this,le))});r(this,ht,document.createElement("button")),r(this,vt,n),r(this,ze,e),r(this,le,s),t(this,ht).addEventListener("click",t(this,Ve)),t(this,vt).counter.subscribe(t(this,ue)),t(this,ue).call(this)}get element(){return t(this,ht)}destroy(){t(this,ht).removeEventListener("click",t(this,Ve)),t(this,vt).counter.unsubscribe(t(this,ue)),t(this,ht).remove()}}ht=new WeakMap,vt=new WeakMap,le=new WeakMap,ze=new WeakMap,Ve=new WeakMap,ue=new WeakMap;var Pt,ae;class os extends Te{constructor(){super(...arguments);i(this,Pt,[]);i(this,ae,es.debounce(()=>{t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Rs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,Pt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,ae)),t(this,ae).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,ae)),t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[])}}Pt=new WeakMap,ae=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",os);var Nt,Zt,jt,Jt,wt,Et,xt,Lt,V,M,A,B,zt,E,nt,ot,ct,lt,ut,x,_,H,at,St,j,Fe,p,Qt,Xt,ke,L,Vt,O,F,$,Se,Ft,P,f,ls,us,as,Ss,ds,ps,Re,de,Ot,fs,bs,Ue,De;class cs extends Te{constructor(){super();i(this,f);i(this,Nt,new c.CSSProperty(this,"--damping",20));i(this,Zt,new c.CSSProperty(this,"--mass",0));i(this,jt,new c.CSSProperty(this,"--stiffness",0));i(this,Jt,new c.CSSProperty(this,"--target",""));i(this,wt,new c.CSSProperty(this,"--disabled",!1));i(this,Et,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,xt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--capture-once",!1));i(this,V,new c.CSSProperty(this,"--captured",""));i(this,M,new c.CSSProperty(this,"--released",""));i(this,A,new c.CSSProperty(this,"--captured-from-start",""));i(this,B,new c.CSSProperty(this,"--captured-from-finish",""));i(this,zt,new c.CSSProperty(this,"--released-from-start",""));i(this,E,new c.CSSProperty(this,"--released-from-finish",""));i(this,nt,new c.CSSProperty(this,"--passed-var",""));i(this,ot,new c.CSSProperty(this,"--progress-var",""));i(this,ct,new c.CSSProperty(this,"--distance-var",""));i(this,lt,new c.CSSProperty(this,"--start-var",""));i(this,ut,new c.CSSProperty(this,"--finish-var",""));i(this,x,new Rt.Store(!1));i(this,_,new Rt.Store(!1));i(this,H,new Rt.Store(!1));i(this,at,new Rt.Store(!1));i(this,St,new Rt.Store(!1));i(this,j,new Rt.Store(!1));i(this,Fe,[]);i(this,p,this);i(this,Qt,0);i(this,Xt,0);i(this,ke,0);i(this,L,new ts.Damped(0,{order:be.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Vt,0);i(this,O,0);i(this,F,0);i(this,$,0);i(this,Se,!1);i(this,Ft,!1);i(this,P,!0);i(this,Re,()=>{t(this,P)||(this.resize(),t(this,de).call(this))});i(this,de,()=>{!t(this,P)&&t(this,Se)&&this.tick()});i(this,De,es.debounce(()=>{const s=Yt.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,a)=>{h.element===this.scrollElement&&(e=a)}),r(this,Fe,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,Et)}get startOffsetCSSProperty(){return t(this,xt)}get captureOnceCSSProperty(){return t(this,Lt)}get capturedCSSProperty(){return t(this,V)}get releasedCSSProperty(){return t(this,M)}get capturedFromStartCSSProperty(){return t(this,A)}get capturedFromFinishCSSProperty(){return t(this,B)}get releasedFromStartCSSProperty(){return t(this,zt)}get releasedFromFinishCSSProperty(){return t(this,E)}get passedVarCSSProperty(){return t(this,nt)}get progressVarCSSProperty(){return t(this,ot)}get distanceVarCSSProperty(){return t(this,ct)}get startVarCSSProperty(){return t(this,lt)}get finishVarCSSProperty(){return t(this,ut)}get disabledCSSProperty(){return t(this,wt)}get dampingCSSProperty(){return t(this,Nt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,jt)}get targetCSSProperty(){return t(this,Jt)}get isCaptured(){return t(this,x)}get isReleased(){return t(this,_)}get isCapturedFromStart(){return t(this,H)}get isReleasedFromStart(){return t(this,at)}get isCapturedFromFinish(){return t(this,St)}get isReleasedFromFinish(){return t(this,j)}get directionPosition(){return t(this,Qt)}get directionSize(){return t(this,Xt)}get passed(){return t(this,L)}get progress(){return t(this,Vt)}get start(){return t(this,O)}get finish(){return t(this,$)}get distance(){return t(this,F)}get isCapturedOnce(){return t(this,Ft)}get isDisabled(){return t(this,P)}resize(){r(this,Xt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Qt,this.scrollElement.vertical?kt.getCumulativeOffsetTop(this,this.scrollElement):kt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,O,this.getStart()),r(this,F,this.getDistance()),r(this,O,t(this,O)+t(this,xt).current),r(this,F,t(this,F)+t(this,Et).current),r(this,$,t(this,O)+t(this,F)),this.scrollElement.currentScrollValue>t(this,$)&&!t(this,x).current&&!t(this,_).current&&(t(this,x).current=!0),this.setVar(t(this,lt).current,t(this,O)),this.setVar(t(this,ut).current,t(this,$)),this.setVar(t(this,ct).current,t(this,F)),t(this,L).max=t(this,F),r(this,Se,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Fe).forEach(h=>{s+=h.value}),t(this,L).set(s-t(this,O));const e=Math.round(s);t(this,x).current&&(e>t(this,O)?t(this,H).current||o(this,f,as).call(this):t(this,H).current&&!t(this,at).current&&o(this,f,ds).call(this),e<t(this,$)?t(this,j).current&&!t(this,St).current&&o(this,f,Ss).call(this):t(this,H).current&&!t(this,j).current&&o(this,f,ps).call(this)),e>t(this,O)&&e<t(this,$)?t(this,x).current||o(this,f,ls).call(this):t(this,x).current&&(t(this,L).set(Ke.step(t(this,F)/2,t(this,L).current,0,t(this,F))),o(this,f,us).call(this)),t(this,Ft)&&t(this,Lt).current&&(t(this,V).current&&t(this,p).classList.add(t(this,V).current),r(this,P,!0))}disable(){this.style.cssText="",r(this,Qt,0),r(this,Xt,0),t(this,L).reset(),r(this,Vt,0),r(this,O,0),r(this,F,0),r(this,$,0),r(this,Se,!1),t(this,x).current=!1,t(this,_).current=!1,t(this,H).current=!1,t(this,at).current=!1,t(this,St).current=!1,t(this,j).current=!1,r(this,Ft,!1),r(this,P,!0),o(this,f,Ue).call(this)}enable(){r(this,P,!1)}connectedCallback(){super.connectedCallback(),t(this,Nt).observe(),t(this,Zt).observe(),t(this,jt).observe(),t(this,Jt).observe(),t(this,wt).observe(),t(this,Et).observe(),t(this,xt).observe(),t(this,Lt).observe(),t(this,V).observe(),t(this,M).observe(),t(this,A).observe(),t(this,B).observe(),t(this,zt).observe(),t(this,E).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe(),t(this,ut).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,De)),t(this,De).call(this),t(this,wt).current||this.enable(),t(this,Nt).subscribe(e=>{t(this,L).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,L).mass=e.current}),t(this,jt).subscribe(e=>{t(this,L).stiffness=e.current}),t(this,Jt).subscribe(e=>{e.previous&&o(this,f,Ue).call(this),e.current?e.current==="parent"?r(this,p,this.parentElement||this):r(this,p,document.querySelector(e.current)||this):r(this,p,this)}),t(this,wt).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,xt).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,Et).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,V).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,A).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,B).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,M).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,zt).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,E).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,Lt).subscribe(e=>{t(this,P)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,nt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,ot).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Vt)))}),t(this,lt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,O)))}),t(this,ut).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,$)))}),t(this,ct).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,F)))}),t(this,L).subscribe(e=>{r(this,Vt,t(this,L).current/t(this,F)||0),this.setVar(t(this,nt).current,t(this,L).current.toFixed(6)),this.setVar(t(this,ot).current,t(this,Vt).toFixed(6))}),pe.windowResizer.subscribe(t(this,Re),be.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,de)),s=!0}disconnectedCallback(){pe.windowResizer.unsubscribe(t(this,Re)),this.scrollElement.offScroll(t(this,de)),t(this,Nt).close(),t(this,Zt).close(),t(this,jt).close(),t(this,Jt).close(),t(this,wt).close(),t(this,Et).close(),t(this,xt).close(),t(this,Lt).close(),t(this,V).close(),t(this,M).close(),t(this,A).close(),t(this,B).close(),t(this,zt).close(),t(this,E).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,ut).close(),t(this,x).close(),t(this,_).close(),t(this,H).close(),t(this,at).close(),t(this,St).close(),t(this,j).close(),this.disable()}removeVar(s){s&&t(this,p).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,p).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,Xt)+t(this,ke)}getStart(){return t(this,Qt)-t(this,ke)}}Nt=new WeakMap,Zt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,wt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,V=new WeakMap,M=new WeakMap,A=new WeakMap,B=new WeakMap,zt=new WeakMap,E=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,x=new WeakMap,_=new WeakMap,H=new WeakMap,at=new WeakMap,St=new WeakMap,j=new WeakMap,Fe=new WeakMap,p=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,ke=new WeakMap,L=new WeakMap,Vt=new WeakMap,O=new WeakMap,F=new WeakMap,$=new WeakMap,Se=new WeakMap,Ft=new WeakMap,P=new WeakMap,f=new WeakSet,ls=function(){t(this,x).current=!0,t(this,_).current=!1,r(this,Ft,!0),t(this,M).current&&t(this,p).classList.remove(t(this,M).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,V).current&&t(this,p).classList.add(t(this,V).current)},us=function(){t(this,_).current=!0,t(this,x).current=!1,r(this,Ft,!0),t(this,V).current&&t(this,p).classList.remove(t(this,V).current),t(this,A).current&&t(this,p).classList.remove(t(this,A).current),t(this,B).current&&t(this,p).classList.remove(t(this,B).current),t(this,M).current&&t(this,p).classList.add(t(this,M).current)},as=function(){t(this,x).current=!0,t(this,H).current=!0,t(this,at).current=!1,t(this,A).current&&t(this,p).classList.add(t(this,A).current)},Ss=function(){t(this,x).current=!0,t(this,St).current=!0,t(this,j).current=!1,t(this,B).current&&t(this,p).classList.add(t(this,B).current)},ds=function(){t(this,_).current=!0,t(this,at).current=!0,t(this,H).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},ps=function(){t(this,_).current=!0,t(this,j).current=!0,t(this,St).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},Re=new WeakMap,de=new WeakMap,Ot=function(s){if(t(this,P)){s.previous&&t(this,p).classList.remove(s.previous),s.current&&t(this,p).classList.remove(s.current);return}s.current&&t(this,x).current?(s.previous&&t(this,p).classList.remove(s.previous),t(this,p).classList.add(s.current)):!s.current&&s.previous&&t(this,p).classList.remove(s.previous)},fs=function(...s){s.forEach(e=>{e&&t(this,p).classList.remove(e)})},bs=function(...s){s.forEach(e=>{e&&t(this,p).style.removeProperty(`--${e}`)})},Ue=function(){o(this,f,fs).call(this,t(this,V).current,t(this,A).current,t(this,B).current,t(this,M).current,t(this,zt).current,t(this,E).current),o(this,f,bs).call(this,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current,t(this,ut).current)},De=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",cs);exports.ScrollBulletButtonsElement=os;exports.ScrollElement=Ie;exports.ScrollSegmentElement=cs;exports.ScrollSetButtonElement=hs;exports.ScrollStepButtonElement=ns;exports.ScrollbarElement=is;
1
+ "use strict";var gs=Object.defineProperty;var Ze=Object.getOwnPropertySymbols;var ys=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable;var Je=S=>{throw TypeError(S)};var je=(S,n,s)=>n in S?gs(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,Qe=(S,n)=>{for(var s in n||(n={}))ys.call(n,s)&&je(S,s,n[s]);if(Ze)for(var s of Ze(n))Cs.call(n,s)&&je(S,s,n[s]);return S};var Me=(S,n,s)=>n.has(S)||Je("Cannot "+s);var t=(S,n,s)=>(Me(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>n.has(S)?Je("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(S):n.set(S,s),r=(S,n,s,e)=>(Me(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s),o=(S,n,s)=>(Me(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rt=require("../Store-npaZHvX4.cjs"),vs=require("../Derived-BIBU-y7Z.cjs"),Ge=require("../browser-CpzFX2xg.cjs"),Ps=require("../easings-DsS5-Kqc.cjs"),kt=require("../layout-8ryRAMGJ.cjs"),Ke=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const be=require("../order/index.cjs"),ts=require("../Damped-DYJ6Z0xo.cjs"),ws=require("../Tweened-BkkD9s4n.cjs"),Oe=require("../controls/index.cjs"),pe=require("../window-resizer/index.cjs"),Yt=require("../scroll-entries/index.cjs"),W=require("../tags-6_ETuR75.cjs"),Ne=require("../createStylesheet-Csfmh-MH.cjs"),Xe=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Es=require("../Viewport-Cv4TRGiv.cjs"),qe=require("../element-resizer/index.cjs"),xs=require("../gestures-DHLrn6Q8.cjs"),Ye=require("../theme/index.cjs"),Ls=require("../dom-JBOkFLTh.cjs"),es=require("../function-MthRj-GJ.cjs");var m,me,v,qt,J,dt;class zs{constructor(n,s,e){i(this,m);i(this,me);i(this,v);i(this,qt,0);i(this,J,0);i(this,dt,null);r(this,m,n),r(this,me,s),r(this,v,e),Yt.scrollEntries.register(t(this,m))}get index(){return t(this,me)}get size(){return t(this,qt)}get position(){return t(this,J)}destroy(){Yt.scrollEntries.unregister(t(this,m)),t(this,m).style.transform="",this.mark(null)}setSize(n){n?(t(this,m).style.setProperty("--size",n+"px"),t(this,v).axisCSSProperty.current==="x"?(t(this,m).style.width=n+"px",t(this,m).style.height=""):(t(this,m).style.height=n+"px",t(this,m).style.width="")):(t(this,m).style.width="",t(this,m).style.height="",t(this,m).style.removeProperty("--size"))}resize(){r(this,qt,t(this,v).vertical?t(this,m).offsetHeight:t(this,m).offsetWidth),r(this,J,t(this,v).vertical?kt.getCumulativeOffsetTop(t(this,m)):kt.getCumulativeOffsetLeft(t(this,m))),r(this,J,t(this,J)-t(this,v).contentPosition)}transform(){let n=0;const s=t(this,v).viewportSize*t(this,v).sectionDistanceScaleCSSProperty.current;t(this,v).loopCSSProperty.current&&t(this,v).overscroll&&t(this,J)+t(this,qt)<t(this,v).currentScrollValue&&(n=t(this,v).distance*-1-t(this,v).gap),Yt.scrollEntries.update(t(this,m),t(this,v).axisCSSProperty.current,n);const e=t(this,v).currentScrollValue+n,h=t(this,J)-t(this,v).viewportSize-s,a=t(this,J)+t(this,qt)+s,g=Ke.clamp(e,h,a);t(this,v).vertical?t(this,m).style.transform=`translate3d(0px, ${g*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${g*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,m).classList.remove(t(this,dt)),n&&t(this,m).classList.add(n),r(this,dt,n),t(this,m).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}m=new WeakMap,me=new WeakMap,v=new WeakMap,qt=new WeakMap,J=new WeakMap,dt=new WeakMap;const Vs=Ne.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var d,It,k,Q,X,U,Y,pt,ft,G,R,Tt,Mt,At,Bt,se,K,_t,bt,N,mt,tt,gt,Ht,$t,Wt,b,ge,l,ye,Ce,w,y,I,Z,yt,et,z,C,ie,Ct,Ut,Gt,re,st,u,fe,ee,Ae,Be,_e,He,T,ve,ss,he,Pe,$e,Dt,We;class Ie extends HTMLElement{constructor(){super();i(this,u);i(this,d,null);i(this,It,new c.CSSProperty(this,"--controls",!0));i(this,k,new c.CSSProperty(this,"--axis","y"));i(this,Q,new c.CSSProperty(this,"--direction",0));i(this,X,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,U,new c.CSSProperty(this,"--split",!1));i(this,Y,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,G,new c.CSSProperty(this,"--sections-in-view",1));i(this,R,new c.CSSProperty(this,"--loop",!1));i(this,Tt,new c.CSSProperty(this,"--damping",20));i(this,Mt,new c.CSSProperty(this,"--mass",0));i(this,At,new c.CSSProperty(this,"--stiffness",0));i(this,Bt,new c.CSSProperty(this,"--mouse-drag",!1));i(this,se,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,K,new c.CSSProperty(this,"--autoplay",0));i(this,_t,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,N,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,tt,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,Ht,new c.CSSProperty(this,"--focus-duration",3e3));i(this,$t,new c.CSSProperty(this,"--disabled",!1));i(this,Wt,new c.CSSProperty(this,"--hibernated",!1));i(this,b,null);i(this,ge,null);i(this,l,[]);i(this,ye,0);i(this,Ce,0);i(this,w,0);i(this,y,0);i(this,I,0);i(this,Z,null);i(this,yt,null);i(this,et,null);i(this,z,null);i(this,C,new Rt.Store(0));i(this,ie,0);i(this,Ct,0);i(this,Ut,!0);i(this,Gt,!0);i(this,re);i(this,st,new ws.Tweened);i(this,T,()=>{t(this,d).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,y)||0,e=t(this,C).current;if(r(this,ye,this.vertical?kt.getCumulativeOffsetTop(this):kt.getCumulativeOffsetLeft(this)),r(this,Ce,this.vertical?kt.getCumulativeOffsetTop(t(this,b)):kt.getCumulativeOffsetLeft(t(this,b))),r(this,w,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,G).current,a=(t(this,w)-t(this,I)*(h-1))/h;t(this,l).forEach(g=>{g.setSize(a)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,X).current){r(this,y,t(this,w)*t(this,X).current);const h=t(this,y)+t(this,w);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%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",r(this,y,t(this,b).offsetHeight-t(this,w))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",r(this,y,t(this,b).offsetWidth-t(this,w)));if(!t(this,R).current){const h=getComputedStyle(this),a=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,y,t(this,y)+a),t(this,d).max=t(this,y)}if(t(this,R).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],a=h.position+h.size-t(this,w),g=t(this,y)-a;r(this,Ct,h.position+h.size+g)}else r(this,Ct,t(this,y));if(t(this,Y).current&&t(this,l).length){const h=t(this,l)[e];t(this,d).set(h.position,{equalize:!0})}else t(this,d).set(s*t(this,y),{equalize:!0})});i(this,ve,()=>{const s=this.currentScrollValue;if(r(this,ie,Math.max(0,s-t(this,y))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const a=t(this,l)[h];a.transform(),this.targetScrollValue+a.size/2>=a.position&&(e=h)}t(this,C).current=e}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;Yt.scrollEntries.update(this,t(this,k).current,s)});i(this,he,(s,e)=>{t(this,It).current&&(t(this,bt).current&&(t(this,z).pauseAndContinue(t(this,_t).current),t(this,z).direction=Math.sign(e)||1),t(this,Pe).call(this,s,e))});i(this,Pe,(s,e)=>{if(t(this,Q).current){if(t(this,Q).current<0&&e>0)return;if(t(this,Q).current>0&&e<0)return}if(t(this,st).unlistenAnimationFrame(),!t(this,K).current&&t(this,gt).current&&(clearInterval(t(this,re)),r(this,re,setTimeout(()=>{const h=o(this,u,We).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,Ht).current,easing:Ps.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Es.device.isMobile&&!t(this,Bt).current))if(t(this,Y).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,d).shift(h*t(this,w))}else t(this,d).shift(e)});Ge.isBrowser&&(r(this,d,new ts.Damped(0,{damping:.01,min:0,order:be.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Vs),W.element(this,{tabIndex:0,children:[W.div({class:"static",children:[W.slot({name:"static"})]}),W.div({class:"content",children:[W.slot({ref:e=>r(this,ge,e)})],style:{flexDirection:new vs.Derived(t(this,k),e=>e==="x"?"row":"column")},ref:e=>r(this,b,e)})]}),r(this,Z,new Oe.WheelControls({element:t(this,b)})),t(this,Z).changeEvent.subscribe(t(this,he)),r(this,yt,new Oe.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,he)),r(this,et,new Oe.DragControls({element:t(this,b)})),t(this,et).changeEvent.subscribe(t(this,he)),r(this,z,new Oe.AutoplayControls({culling:this})),t(this,z).changeEvent.subscribe(t(this,Pe)),t(this,k).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,Z).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,et).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,T).call(this)}),t(this,ft).subscribe(e=>{t(this,Z).axis=e.current?"max":t(this,k).current}),t(this,X).subscribe(()=>{this.isConnected&&t(this,T).call(this)}),t(this,U).subscribe(({current:e})=>{this.isConnected&&(e?o(this,u,fe).call(this):o(this,u,ee).call(this))}),t(this,Y).subscribe(e=>{t(this,Z).debounce=e.current,t(this,et).swipe=e.current,t(this,z).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,T).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,G).subscribe(e=>{this.isConnected&&(t(this,T).call(this),o(this,u,Dt).call(this))}),t(this,R).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,U).current=!0)),t(this,l).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(r(this,ie,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Tt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Mt).subscribe(e=>{t(this,d).mass=e.current}),t(this,At).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,$t).subscribe(e=>{e.current&&!e.previous?o(this,u,Ae).call(this):!e.current&&e.previous&&o(this,u,Be).call(this)}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,u,_e).call(this):!e.current&&e.previous&&o(this,u,He).call(this)}),t(this,K).subscribe(e=>{t(this,z).speed=e.current,e.current&&!e.previous?t(this,z).connect():!e.current&&e.previous&&t(this,z).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,z).direction=1)}),t(this,N).subscribe(e=>{this.isConnected&&o(this,u,Dt).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,tt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,C).subscribe(e=>{t(this,l).length&&o(this,u,Dt).call(this)}),t(this,st).subscribe(e=>{t(this,st).isRunning.current&&t(this,d).set(e.current)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,It)}get axisCSSProperty(){return t(this,k)}get directionCSSProperty(){return t(this,Q)}get pagesCSSProperty(){return t(this,X)}get splitCSSProperty(){return t(this,U)}get sectionalCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,G)}get loopCSSProperty(){return t(this,R)}get dampingCSSProperty(){return t(this,Tt)}get massCSSProperty(){return t(this,Mt)}get stiffnessCSSProperty(){return t(this,At)}get mouseDragCSSProperty(){return t(this,Bt)}get sectionDistanceScaleCSSProperty(){return t(this,se)}get autoplayCSSProperty(){return t(this,K)}get autoplayPauseDurationCSSProperty(){return t(this,_t)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,N)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,tt)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,Ht)}get disabledCSSProperty(){return t(this,$t)}get hibernatedCSSProperty(){return t(this,Wt)}get currentScrollValue(){return o(this,u,$e).call(this,"current")}get targetScrollValue(){return o(this,u,$e).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,l)}get position(){return t(this,ye)}get contentPosition(){return t(this,Ce)}get viewportSize(){return t(this,w)}get scrollSize(){return t(this,y)}get gap(){return t(this,I)}get counter(){return t(this,C)}get limit(){return t(this,l).length-t(this,G).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,R).current?t(this,Ct)+t(this,I):t(this,Ct)}get overscroll(){return t(this,ie)}get vertical(){return t(this,k).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,k).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,k).current==="x"?0:t(this,d).distance}onScroll(...s){return t(this,d).subscribe(...s)}offScroll(...s){t(this,d).unsubscribe(...s)}range(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress<a?0:this.currentProgress>g?1:(this.currentProgress-a)/(g-a)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress>=a&&this.currentProgress<=g}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,C).current;o(this,u,ss).call(this,s);const a=t(this,l)[h],g=t(this,l)[t(this,C).current];if(a&&g){let q=0;const te=o(this,u,We).call(this),ms=te?this.targetScrollValue-te.position:0;t(this,R).current?t(this,C).current===0&&h===t(this,l).length-1?q=t(this,y)+t(this,w)-a.position+t(this,I):t(this,C).current===t(this,l).length-1&&h===0?q=g.position-(t(this,y)+t(this,w)+t(this,I)):q=g.position-a.position:q=g.position-a.position,this.shiftPosition(q-ms,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,C).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,st).set(t(this,d).current,{equalize:!0}),t(this,st).set(s,Qe({},e.tween))):t(this,d).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,d).target+s,e)}connectedCallback(){t(this,It).observe(),t(this,k).observe(),t(this,Q).observe(),t(this,X).observe(),t(this,U).observe(),t(this,Y).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,G).observe(),t(this,R).observe(),t(this,Tt).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,se).observe(),t(this,K).observe(),t(this,K).observe(),t(this,_t).observe(),t(this,bt).observe(),t(this,N).observe(),t(this,mt).observe(),t(this,tt).observe(),t(this,gt).observe(),t(this,Ht).observe(),t(this,$t).observe(),t(this,Wt).observe(),o(this,u,He).call(this)}disconnectedCallback(){t(this,It).unobserve(),t(this,k).unobserve(),t(this,Q).unobserve(),t(this,X).unobserve(),t(this,U).unobserve(),t(this,Y).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,G).unobserve(),t(this,R).unobserve(),t(this,Tt).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,se).unobserve(),t(this,K).unobserve(),t(this,_t).unobserve(),t(this,bt).unobserve(),t(this,N).unobserve(),t(this,mt).unobserve(),t(this,tt).unobserve(),t(this,gt).unobserve(),t(this,Ht).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),o(this,u,_e).call(this)}}d=new WeakMap,It=new WeakMap,k=new WeakMap,Q=new WeakMap,X=new WeakMap,U=new WeakMap,Y=new WeakMap,pt=new WeakMap,ft=new WeakMap,G=new WeakMap,R=new WeakMap,Tt=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,se=new WeakMap,K=new WeakMap,_t=new WeakMap,bt=new WeakMap,N=new WeakMap,mt=new WeakMap,tt=new WeakMap,gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Wt=new WeakMap,b=new WeakMap,ge=new WeakMap,l=new WeakMap,ye=new WeakMap,Ce=new WeakMap,w=new WeakMap,y=new WeakMap,I=new WeakMap,Z=new WeakMap,yt=new WeakMap,et=new WeakMap,z=new WeakMap,C=new WeakMap,ie=new WeakMap,Ct=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,re=new WeakMap,st=new WeakMap,u=new WeakSet,fe=function(){o(this,u,ee).call(this),t(this,ge).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new zs(s,e,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,T).call(this),o(this,u,Dt).call(this)},ee=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,C).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},Ae=function(){t(this,Ut)||(r(this,Ut,!0),t(this,d).unsubscribe(t(this,ve)),t(this,d).unlistenAnimationFrame(),t(this,Z).disconnect(),t(this,yt).disconnect(),t(this,et).disconnect(),t(this,z).disconnect(),clearInterval(t(this,re)),t(this,st).unlistenAnimationFrame())},Be=function(){t(this,Ut)&&(r(this,Ut,!1),t(this,d).subscribe(t(this,ve)),t(this,Z).connect(),t(this,yt).connect(),t(this,et).connect(),t(this,K).current&&t(this,z).connect())},_e=function(){t(this,Gt)||(r(this,Gt,!0),pe.windowResizer.unsubscribe(t(this,T)),qe.elementResizer.unsubscribe(t(this,T)),t(this,d).reset(),o(this,u,Ae).call(this),t(this,b).style.transform="",t(this,U).current&&o(this,u,ee).call(this),Yt.scrollEntries.unregister(this))},He=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,U).current&&o(this,u,fe).call(this),Yt.scrollEntries.register(this),pe.windowResizer.subscribe(t(this,T),be.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,T)),o(this,u,Be).call(this))},T=new WeakMap,ve=new WeakMap,ss=function(s){t(this,R).current?(t(this,C).current=s%t(this,l).length,t(this,C).current=t(this,C).current<0?t(this,l).length+t(this,C).current:t(this,C).current):t(this,C).current=Ke.clamp(s,0,this.limit)},he=new WeakMap,Pe=new WeakMap,$e=function(s="current"){if(t(this,R).current&&t(this,l).length){const e=t(this,d)[s]%(t(this,y)+t(this,w)+t(this,I));return e<0?t(this,y)+e+t(this,w)+t(this,I):e}else return t(this,d)[s]},Dt=function(){if(t(this,N).current&&t(this,l).length){const s=t(this,C).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,G).current+t(this,tt).current;t(this,l).forEach((h,a)=>{const g=s-this.limit-1+t(this,tt).current,q=s+e,te=this.sections.length-q;a>=s&&a<q||a<=g?h.mark("current"):a>=q&&a<q+te/2||a<=g+e?h.mark("next"):h.mark("previous")})}},We=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const a=Math.abs(t(this,l)[h].position-this.targetScrollValue);a<e&&(e=a,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ie);var we;class Te extends HTMLElement{constructor(){super(...arguments);i(this,we,null)}get scrollElement(){return t(this,we)}connectedCallback(){const s=Ls.findParentElement(this,Ie);s instanceof Ie?r(this,we,s):console.error(this,"e-scroll not found")}}we=new WeakMap;const Fs=Ne.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ye.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ye.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ne,D,it,rt,oe,ce,Kt,Ee,xe,Le;class is extends Te{constructor(){super();i(this,ne,null);i(this,D,null);i(this,it,!1);i(this,rt,0);i(this,oe,0);i(this,ce,0);i(this,Kt,()=>{r(this,it,this.offsetWidth>this.offsetHeight);const s=t(this,it)?this.offsetWidth:this.offsetHeight;r(this,rt,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,rt,Math.max(t(this,rt),30)),t(this,it)?(t(this,D).style.width=t(this,rt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,rt)+"px"),r(this,oe,s-t(this,rt)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,Ee,()=>{r(this,ce,this.scrollElement.currentProgress*t(this,oe)),t(this,it)?t(this,D).style.transform=`translate3d(${t(this,ce)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,ce)}px, 0px)`});i(this,xe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Le,s=>{document.documentElement.classList.add("grabbing"),xs.setupDrag(a=>{const g=t(this,it)?a.x:a.y,q=this.scrollElement.distance/t(this,oe),te=(g-h)*q;this.scrollElement.setPosition(e+te)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,it)?s.x:s.y});Ge.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Fs),W.element(this,{slot:"static","drag-dead-zone":"",children:[W.slot({ref:e=>r(this,ne,e),children:W.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback();const s=t(this,ne).assignedElements()[0]||t(this,ne).firstElementChild;r(this,D,s),t(this,D).addEventListener("pointerdown",t(this,Le)),pe.windowResizer.subscribe(t(this,Kt),be.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,t(this,Kt)),this.scrollElement.onScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.subscribe(t(this,xe))}disconnectedCallback(){t(this,D).removeEventListener("pointerdown",t(this,Le)),pe.windowResizer.unsubscribe(t(this,Kt)),qe.elementResizer.unsubscribe(t(this,Kt)),this.scrollElement.offScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,xe))}}ne=new WeakMap,D=new WeakMap,it=new WeakMap,rt=new WeakMap,oe=new WeakMap,ce=new WeakMap,Kt=new WeakMap,Ee=new WeakMap,xe=new WeakMap,Le=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",is);const ks=Ne.createStylesheet({button:{all:"inherit"}});class rs extends Te{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ks),Ge.isBrowser&&W.element(this,{children:[W.button({onClick:()=>{this.handleClick()},children:[W.slot()]})]})}}class hs extends rs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",hs);class ns extends rs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ns);var ht,vt,le,ze,Ve,ue;class Rs{constructor(n,s,e){i(this,ht);i(this,vt);i(this,le);i(this,ze);i(this,Ve,()=>{t(this,vt).scrollToSection(t(this,le),{behaviour:t(this,ze)})});i(this,ue,()=>{t(this,ht).classList.toggle("current",t(this,vt).counter.current===t(this,le))});r(this,ht,document.createElement("button")),r(this,vt,n),r(this,ze,e),r(this,le,s),t(this,ht).addEventListener("click",t(this,Ve)),t(this,vt).counter.subscribe(t(this,ue)),t(this,ue).call(this)}get element(){return t(this,ht)}destroy(){t(this,ht).removeEventListener("click",t(this,Ve)),t(this,vt).counter.unsubscribe(t(this,ue)),t(this,ht).remove()}}ht=new WeakMap,vt=new WeakMap,le=new WeakMap,ze=new WeakMap,Ve=new WeakMap,ue=new WeakMap;var Pt,ae;class os extends Te{constructor(){super(...arguments);i(this,Pt,[]);i(this,ae,es.debounce(()=>{t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Rs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,Pt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,ae)),t(this,ae).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,ae)),t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[])}}Pt=new WeakMap,ae=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",os);var Nt,Zt,jt,Jt,wt,Et,xt,Lt,V,M,A,B,zt,E,nt,ot,ct,lt,ut,x,_,H,at,St,j,Fe,p,Qt,Xt,ke,L,Vt,O,F,$,Se,Ft,P,f,ls,us,as,Ss,ds,ps,Re,de,Ot,fs,bs,Ue,De;class cs extends Te{constructor(){super();i(this,f);i(this,Nt,new c.CSSProperty(this,"--damping",20));i(this,Zt,new c.CSSProperty(this,"--mass",0));i(this,jt,new c.CSSProperty(this,"--stiffness",0));i(this,Jt,new c.CSSProperty(this,"--target",""));i(this,wt,new c.CSSProperty(this,"--disabled",!1));i(this,Et,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,xt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--capture-once",!1));i(this,V,new c.CSSProperty(this,"--captured",""));i(this,M,new c.CSSProperty(this,"--released",""));i(this,A,new c.CSSProperty(this,"--captured-from-start",""));i(this,B,new c.CSSProperty(this,"--captured-from-finish",""));i(this,zt,new c.CSSProperty(this,"--released-from-start",""));i(this,E,new c.CSSProperty(this,"--released-from-finish",""));i(this,nt,new c.CSSProperty(this,"--passed-var",""));i(this,ot,new c.CSSProperty(this,"--progress-var",""));i(this,ct,new c.CSSProperty(this,"--distance-var",""));i(this,lt,new c.CSSProperty(this,"--start-var",""));i(this,ut,new c.CSSProperty(this,"--finish-var",""));i(this,x,new Rt.Store(!1));i(this,_,new Rt.Store(!1));i(this,H,new Rt.Store(!1));i(this,at,new Rt.Store(!1));i(this,St,new Rt.Store(!1));i(this,j,new Rt.Store(!1));i(this,Fe,[]);i(this,p,this);i(this,Qt,0);i(this,Xt,0);i(this,ke,0);i(this,L,new ts.Damped(0,{order:be.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Vt,0);i(this,O,0);i(this,F,0);i(this,$,0);i(this,Se,!1);i(this,Ft,!1);i(this,P,!0);i(this,Re,()=>{t(this,P)||(this.resize(),t(this,de).call(this))});i(this,de,()=>{!t(this,P)&&t(this,Se)&&this.tick()});i(this,De,es.debounce(()=>{const s=Yt.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,a)=>{h.element===this.scrollElement&&(e=a)}),r(this,Fe,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,Et)}get startOffsetCSSProperty(){return t(this,xt)}get captureOnceCSSProperty(){return t(this,Lt)}get capturedCSSProperty(){return t(this,V)}get releasedCSSProperty(){return t(this,M)}get capturedFromStartCSSProperty(){return t(this,A)}get capturedFromFinishCSSProperty(){return t(this,B)}get releasedFromStartCSSProperty(){return t(this,zt)}get releasedFromFinishCSSProperty(){return t(this,E)}get passedVarCSSProperty(){return t(this,nt)}get progressVarCSSProperty(){return t(this,ot)}get distanceVarCSSProperty(){return t(this,ct)}get startVarCSSProperty(){return t(this,lt)}get finishVarCSSProperty(){return t(this,ut)}get disabledCSSProperty(){return t(this,wt)}get dampingCSSProperty(){return t(this,Nt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,jt)}get targetCSSProperty(){return t(this,Jt)}get isCaptured(){return t(this,x)}get isReleased(){return t(this,_)}get isCapturedFromStart(){return t(this,H)}get isReleasedFromStart(){return t(this,at)}get isCapturedFromFinish(){return t(this,St)}get isReleasedFromFinish(){return t(this,j)}get directionPosition(){return t(this,Qt)}get directionSize(){return t(this,Xt)}get passed(){return t(this,L)}get progress(){return t(this,Vt)}get start(){return t(this,O)}get finish(){return t(this,$)}get distance(){return t(this,F)}get isCapturedOnce(){return t(this,Ft)}get isDisabled(){return t(this,P)}resize(){r(this,Xt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Qt,this.scrollElement.vertical?kt.getCumulativeOffsetTop(this,this.scrollElement):kt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,O,this.getStart()),r(this,F,this.getDistance()),r(this,O,t(this,O)+t(this,xt).current),r(this,F,t(this,F)+t(this,Et).current),r(this,$,t(this,O)+t(this,F)),this.scrollElement.currentScrollValue>t(this,$)&&!t(this,x).current&&!t(this,_).current&&(t(this,x).current=!0),this.setVar(t(this,lt).current,t(this,O)),this.setVar(t(this,ut).current,t(this,$)),this.setVar(t(this,ct).current,t(this,F)),t(this,L).max=t(this,F),r(this,Se,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Fe).forEach(h=>{s+=h.value}),t(this,L).set(s-t(this,O));const e=Math.round(s);t(this,x).current&&(e>t(this,O)?t(this,H).current||o(this,f,as).call(this):t(this,H).current&&!t(this,at).current&&o(this,f,ds).call(this),e<t(this,$)?t(this,j).current&&!t(this,St).current&&o(this,f,Ss).call(this):t(this,H).current&&!t(this,j).current&&o(this,f,ps).call(this)),e>t(this,O)&&e<t(this,$)?t(this,x).current||o(this,f,ls).call(this):t(this,x).current&&(t(this,L).set(Ke.step(t(this,F)/2,t(this,L).current,0,t(this,F))),o(this,f,us).call(this)),t(this,Ft)&&t(this,Lt).current&&(t(this,V).current&&t(this,p).classList.add(t(this,V).current),r(this,P,!0))}disable(){this.style.cssText="",r(this,Qt,0),r(this,Xt,0),t(this,L).reset(),r(this,Vt,0),r(this,O,0),r(this,F,0),r(this,$,0),r(this,Se,!1),t(this,x).current=!1,t(this,_).current=!1,t(this,H).current=!1,t(this,at).current=!1,t(this,St).current=!1,t(this,j).current=!1,r(this,Ft,!1),r(this,P,!0),o(this,f,Ue).call(this)}enable(){r(this,P,!1)}connectedCallback(){super.connectedCallback(),t(this,Nt).observe(),t(this,Zt).observe(),t(this,jt).observe(),t(this,Jt).observe(),t(this,wt).observe(),t(this,Et).observe(),t(this,xt).observe(),t(this,Lt).observe(),t(this,V).observe(),t(this,M).observe(),t(this,A).observe(),t(this,B).observe(),t(this,zt).observe(),t(this,E).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe(),t(this,ut).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,De)),t(this,De).call(this),t(this,wt).current||this.enable(),t(this,Nt).subscribe(e=>{t(this,L).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,L).mass=e.current}),t(this,jt).subscribe(e=>{t(this,L).stiffness=e.current}),t(this,Jt).subscribe(e=>{e.previous&&o(this,f,Ue).call(this),e.current?e.current==="parent"?r(this,p,this.parentElement||this):r(this,p,document.querySelector(e.current)||this):r(this,p,this)}),t(this,wt).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,xt).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,Et).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,V).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,A).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,B).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,M).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,zt).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,E).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,Lt).subscribe(e=>{t(this,P)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,nt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,ot).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Vt)))}),t(this,lt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,O)))}),t(this,ut).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,$)))}),t(this,ct).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,F)))}),t(this,L).subscribe(e=>{r(this,Vt,t(this,L).current/t(this,F)||0),this.setVar(t(this,nt).current,t(this,L).current.toFixed(6)),this.setVar(t(this,ot).current,t(this,Vt).toFixed(6))}),pe.windowResizer.subscribe(t(this,Re),be.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,de)),s=!0}disconnectedCallback(){pe.windowResizer.unsubscribe(t(this,Re)),this.scrollElement.offScroll(t(this,de)),t(this,Nt).close(),t(this,Zt).close(),t(this,jt).close(),t(this,Jt).close(),t(this,wt).close(),t(this,Et).close(),t(this,xt).close(),t(this,Lt).close(),t(this,V).close(),t(this,M).close(),t(this,A).close(),t(this,B).close(),t(this,zt).close(),t(this,E).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,ut).close(),t(this,x).close(),t(this,_).close(),t(this,H).close(),t(this,at).close(),t(this,St).close(),t(this,j).close(),this.disable()}removeVar(s){s&&t(this,p).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,p).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,Xt)+t(this,ke)}getStart(){return t(this,Qt)-t(this,ke)}}Nt=new WeakMap,Zt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,wt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,V=new WeakMap,M=new WeakMap,A=new WeakMap,B=new WeakMap,zt=new WeakMap,E=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,x=new WeakMap,_=new WeakMap,H=new WeakMap,at=new WeakMap,St=new WeakMap,j=new WeakMap,Fe=new WeakMap,p=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,ke=new WeakMap,L=new WeakMap,Vt=new WeakMap,O=new WeakMap,F=new WeakMap,$=new WeakMap,Se=new WeakMap,Ft=new WeakMap,P=new WeakMap,f=new WeakSet,ls=function(){t(this,x).current=!0,t(this,_).current=!1,r(this,Ft,!0),t(this,M).current&&t(this,p).classList.remove(t(this,M).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,V).current&&t(this,p).classList.add(t(this,V).current)},us=function(){t(this,_).current=!0,t(this,x).current=!1,r(this,Ft,!0),t(this,V).current&&t(this,p).classList.remove(t(this,V).current),t(this,A).current&&t(this,p).classList.remove(t(this,A).current),t(this,B).current&&t(this,p).classList.remove(t(this,B).current),t(this,M).current&&t(this,p).classList.add(t(this,M).current)},as=function(){t(this,x).current=!0,t(this,H).current=!0,t(this,at).current=!1,t(this,A).current&&t(this,p).classList.add(t(this,A).current)},Ss=function(){t(this,x).current=!0,t(this,St).current=!0,t(this,j).current=!1,t(this,B).current&&t(this,p).classList.add(t(this,B).current)},ds=function(){t(this,_).current=!0,t(this,at).current=!0,t(this,H).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},ps=function(){t(this,_).current=!0,t(this,j).current=!0,t(this,St).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},Re=new WeakMap,de=new WeakMap,Ot=function(s){if(t(this,P)){s.previous&&t(this,p).classList.remove(s.previous),s.current&&t(this,p).classList.remove(s.current);return}s.current&&t(this,x).current?(s.previous&&t(this,p).classList.remove(s.previous),t(this,p).classList.add(s.current)):!s.current&&s.previous&&t(this,p).classList.remove(s.previous)},fs=function(...s){s.forEach(e=>{e&&t(this,p).classList.remove(e)})},bs=function(...s){s.forEach(e=>{e&&t(this,p).style.removeProperty(`--${e}`)})},Ue=function(){o(this,f,fs).call(this,t(this,V).current,t(this,A).current,t(this,B).current,t(this,M).current,t(this,zt).current,t(this,E).current),o(this,f,bs).call(this,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current,t(this,ut).current)},De=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",cs);exports.ScrollBulletButtonsElement=os;exports.ScrollElement=Ie;exports.ScrollSegmentElement=cs;exports.ScrollSetButtonElement=hs;exports.ScrollStepButtonElement=ns;exports.ScrollbarElement=is;
@@ -14,24 +14,24 @@ var Js = (f, n, e) => n in f ? me(f, n, { enumerable: !0, configurable: !0, writ
14
14
  };
15
15
  var Os = (f, n, e) => n.has(f) || Qs("Cannot " + e);
16
16
  var t = (f, n, e) => (Os(f, n, "read from private field"), e ? e.call(f) : n.get(f)), i = (f, n, e) => n.has(f) ? Qs("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(f) : n.set(f, e), r = (f, n, e, s) => (Os(f, n, "write to private field"), s ? s.call(f, e) : n.set(f, e), e), o = (f, n, e) => (Os(f, n, "access private method"), e);
17
- import { S as Ft } from "../Store-DGtldlBH.js";
18
- import { D as ve } from "../Derived-CDGpSMKu.js";
17
+ import { S as Ft } from "../Store-C46i0nvr.js";
18
+ import { D as ve } from "../Derived-Vo_RsJfi.js";
19
19
  import { i as Ns } from "../browser-0zX67oeU.js";
20
20
  import { p as ye } from "../easings-BKi40vHz.js";
21
21
  import { a as ks, g as Ds } from "../layout-HoBT_Da2.js";
22
22
  import { c as se, s as Ce } from "../math-BOBiC4TN.js";
23
23
  import "../ticker/index.js";
24
24
  import { TICK_ORDER as ee, RESIZE_ORDER as Ks } from "../order/index.js";
25
- import { D as ie } from "../Damped-BDO-F13V.js";
26
- import { T as Pe } from "../Tweened-CHhmfvzo.js";
25
+ import { D as ie } from "../Damped-DbJKrUIf.js";
26
+ import { T as Pe } from "../Tweened-DOSHLCZa.js";
27
27
  import { WheelControls as we, KeyboardControls as Ee, DragControls as xe, AutoplayControls as Le } from "../controls/index.js";
28
28
  import { windowResizer as fs } from "../window-resizer/index.js";
29
29
  import { scrollEntries as Qt } from "../scroll-entries/index.js";
30
- import { e as _s, D as As, ay as Is, p as Ve } from "../tags-4AoxVUe3.js";
31
- import { c as Zs } from "../createStylesheet-DO5t5q-m.js";
30
+ import { e as _s, D as As, ay as Is, p as Ve } from "../tags-BL3kQp9o.js";
31
+ import { c as Zs } from "../createStylesheet-COAZH1Mw.js";
32
32
  import { cssUnitParser as Ys } from "../css-unit-parser/index.js";
33
33
  import { CSSProperty as c } from "../css-property/index.js";
34
- import { d as ze } from "../Viewport-DTlImj28.js";
34
+ import { d as ze } from "../Viewport-B55BvLsV.js";
35
35
  import { elementResizer as Ms } from "../element-resizer/index.js";
36
36
  import { s as Fe } from "../gestures-D2Fdra_G.js";
37
37
  import { aptechkaTheme as te } from "../theme/index.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BpsQqM-8.cjs");exports.SelectElement=e.SelectElement;exports.SelectHeadElement=e.SelectHeadElement;exports.SelectOptionElement=e.SelectOptionElement;exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BuAuBz2_.cjs");exports.SelectElement=e.SelectElement;exports.SelectHeadElement=e.SelectHeadElement;exports.SelectOptionElement=e.SelectOptionElement;exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
- import { S as l, d as a, c, b as m } from "../index-BhbT9PrL.js";
1
+ import { S as l, d as a, c, b as m } from "../index-CenF0JbH.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1 +1 @@
1
- "use strict";var x=s=>{throw TypeError(s)};var I=(s,n,e)=>n.has(s)||x("Cannot "+e);var t=(s,n,e)=>(I(s,n,"read from private field"),e?e.call(s):n.get(s)),c=(s,n,e)=>n.has(s)?x("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(s):n.set(s,e),l=(s,n,e,i)=>(I(s,n,"write to private field"),i?i.call(s,e):n.set(s,e),e);var L=(s,n,e)=>new Promise((i,f)=>{var w=o=>{try{u(e.next(o))}catch(r){f(r)}},y=o=>{try{u(e.throw(o))}catch(r){f(r)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(w,y);u((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../canvas/index.cjs"),P=require("../css-property/index.cjs"),R=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-BnA-dJsE.cjs");const H=require("../browser-CpzFX2xg.cjs"),z=require("../canvas-CU5Xjahf.cjs"),M=require("../source/index.cjs");function W(s){const n=s.match(/\{([\d-]+)\}/);if(n){const e=n[1].split("-");if(e.length===2){const i=parseInt(e[0],10),f=parseInt(e[1],10);return{start:i,end:f}}}return null}var h,b,S,m,d,g,E,p,a,v;class k extends M.SourceElement{constructor(e){super();c(this,h,[]);c(this,b,new P.CSSProperty(this,"--fit","contain"));c(this,S,new P.CSSProperty(this,"--autoplay",!1));c(this,m,new P.CSSProperty(this,"--offset-x",.5));c(this,d,new P.CSSProperty(this,"--offset-y",.5));c(this,g,null);c(this,E,0);c(this,p,1);c(this,a,()=>{if(t(this,h).length){const e=t(this,h)[0];t(this,b).current==="cover"?l(this,g,z.cover(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current)):l(this,g,z.contain(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current))}});c(this,v,e=>{if(this.status.isFalse("loaded")||!t(this,g))return;e.detail.context.clearRect(0,0,e.detail.width,e.detail.height);const i=t(this,h)[t(this,E)];i&&e.detail.context.drawImage(i,...t(this,g)),t(this,S).current&&l(this,E,(t(this,E)+1)%t(this,h).length)});H.isBrowser&&(l(this,p,parseInt(((e==null?void 0:e.pad)||this.getAttribute("pad")||"1").toString())),t(this,b).subscribe(t(this,a)),t(this,m).subscribe(t(this,a)),t(this,d).subscribe(t(this,a)),this.addEventListener("sourceCapture",i=>{this.consumerElement.addEventListener("canvasRender",t(this,v))}),this.addEventListener("sourceRelease",i=>{this.consumerElement.removeEventListener("canvasRender",t(this,v))}))}setProgress(e){t(this,h).length&&l(this,E,Math.floor((t(this,h).length-1)*e))}connectedCallback(){super.connectedCallback(),t(this,S).observe(),t(this,b).observe(),t(this,m).observe(),t(this,d).observe(),R.elementResizer.subscribe(this,t(this,a))}disconnectedCallback(){super.disconnectedCallback(),t(this,S).unobserve(),t(this,b).unobserve(),t(this,m).unobserve(),t(this,d).unobserve(),l(this,h,[]),R.elementResizer.unsubscribe(t(this,a)),this.consumerElement.removeEventListener("canvasRender",t(this,v))}createConsumer(){return new B.CanvasElement}consumeSource(e){return L(this,null,function*(){var i,f,w,y;if(e){this.consumerElement.removeEventListener("canvasRender",t(this,v));const u=[],o=W(e);if(o)for(let r=o.start;r<=o.end;r++){const q=e.replace(/\{([^}]+)\}/,r.toString().padStart(t(this,p),"0")),C=new Image;C.src=q,u.push(C)}else{const r=new Image;r.src=e,u.push(r)}try{yield Promise.all(u.map((r,q)=>new Promise((C,_)=>{r.onload=()=>{C()},r.onerror=j=>{_(`${r.src} Image not found`)}}))),l(this,h,u),t(this,a).call(this),(f=(i=this.consumerElement).onload)==null||f.call(i,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",t(this,v))}catch(r){console.error(r),(y=(w=this.consumerElement).onerror)==null||y.call(w,new Event("error"))}}})}}h=new WeakMap,b=new WeakMap,S=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,E=new WeakMap,p=new WeakMap,a=new WeakMap,v=new WeakMap;customElements.get("e-sequence")||customElements.define("e-sequence",k);exports.SequenceElement=k;
1
+ "use strict";var x=s=>{throw TypeError(s)};var I=(s,n,e)=>n.has(s)||x("Cannot "+e);var t=(s,n,e)=>(I(s,n,"read from private field"),e?e.call(s):n.get(s)),c=(s,n,e)=>n.has(s)?x("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(s):n.set(s,e),l=(s,n,e,i)=>(I(s,n,"write to private field"),i?i.call(s,e):n.set(s,e),e);var L=(s,n,e)=>new Promise((i,f)=>{var w=o=>{try{u(e.next(o))}catch(r){f(r)}},y=o=>{try{u(e.throw(o))}catch(r){f(r)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(w,y);u((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../canvas/index.cjs"),P=require("../css-property/index.cjs"),R=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-npaZHvX4.cjs");const H=require("../browser-CpzFX2xg.cjs"),z=require("../canvas-CU5Xjahf.cjs"),M=require("../source/index.cjs");function W(s){const n=s.match(/\{([\d-]+)\}/);if(n){const e=n[1].split("-");if(e.length===2){const i=parseInt(e[0],10),f=parseInt(e[1],10);return{start:i,end:f}}}return null}var h,b,S,m,d,g,E,p,a,v;class k extends M.SourceElement{constructor(e){super();c(this,h,[]);c(this,b,new P.CSSProperty(this,"--fit","contain"));c(this,S,new P.CSSProperty(this,"--autoplay",!1));c(this,m,new P.CSSProperty(this,"--offset-x",.5));c(this,d,new P.CSSProperty(this,"--offset-y",.5));c(this,g,null);c(this,E,0);c(this,p,1);c(this,a,()=>{if(t(this,h).length){const e=t(this,h)[0];t(this,b).current==="cover"?l(this,g,z.cover(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current)):l(this,g,z.contain(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current))}});c(this,v,e=>{if(this.status.isFalse("loaded")||!t(this,g))return;e.detail.context.clearRect(0,0,e.detail.width,e.detail.height);const i=t(this,h)[t(this,E)];i&&e.detail.context.drawImage(i,...t(this,g)),t(this,S).current&&l(this,E,(t(this,E)+1)%t(this,h).length)});H.isBrowser&&(l(this,p,parseInt(((e==null?void 0:e.pad)||this.getAttribute("pad")||"1").toString())),t(this,b).subscribe(t(this,a)),t(this,m).subscribe(t(this,a)),t(this,d).subscribe(t(this,a)),this.addEventListener("sourceCapture",i=>{this.consumerElement.addEventListener("canvasRender",t(this,v))}),this.addEventListener("sourceRelease",i=>{this.consumerElement.removeEventListener("canvasRender",t(this,v))}))}setProgress(e){t(this,h).length&&l(this,E,Math.floor((t(this,h).length-1)*e))}connectedCallback(){super.connectedCallback(),t(this,S).observe(),t(this,b).observe(),t(this,m).observe(),t(this,d).observe(),R.elementResizer.subscribe(this,t(this,a))}disconnectedCallback(){super.disconnectedCallback(),t(this,S).unobserve(),t(this,b).unobserve(),t(this,m).unobserve(),t(this,d).unobserve(),l(this,h,[]),R.elementResizer.unsubscribe(t(this,a)),this.consumerElement.removeEventListener("canvasRender",t(this,v))}createConsumer(){return new B.CanvasElement}consumeSource(e){return L(this,null,function*(){var i,f,w,y;if(e){this.consumerElement.removeEventListener("canvasRender",t(this,v));const u=[],o=W(e);if(o)for(let r=o.start;r<=o.end;r++){const q=e.replace(/\{([^}]+)\}/,r.toString().padStart(t(this,p),"0")),C=new Image;C.src=q,u.push(C)}else{const r=new Image;r.src=e,u.push(r)}try{yield Promise.all(u.map((r,q)=>new Promise((C,_)=>{r.onload=()=>{C()},r.onerror=j=>{_(`${r.src} Image not found`)}}))),l(this,h,u),t(this,a).call(this),(f=(i=this.consumerElement).onload)==null||f.call(i,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",t(this,v))}catch(r){console.error(r),(y=(w=this.consumerElement).onerror)==null||y.call(w,new Event("error"))}}})}}h=new WeakMap,b=new WeakMap,S=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,E=new WeakMap,p=new WeakMap,a=new WeakMap,v=new WeakMap;customElements.get("e-sequence")||customElements.define("e-sequence",k);exports.SequenceElement=k;
@@ -23,7 +23,7 @@ import { CanvasElement as z } from "../canvas/index.js";
23
23
  import { CSSProperty as I } from "../css-property/index.js";
24
24
  import { elementResizer as k } from "../element-resizer/index.js";
25
25
  import "../window-resizer/index.js";
26
- import "../Store-DGtldlBH.js";
26
+ import "../Store-C46i0nvr.js";
27
27
  import { i as B } from "../browser-0zX67oeU.js";
28
28
  import { c as H, a as W } from "../canvas-DeZ0SLUJ.js";
29
29
  import { SourceElement as A } from "../source/index.js";
@@ -1,4 +1,4 @@
1
- "use strict";var k=i=>{throw TypeError(i)};var y=(i,r,t)=>r.has(i)||k("Cannot "+t);var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?k("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t),p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../SourceManager-TzU9Rw08.cjs"),w=require("../loading/index.cjs"),A=require("../class-linked-status/index.cjs"),q=require("../browser-CpzFX2xg.cjs"),x=require("../string-DhgS_iFl.cjs");let T=0;var h,s,c,f,l,d,n,g,m,v,E,b,L;class z extends HTMLElement{constructor(){super();a(this,m);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new A.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,g,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,m,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,m,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,L,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});q.isBrowser&&(u(this,d,`source-consumer-${++T}`),u(this,g,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var k=i=>{throw TypeError(i)};var y=(i,r,t)=>r.has(i)||k("Cannot "+t);var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?k("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t),p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../SourceManager-CfHcGLUa.cjs"),w=require("../loading/index.cjs"),A=require("../class-linked-status/index.cjs"),q=require("../browser-CpzFX2xg.cjs"),x=require("../string-DhgS_iFl.cjs");let T=0;var h,s,c,f,l,d,n,g,m,v,E,b,L;class z extends HTMLElement{constructor(){super();a(this,m);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new A.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,g,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,m,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,m,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,L,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});q.isBrowser&&(u(this,d,`source-consumer-${++T}`),u(this,g,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -3,8 +3,8 @@ var y = (i) => {
3
3
  };
4
4
  var L = (i, r, s) => r.has(i) || y("Cannot " + s);
5
5
  var t = (i, r, s) => (L(i, r, "read from private field"), s ? s.call(i) : r.get(i)), a = (i, r, s) => r.has(i) ? y("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, s), u = (i, r, s, n) => (L(i, r, "write to private field"), n ? n.call(i, s) : r.set(i, s), s), v = (i, r, s) => (L(i, r, "access private method"), s);
6
- import { S as A } from "../SourceManager-B8-EMNnd.js";
7
- import { a as $, b as j } from "../SourceManager-B8-EMNnd.js";
6
+ import { S as A } from "../SourceManager-B6wZpXUZ.js";
7
+ import { a as $, b as j } from "../SourceManager-B6wZpXUZ.js";
8
8
  import { loading as k } from "../loading/index.js";
9
9
  import { ClassLinkedStatus as x } from "../class-linked-status/index.js";
10
10
  import { i as M } from "../browser-0zX67oeU.js";
@@ -1 +1 @@
1
- "use strict";var R=s=>{throw TypeError(s)};var q=(s,r,e)=>r.has(s)||R("Cannot "+e);var t=(s,r,e)=>(q(s,r,"read from private field"),e?e.call(s):r.get(s)),h=(s,r,e)=>r.has(s)?R("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),v=(s,r,e,c)=>(q(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);var k=(s,r,e)=>new Promise((c,i)=>{var a=n=>{try{l(e.next(n))}catch(o){i(o)}},u=n=>{try{l(e.throw(n))}catch(o){i(o)}},l=n=>n.done?c(n.value):Promise.resolve(n.value).then(a,u);l((e=e.apply(s,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-BnA-dJsE.cjs"),M=require("../Derived-B-2UXnVE.cjs"),I=require("../Composed-ChlKoJEp.cjs");var A;class V extends d.Store{constructor(e,c,i){super(null,i);h(this,A);v(this,A,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>c(u,l,n))}))}close(){super.close(),t(this,A).call(this)}}A=new WeakMap;var g;class j extends d.Store{constructor(e,c,i){super(null,i);h(this,g);let a=0;v(this,g,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>c(b,x,P)),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,g).call(this)}}g=new WeakMap;var D,p;class O extends d.Store{constructor(e,c,i){super(null,i);h(this,D);h(this,p,new Map);v(this,D,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>{let o=t(this,p).get(u.key);return(o===void 0||u.revalidate)&&(o=c(u.value,l,n),t(this,p).set(u.key,o)),o})}))}close(){super.close(),t(this,D).call(this),t(this,p).clear()}}D=new WeakMap,p=new WeakMap;var m,f;class T extends d.Store{constructor(e,c,i){super(null,i);h(this,m);h(this,f,new Map);let a=0;v(this,m,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>{let w=t(this,f).get(b.key);return(w===void 0||b.revalidate)&&(w=c(b.value,x,P),t(this,f).set(b.key,w)),w}),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,m).call(this),t(this,f).clear()}}m=new WeakMap,f=new WeakMap;var C,y,S;class z extends d.Store{constructor(e,c,i){super(e,i);h(this,C);h(this,y);h(this,S,0);v(this,y,new d.Store(!1)),v(this,C,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return t(this,y)}refetch(){t(this,y).current=!0,v(this,S,t(this,S)+1);const e=t(this,S);t(this,C).call(this).then(c=>{e===t(this,S)&&(t(this,y).current=!1,this.current=c)})}}C=new WeakMap,y=new WeakMap,S=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.AsyncDerived=M.AsyncDerived;exports.Derived=M.Derived;exports.Composed=I.Composed;exports.AsyncCached=T;exports.AsyncDerivedArray=j;exports.Cached=O;exports.DerivedArray=V;exports.Resource=z;
1
+ "use strict";var f=e=>{throw TypeError(e)};var S=(e,t,r)=>t.has(e)||f("Cannot "+r);var s=(e,t,r)=>(S(e,t,"read from private field"),r?r.call(e):t.get(e)),h=(e,t,r)=>t.has(e)?f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),d=(e,t,r,i)=>(S(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Store-npaZHvX4.cjs"),y=require("../Derived-BIBU-y7Z.cjs"),D=require("../Composed-C_4slJQ6.cjs");var a;class x extends o.Store{constructor(r,i,u){super(null,u);h(this,a);d(this,a,r.subscribe(v=>{this.current=v.current.map((g,b,m)=>i(g,b,m))}))}close(){super.close(),s(this,a).call(this)}}a=new WeakMap;var l,c,n;class C extends o.Store{constructor(r,i,u){super(r,u);h(this,l);h(this,c);h(this,n,0);d(this,c,new o.Store(!1)),d(this,l,i),u!=null&&u.manualControl||this.refetch()}get isPending(){return s(this,c)}refetch(){s(this,c).current=!0,d(this,n,s(this,n)+1);const r=s(this,n);s(this,l).call(this).then(i=>{r===s(this,n)&&(s(this,c).current=!1,this.current=i)})}}l=new WeakMap,c=new WeakMap,n=new WeakMap;exports.Store=o.Store;exports.activeStores=o.activeStores;exports.storeRegistry=o.storeRegistry;exports.Derived=y.Derived;exports.Composed=D.Composed;exports.DerivedArray=x;exports.Resource=C;
@@ -1,127 +1,53 @@
1
- var I = (s) => {
2
- throw TypeError(s);
1
+ var d = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var M = (s, r, e) => r.has(s) || I("Cannot " + e);
5
- var t = (s, r, e) => (M(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => r.has(s) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), d = (s, r, e, c) => (M(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
- var S = (s, r, e) => new Promise((c, i) => {
7
- var o = (n) => {
8
- try {
9
- l(e.next(n));
10
- } catch (a) {
11
- i(a);
12
- }
13
- }, u = (n) => {
14
- try {
15
- l(e.throw(n));
16
- } catch (a) {
17
- i(a);
18
- }
19
- }, l = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(o, u);
20
- l((e = e.apply(s, r)).next());
21
- });
22
- import { S as x } from "../Store-DGtldlBH.js";
23
- import { a as H, s as J } from "../Store-DGtldlBH.js";
24
- import { A as L, D as N } from "../Derived-CDGpSMKu.js";
25
- import { C as Q } from "../Composed-CoX1ImVk.js";
26
- var m;
27
- class j extends x {
28
- constructor(e, c, i) {
29
- super(null, i);
30
- h(this, m);
31
- d(this, m, e.subscribe((o) => {
32
- this.current = o.current.map((u, l, n) => c(u, l, n));
4
+ var m = (e, s, r) => s.has(e) || d("Cannot " + r);
5
+ var t = (e, s, r) => (m(e, s, "read from private field"), r ? r.call(e) : s.get(e)), u = (e, s, r) => s.has(e) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, r), a = (e, s, r, c) => (m(e, s, "write to private field"), c ? c.call(e, r) : s.set(e, r), r);
6
+ import { S as l } from "../Store-C46i0nvr.js";
7
+ import { a as P, s as R } from "../Store-C46i0nvr.js";
8
+ import { D as A } from "../Derived-Vo_RsJfi.js";
9
+ import { C as k } from "../Composed-CfWa-69I.js";
10
+ var o;
11
+ class D extends l {
12
+ constructor(r, c, h) {
13
+ super(null, h);
14
+ u(this, o);
15
+ a(this, o, r.subscribe((x) => {
16
+ this.current = x.current.map((p, b, g) => c(p, b, g));
33
17
  }));
34
18
  }
35
19
  close() {
36
- super.close(), t(this, m).call(this);
20
+ super.close(), t(this, o).call(this);
37
21
  }
38
22
  }
39
- m = new WeakMap();
40
- var w;
41
- class q extends x {
42
- constructor(e, c, i) {
43
- super(null, i);
44
- h(this, w);
45
- let o = 0;
46
- d(this, w, e.subscribe((u) => S(this, null, function* () {
47
- const l = ++o, n = u.current.map((f, k, P) => c(f, k, P)), a = yield Promise.all(n);
48
- l === o && (this.current = a);
49
- })));
50
- }
51
- close() {
52
- super.close(), t(this, w).call(this);
53
- }
54
- }
55
- w = new WeakMap();
56
- var g, b;
57
- class z extends x {
58
- constructor(e, c, i) {
59
- super(null, i);
60
- h(this, g);
61
- h(this, b, /* @__PURE__ */ new Map());
62
- d(this, g, e.subscribe((o) => {
63
- this.current = o.current.map((u, l, n) => {
64
- let a = t(this, b).get(u.key);
65
- return (a === void 0 || u.revalidate) && (a = c(u.value, l, n), t(this, b).set(u.key, a)), a;
66
- });
67
- }));
68
- }
69
- close() {
70
- super.close(), t(this, g).call(this), t(this, b).clear();
71
- }
72
- }
73
- g = new WeakMap(), b = new WeakMap();
74
- var A, v;
75
- class B extends x {
76
- constructor(e, c, i) {
77
- super(null, i);
78
- h(this, A);
79
- h(this, v, /* @__PURE__ */ new Map());
80
- let o = 0;
81
- d(this, A, e.subscribe((u) => S(this, null, function* () {
82
- const l = ++o, n = u.current.map((f, k, P) => {
83
- let D = t(this, v).get(f.key);
84
- return (D === void 0 || f.revalidate) && (D = c(f.value, k, P), t(this, v).set(f.key, D)), D;
85
- }), a = yield Promise.all(n);
86
- l === o && (this.current = a);
87
- })));
88
- }
89
- close() {
90
- super.close(), t(this, A).call(this), t(this, v).clear();
91
- }
92
- }
93
- A = new WeakMap(), v = new WeakMap();
94
- var C, p, y;
95
- class E extends x {
96
- constructor(e, c, i) {
97
- super(e, i);
98
- h(this, C);
99
- h(this, p);
100
- h(this, y, 0);
101
- d(this, p, new x(!1)), d(this, C, c), i != null && i.manualControl || this.refetch();
23
+ o = new WeakMap();
24
+ var f, i, n;
25
+ class S extends l {
26
+ constructor(r, c, h) {
27
+ super(r, h);
28
+ u(this, f);
29
+ u(this, i);
30
+ u(this, n, 0);
31
+ a(this, i, new l(!1)), a(this, f, c), h != null && h.manualControl || this.refetch();
102
32
  }
103
33
  get isPending() {
104
- return t(this, p);
34
+ return t(this, i);
105
35
  }
106
36
  refetch() {
107
- t(this, p).current = !0, d(this, y, t(this, y) + 1);
108
- const e = t(this, y);
109
- t(this, C).call(this).then((c) => {
110
- e === t(this, y) && (t(this, p).current = !1, this.current = c);
37
+ t(this, i).current = !0, a(this, n, t(this, n) + 1);
38
+ const r = t(this, n);
39
+ t(this, f).call(this).then((c) => {
40
+ r === t(this, n) && (t(this, i).current = !1, this.current = c);
111
41
  });
112
42
  }
113
43
  }
114
- C = new WeakMap(), p = new WeakMap(), y = new WeakMap();
44
+ f = new WeakMap(), i = new WeakMap(), n = new WeakMap();
115
45
  export {
116
- B as AsyncCached,
117
- L as AsyncDerived,
118
- q as AsyncDerivedArray,
119
- z as Cached,
120
- Q as Composed,
121
- N as Derived,
122
- j as DerivedArray,
123
- E as Resource,
124
- x as Store,
125
- H as activeStores,
126
- J as storeRegistry
46
+ k as Composed,
47
+ A as Derived,
48
+ D as DerivedArray,
49
+ S as Resource,
50
+ l as Store,
51
+ P as activeStores,
52
+ R as storeRegistry
127
53
  };
@@ -1 +1 @@
1
- "use strict";var ae=Object.defineProperty,fe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,i)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))de.call(t,i)&&Q(e,i,t[i]);if(Y)for(var i of Y(t))he.call(t,i)&&Q(e,i,t[i]);return e},Z=(e,t)=>fe(e,le(t));var F=(e,t,i)=>t.has(e)||X("Cannot "+i);var o=(e,t,i)=>(F(e,t,"read from private field"),i?i.call(e):t.get(e)),w=(e,t,i)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),y=(e,t,i,r)=>(F(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a=(e,t,i)=>(F(e,t,"access private method"),i);const S=require("./Store-BnA-dJsE.cjs"),_=require("./browser-CpzFX2xg.cjs"),O=require("./object-CCiXnER2.cjs"),H=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),me=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var c,m,d,v,p,b,s,j,ee,te,P,B,ne,ie,re,oe,R,$,se,G,V,ue,W,k,z,J,I,L,T;const A=class A{constructor(...t){w(this,s);w(this,c,null);w(this,m,new Set);w(this,d,new Set);w(this,v);w(this,p);w(this,b);w(this,L,t=>{o(this,m).forEach(i=>{i(t)}),o(this,m).clear()});w(this,T,(t,i)=>{o(this,d).forEach(r=>{r(t,i)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const i=t[0],r=t[1];y(this,c,a(this,s,j).call(this,i,r==null?void 0:r.forceSvg)),a(this,s,te).call(this,r)}}get node(){return o(this,c)}set node(t){var i;a(this,s,V).call(this),y(this,c,t),(i=o(this,v))==null||i.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,P).call(this)}};c=new WeakMap,m=new WeakMap,d=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,i){let r=null;if(t instanceof Node)r=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))r=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,r=u.firstElementChild}else me.has(t)||i?r=document.createElementNS("http://www.w3.org/2000/svg",t):r=document.createElement(t);else r=document.createElement("div");return r},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const i=a(this,s,ee).call(this,o(this,c)),r=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,m).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&i?a(this,s,B).call(this,h):l==="style"&&i?a(this,s,re).call(this,h):l==="lightChildren"?a(this,s,k).call(this,o(this,c),h):l==="children"?a(this,s,k).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,m).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),r&&(typeof r=="function"?r(o(this,c)):r.current=o(this,c)),a(this,s,P).call(this)},P=function(){if(_.isBrowser&&(o(this,d).size||o(this,m).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,v,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,T),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},B=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(i=>{i&&a(this,s,B).call(this,i)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const i in t){const r=t[i];r instanceof S.Store?a(this,s,ie).call(this,i,r):r?o(this,c).classList.add(i):o(this,c).classList.remove(i)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:i,previous:r})=>{r&&[r].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},ie=function(t,i){o(this,d).add(i.subscribe(({current:r})=>{r?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},re=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,R).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const i in t){const r=i,u=t[r];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,$).call(this,r,f)})):a(this,s,$).call(this,r,u)}},R=function(t){for(const i in t){const r=t[i];if(typeof r=="object"&&!(r instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${i} {`)),a(this,s,R).call(this,r),o(this,c).appendChild(document.createTextNode("}"));else if(r instanceof S.Store){const u=document.createTextNode("");o(this,d).add(r.subscribe(f=>{f.current?u.nodeValue=`${H.camelToKebab(i)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${H.camelToKebab(i)}: ${r};`))}},$=function(t,i){t.includes("--")?i?o(this,c).style.setProperty(t,i.toString()):o(this,c).style.removeProperty(t):i?o(this,c).style[t]=i.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const i in t){const r=i,u=H.uncapitalize(r.split("on").slice(1).join("on")),f=t[r];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).addEventListener(i.name,i.callback,i.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).removeEventListener(i.name,i.callback,i.options)})},ue=function(t){for(const i in t){const r=t[i];r instanceof S.Store?o(this,d).add(r.subscribe(({current:u})=>{a(this,s,W).call(this,i,u)})):a(this,s,W).call(this,i,r)}},W=function(t,i){var u,f;const r=o(this,c);if(t in r&&!((f=(u=r.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))i!=null&&(r[t]=i.toString());else if(i!=null){const l=i.toString();t.includes("xlink")?r.setAttributeNS("http://www.w3.org/1999/xlink",t,l):r.setAttribute(t,l)}},k=function(t,i){i&&(i=[i].flat(),i.forEach(r=>{if(r instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(r.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const x=Array.from(E.childNodes),K=Array.isArray(l)?l:[l],ce=Array.isArray(h)?h:[h],U=[],q=[];x.length&&ce.forEach((g,N)=>{K.includes(g)?q.push(g):U.push(x[N])}),K.forEach((g,N)=>{if(q[N]!=null){if(g!==q[N]){const C=a(this,s,J).call(this,g),M=x[N];C instanceof Node&&!M.isEqualNode(C)?E.replaceChild(C,M):E.removeChild(M)}}else{const C=a(this,s,J).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(r instanceof A)a(this,s,z).call(this,t,r.node);else if(r instanceof Function)a(this,s,k).call(this,t,O.isESClass(r)?new r:r());else{const u=a(this,s,I).call(this,r);u instanceof Node&&a(this,s,z).call(this,t,u)}}))},z=function(t,i){!(t instanceof ShadowRoot)&&i instanceof HTMLElement&&i.tagName==="STYLE"?(o(this,m).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===i.outerHTML)||document.head.appendChild(i)}),o(this,d).add(()=>{i.remove()})):t.appendChild(i)},J=function(t){return t instanceof A?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,I).call(this,t)},I=function(t){if(t instanceof Node)return t;if(t!=null){const i=String(t);if(i.trim().startsWith("<")&&i.trim().endsWith(">")){const r=document.createElement("div");return r.innerHTML=i,r.firstElementChild}else return document.createTextNode(i)}else return},L=new WeakMap,T=new WeakMap;let n=A;function pe(...e){return new n(...e)}function be(e){return new n("a",e)}function ge(e){return new n("abbr",e)}function ye(e){return new n("address",e)}function Se(e){return new n("area",e)}function Ee(e){return new n("article",e)}function Ce(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ve(e){return new n("b",e)}function ke(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Te(e){return new n("bdo",e)}function Ae(e){return new n("blockquote",e)}function xe(e){return new n("body",e)}function qe(e){return new n("br",e)}function Me(e){return new n("button",e)}function De(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function $e(e){return new n("data",e)}function Ge(e){return new n("datalist",e)}function Ve(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ke(e){return new n("div",e)}function Ue(e){return new n("dl",e)}function Ye(e){return new n("dt",e)}function Qe(e){return new n("em",e)}function Xe(e){return new n("embed",e)}function Ze(e){return new n("fieldset",e)}function _e(e){return new n("figcaption",e)}function Oe(e){return new n("figure",e)}function je(e){return new n("footer",e)}function et(e){return new n("form",e)}function tt(e){return new n("h1",e)}function nt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function rt(e){return new n("h4",e)}function ot(e){return new n("h5",e)}function st(e){return new n("h6",e)}function ut(e){return new n("head",e)}function ct(e){return new n("header",e)}function at(e){return new n("hgroup",e)}function ft(e){return new n("hr",e)}function lt(e){return new n("html",e)}function dt(e){return new n("i",e)}function ht(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function mt(e){return new n("input",e)}function pt(e){return new n("ins",e)}function bt(e){return new n("kbd",e)}function gt(e){return new n("label",e)}function yt(e){return new n("legend",e)}function St(e){return new n("li",e)}function Et(e){return new n("link",e)}function Ct(e){return new n("main",e)}function Nt(e){return new n("map",e)}function vt(e){return new n("mark",e)}function kt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function Tt(e){return new n("meter",e)}function At(e){return new n("nav",e)}function xt(e){return new n("noscript",e)}function qt(e){return new n("object",e)}function Mt(e){return new n("ol",e)}function Dt(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function $t(e){return new n("progress",e)}function Gt(e){return new n("q",e)}function Vt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Kt(e){return new n("script",e)}function Ut(e){return new n("search",e)}function Yt(e){return new n("section",e)}function Qt(e){return new n("select",e)}function Xt(e){return new n("slot",e)}function Zt(e){return new n("small",e)}function _t(e){return new n("source",e)}function Ot(e){return new n("span",e)}function jt(e){return new n("strong",e)}function en(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function wn(e){return new n("title",e)}function mn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function Nn(e){return new n(document.createTextNode(""),e)}function vn(e){return new n("div",Z(D({},e),{style:D({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=be;exports.abbr=ge;exports.address=ye;exports.area=Se;exports.article=Ee;exports.aside=Ce;exports.audio=Ne;exports.b=ve;exports.base=ke;exports.bdi=Le;exports.bdo=Te;exports.blockquote=Ae;exports.body=xe;exports.br=qe;exports.button=Me;exports.canvas=De;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=vn;exports.data=$e;exports.datalist=Ge;exports.dd=Ve;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ke;exports.dl=Ue;exports.dt=Ye;exports.element=pe;exports.em=Qe;exports.embed=Xe;exports.empty=Nn;exports.fieldset=Ze;exports.figcaption=_e;exports.figure=Oe;exports.footer=je;exports.form=et;exports.fragment=Cn;exports.h1=tt;exports.h2=nt;exports.h3=it;exports.h4=rt;exports.h5=ot;exports.h6=st;exports.head=ut;exports.header=ct;exports.hgroup=at;exports.hr=ft;exports.html=lt;exports.htmlVar=yn;exports.i=dt;exports.iframe=ht;exports.img=wt;exports.input=mt;exports.ins=pt;exports.kbd=bt;exports.label=gt;exports.legend=yt;exports.li=St;exports.link=Et;exports.main=Ct;exports.map=Nt;exports.mark=vt;exports.menu=kt;exports.meta=Lt;exports.meter=Tt;exports.nav=At;exports.noscript=xt;exports.object=qt;exports.ol=Mt;exports.optgroup=Dt;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=$t;exports.q=Gt;exports.rp=Vt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Kt;exports.search=Ut;exports.section=Yt;exports.select=Qt;exports.slot=Xt;exports.small=Zt;exports.source=_t;exports.span=Ot;exports.strong=jt;exports.style=en;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=wn;exports.tr=mn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;
1
+ "use strict";var ae=Object.defineProperty,fe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,i)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))de.call(t,i)&&Q(e,i,t[i]);if(Y)for(var i of Y(t))he.call(t,i)&&Q(e,i,t[i]);return e},Z=(e,t)=>fe(e,le(t));var F=(e,t,i)=>t.has(e)||X("Cannot "+i);var o=(e,t,i)=>(F(e,t,"read from private field"),i?i.call(e):t.get(e)),w=(e,t,i)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),y=(e,t,i,r)=>(F(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a=(e,t,i)=>(F(e,t,"access private method"),i);const S=require("./Store-npaZHvX4.cjs"),_=require("./browser-CpzFX2xg.cjs"),O=require("./object-CCiXnER2.cjs"),H=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),me=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var c,m,d,v,p,b,s,j,ee,te,P,B,ne,ie,re,oe,R,$,se,G,V,ue,W,k,z,J,I,L,T;const A=class A{constructor(...t){w(this,s);w(this,c,null);w(this,m,new Set);w(this,d,new Set);w(this,v);w(this,p);w(this,b);w(this,L,t=>{o(this,m).forEach(i=>{i(t)}),o(this,m).clear()});w(this,T,(t,i)=>{o(this,d).forEach(r=>{r(t,i)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const i=t[0],r=t[1];y(this,c,a(this,s,j).call(this,i,r==null?void 0:r.forceSvg)),a(this,s,te).call(this,r)}}get node(){return o(this,c)}set node(t){var i;a(this,s,V).call(this),y(this,c,t),(i=o(this,v))==null||i.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,P).call(this)}};c=new WeakMap,m=new WeakMap,d=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,i){let r=null;if(t instanceof Node)r=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))r=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,r=u.firstElementChild}else me.has(t)||i?r=document.createElementNS("http://www.w3.org/2000/svg",t):r=document.createElement(t);else r=document.createElement("div");return r},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const i=a(this,s,ee).call(this,o(this,c)),r=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,m).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&i?a(this,s,B).call(this,h):l==="style"&&i?a(this,s,re).call(this,h):l==="lightChildren"?a(this,s,k).call(this,o(this,c),h):l==="children"?a(this,s,k).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,m).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),r&&(typeof r=="function"?r(o(this,c)):r.current=o(this,c)),a(this,s,P).call(this)},P=function(){if(_.isBrowser&&(o(this,d).size||o(this,m).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,v,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,T),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},B=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(i=>{i&&a(this,s,B).call(this,i)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const i in t){const r=t[i];r instanceof S.Store?a(this,s,ie).call(this,i,r):r?o(this,c).classList.add(i):o(this,c).classList.remove(i)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:i,previous:r})=>{r&&[r].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},ie=function(t,i){o(this,d).add(i.subscribe(({current:r})=>{r?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},re=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,R).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const i in t){const r=i,u=t[r];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,$).call(this,r,f)})):a(this,s,$).call(this,r,u)}},R=function(t){for(const i in t){const r=t[i];if(typeof r=="object"&&!(r instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${i} {`)),a(this,s,R).call(this,r),o(this,c).appendChild(document.createTextNode("}"));else if(r instanceof S.Store){const u=document.createTextNode("");o(this,d).add(r.subscribe(f=>{f.current?u.nodeValue=`${H.camelToKebab(i)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${H.camelToKebab(i)}: ${r};`))}},$=function(t,i){t.includes("--")?i?o(this,c).style.setProperty(t,i.toString()):o(this,c).style.removeProperty(t):i?o(this,c).style[t]=i.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const i in t){const r=i,u=H.uncapitalize(r.split("on").slice(1).join("on")),f=t[r];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).addEventListener(i.name,i.callback,i.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).removeEventListener(i.name,i.callback,i.options)})},ue=function(t){for(const i in t){const r=t[i];r instanceof S.Store?o(this,d).add(r.subscribe(({current:u})=>{a(this,s,W).call(this,i,u)})):a(this,s,W).call(this,i,r)}},W=function(t,i){var u,f;const r=o(this,c);if(t in r&&!((f=(u=r.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))i!=null&&(r[t]=i.toString());else if(i!=null){const l=i.toString();t.includes("xlink")?r.setAttributeNS("http://www.w3.org/1999/xlink",t,l):r.setAttribute(t,l)}},k=function(t,i){i&&(i=[i].flat(),i.forEach(r=>{if(r instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(r.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const x=Array.from(E.childNodes),K=Array.isArray(l)?l:[l],ce=Array.isArray(h)?h:[h],U=[],q=[];x.length&&ce.forEach((g,N)=>{K.includes(g)?q.push(g):U.push(x[N])}),K.forEach((g,N)=>{if(q[N]!=null){if(g!==q[N]){const C=a(this,s,J).call(this,g),M=x[N];C instanceof Node&&!M.isEqualNode(C)?E.replaceChild(C,M):E.removeChild(M)}}else{const C=a(this,s,J).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(r instanceof A)a(this,s,z).call(this,t,r.node);else if(r instanceof Function)a(this,s,k).call(this,t,O.isESClass(r)?new r:r());else{const u=a(this,s,I).call(this,r);u instanceof Node&&a(this,s,z).call(this,t,u)}}))},z=function(t,i){!(t instanceof ShadowRoot)&&i instanceof HTMLElement&&i.tagName==="STYLE"?(o(this,m).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===i.outerHTML)||document.head.appendChild(i)}),o(this,d).add(()=>{i.remove()})):t.appendChild(i)},J=function(t){return t instanceof A?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,I).call(this,t)},I=function(t){if(t instanceof Node)return t;if(t!=null){const i=String(t);if(i.trim().startsWith("<")&&i.trim().endsWith(">")){const r=document.createElement("div");return r.innerHTML=i,r.firstElementChild}else return document.createTextNode(i)}else return},L=new WeakMap,T=new WeakMap;let n=A;function pe(...e){return new n(...e)}function be(e){return new n("a",e)}function ge(e){return new n("abbr",e)}function ye(e){return new n("address",e)}function Se(e){return new n("area",e)}function Ee(e){return new n("article",e)}function Ce(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ve(e){return new n("b",e)}function ke(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Te(e){return new n("bdo",e)}function Ae(e){return new n("blockquote",e)}function xe(e){return new n("body",e)}function qe(e){return new n("br",e)}function Me(e){return new n("button",e)}function De(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function $e(e){return new n("data",e)}function Ge(e){return new n("datalist",e)}function Ve(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ke(e){return new n("div",e)}function Ue(e){return new n("dl",e)}function Ye(e){return new n("dt",e)}function Qe(e){return new n("em",e)}function Xe(e){return new n("embed",e)}function Ze(e){return new n("fieldset",e)}function _e(e){return new n("figcaption",e)}function Oe(e){return new n("figure",e)}function je(e){return new n("footer",e)}function et(e){return new n("form",e)}function tt(e){return new n("h1",e)}function nt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function rt(e){return new n("h4",e)}function ot(e){return new n("h5",e)}function st(e){return new n("h6",e)}function ut(e){return new n("head",e)}function ct(e){return new n("header",e)}function at(e){return new n("hgroup",e)}function ft(e){return new n("hr",e)}function lt(e){return new n("html",e)}function dt(e){return new n("i",e)}function ht(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function mt(e){return new n("input",e)}function pt(e){return new n("ins",e)}function bt(e){return new n("kbd",e)}function gt(e){return new n("label",e)}function yt(e){return new n("legend",e)}function St(e){return new n("li",e)}function Et(e){return new n("link",e)}function Ct(e){return new n("main",e)}function Nt(e){return new n("map",e)}function vt(e){return new n("mark",e)}function kt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function Tt(e){return new n("meter",e)}function At(e){return new n("nav",e)}function xt(e){return new n("noscript",e)}function qt(e){return new n("object",e)}function Mt(e){return new n("ol",e)}function Dt(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function $t(e){return new n("progress",e)}function Gt(e){return new n("q",e)}function Vt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Kt(e){return new n("script",e)}function Ut(e){return new n("search",e)}function Yt(e){return new n("section",e)}function Qt(e){return new n("select",e)}function Xt(e){return new n("slot",e)}function Zt(e){return new n("small",e)}function _t(e){return new n("source",e)}function Ot(e){return new n("span",e)}function jt(e){return new n("strong",e)}function en(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function wn(e){return new n("title",e)}function mn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function Nn(e){return new n(document.createTextNode(""),e)}function vn(e){return new n("div",Z(D({},e),{style:D({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=be;exports.abbr=ge;exports.address=ye;exports.area=Se;exports.article=Ee;exports.aside=Ce;exports.audio=Ne;exports.b=ve;exports.base=ke;exports.bdi=Le;exports.bdo=Te;exports.blockquote=Ae;exports.body=xe;exports.br=qe;exports.button=Me;exports.canvas=De;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=vn;exports.data=$e;exports.datalist=Ge;exports.dd=Ve;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ke;exports.dl=Ue;exports.dt=Ye;exports.element=pe;exports.em=Qe;exports.embed=Xe;exports.empty=Nn;exports.fieldset=Ze;exports.figcaption=_e;exports.figure=Oe;exports.footer=je;exports.form=et;exports.fragment=Cn;exports.h1=tt;exports.h2=nt;exports.h3=it;exports.h4=rt;exports.h5=ot;exports.h6=st;exports.head=ut;exports.header=ct;exports.hgroup=at;exports.hr=ft;exports.html=lt;exports.htmlVar=yn;exports.i=dt;exports.iframe=ht;exports.img=wt;exports.input=mt;exports.ins=pt;exports.kbd=bt;exports.label=gt;exports.legend=yt;exports.li=St;exports.link=Et;exports.main=Ct;exports.map=Nt;exports.mark=vt;exports.menu=kt;exports.meta=Lt;exports.meter=Tt;exports.nav=At;exports.noscript=xt;exports.object=qt;exports.ol=Mt;exports.optgroup=Dt;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=$t;exports.q=Gt;exports.rp=Vt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Kt;exports.search=Ut;exports.section=Yt;exports.select=Qt;exports.slot=Xt;exports.small=Zt;exports.source=_t;exports.span=Ot;exports.strong=jt;exports.style=en;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=wn;exports.tr=mn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;
@@ -15,7 +15,7 @@ var K = (e, n, s) => n in e ? ce(e, n, { enumerable: !0, configurable: !0, writa
15
15
  }, X = (e, n) => fe(e, le(n));
16
16
  var q = (e, n, s) => n.has(e) || Q("Cannot " + s);
17
17
  var r = (e, n, s) => (q(e, n, "read from private field"), s ? s.call(e) : n.get(e)), w = (e, n, s) => n.has(e) ? Q("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, s), y = (e, n, s, i) => (q(e, n, "write to private field"), i ? i.call(e, s) : n.set(e, s), s), c = (e, n, s) => (q(e, n, "access private method"), s);
18
- import { S as E } from "./Store-DGtldlBH.js";
18
+ import { S as E } from "./Store-C46i0nvr.js";
19
19
  import { i as Z } from "./browser-0zX67oeU.js";
20
20
  import { i as _ } from "./object-D6MVWB4l.js";
21
21
  import { c as O, u as we } from "./string-f0Dnk0L1.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BnA-dJsE.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-v-OSVkiQ.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-npaZHvX4.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-6_ETuR75.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
@@ -1,7 +1,7 @@
1
- import "../Store-DGtldlBH.js";
1
+ import "../Store-C46i0nvr.js";
2
2
  import { i as e } from "../browser-0zX67oeU.js";
3
3
  import "../ticker/index.js";
4
- import { aD as r } from "../tags-4AoxVUe3.js";
4
+ import { aD as r } from "../tags-BL3kQp9o.js";
5
5
  import { c as t } from "../createTheme-CHnsCgAr.js";
6
6
  const a = t(
7
7
  {