aptechka 0.4.11 → 0.4.13

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 (108) hide show
  1. package/lib/{Damped-Ceg1a3X8.js → Damped-BZujMwuv.js} +11 -10
  2. package/lib/Damped-DK3CSBXb.cjs +1 -0
  3. package/lib/{Derived-B-g8dYgh.cjs → Derived-BZtlW0bB.cjs} +1 -1
  4. package/lib/{Derived-kPJs5JC5.js → Derived-DH-ouLBq.js} +1 -1
  5. package/lib/DragControls-CV1YozSr.cjs +1 -0
  6. package/lib/{DragControls-CZhJHO0_.js → DragControls-Ch_JO2ML.js} +23 -22
  7. package/lib/SourceManager-Bl_uduSS.cjs +1 -0
  8. package/lib/{SourceManager-4OHacQoQ.js → SourceManager-D_8MZ3bR.js} +21 -20
  9. package/lib/Store-BQGNOHlY.cjs +1 -0
  10. package/lib/{Store-BQXXikps.js → Store-Cd-E5W1z.js} +8 -7
  11. package/lib/{Viewport-wlgZaIn7.js → Viewport-Bx-VImCe.js} +6 -5
  12. package/lib/Viewport-_WllZTJ0.cjs +1 -0
  13. package/lib/accordion/index.cjs +1 -1
  14. package/lib/accordion/index.js +1 -0
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +6 -5
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.js +16 -15
  19. package/lib/canvas/index.cjs +1 -1
  20. package/lib/canvas/index.js +4 -3
  21. package/lib/checkbox/index.cjs +1 -1
  22. package/lib/checkbox/index.js +4 -3
  23. package/lib/controls/index.cjs +1 -1
  24. package/lib/controls/index.js +2 -2
  25. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-C8aQQ4hd.cjs} +1 -1
  26. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-KMRQhSa-.js} +1 -1
  27. package/lib/createTheme-BSreUYge.cjs +1 -0
  28. package/lib/createTheme-u3NsrEV6.js +16 -0
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -3
  31. package/lib/custom-element/index.cjs +1 -1
  32. package/lib/custom-element/index.js +3 -2
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +7 -6
  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 +3 -3
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +23 -22
  41. package/lib/en3/index.cjs +1 -1
  42. package/lib/en3/index.js +23 -22
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +8 -7
  45. package/lib/{index-BUOBDenR.js → index-Fasue6kv.js} +20 -19
  46. package/lib/index-nxoux28n.cjs +9 -0
  47. package/lib/intersector/index.cjs +1 -1
  48. package/lib/intersector/index.js +3 -2
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +11 -10
  51. package/lib/layout-box/index.cjs +1 -1
  52. package/lib/layout-box/index.js +148 -139
  53. package/lib/libs/path-data-polyfill.d.ts +1 -0
  54. package/lib/loading/index.cjs +1 -1
  55. package/lib/loading/index.js +16 -15
  56. package/lib/media/index.cjs +1 -1
  57. package/lib/media/index.js +6 -5
  58. package/lib/modal/index.cjs +1 -1
  59. package/lib/modal/index.js +4 -3
  60. package/lib/morph/index.cjs +1 -1
  61. package/lib/morph/index.js +21 -20
  62. package/lib/path-data-polyfill-CXsOR7Oc.cjs +3 -0
  63. package/lib/path-data-polyfill-DgeDWYeI.js +454 -0
  64. package/lib/popover/index.cjs +1 -1
  65. package/lib/popover/index.js +14 -13
  66. package/lib/resized/index.cjs +1 -1
  67. package/lib/resized/index.js +8 -7
  68. package/lib/router/index.cjs +1 -1
  69. package/lib/router/index.js +8 -7
  70. package/lib/scroll/index.cjs +1 -1
  71. package/lib/scroll/index.js +307 -298
  72. package/lib/scroll-entries/index.cjs +1 -1
  73. package/lib/scroll-entries/index.d.ts +3 -0
  74. package/lib/scroll-entries/index.js +18 -13
  75. package/lib/select/index.cjs +1 -1
  76. package/lib/select/index.js +1 -1
  77. package/lib/slicer/index.cjs +2 -2
  78. package/lib/slicer/index.js +4 -3
  79. package/lib/source/index.cjs +1 -1
  80. package/lib/source/index.js +2 -2
  81. package/lib/store/index.cjs +1 -1
  82. package/lib/store/index.js +13 -12
  83. package/lib/{tags-CMPg9ETZ.js → tags-BoPv9fDr.js} +234 -233
  84. package/lib/tags-CueX-JLX.cjs +1 -0
  85. package/lib/theme/index.cjs +1 -1
  86. package/lib/theme/index.js +7 -6
  87. package/lib/ticker/index.cjs +1 -1
  88. package/lib/ticker/index.js +3 -2
  89. package/lib/tweaker/index.cjs +1 -1
  90. package/lib/tweaker/index.js +6 -5
  91. package/lib/utils/index.cjs +1 -1
  92. package/lib/utils/index.d.ts +1 -0
  93. package/lib/utils/index.js +164 -127
  94. package/lib/utils/svg.d.ts +15 -0
  95. package/lib/video/index.cjs +1 -1
  96. package/lib/video/index.js +6 -5
  97. package/lib/window-resizer/index.cjs +1 -1
  98. package/lib/window-resizer/index.js +7 -6
  99. package/package.json +1 -1
  100. package/lib/Damped-BdnkNOcb.cjs +0 -1
  101. package/lib/DragControls-C7P6P5HO.cjs +0 -1
  102. package/lib/SourceManager-Bc68GDrb.cjs +0 -1
  103. package/lib/Store-C-1ruEIm.cjs +0 -1
  104. package/lib/Viewport-DAjFJF5V.cjs +0 -1
  105. package/lib/createTheme-CHnsCgAr.js +0 -15
  106. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  107. package/lib/index-Bv5vIuF-.cjs +0 -9
  108. package/lib/tags-Djb6mb1o.cjs +0 -1
@@ -1,10 +1,11 @@
1
1
  import { Attribute as C } from "../attribute/index.js";
2
2
  import { CustomElement as O, define as A } from "../custom-element/index.js";
3
- import { S as I } from "../Store-BQXXikps.js";
3
+ import { S as I } from "../Store-Cd-E5W1z.js";
4
4
  import { g as N } from "../style-j2TwriJ_.js";
5
+ import "../path-data-polyfill-DgeDWYeI.js";
5
6
  import { i as q } from "../browser-0zX67oeU.js";
6
- import { e as B, p as G, ay as H } from "../tags-CMPg9ETZ.js";
7
- import { c as R } from "../createStylesheet-DBCEbDjI.js";
7
+ import { e as B, p as G, ay as H } from "../tags-BoPv9fDr.js";
8
+ import { c as R } from "../createStylesheet-KMRQhSa-.js";
8
9
  var U = Object.defineProperty, b = Object.getOwnPropertyDescriptor, z = (e, t, s, r) => {
9
10
  for (var n = r > 1 ? void 0 : r ? b(t, s) : t, p = e.length - 1, d; p >= 0; p--)
10
11
  (d = e[p]) && (n = (r ? d(t, s, n) : d(n)) || n);
@@ -16,7 +17,7 @@ var U = Object.defineProperty, b = Object.getOwnPropertyDescriptor, z = (e, t, s
16
17
  if (t.has(e))
17
18
  throw TypeError("Cannot add the same private member more than once");
18
19
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
19
- }, L = (e, t, s, r) => ($(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), T = (e, t, s) => ($(e, t, "access private method"), s), S, h, y, c, f, v, W, D, _, m, g, E, k, M, w;
20
+ }, L = (e, t, s, r) => ($(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), T = (e, t, s) => ($(e, t, "access private method"), s), S, h, y, c, f, v, W, D, _, w, g, E, k, M, m;
20
21
  let a = class extends O {
21
22
  constructor() {
22
23
  super(...arguments), o(this, W), o(this, _), o(this, k), o(this, S, -1), o(this, h, new I(!1)), o(this, y, void 0), o(this, c, new C(this, "history", !1)), o(this, f, new C(this, "single", !1)), o(this, v, !1), this.open = () => {
@@ -27,7 +28,7 @@ let a = class extends O {
27
28
  if (i(this, h).current) {
28
29
  if (i(this, h).current = !1, a.__opened = a.__opened.filter((e) => e !== this), i(this, c).current) {
29
30
  const e = new URL(location.href);
30
- e.searchParams.delete(i(this, _, m)), history.replaceState(null, "", e.href);
31
+ e.searchParams.delete(i(this, _, w)), history.replaceState(null, "", e.href);
31
32
  }
32
33
  this.classList.remove("opened"), this.style.opacity = "0", removeEventListener("click", i(this, g)), removeEventListener("keydown", i(this, E)), setTimeout(() => {
33
34
  this.classList.remove("triggered"), this.style.display = "none";
@@ -44,8 +45,8 @@ let a = class extends O {
44
45
  T(this, k, M).call(this, () => {
45
46
  e.code === "Escape" && this.close();
46
47
  });
47
- }), o(this, w, () => {
48
- L(this, v, !1), i(this, h).current && i(this, c).current && !location.search.includes(i(this, _, m)) ? this.close() : !i(this, h).current && i(this, c).current && location.search.includes(i(this, _, m)) && this.open(), L(this, v, !0);
48
+ }), o(this, m, () => {
49
+ L(this, v, !1), i(this, h).current && i(this, c).current && !location.search.includes(i(this, _, w)) ? this.close() : !i(this, h).current && i(this, c).current && location.search.includes(i(this, _, w)) && this.open(), L(this, v, !0);
49
50
  });
50
51
  }
51
52
  get history() {
@@ -58,12 +59,12 @@ let a = class extends O {
58
59
  return i(this, h);
59
60
  }
60
61
  connectedCallback() {
61
- i(this, c).observe(), i(this, f).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", i(this, w)), setTimeout(() => {
62
- i(this, w).call(this);
62
+ i(this, c).observe(), i(this, f).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", i(this, m)), setTimeout(() => {
63
+ i(this, m).call(this);
63
64
  }, 0);
64
65
  }
65
66
  disconnectedCallback() {
66
- i(this, c).unobserve(), i(this, f).unobserve(), clearTimeout(i(this, y)), removeEventListener("popstate", i(this, w));
67
+ i(this, c).unobserve(), i(this, f).unobserve(), clearTimeout(i(this, y)), removeEventListener("popstate", i(this, m));
67
68
  }
68
69
  };
69
70
  S = /* @__PURE__ */ new WeakMap();
@@ -74,10 +75,10 @@ f = /* @__PURE__ */ new WeakMap();
74
75
  v = /* @__PURE__ */ new WeakMap();
75
76
  W = /* @__PURE__ */ new WeakSet();
76
77
  D = function() {
77
- return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, _, m)}`;
78
+ return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, _, w)}`;
78
79
  };
79
80
  _ = /* @__PURE__ */ new WeakSet();
80
- m = function() {
81
+ w = function() {
81
82
  return `modal-${this.id}`;
82
83
  };
83
84
  g = /* @__PURE__ */ new WeakMap();
@@ -86,7 +87,7 @@ k = /* @__PURE__ */ new WeakSet();
86
87
  M = function(e) {
87
88
  (a.__opened[i(this, S) - 1] || a.__opened.length === 1) && e();
88
89
  };
89
- w = /* @__PURE__ */ new WeakMap();
90
+ m = /* @__PURE__ */ new WeakMap();
90
91
  a.__opened = [];
91
92
  a = z([
92
93
  A("e-popover")
@@ -1 +1 @@
1
- "use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-C-1ruEIm.cjs"),h=require("../window-resizer/index.cjs");var t,u;class a extends z.Store{constructor(r,i){super(r(),i);n(this,t,void 0);n(this,u,()=>{this.current=c(this,t).call(this)});d(this,t,r),(i==null?void 0:i.dispatcher)instanceof Element?b.elementResizer.subscribe(i.dispatcher,c(this,u)):h.windowResizer.subscribe(c(this,u))}close(){super.close(),h.windowResizer.unsubscribe(c(this,t)),b.elementResizer.unsubscribe(c(this,t))}}t=new WeakMap,u=new WeakMap;exports.Resized=a;
1
+ "use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const h=require("../window-resizer/index.cjs");var t,u;class a extends z.Store{constructor(r,i){super(r(),i);n(this,t,void 0);n(this,u,()=>{this.current=c(this,t).call(this)});d(this,t,r),(i==null?void 0:i.dispatcher)instanceof Element?b.elementResizer.subscribe(i.dispatcher,c(this,u)):h.windowResizer.subscribe(c(this,u))}close(){super.close(),h.windowResizer.unsubscribe(c(this,t)),b.elementResizer.unsubscribe(c(this,t))}}t=new WeakMap,u=new WeakMap;exports.Resized=a;
@@ -6,25 +6,26 @@ var c = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(
6
6
  if (s.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(e) : s.set(e, r);
9
- }, l = (e, s, r, i) => (h(e, s, "write to private field"), i ? i.call(e, r) : s.set(e, r), r);
10
- import { elementResizer as m } from "../element-resizer/index.js";
11
- import { S as d } from "../Store-BQXXikps.js";
9
+ }, m = (e, s, r, i) => (h(e, s, "write to private field"), i ? i.call(e, r) : s.set(e, r), r);
10
+ import { elementResizer as l } from "../element-resizer/index.js";
11
+ import { S as d } from "../Store-Cd-E5W1z.js";
12
+ import "../path-data-polyfill-DgeDWYeI.js";
12
13
  import { windowResizer as a } from "../window-resizer/index.js";
13
14
  var t, u;
14
- class o extends d {
15
+ class R extends d {
15
16
  constructor(r, i) {
16
17
  super(r(), i);
17
18
  b(this, t, void 0);
18
19
  b(this, u, () => {
19
20
  this.current = c(this, t).call(this);
20
21
  });
21
- l(this, t, r), (i == null ? void 0 : i.dispatcher) instanceof Element ? m.subscribe(i.dispatcher, c(this, u)) : a.subscribe(c(this, u));
22
+ m(this, t, r), (i == null ? void 0 : i.dispatcher) instanceof Element ? l.subscribe(i.dispatcher, c(this, u)) : a.subscribe(c(this, u));
22
23
  }
23
24
  close() {
24
- super.close(), a.unsubscribe(c(this, t)), m.unsubscribe(c(this, t));
25
+ super.close(), a.unsubscribe(c(this, t)), l.unsubscribe(c(this, t));
25
26
  }
26
27
  }
27
28
  t = new WeakMap(), u = new WeakMap();
28
29
  export {
29
- o as Resized
30
+ R as Resized
30
31
  };
@@ -1 +1 @@
1
- "use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),r=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},o=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,u)=>{var h=f=>{try{d(s.next(f))}catch(T){u(T)}},a=f=>{try{d(s.throw(f))}catch(T){u(T)}},d=f=>f.done?i(f.value):Promise.resolve(f.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,u)=>(u=n[i])&&(t[i]=h=>new Promise((a,d,f)=>(h=u.call(n,h),f=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:f}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tt=require("urlpattern-polyfill"),et=require("../notifier/index.cjs"),Z=require("../browser-CpzFX2xg.cjs"),st=require("../function-MthRj-GJ.cjs"),it=require("../object-CCiXnER2.cjs");var b,O,R,m,l,v,S,p,P,y,I,_;class nt{constructor(t,s){r(this,I);r(this,b,void 0);r(this,O,void 0);r(this,R,void 0);r(this,m,void 0);r(this,l,void 0);r(this,v,void 0);r(this,S,void 0);r(this,p,null);r(this,P,[]);r(this,y,[]);o(this,b,t),o(this,O,s),o(this,R,new URLPattern({pathname:e(this,b)})),o(this,m,null),o(this,l,null),o(this,v,!1),o(this,S,null),Z.isBrowser&&o(this,p,new MutationObserver(i=>{i[0].addedNodes.forEach(h=>{e(this,m)?e(this,y).push(h):e(this,P).push(h)})}))}get pattern(){return e(this,b)}get urlPattern(){return e(this,R)}get isActive(){return e(this,v)}get element(){return e(this,l)}get nest(){return e(this,S)}testPathname(t){return this.urlPattern.test({pathname:t})}render(t,s){return B(this,null,function*(){var i,u;if(e(this,p).observe(document.head,{childList:!0,subtree:!0}),e(this,m))e(this,P).forEach(h=>{document.head.appendChild(h)});else{const h=yield e(this,O).call(this);if(o(this,y,[...e(this,P)]),typeof h.default=="function"&&(o(this,m,h.default),it.isESClass(h.default))){const a="e-"+((i=e(this,m))==null?void 0:i.name.toLowerCase());customElements.get(a)||customElements.define(a,h.default)}}if(yield F(this,I,_).call(this),e(this,m)){const h=e(this,R).exec({pathname:s}),a=(h==null?void 0:h.pathname.groups)||{},d=Object.fromEntries(new URLSearchParams(location.search)),f={pathnameParams:a,searchParams:d};o(this,l,new(e(this,m))(f)),t.appendChild(e(this,l)),o(this,S,e(this,l).querySelector("[data-nest]")||((u=e(this,l).shadowRoot)==null?void 0:u.querySelector("[data-nest]"))||e(this,l).shadowRoot||e(this,l)),o(this,v,!0)}e(this,p).disconnect()})}close(){var t;e(this,p).disconnect(),(t=e(this,l))==null||t.remove(),o(this,v,!1),e(this,y).forEach(s=>document.head.removeChild(s)),o(this,y,[])}getAnchorElements(){var s;let t=[];return e(this,l)&&(t=[...e(this,l).querySelectorAll("a")]),(s=e(this,l))!=null&&s.shadowRoot&&(t=[...t,...e(this,l).shadowRoot.querySelectorAll("a")]),t}}b=new WeakMap,O=new WeakMap,R=new WeakMap,m=new WeakMap,l=new WeakMap,v=new WeakMap,S=new WeakMap,p=new WeakMap,P=new WeakMap,y=new WeakMap,I=new WeakSet,_=function(){return B(this,null,function*(){const t=e(this,P).filter(a=>a instanceof HTMLElement?a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK":!1);try{for(var s=G(t),i,u,h;i=!(u=yield s.next()).done;i=!1){const a=u.value;yield new Promise(d=>{a.onload=()=>{d()}})}}catch(u){h=[u]}finally{try{i&&(u=s.return)&&(yield u.call(s))}finally{if(h)throw h[0]}}})};var H,g,A,U,j;class rt{constructor(t,s){r(this,H,void 0);r(this,g,void 0);r(this,A,void 0);r(this,U,void 0);r(this,j,t=>{t.preventDefault(),e(this,H).navigate(e(this,A),e(this,U))});o(this,H,t),o(this,g,s),o(this,A,e(this,g).getAttribute("href")||"/"),o(this,U,e(this,g).getAttribute("data-history-action")||"push"),e(this,g).addEventListener("click",e(this,j)),location.pathname===e(this,A)&&e(this,g).classList.add("current")}destroy(){e(this,g).removeEventListener("click",e(this,j)),e(this,g).classList.remove("current")}}H=new WeakMap,g=new WeakMap,A=new WeakMap,U=new WeakMap,j=new WeakMap;globalThis.URLPattern=tt.URLPattern;var k,q,w,N,M,E,C,x,D,K,$,W;const Y=class Y{constructor(t){r(this,K);r(this,k,null);r(this,q,void 0);r(this,w,[]);r(this,N,null);r(this,M,[]);r(this,E,void 0);r(this,C,null);r(this,x,new et.Notifier);r(this,D,st.debounce(()=>{const t=s=>s.split("/").length;o(this,w,e(this,w).sort((s,i)=>t(s.pattern)-t(i.pattern))),this.navigate(location.pathname.replace(e(this,q),""))},0));r(this,W,t=>{t.state&&this.navigate(t.state,"none")});o(this,q,(t==null?void 0:t.base)||""),Y.active=this,Z.isBrowser&&(o(this,k,(t==null?void 0:t.rootElement)||document.body),addEventListener("popstate",e(this,W)))}get currentPathname(){return e(this,C)}get candidatePathname(){return e(this,E)}get routes(){return e(this,w)}navigationEvent(t){return e(this,x).subscribe(t)}defineRoute(t,s){const i=new nt(t,s);e(this,w).push(i),e(this,D).call(this)}navigate(t,s="push"){return B(this,null,function*(){var f,Q;if(e(this,E)===t||e(this,C)===t)return;Y.active=this,o(this,E,t);const i=e(this,w).filter(c=>c.isActive),u=e(this,w).filter(c=>!i.includes(c)&&c.testPathname(t)),h=i.filter(c=>!c.testPathname(t)),a=i.filter(c=>c.testPathname(t));let d=!0;if(this.preprocessor)try{yield new Promise((c,L)=>{var V;(V=this.preprocessor)==null||V.call(this,{pathname:t,resolve:c,reject:L})})}catch(c){c?console.error(c):console.log("Route change canceled"),d=!1}if(d&&e(this,E)===t){o(this,N,a[a.length-1]),h.forEach(L=>{L.close()}),o(this,C,t);try{for(var T=G(u),at,ct,lt;at=!(ct=yield T.next()).done;at=!1){const L=ct.value;yield L.render(((f=e(this,N))==null?void 0:f.nest)||e(this,k),t),o(this,N,L)}}catch(ct){lt=[ct]}finally{try{at&&(ct=T.return)&&(yield ct.call(T))}finally{if(lt)throw lt[0]}}const c=e(this,q)+t+location.search;s==="push"?history.pushState(c,"",c):s==="replace"&&history.replaceState(c,"",c),F(this,K,$).call(this),(Q=this.postprocessor)==null||Q.call(this,{pathname:t}),e(this,x).notify({pathname:t})}})}};k=new WeakMap,q=new WeakMap,w=new WeakMap,N=new WeakMap,M=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,D=new WeakMap,K=new WeakSet,$=function(){const t=e(this,w).filter(i=>i.isActive),s=Array.from(new Set([...e(this,k).querySelectorAll("a"),...t.map(i=>i.getAnchorElements()).flat()].filter(i=>{var u;return(u=i.getAttribute("href"))==null?void 0:u.startsWith("/")})));e(this,M).forEach(i=>{i.destroy()}),o(this,M,s.map(i=>new rt(this,i)))},W=new WeakMap;let J=Y;exports.Router=J;
1
+ "use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),r=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},o=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,u)=>{var h=f=>{try{d(s.next(f))}catch(T){u(T)}},a=f=>{try{d(s.throw(f))}catch(T){u(T)}},d=f=>f.done?i(f.value):Promise.resolve(f.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,u)=>(u=n[i])&&(t[i]=h=>new Promise((a,d,f)=>(h=u.call(n,h),f=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:f}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tt=require("urlpattern-polyfill"),et=require("../notifier/index.cjs"),Z=require("../browser-CpzFX2xg.cjs"),st=require("../function-MthRj-GJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const it=require("../object-CCiXnER2.cjs");var b,O,R,m,l,v,S,p,P,y,I,_;class nt{constructor(t,s){r(this,I);r(this,b,void 0);r(this,O,void 0);r(this,R,void 0);r(this,m,void 0);r(this,l,void 0);r(this,v,void 0);r(this,S,void 0);r(this,p,null);r(this,P,[]);r(this,y,[]);o(this,b,t),o(this,O,s),o(this,R,new URLPattern({pathname:e(this,b)})),o(this,m,null),o(this,l,null),o(this,v,!1),o(this,S,null),Z.isBrowser&&o(this,p,new MutationObserver(i=>{i[0].addedNodes.forEach(h=>{e(this,m)?e(this,y).push(h):e(this,P).push(h)})}))}get pattern(){return e(this,b)}get urlPattern(){return e(this,R)}get isActive(){return e(this,v)}get element(){return e(this,l)}get nest(){return e(this,S)}testPathname(t){return this.urlPattern.test({pathname:t})}render(t,s){return B(this,null,function*(){var i,u;if(e(this,p).observe(document.head,{childList:!0,subtree:!0}),e(this,m))e(this,P).forEach(h=>{document.head.appendChild(h)});else{const h=yield e(this,O).call(this);if(o(this,y,[...e(this,P)]),typeof h.default=="function"&&(o(this,m,h.default),it.isESClass(h.default))){const a="e-"+((i=e(this,m))==null?void 0:i.name.toLowerCase());customElements.get(a)||customElements.define(a,h.default)}}if(yield F(this,I,_).call(this),e(this,m)){const h=e(this,R).exec({pathname:s}),a=(h==null?void 0:h.pathname.groups)||{},d=Object.fromEntries(new URLSearchParams(location.search)),f={pathnameParams:a,searchParams:d};o(this,l,new(e(this,m))(f)),t.appendChild(e(this,l)),o(this,S,e(this,l).querySelector("[data-nest]")||((u=e(this,l).shadowRoot)==null?void 0:u.querySelector("[data-nest]"))||e(this,l).shadowRoot||e(this,l)),o(this,v,!0)}e(this,p).disconnect()})}close(){var t;e(this,p).disconnect(),(t=e(this,l))==null||t.remove(),o(this,v,!1),e(this,y).forEach(s=>document.head.removeChild(s)),o(this,y,[])}getAnchorElements(){var s;let t=[];return e(this,l)&&(t=[...e(this,l).querySelectorAll("a")]),(s=e(this,l))!=null&&s.shadowRoot&&(t=[...t,...e(this,l).shadowRoot.querySelectorAll("a")]),t}}b=new WeakMap,O=new WeakMap,R=new WeakMap,m=new WeakMap,l=new WeakMap,v=new WeakMap,S=new WeakMap,p=new WeakMap,P=new WeakMap,y=new WeakMap,I=new WeakSet,_=function(){return B(this,null,function*(){const t=e(this,P).filter(a=>a instanceof HTMLElement?a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK":!1);try{for(var s=G(t),i,u,h;i=!(u=yield s.next()).done;i=!1){const a=u.value;yield new Promise(d=>{a.onload=()=>{d()}})}}catch(u){h=[u]}finally{try{i&&(u=s.return)&&(yield u.call(s))}finally{if(h)throw h[0]}}})};var H,g,A,U,j;class rt{constructor(t,s){r(this,H,void 0);r(this,g,void 0);r(this,A,void 0);r(this,U,void 0);r(this,j,t=>{t.preventDefault(),e(this,H).navigate(e(this,A),e(this,U))});o(this,H,t),o(this,g,s),o(this,A,e(this,g).getAttribute("href")||"/"),o(this,U,e(this,g).getAttribute("data-history-action")||"push"),e(this,g).addEventListener("click",e(this,j)),location.pathname===e(this,A)&&e(this,g).classList.add("current")}destroy(){e(this,g).removeEventListener("click",e(this,j)),e(this,g).classList.remove("current")}}H=new WeakMap,g=new WeakMap,A=new WeakMap,U=new WeakMap,j=new WeakMap;globalThis.URLPattern=tt.URLPattern;var k,q,w,N,M,E,C,x,D,K,$,W;const Y=class Y{constructor(t){r(this,K);r(this,k,null);r(this,q,void 0);r(this,w,[]);r(this,N,null);r(this,M,[]);r(this,E,void 0);r(this,C,null);r(this,x,new et.Notifier);r(this,D,st.debounce(()=>{const t=s=>s.split("/").length;o(this,w,e(this,w).sort((s,i)=>t(s.pattern)-t(i.pattern))),this.navigate(location.pathname.replace(e(this,q),""))},0));r(this,W,t=>{t.state&&this.navigate(t.state,"none")});o(this,q,(t==null?void 0:t.base)||""),Y.active=this,Z.isBrowser&&(o(this,k,(t==null?void 0:t.rootElement)||document.body),addEventListener("popstate",e(this,W)))}get currentPathname(){return e(this,C)}get candidatePathname(){return e(this,E)}get routes(){return e(this,w)}navigationEvent(t){return e(this,x).subscribe(t)}defineRoute(t,s){const i=new nt(t,s);e(this,w).push(i),e(this,D).call(this)}navigate(t,s="push"){return B(this,null,function*(){var f,Q;if(e(this,E)===t||e(this,C)===t)return;Y.active=this,o(this,E,t);const i=e(this,w).filter(c=>c.isActive),u=e(this,w).filter(c=>!i.includes(c)&&c.testPathname(t)),h=i.filter(c=>!c.testPathname(t)),a=i.filter(c=>c.testPathname(t));let d=!0;if(this.preprocessor)try{yield new Promise((c,L)=>{var V;(V=this.preprocessor)==null||V.call(this,{pathname:t,resolve:c,reject:L})})}catch(c){c?console.error(c):console.log("Route change canceled"),d=!1}if(d&&e(this,E)===t){o(this,N,a[a.length-1]),h.forEach(L=>{L.close()}),o(this,C,t);try{for(var T=G(u),at,ct,lt;at=!(ct=yield T.next()).done;at=!1){const L=ct.value;yield L.render(((f=e(this,N))==null?void 0:f.nest)||e(this,k),t),o(this,N,L)}}catch(ct){lt=[ct]}finally{try{at&&(ct=T.return)&&(yield ct.call(T))}finally{if(lt)throw lt[0]}}const c=e(this,q)+t+location.search;s==="push"?history.pushState(c,"",c):s==="replace"&&history.replaceState(c,"",c),F(this,K,$).call(this),(Q=this.postprocessor)==null||Q.call(this,{pathname:t}),e(this,x).notify({pathname:t})}})}};k=new WeakMap,q=new WeakMap,w=new WeakMap,N=new WeakMap,M=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,D=new WeakMap,K=new WeakSet,$=function(){const t=e(this,w).filter(i=>i.isActive),s=Array.from(new Set([...e(this,k).querySelectorAll("a"),...t.map(i=>i.getAnchorElements()).flat()].filter(i=>{var u;return(u=i.getAttribute("href"))==null?void 0:u.startsWith("/")})));e(this,M).forEach(i=>{i.destroy()}),o(this,M,s.map(i=>new rt(this,i)))},W=new WeakMap;let J=Y;exports.Router=J;
@@ -30,6 +30,7 @@ import { URLPattern as tt } from "urlpattern-polyfill";
30
30
  import { Notifier as et } from "../notifier/index.js";
31
31
  import { i as X } from "../browser-0zX67oeU.js";
32
32
  import { d as st } from "../function-C10DGppn.js";
33
+ import "../path-data-polyfill-DgeDWYeI.js";
33
34
  import { i as it } from "../object-D6MVWB4l.js";
34
35
  var R, U, b, m, l, w, A, v, P, E, B, Z;
35
36
  class nt {
@@ -214,18 +215,18 @@ const Y = class Y {
214
215
  y.close();
215
216
  }), o(this, q, t);
216
217
  try {
217
- for (var T = F(u), mt, gt, pt; mt = !(gt = yield T.next()).done; mt = !1) {
218
- const y = gt.value;
218
+ for (var T = F(u), gt, pt, wt; gt = !(pt = yield T.next()).done; gt = !1) {
219
+ const y = pt.value;
219
220
  yield y.render(((f = e(this, C)) == null ? void 0 : f.nest) || e(this, k), t), o(this, C, y);
220
221
  }
221
- } catch (gt) {
222
- pt = [gt];
222
+ } catch (pt) {
223
+ wt = [pt];
223
224
  } finally {
224
225
  try {
225
- mt && (gt = T.return) && (yield gt.call(T));
226
+ gt && (pt = T.return) && (yield pt.call(T));
226
227
  } finally {
227
- if (pt)
228
- throw pt[0];
228
+ if (wt)
229
+ throw wt[0];
229
230
  }
230
231
  }
231
232
  const c = e(this, N) + t + location.search;
@@ -1 +1 @@
1
- "use strict";var es=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var a=(r,e,i)=>(es(r,e,"read from private field"),i?i.call(r):e.get(r)),$=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},R=(r,e,i,n)=>(es(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _s=require("../Damped-BdnkNOcb.cjs"),Ze=require("../browser-CpzFX2xg.cjs"),dt=require("../layout-8ryRAMGJ.cjs"),qt=require("../math-GDWEqu7y.cjs"),gt=require("../Store-C-1ruEIm.cjs"),bs=require("../Derived-B-g8dYgh.cjs");require("../ticker/index.cjs");const $e=require("../DragControls-C7P6P5HO.cjs"),vt=require("../custom-element/index.cjs"),Le=require("../order/index.cjs"),Ut=require("../window-resizer/index.cjs"),Lt=require("../scroll-entries/index.cjs"),B=require("../tags-Djb6mb1o.cjs"),Ke=require("../createStylesheet-CqHU9_qv.cjs"),ss=require("../css-unit-parser/index.cjs"),d=require("../css-property/index.cjs"),Cs=require("../Viewport-DAjFJF5V.cjs"),ys=require("../gestures-DHLrn6Q8.cjs"),Ps=require("../dom-JBOkFLTh.cjs"),is=require("../theme/index.cjs"),hs=require("../function-MthRj-GJ.cjs");var Es=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,Ws=(r,e,i,n)=>{for(var h=n>1?void 0:n?ks(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Es(e,i,h),h},Ne=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(Ne(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},g=(r,e,i,n)=>(Ne(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(Ne(r,e,"access private method"),i),f,z,tt,N,et,$t,D,wt,le,ce,zt,Ft,Dt,w,ke,v,ue,pe,L,_,U,J,Mt,at,E,Nt,_t,Zt,Kt,ie,We,It,re,Me,Je,xe,Qe,fe,ze,Se,Fe,Vt,Ve,De,os,Jt,de,Re,V,P,ft,Y;class Ms{constructor(e,i){$(this,V,void 0);$(this,P,void 0);$(this,ft,0);$(this,Y,0);R(this,V,e),R(this,P,i),Lt.scrollEntries.register(a(this,V))}get size(){return a(this,ft)}get position(){return a(this,Y)}destroy(){Lt.scrollEntries.unregister(a(this,V)),a(this,V).style.transform=""}resize(){R(this,ft,a(this,P).vertical?a(this,V).offsetHeight:a(this,V).offsetWidth),R(this,Y,a(this,P).vertical?dt.getCumulativeOffsetTop(a(this,V)):dt.getCumulativeOffsetLeft(a(this,V))),R(this,Y,a(this,Y)-a(this,P).contentPosition)}transform(){let e=0;const i=a(this,P).viewportSize-a(this,ft);a(this,P).infiniteCSSProperty.current&&a(this,P).overscroll&&a(this,Y)+a(this,ft)<a(this,P).currentScrollValue&&(e=a(this,P).distance*-1-a(this,P).gap),Lt.scrollEntries.update(a(this,V),a(this,P).axisAttibute.current,e);const n=a(this,P).currentScrollValue+e,h=a(this,Y)-a(this,P).viewportSize-i,c=a(this,Y)+a(this,ft)+i,u=qt.clamp(n,h,c);a(this,P).vertical?a(this,V).style.transform=`translate3d(0px, ${u*-1}px, 0px)`:a(this,V).style.transform=`translate3d(${u*-1}px, 0px, 0px)`}}V=new WeakMap,P=new WeakMap,ft=new WeakMap,Y=new WeakMap;const xs=Ke.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends vt.CustomElement{constructor(){super(),l(this,ie),l(this,It),l(this,Me),l(this,xe),l(this,fe),l(this,Se),l(this,De),l(this,de),l(this,f,null),l(this,z,new d.CSSProperty(this,"--axis","y")),l(this,tt,new d.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,N,new d.CSSProperty(this,"--split",!1)),l(this,et,new d.CSSProperty(this,"--sectional",!1)),l(this,$t,new d.CSSProperty(this,"--wheel-max-delta",!1)),l(this,D,new d.CSSProperty(this,"--infinite",!1)),l(this,wt,new d.CSSProperty(this,"--damping",.03)),l(this,le,new d.CSSProperty(this,"--mass",0)),l(this,ce,new d.CSSProperty(this,"--stiffness",0)),l(this,zt,new d.CSSProperty(this,"--mouse-drag",!1)),l(this,Ft,new d.CSSProperty(this,"--disabled",!1)),l(this,Dt,new d.CSSProperty(this,"--hibernated",!1)),l(this,w,null),l(this,ke,null),l(this,v,[]),l(this,ue,0),l(this,pe,0),l(this,L,0),l(this,_,0),l(this,U,0),l(this,J,null),l(this,Mt,null),l(this,at,null),l(this,E,new gt.Store(0)),l(this,Nt,0),l(this,_t,0),l(this,Zt,!0),l(this,Kt,!0),l(this,Vt,()=>{const e=this.currentScrollValue/s(this,_)||0;if(g(this,ue,this.vertical?dt.getCumulativeOffsetTop(this):dt.getCumulativeOffsetLeft(this)),g(this,pe,this.vertical?dt.getCumulativeOffsetTop(s(this,w)):dt.getCumulativeOffsetLeft(s(this,w))),g(this,L,this.vertical?this.offsetHeight:this.offsetWidth),s(this,tt).current){g(this,_,s(this,L)*s(this,tt).current);const i=s(this,_)+s(this,L);this.vertical?(s(this,w).style.width=i+"px",s(this,w).style.height="100%"):(s(this,w).style.height=i+"px",s(this,w).style.width="100%")}else this.vertical?(s(this,w).style.width="100%",s(this,w).style.height="max-content",g(this,_,s(this,w).offsetHeight-s(this,L))):(s(this,w).style.width="max-content",s(this,w).style.height="100%",g(this,_,s(this,w).offsetWidth-s(this,L)));if(this.vertical?g(this,U,ss.cssUnitParser.parse(getComputedStyle(s(this,w)).rowGap)):g(this,U,ss.cssUnitParser.parse(getComputedStyle(s(this,w)).columnGap)),!s(this,D).current){const i=getComputedStyle(this);g(this,_,s(this,_)+(this.vertical?parseFloat(i.paddingBlockStart)+parseFloat(i.paddingBlockEnd):parseFloat(i.paddingInlineStart)+parseFloat(i.paddingInlineEnd))),s(this,f).max=s(this,_)}if(s(this,v).forEach(i=>{i.resize(),i.transform()}),s(this,D).current&&s(this,v).length){const i=s(this,v)[s(this,v).length-1],n=i.position+i.size-s(this,L),h=s(this,_)-n;g(this,_t,i.position+i.size+h)}else g(this,_t,s(this,_));if(s(this,et).current&&s(this,v).length){const i=s(this,v)[s(this,E).current];s(this,f).set(i.position,!0)}else s(this,f).set(e*s(this,_),!0)}),l(this,Ve,()=>{const e=this.currentScrollValue;if(g(this,Nt,Math.max(0,e-s(this,_))),s(this,v).length){let i=0;for(let n=0;n<s(this,v).length;n++){const h=s(this,v)[n];h.transform(),this.targetScrollValue+this.viewportSize/2>=h.position&&(i=n)}s(this,E).current=i}else this.vertical?s(this,w).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:s(this,w).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Lt.scrollEntries.update(this,s(this,z).current,e)}),l(this,Jt,(e,i)=>{if(!(e==="drag"&&!Cs.device.isMobile&&!s(this,zt).current))if(s(this,et).current){const n=Math.sign(i);s(this,v).length?this.shiftSections(n):s(this,f).shift(n*s(this,L))}else s(this,f).shift(i)}),Ze.isBrowser&&(g(this,f,new _s.Damped(0,{damping:.01,min:0,order:Le.TICK_ORDER.SCROLL})),this.openShadow(xs),B.element(this,{tabIndex:0,children:[B.div({class:"static",children:[B.slot({name:"static"})]}),B.div({class:"content",children:[B.slot({ref:e=>g(this,ke,e)})],style:{flexDirection:new bs.Derived(s(this,z),e=>e==="x"?"row":"column")},ref:e=>g(this,w,e)})]}),g(this,J,new $e.WheelControls({element:this})),s(this,J).changeEvent.subscribe(s(this,Jt)),g(this,Mt,new $e.KeyboardControls({element:this})),s(this,Mt).changeEvent.subscribe(s(this,Jt)),g(this,at,new $e.DragControls({element:this})),s(this,at).changeEvent.subscribe(s(this,Jt)),s(this,z).subscribe(({current:e})=>{s(this,w).style.flexDirection=e==="x"?"row":"column",s(this,J).axis=s(this,$t).current?"max":e,s(this,Mt).dimension=e==="x"?"width":"height",s(this,at).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&s(this,Vt).call(this)}),s(this,$t).subscribe(e=>{s(this,J).axis=e.current?"max":s(this,z).current}),s(this,tt).subscribe(()=>{this.isConnected&&s(this,Vt).call(this)}),s(this,N).subscribe(({current:e})=>{this.isConnected&&(e?C(this,ie,We).call(this):C(this,It,re).call(this))}),s(this,et).subscribe(e=>{s(this,E).current=0,s(this,J).debounce=e.current,s(this,at).swipe=e.current,s(this,f).reset(),this.isConnected&&(e.current&&!e.previous?C(this,ie,We).call(this):!e.current&&e.previous&&C(this,It,re).call(this))}),s(this,D).subscribe(e=>{e.current?(this.isConnected&&(s(this,v).length||(s(this,N).current=!0)),s(this,v).length&&(s(this,f).max=1/0,s(this,f).min=-1/0)):(g(this,Nt,0),s(this,f).max=s(this,_),s(this,f).min=0)}),s(this,wt).subscribe(e=>{s(this,f).damping=e.current}),s(this,le).subscribe(e=>{s(this,f).mass=e.current}),s(this,ce).subscribe(e=>{s(this,f).stiffness=e.current}),s(this,Ft).subscribe(e=>{e.current&&!e.previous?C(this,Me,Je).call(this):!e.current&&e.previous&&C(this,xe,Qe).call(this)}),s(this,Dt).subscribe(e=>{e.current&&!e.previous?C(this,fe,ze).call(this):!e.current&&e.previous&&C(this,Se,Fe).call(this)}))}get dampingCSSProperty(){return s(this,wt)}get maxxCSSProperty(){return s(this,le)}get stiffnessCSSProperty(){return s(this,ce)}get mouseDragCSSProperty(){return s(this,zt)}get axisAttibute(){return s(this,z)}get pagesAttibute(){return s(this,tt)}get splitAttibute(){return s(this,N)}get sectionalAttibute(){return s(this,et)}get infiniteCSSProperty(){return s(this,D)}get dampingAttibute(){return s(this,wt)}get disabledAttibute(){return s(this,Ft)}get hibernatedAttibute(){return s(this,Dt)}get currentScrollValue(){return C(this,de,Re).call(this,"current")}get targetScrollValue(){return C(this,de,Re).call(this,"target")}get contentElement(){return s(this,w)}get sections(){return s(this,v)}get position(){return s(this,ue)}get contentPosition(){return s(this,pe)}get viewportSize(){return s(this,L)}get scrollSize(){return s(this,_)}get gap(){return s(this,U)}get counter(){return s(this,E)}get distance(){return s(this,_t)}get infiniteDistance(){return s(this,D).current?s(this,_t)+s(this,U):s(this,_t)}get overscroll(){return s(this,Nt)}get vertical(){return s(this,z).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get speed(){return s(this,f).speed}get direction(){return s(this,f).direction}get isRunning(){return s(this,f).isRunning}get scrollWidth(){return s(this,z).current==="y"?0:s(this,f).length}get scrollHeight(){return s(this,z).current==="x"?0:s(this,f).length}onScroll(...e){return s(this,f).subscribe(...e)}offScroll(...e){s(this,f).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!s(this,v).length)return;const n=s(this,E).current;C(this,De,os).call(this,e);const h=s(this,v)[n],c=s(this,v)[s(this,E).current];if(h&&c){let u=0;const ae=s(this,v).length-1;s(this,D).current?s(this,E).current===0&&n===ae?u=s(this,_)+s(this,L)-h.position+s(this,U):s(this,E).current===ae&&n===0?u=c.position-(s(this,_)+s(this,L)+s(this,U)):u=c.position-h.position:u=c.position-h.position,s(this,f).shift(u,i==="instant")}}shiftSections(e,i="smooth"){s(this,v).length&&this.scrollToSection(s(this,E).current+e,i)}setPosition(e,i="smooth"){s(this,f).set(e,i==="instant")}connectedCallback(){s(this,z).observe(),s(this,tt).observe(),s(this,N).observe(),s(this,et).observe(),s(this,$t).observe(),s(this,D).observe(),s(this,wt).observe(),s(this,zt).observe(),s(this,Ft).observe(),s(this,Dt).observe(),C(this,Se,Fe).call(this)}disconnectedCallback(){s(this,z).unobserve(),s(this,tt).unobserve(),s(this,N).unobserve(),s(this,et).unobserve(),s(this,$t).unobserve(),s(this,D).unobserve(),s(this,wt).unobserve(),s(this,zt).unobserve(),s(this,Ft).unobserve(),s(this,Dt).unobserve(),C(this,fe,ze).call(this)}};f=new WeakMap;z=new WeakMap;tt=new WeakMap;N=new WeakMap;et=new WeakMap;$t=new WeakMap;D=new WeakMap;wt=new WeakMap;le=new WeakMap;ce=new WeakMap;zt=new WeakMap;Ft=new WeakMap;Dt=new WeakMap;w=new WeakMap;ke=new WeakMap;v=new WeakMap;ue=new WeakMap;pe=new WeakMap;L=new WeakMap;_=new WeakMap;U=new WeakMap;J=new WeakMap;Mt=new WeakMap;at=new WeakMap;E=new WeakMap;Nt=new WeakMap;_t=new WeakMap;Zt=new WeakMap;Kt=new WeakMap;ie=new WeakSet;We=function(){C(this,It,re).call(this),s(this,ke).assignedElements().forEach(r=>{r instanceof HTMLElement&&s(this,v).push(new Ms(r,this))}),s(this,w).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),s(this,Vt).call(this)};It=new WeakSet;re=function(){s(this,v).forEach(r=>{r.destroy()}),g(this,v,[]),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Me=new WeakSet;Je=function(){s(this,Zt)||(g(this,Zt,!0),s(this,f).unsubscribe(s(this,Ve)),s(this,f).unlistenAnimationFrame(),s(this,J).disconnect(),s(this,Mt).disconnect(),s(this,at).disconnect())};xe=new WeakSet;Qe=function(){s(this,Zt)&&(g(this,Zt,!1),s(this,f).subscribe(s(this,Ve)),s(this,J).connect(),s(this,Mt).connect(),s(this,at).connect())};fe=new WeakSet;ze=function(){s(this,Kt)||(g(this,Kt,!0),Ut.windowResizer.unsubscribe(s(this,Vt)),s(this,f).reset(),C(this,Me,Je).call(this),s(this,w).style.transform="",s(this,N).current&&C(this,It,re).call(this),Lt.scrollEntries.unregister(this))};Se=new WeakSet;Fe=function(){s(this,Kt)&&(g(this,Kt,!1),s(this,N).current&&C(this,ie,We).call(this),Lt.scrollEntries.register(this),Ut.windowResizer.subscribe(s(this,Vt),Le.RESIZE_ORDER.SCROLL),C(this,xe,Qe).call(this))};Vt=new WeakMap;Ve=new WeakMap;De=new WeakSet;os=function(r){s(this,D).current?(s(this,E).current=r%s(this,v).length,s(this,E).current=s(this,E).current<0?s(this,v).length+s(this,E).current:s(this,E).current):s(this,E).current=qt.clamp(r,0,s(this,v).length-1)};Jt=new WeakMap;de=new WeakSet;Re=function(r="current"){if(s(this,D).current&&s(this,v).length){const e=s(this,f)[r]%(s(this,_)+s(this,L)+s(this,U));return e<0?s(this,_)+e+s(this,L)+s(this,U):e}else return s(this,f)[r]};exports.ScrollElement=Ws([vt.define("e-scroll")],exports.ScrollElement);var ne;class Oe extends vt.CustomElement{constructor(){super(...arguments);$(this,ne,null)}get scrollElement(){return a(this,ne)}connectedCallback(){const i=Ps.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?R(this,ne,i):console.error(this,"e-scroll not found")}}ne=new WeakMap;var Ls=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,Os=(r,e,i,n)=>{for(var h=n>1?void 0:n?Vs(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Ls(e,i,h),h},as=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},p=(r,e,i)=>(as(r,e,"read from private field"),i?i.call(r):e.get(r)),G=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},mt=(r,e,i,n)=>(as(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),Qt,F,st,it,Xt,Yt,ve,me,ge,we;const $s=Ke.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:is.aptechkaTheme.colorLight.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:is.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Oe{constructor(){super(),G(this,Qt,null),G(this,F,null),G(this,st,!1),G(this,it,0),G(this,Xt,0),G(this,Yt,0),G(this,ve,()=>{mt(this,st,this.offsetWidth>this.offsetHeight);const e=p(this,st)?this.offsetWidth:this.offsetHeight;mt(this,it,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),mt(this,it,Math.max(p(this,it),30)),p(this,st)?(p(this,F).style.width=p(this,it)+"px",p(this,F).style.height="100%"):(p(this,F).style.width="100%",p(this,F).style.height=p(this,it)+"px"),mt(this,Xt,e-p(this,it)),this.scrollElement.scrollSize||(this.style.display="none")}),G(this,me,()=>{mt(this,Yt,this.scrollElement.currentProgress*p(this,Xt)),p(this,st)?p(this,F).style.transform=`translate3d(${p(this,Yt)}px, 0px, 0px)`:p(this,F).style.transform=`translate3d(0px, ${p(this,Yt)}px, 0px)`}),G(this,ge,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),G(this,we,e=>{ys.setupDrag(h=>{const c=p(this,st)?h.x:h.y,u=this.scrollElement.distance/p(this,Xt),ae=(c-n)*u;this.scrollElement.setPosition(i+ae)});const i=this.scrollElement.targetScrollValue,n=p(this,st)?e.x:e.y}),Ze.isBrowser&&(this.openShadow($s),B.element(this,{slot:"static","drag-dead-zone":"",children:[B.slot({ref:e=>mt(this,Qt,e),children:B.div({class:"default-thumb"})})]}))}get thumbElement(){return p(this,F)}connectedCallback(){super.connectedCallback();const e=p(this,Qt).assignedElements()[0]||p(this,Qt).firstElementChild;mt(this,F,e),p(this,F).addEventListener("pointerdown",p(this,we)),Ut.windowResizer.subscribe(p(this,ve),Le.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(p(this,me)),this.scrollElement.axisAttibute.subscribe(p(this,ge))}disconnectedCallback(){p(this,F).removeEventListener("pointerdown",p(this,we)),Ut.windowResizer.unsubscribe(p(this,ve)),this.scrollElement.offScroll(p(this,me)),this.scrollElement.axisAttibute.unsubscribe(p(this,ge))}};Qt=new WeakMap;F=new WeakMap;st=new WeakMap;it=new WeakMap;Xt=new WeakMap;Yt=new WeakMap;ve=new WeakMap;me=new WeakMap;ge=new WeakMap;we=new WeakMap;exports.ScrollbarElement=Os([vt.define("e-scrollbar")],exports.ScrollbarElement);const zs=Ke.createStylesheet({button:{all:"inherit"}});class ls extends Oe{constructor(){super(),this.openShadow(zs),Ze.isBrowser&&B.element(this,{children:[B.button({onClick:()=>{this.handleClick()},children:[B.slot()]})]})}}var Fs=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Rs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ds(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Fs(e,i,h),h};exports.ScrollSetButtonElement=class extends ls{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Rs([vt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var As=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Bs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ts(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&As(e,i,h),h};exports.ScrollStepButtonElement=class extends ls{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Bs([vt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var qs=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,Hs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Is(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&qs(e,i,h),h},cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Ot=(r,e,i)=>(cs(r,e,"read from private field"),i?i.call(r):e.get(r)),rs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},ns=(r,e,i,n)=>(cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),bt,jt,j,St,Ht,he,oe,Gt;class Gs{constructor(e,i,n){$(this,j,void 0);$(this,St,void 0);$(this,Ht,void 0);$(this,he,void 0);$(this,oe,()=>{a(this,St).scrollToSection(a(this,Ht),a(this,he))});$(this,Gt,()=>{a(this,j).classList.toggle("current",a(this,St).counter.current===a(this,Ht))});R(this,j,document.createElement("button")),R(this,St,e),R(this,he,n),R(this,Ht,i),a(this,j).addEventListener("click",a(this,oe)),a(this,St).counter.subscribe(a(this,Gt)),a(this,Gt).call(this)}get element(){return a(this,j)}destroy(){a(this,j).removeEventListener("click",a(this,oe)),a(this,St).counter.unsubscribe(a(this,Gt)),a(this,j).remove()}}j=new WeakMap,St=new WeakMap,Ht=new WeakMap,he=new WeakMap,oe=new WeakMap,Gt=new WeakMap;exports.ScrollBulletButtonsElement=class extends Oe{constructor(){super(...arguments),rs(this,bt,[]),rs(this,jt,hs.debounce(()=>{Ot(this,bt).forEach(e=>e.destroy()),ns(this,bt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Gs(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Ot(this,bt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Ot(this,jt)),Ot(this,jt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Ot(this,jt)),Ot(this,bt).forEach(e=>e.destroy()),ns(this,bt,[])}};bt=new WeakMap;jt=new WeakMap;exports.ScrollBulletButtonsElement=Hs([vt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var Us=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ks=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Us(e,i,h),h},Xe=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(Xe(r,e,"read from private field"),i?i.call(r):e.get(r)),o=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},S=(r,e,i,n)=>(Xe(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),b=(r,e,i)=>(Xe(r,e,"access private method"),i),Rt,Ct,yt,Pt,Et,O,q,I,H,Wt,M,lt,ct,nt,ht,ot,At,te,W,K,Z,ut,pt,Q,_e,m,Tt,Bt,be,T,X,x,k,A,ee,xt,y,Ce,Ae,Ye,us,Te,ps,Be,fs,qe,Ss,Ie,ds,He,vs,Ge,ms,ye,se,rt,kt,je,gs,ts,ws,Pe,Ue,Ee;exports.ScrollSegmentElement=class extends Oe{constructor(){super(...arguments),o(this,Ce),o(this,Ye),o(this,Te),o(this,Be),o(this,qe),o(this,Ie),o(this,He),o(this,Ge),o(this,rt),o(this,je),o(this,ts),o(this,Pe),o(this,Rt,new d.CSSProperty(this,"--target","")),o(this,Ct,new d.CSSProperty(this,"--disabled",!1)),o(this,yt,new d.CSSProperty(this,"--distance-offset",0)),o(this,Pt,new d.CSSProperty(this,"--start-offset",0)),o(this,Et,new d.CSSProperty(this,"--capture-once",!1)),o(this,O,new d.CSSProperty(this,"--captured","")),o(this,q,new d.CSSProperty(this,"--released","")),o(this,I,new d.CSSProperty(this,"--captured-from-start","")),o(this,H,new d.CSSProperty(this,"--captured-from-finish","")),o(this,Wt,new d.CSSProperty(this,"--released-from-start","")),o(this,M,new d.CSSProperty(this,"--released-from-finish","")),o(this,lt,new d.CSSProperty(this,"--passed-var","")),o(this,ct,new d.CSSProperty(this,"--progress-var","")),o(this,nt,new d.CSSProperty(this,"--distance-var","")),o(this,ht,new d.CSSProperty(this,"--start-var","")),o(this,ot,new d.CSSProperty(this,"--finish-var","")),o(this,At,new d.CSSProperty(this,"--smoothstep",!1)),o(this,te,new d.CSSProperty(this,"--smootherstep",!1)),o(this,W,new gt.Store(!1)),o(this,K,new gt.Store(!1)),o(this,Z,new gt.Store(!1)),o(this,ut,new gt.Store(!1)),o(this,pt,new gt.Store(!1)),o(this,Q,new gt.Store(!1)),o(this,_e,[]),o(this,m,this),o(this,Tt,0),o(this,Bt,0),o(this,be,0),o(this,T,0),o(this,X,0),o(this,x,0),o(this,k,0),o(this,A,0),o(this,ee,!1),o(this,xt,!1),o(this,y,!0),o(this,ye,()=>{t(this,y)||(this.resize(),t(this,se).call(this))}),o(this,se,()=>{!t(this,y)&&t(this,ee)&&this.tick()}),o(this,Ee,hs.debounce(()=>{const e=Lt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),S(this,_e,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return t(this,yt)}get startOffsetCSSProperty(){return t(this,Pt)}get captureOnceCSSProperty(){return t(this,Et)}get capturedCSSProperty(){return t(this,O)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,I)}get capturedFromFinishCSSProperty(){return t(this,H)}get releasedFromStartCSSProperty(){return t(this,Wt)}get releasedFromFinishCSSProperty(){return t(this,M)}get passedVarCSSProperty(){return t(this,lt)}get progressVarCSSProperty(){return t(this,ct)}get distanceVarCSSProperty(){return t(this,nt)}get startVarCSSProperty(){return t(this,ht)}get finishVarCSSProperty(){return t(this,ot)}get smoothstepCSSProperty(){return t(this,At)}get smootherstepCSSProperty(){return t(this,te)}get disabledCSSProperty(){return t(this,Ct)}get targetCSSProperty(){return t(this,Rt)}get isCaptured(){return t(this,W)}get isReleased(){return t(this,K)}get isCapturedFromStart(){return t(this,Z)}get isReleasedFromStart(){return t(this,ut)}get isCapturedFromFinish(){return t(this,pt)}get isReleasedFromFinish(){return t(this,Q)}get directionPosition(){return t(this,Tt)}get directionSize(){return t(this,Bt)}get passed(){return t(this,T)}get progress(){return t(this,X)}get start(){return t(this,x)}get finish(){return t(this,A)}get distance(){return t(this,k)}get isCapturedOnce(){return t(this,xt)}get isDisabled(){return t(this,y)}resize(){S(this,Bt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),S(this,Tt,this.scrollElement.vertical?dt.getCumulativeOffsetTop(this,this.scrollElement):dt.getCumulativeOffsetLeft(this,this.scrollElement)),S(this,x,this.getStart()),S(this,k,this.getDistance()),S(this,x,t(this,x)+t(this,Pt).current),S(this,k,t(this,k)+t(this,yt).current),S(this,A,t(this,x)+t(this,k)),this.scrollElement.currentScrollValue>t(this,A)&&!t(this,W).current&&!t(this,K).current&&(t(this,W).current=!0),this.setVar(t(this,ht).current,t(this,x)),this.setVar(t(this,ot).current,t(this,A)),this.setVar(t(this,nt).current,t(this,k)),S(this,ee,!0)}tick(){let e=this.scrollElement.currentScrollValue;t(this,_e).forEach(n=>{e+=n.value}),S(this,T,this.updateValue(e-t(this,x),0,t(this,k))||0),S(this,X,t(this,T)/t(this,k)||0);const i=Math.round(e);t(this,W).current&&(i>t(this,x)?t(this,Z).current||b(this,qe,Ss).call(this):t(this,Z).current&&!t(this,ut).current&&b(this,He,vs).call(this),i<t(this,A)?t(this,Q).current&&!t(this,pt).current&&b(this,Ie,ds).call(this):t(this,Z).current&&!t(this,Q).current&&b(this,Ge,ms).call(this)),i>t(this,x)&&i<t(this,A)?(b(this,Ce,Ae).call(this),t(this,W).current||b(this,Te,ps).call(this)):t(this,W).current&&(S(this,T,qt.step(t(this,k)/2,t(this,T),0,t(this,k))),S(this,X,t(this,T)/t(this,k)),b(this,Ce,Ae).call(this),b(this,Be,fs).call(this)),t(this,xt)&&t(this,Et).current&&(t(this,O).current&&t(this,m).classList.add(t(this,O).current),S(this,y,!0))}disable(){this.style.cssText="",S(this,Tt,0),S(this,Bt,0),S(this,T,0),S(this,X,0),S(this,x,0),S(this,k,0),S(this,A,0),S(this,ee,!1),t(this,W).current=!1,t(this,K).current=!1,t(this,Z).current=!1,t(this,ut).current=!1,t(this,pt).current=!1,t(this,Q).current=!1,S(this,xt,!1),S(this,y,!0),b(this,Pe,Ue).call(this)}enable(){S(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,Rt).observe(),t(this,Ct).observe(),t(this,yt).observe(),t(this,Pt).observe(),t(this,Et).observe(),t(this,O).observe(),t(this,q).observe(),t(this,I).observe(),t(this,H).observe(),t(this,Wt).observe(),t(this,M).observe(),t(this,lt).observe(),t(this,ct).observe(),t(this,nt).observe(),t(this,ht).observe(),t(this,ot).observe(),t(this,At).observe(),t(this,te).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",t(this,Ee)),t(this,Ee).call(this),t(this,Ct).current||this.enable(),t(this,Rt).subscribe(i=>{i.previous&&b(this,Pe,Ue).call(this),i.current?i.current==="parent"?S(this,m,this.parentElement||this):S(this,m,document.querySelector(i.current)||this):S(this,m,this)}),t(this,Ct).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),t(this,Pt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,yt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,O).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,I).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,H).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,q).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,Wt).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,M).subscribe(i=>{b(this,rt,kt).call(this,i)}),t(this,Et).subscribe(i=>{t(this,y)||!i.current&&i.previous&&(this.resize(),this.enable())}),t(this,lt).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,this.passed))}),t(this,ct).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,X)))}),t(this,ht).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,x)))}),t(this,ot).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,A)))}),t(this,nt).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,k)))}),Ut.windowResizer.subscribe(t(this,ye),Le.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,se)),e=!0}disconnectedCallback(){Ut.windowResizer.unsubscribe(t(this,ye)),this.scrollElement.offScroll(t(this,se)),t(this,Rt).close(),t(this,Ct).close(),t(this,yt).close(),t(this,Pt).close(),t(this,Et).close(),t(this,O).close(),t(this,q).close(),t(this,I).close(),t(this,H).close(),t(this,Wt).close(),t(this,M).close(),t(this,lt).close(),t(this,ct).close(),t(this,nt).close(),t(this,ht).close(),t(this,ot).close(),t(this,At).close(),t(this,te).close(),t(this,W).close(),t(this,K).close(),t(this,Z).close(),t(this,ut).close(),t(this,pt).close(),t(this,Q).close(),this.disable()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,i){e&&t(this,m).style.setProperty(`--${e}`,i.toString())}updateValue(e,i=0,n=1){return this.smootherstepCSSProperty.current?qt.smootherstep(e,i,n)*n:t(this,At).current?qt.smoothstep(e,i,n)*n:qt.clamp(e,i,n)}getDistance(){return t(this,Bt)+t(this,be)}getStart(){return t(this,Tt)-t(this,be)}};Rt=new WeakMap;Ct=new WeakMap;yt=new WeakMap;Pt=new WeakMap;Et=new WeakMap;O=new WeakMap;q=new WeakMap;I=new WeakMap;H=new WeakMap;Wt=new WeakMap;M=new WeakMap;lt=new WeakMap;ct=new WeakMap;nt=new WeakMap;ht=new WeakMap;ot=new WeakMap;At=new WeakMap;te=new WeakMap;W=new WeakMap;K=new WeakMap;Z=new WeakMap;ut=new WeakMap;pt=new WeakMap;Q=new WeakMap;_e=new WeakMap;m=new WeakMap;Tt=new WeakMap;Bt=new WeakMap;be=new WeakMap;T=new WeakMap;X=new WeakMap;x=new WeakMap;k=new WeakMap;A=new WeakMap;ee=new WeakMap;xt=new WeakMap;y=new WeakMap;Ce=new WeakSet;Ae=function(){b(this,Ye,us).call(this),this.setVar(t(this,lt).current,t(this,T)),this.setVar(t(this,ct).current,t(this,X))};Ye=new WeakSet;us=function(){this.dispatchEvent(new CustomEvent("segmentPass",{detail:{distance:t(this,k),start:t(this,x),finish:t(this,A),passed:t(this,T),progress:t(this,X)}}))};Te=new WeakSet;ps=function(){t(this,W).current=!0,t(this,K).current=!1,S(this,xt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,M).current&&t(this,m).classList.remove(t(this,M).current),t(this,M).current&&t(this,m).classList.remove(t(this,M).current),t(this,O).current&&t(this,m).classList.add(t(this,O).current)};Be=new WeakSet;fs=function(){t(this,K).current=!0,t(this,W).current=!1,S(this,xt,!0),t(this,O).current&&t(this,m).classList.remove(t(this,O).current),t(this,I).current&&t(this,m).classList.remove(t(this,I).current),t(this,H).current&&t(this,m).classList.remove(t(this,H).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)};qe=new WeakSet;Ss=function(){t(this,W).current=!0,t(this,Z).current=!0,t(this,ut).current=!1,t(this,I).current&&t(this,m).classList.add(t(this,I).current)};Ie=new WeakSet;ds=function(){t(this,W).current=!0,t(this,pt).current=!0,t(this,Q).current=!1,t(this,H).current&&t(this,m).classList.add(t(this,H).current)};He=new WeakSet;vs=function(){t(this,K).current=!0,t(this,ut).current=!0,t(this,Z).current=!1,t(this,M).current&&t(this,m).classList.add(t(this,M).current)};Ge=new WeakSet;ms=function(){t(this,K).current=!0,t(this,Q).current=!0,t(this,pt).current=!1,t(this,M).current&&t(this,m).classList.add(t(this,M).current)};ye=new WeakMap;se=new WeakMap;rt=new WeakSet;kt=function(r){if(t(this,y)){r.previous&&t(this,m).classList.remove(r.previous),r.current&&t(this,m).classList.remove(r.current);return}r.current&&t(this,W).current?(r.previous&&t(this,m).classList.remove(r.previous),t(this,m).classList.add(r.current)):!r.current&&r.previous&&t(this,m).classList.remove(r.previous)};je=new WeakSet;gs=function(...r){r.forEach(e=>{e&&t(this,m).classList.remove(e)})};ts=new WeakSet;ws=function(...r){r.forEach(e=>{e&&t(this,m).style.removeProperty(`--${e}`)})};Pe=new WeakSet;Ue=function(){b(this,je,gs).call(this,t(this,O).current,t(this,I).current,t(this,H).current,t(this,q).current,t(this,Wt).current,t(this,M).current),b(this,ts,ws).call(this,t(this,lt).current,t(this,ct).current,t(this,nt).current,t(this,ht).current,t(this,ot).current)};Ee=new WeakMap;exports.ScrollSegmentElement=Ks([vt.define("e-scroll-segment")],exports.ScrollSegmentElement);
1
+ "use strict";var es=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var a=(r,e,i)=>(es(r,e,"read from private field"),i?i.call(r):e.get(r)),$=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},R=(r,e,i,n)=>(es(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _s=require("../Damped-DK3CSBXb.cjs"),Ze=require("../browser-CpzFX2xg.cjs"),St=require("../layout-8ryRAMGJ.cjs"),It=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const gt=require("../Store-BQGNOHlY.cjs"),Cs=require("../Derived-BZtlW0bB.cjs");require("../ticker/index.cjs");const $e=require("../DragControls-CV1YozSr.cjs"),mt=require("../custom-element/index.cjs"),Le=require("../order/index.cjs"),Zt=require("../window-resizer/index.cjs"),Lt=require("../scroll-entries/index.cjs"),q=require("../tags-CueX-JLX.cjs"),Ke=require("../createStylesheet-C8aQQ4hd.cjs"),ss=require("../css-unit-parser/index.cjs"),S=require("../css-property/index.cjs"),ys=require("../Viewport-_WllZTJ0.cjs"),Ps=require("../gestures-DHLrn6Q8.cjs"),Es=require("../dom-JBOkFLTh.cjs"),is=require("../theme/index.cjs"),rs=require("../element-resizer/index.cjs"),os=require("../function-MthRj-GJ.cjs");var ks=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Ms=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ws(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&ks(e,i,h),h},Ne=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(Ne(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},g=(r,e,i,n)=>(Ne(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(Ne(r,e,"access private method"),i),f,z,tt,N,et,$t,D,wt,ce,ue,zt,Ft,Dt,w,ke,m,pe,fe,L,b,U,J,Mt,at,E,Jt,bt,Kt,Nt,re,We,Ht,ne,Me,Je,xe,Qe,de,ze,Se,Fe,Vt,Ve,De,as,Qt,me,Re,V,P,ft,Y;class xs{constructor(e,i){$(this,V,void 0);$(this,P,void 0);$(this,ft,0);$(this,Y,0);R(this,V,e),R(this,P,i),Lt.scrollEntries.register(a(this,V))}get size(){return a(this,ft)}get position(){return a(this,Y)}destroy(){Lt.scrollEntries.unregister(a(this,V)),a(this,V).style.transform=""}resize(){R(this,ft,a(this,P).vertical?a(this,V).offsetHeight:a(this,V).offsetWidth),R(this,Y,a(this,P).vertical?St.getCumulativeOffsetTop(a(this,V)):St.getCumulativeOffsetLeft(a(this,V))),R(this,Y,a(this,Y)-a(this,P).contentPosition)}transform(){let e=0;const i=a(this,P).viewportSize-a(this,ft);a(this,P).infiniteCSSProperty.current&&a(this,P).overscroll&&a(this,Y)+a(this,ft)<a(this,P).currentScrollValue&&(e=a(this,P).distance*-1-a(this,P).gap),Lt.scrollEntries.update(a(this,V),a(this,P).axisAttibute.current,e);const n=a(this,P).currentScrollValue+e,h=a(this,Y)-a(this,P).viewportSize-i,c=a(this,Y)+a(this,ft)+i,u=It.clamp(n,h,c);a(this,P).vertical?a(this,V).style.transform=`translate3d(0px, ${u*-1}px, 0px)`:a(this,V).style.transform=`translate3d(${u*-1}px, 0px, 0px)`}}V=new WeakMap,P=new WeakMap,ft=new WeakMap,Y=new WeakMap;const Ls=Ke.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends mt.CustomElement{constructor(){super(),l(this,re),l(this,Ht),l(this,Me),l(this,xe),l(this,de),l(this,Se),l(this,De),l(this,me),l(this,f,null),l(this,z,new S.CSSProperty(this,"--axis","y")),l(this,tt,new S.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,N,new S.CSSProperty(this,"--split",!1)),l(this,et,new S.CSSProperty(this,"--sectional",!1)),l(this,$t,new S.CSSProperty(this,"--wheel-max-delta",!1)),l(this,D,new S.CSSProperty(this,"--infinite",!1)),l(this,wt,new S.CSSProperty(this,"--damping",20)),l(this,ce,new S.CSSProperty(this,"--mass",0)),l(this,ue,new S.CSSProperty(this,"--stiffness",0)),l(this,zt,new S.CSSProperty(this,"--mouse-drag",!1)),l(this,Ft,new S.CSSProperty(this,"--disabled",!1)),l(this,Dt,new S.CSSProperty(this,"--hibernated",!1)),l(this,w,null),l(this,ke,null),l(this,m,[]),l(this,pe,0),l(this,fe,0),l(this,L,0),l(this,b,0),l(this,U,0),l(this,J,null),l(this,Mt,null),l(this,at,null),l(this,E,new gt.Store(0)),l(this,Jt,0),l(this,bt,0),l(this,Kt,!0),l(this,Nt,!0),l(this,Vt,()=>{const e=this.currentScrollValue/s(this,b)||0;if(g(this,pe,this.vertical?St.getCumulativeOffsetTop(this):St.getCumulativeOffsetLeft(this)),g(this,fe,this.vertical?St.getCumulativeOffsetTop(s(this,w)):St.getCumulativeOffsetLeft(s(this,w))),g(this,L,this.vertical?this.offsetHeight:this.offsetWidth),s(this,tt).current){g(this,b,s(this,L)*s(this,tt).current);const i=s(this,b)+s(this,L);this.vertical?(s(this,w).style.width=i+"px",s(this,w).style.height="100%"):(s(this,w).style.height=i+"px",s(this,w).style.width="100%")}else this.vertical?(s(this,w).style.width="100%",s(this,w).style.height="max-content",g(this,b,s(this,w).offsetHeight-s(this,L))):(s(this,w).style.width="max-content",s(this,w).style.height="100%",g(this,b,s(this,w).offsetWidth-s(this,L)));if(this.vertical?g(this,U,ss.cssUnitParser.parse(getComputedStyle(s(this,w)).rowGap)):g(this,U,ss.cssUnitParser.parse(getComputedStyle(s(this,w)).columnGap)),!s(this,D).current){const i=getComputedStyle(this);g(this,b,s(this,b)+(this.vertical?parseFloat(i.paddingBlockStart)+parseFloat(i.paddingBlockEnd):parseFloat(i.paddingInlineStart)+parseFloat(i.paddingInlineEnd))),s(this,f).max=s(this,b)}if(s(this,m).forEach(i=>{i.resize(),i.transform()}),s(this,D).current&&s(this,m).length){const i=s(this,m)[s(this,m).length-1],n=i.position+i.size-s(this,L),h=s(this,b)-n;g(this,bt,i.position+i.size+h)}else g(this,bt,s(this,b));if(s(this,et).current&&s(this,m).length){const i=s(this,m)[s(this,E).current];s(this,f).set(i.position,!0)}else s(this,f).set(e*s(this,b),!0)}),l(this,Ve,()=>{const e=this.currentScrollValue;if(g(this,Jt,Math.max(0,e-s(this,b))),s(this,m).length){let i=0;for(let n=0;n<s(this,m).length;n++){const h=s(this,m)[n];h.transform(),this.targetScrollValue+this.viewportSize/2>=h.position&&(i=n)}s(this,E).current=i}else this.vertical?s(this,w).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:s(this,w).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Lt.scrollEntries.update(this,s(this,z).current,e)}),l(this,Qt,(e,i)=>{if(!(e==="drag"&&!ys.device.isMobile&&!s(this,zt).current))if(s(this,et).current){const n=Math.sign(i);s(this,m).length?this.shiftSections(n):s(this,f).shift(n*s(this,L))}else s(this,f).shift(i)}),Ze.isBrowser&&(g(this,f,new _s.Damped(0,{damping:.01,min:0,order:Le.TICK_ORDER.SCROLL})),this.openShadow(Ls),q.element(this,{tabIndex:0,children:[q.div({class:"static",children:[q.slot({name:"static"})]}),q.div({class:"content",children:[q.slot({ref:e=>g(this,ke,e)})],style:{flexDirection:new Cs.Derived(s(this,z),e=>e==="x"?"row":"column")},ref:e=>g(this,w,e)})]}),g(this,J,new $e.WheelControls({element:this})),s(this,J).changeEvent.subscribe(s(this,Qt)),g(this,Mt,new $e.KeyboardControls({element:this})),s(this,Mt).changeEvent.subscribe(s(this,Qt)),g(this,at,new $e.DragControls({element:this})),s(this,at).changeEvent.subscribe(s(this,Qt)),s(this,z).subscribe(({current:e})=>{s(this,w).style.flexDirection=e==="x"?"row":"column",s(this,J).axis=s(this,$t).current?"max":e,s(this,Mt).dimension=e==="x"?"width":"height",s(this,at).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&s(this,Vt).call(this)}),s(this,$t).subscribe(e=>{s(this,J).axis=e.current?"max":s(this,z).current}),s(this,tt).subscribe(()=>{this.isConnected&&s(this,Vt).call(this)}),s(this,N).subscribe(({current:e})=>{this.isConnected&&(e?C(this,re,We).call(this):C(this,Ht,ne).call(this))}),s(this,et).subscribe(e=>{s(this,E).current=0,s(this,J).debounce=e.current,s(this,at).swipe=e.current,s(this,f).reset(),this.isConnected&&(e.current&&!e.previous?C(this,re,We).call(this):!e.current&&e.previous&&C(this,Ht,ne).call(this))}),s(this,D).subscribe(e=>{e.current?(this.isConnected&&(s(this,m).length||(s(this,N).current=!0)),s(this,m).length&&(s(this,f).max=1/0,s(this,f).min=-1/0)):(g(this,Jt,0),s(this,f).max=s(this,b),s(this,f).min=0)}),s(this,wt).subscribe(e=>{s(this,f).damping=e.current}),s(this,ce).subscribe(e=>{s(this,f).mass=e.current}),s(this,ue).subscribe(e=>{s(this,f).stiffness=e.current}),s(this,Ft).subscribe(e=>{e.current&&!e.previous?C(this,Me,Je).call(this):!e.current&&e.previous&&C(this,xe,Qe).call(this)}),s(this,Dt).subscribe(e=>{e.current&&!e.previous?C(this,de,ze).call(this):!e.current&&e.previous&&C(this,Se,Fe).call(this)}),s(this,f).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}))}get dampingCSSProperty(){return s(this,wt)}get maxxCSSProperty(){return s(this,ce)}get stiffnessCSSProperty(){return s(this,ue)}get mouseDragCSSProperty(){return s(this,zt)}get axisAttibute(){return s(this,z)}get pagesAttibute(){return s(this,tt)}get splitAttibute(){return s(this,N)}get sectionalAttibute(){return s(this,et)}get infiniteCSSProperty(){return s(this,D)}get dampingAttibute(){return s(this,wt)}get disabledAttibute(){return s(this,Ft)}get hibernatedAttibute(){return s(this,Dt)}get currentScrollValue(){return C(this,me,Re).call(this,"current")}get targetScrollValue(){return C(this,me,Re).call(this,"target")}get contentElement(){return s(this,w)}get sections(){return s(this,m)}get position(){return s(this,pe)}get contentPosition(){return s(this,fe)}get viewportSize(){return s(this,L)}get scrollSize(){return s(this,b)}get gap(){return s(this,U)}get counter(){return s(this,E)}get distance(){return s(this,bt)}get infiniteDistance(){return s(this,D).current?s(this,bt)+s(this,U):s(this,bt)}get overscroll(){return s(this,Jt)}get vertical(){return s(this,z).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get speed(){return s(this,f).speed}get direction(){return s(this,f).direction}get isRunning(){return s(this,f).isRunning}get scrollWidth(){return s(this,z).current==="y"?0:s(this,f).length}get scrollHeight(){return s(this,z).current==="x"?0:s(this,f).length}onScroll(...e){return s(this,f).subscribe(...e)}offScroll(...e){s(this,f).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!s(this,m).length)return;const n=s(this,E).current;C(this,De,as).call(this,e);const h=s(this,m)[n],c=s(this,m)[s(this,E).current];if(h&&c){let u=0;const le=s(this,m).length-1;s(this,D).current?s(this,E).current===0&&n===le?u=s(this,b)+s(this,L)-h.position+s(this,U):s(this,E).current===le&&n===0?u=c.position-(s(this,b)+s(this,L)+s(this,U)):u=c.position-h.position:u=c.position-h.position,s(this,f).shift(u,i==="instant")}}shiftSections(e,i="smooth"){s(this,m).length&&this.scrollToSection(s(this,E).current+e,i)}setPosition(e,i="smooth"){s(this,f).set(e,i==="instant")}connectedCallback(){s(this,z).observe(),s(this,tt).observe(),s(this,N).observe(),s(this,et).observe(),s(this,$t).observe(),s(this,D).observe(),s(this,wt).observe(),s(this,zt).observe(),s(this,Ft).observe(),s(this,Dt).observe(),C(this,Se,Fe).call(this)}disconnectedCallback(){s(this,z).unobserve(),s(this,tt).unobserve(),s(this,N).unobserve(),s(this,et).unobserve(),s(this,$t).unobserve(),s(this,D).unobserve(),s(this,wt).unobserve(),s(this,zt).unobserve(),s(this,Ft).unobserve(),s(this,Dt).unobserve(),C(this,de,ze).call(this)}};f=new WeakMap;z=new WeakMap;tt=new WeakMap;N=new WeakMap;et=new WeakMap;$t=new WeakMap;D=new WeakMap;wt=new WeakMap;ce=new WeakMap;ue=new WeakMap;zt=new WeakMap;Ft=new WeakMap;Dt=new WeakMap;w=new WeakMap;ke=new WeakMap;m=new WeakMap;pe=new WeakMap;fe=new WeakMap;L=new WeakMap;b=new WeakMap;U=new WeakMap;J=new WeakMap;Mt=new WeakMap;at=new WeakMap;E=new WeakMap;Jt=new WeakMap;bt=new WeakMap;Kt=new WeakMap;Nt=new WeakMap;re=new WeakSet;We=function(){C(this,Ht,ne).call(this),s(this,ke).assignedElements().forEach(r=>{r instanceof HTMLElement&&s(this,m).push(new xs(r,this))}),s(this,w).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),s(this,Vt).call(this)};Ht=new WeakSet;ne=function(){s(this,m).forEach(r=>{r.destroy()}),g(this,m,[]),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Me=new WeakSet;Je=function(){s(this,Kt)||(g(this,Kt,!0),s(this,f).unsubscribe(s(this,Ve)),s(this,f).unlistenAnimationFrame(),s(this,J).disconnect(),s(this,Mt).disconnect(),s(this,at).disconnect())};xe=new WeakSet;Qe=function(){s(this,Kt)&&(g(this,Kt,!1),s(this,f).subscribe(s(this,Ve)),s(this,J).connect(),s(this,Mt).connect(),s(this,at).connect())};de=new WeakSet;ze=function(){s(this,Nt)||(g(this,Nt,!0),Zt.windowResizer.unsubscribe(s(this,Vt)),s(this,f).reset(),C(this,Me,Je).call(this),s(this,w).style.transform="",s(this,N).current&&C(this,Ht,ne).call(this),Lt.scrollEntries.unregister(this))};Se=new WeakSet;Fe=function(){s(this,Nt)&&(g(this,Nt,!1),s(this,N).current&&C(this,re,We).call(this),Lt.scrollEntries.register(this),Zt.windowResizer.subscribe(s(this,Vt),Le.RESIZE_ORDER.SCROLL),C(this,xe,Qe).call(this))};Vt=new WeakMap;Ve=new WeakMap;De=new WeakSet;as=function(r){s(this,D).current?(s(this,E).current=r%s(this,m).length,s(this,E).current=s(this,E).current<0?s(this,m).length+s(this,E).current:s(this,E).current):s(this,E).current=It.clamp(r,0,s(this,m).length-1)};Qt=new WeakMap;me=new WeakSet;Re=function(r="current"){if(s(this,D).current&&s(this,m).length){const e=s(this,f)[r]%(s(this,b)+s(this,L)+s(this,U));return e<0?s(this,b)+e+s(this,L)+s(this,U):e}else return s(this,f)[r]};exports.ScrollElement=Ms([mt.define("e-scroll")],exports.ScrollElement);var he;class Oe extends mt.CustomElement{constructor(){super(...arguments);$(this,he,null)}get scrollElement(){return a(this,he)}connectedCallback(){const i=Es.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?R(this,he,i):console.error(this,"e-scroll not found")}}he=new WeakMap;var Vs=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,$s=(r,e,i,n)=>{for(var h=n>1?void 0:n?Os(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Vs(e,i,h),h},ls=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},p=(r,e,i)=>(ls(r,e,"read from private field"),i?i.call(r):e.get(r)),G=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vt=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),Xt,F,st,it,Yt,jt,Rt,ve,ge,we;const zs=Ke.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:is.aptechkaTheme.colorLight.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:is.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Oe{constructor(){super(),G(this,Xt,null),G(this,F,null),G(this,st,!1),G(this,it,0),G(this,Yt,0),G(this,jt,0),G(this,Rt,()=>{vt(this,st,this.offsetWidth>this.offsetHeight);const e=p(this,st)?this.offsetWidth:this.offsetHeight;vt(this,it,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),vt(this,it,Math.max(p(this,it),30)),p(this,st)?(p(this,F).style.width=p(this,it)+"px",p(this,F).style.height="100%"):(p(this,F).style.width="100%",p(this,F).style.height=p(this,it)+"px"),vt(this,Yt,e-p(this,it)),this.scrollElement.scrollSize||(this.style.display="none")}),G(this,ve,()=>{vt(this,jt,this.scrollElement.currentProgress*p(this,Yt)),p(this,st)?p(this,F).style.transform=`translate3d(${p(this,jt)}px, 0px, 0px)`:p(this,F).style.transform=`translate3d(0px, ${p(this,jt)}px, 0px)`}),G(this,ge,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),G(this,we,e=>{document.documentElement.classList.add("grabbing"),Ps.setupDrag(h=>{const c=p(this,st)?h.x:h.y,u=this.scrollElement.distance/p(this,Yt),le=(c-n)*u;this.scrollElement.setPosition(i+le)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=p(this,st)?e.x:e.y}),Ze.isBrowser&&(this.openShadow(zs),q.element(this,{slot:"static","drag-dead-zone":"",children:[q.slot({ref:e=>vt(this,Xt,e),children:q.div({class:"default-thumb"})})]}))}get thumbElement(){return p(this,F)}connectedCallback(){super.connectedCallback();const e=p(this,Xt).assignedElements()[0]||p(this,Xt).firstElementChild;vt(this,F,e),p(this,F).addEventListener("pointerdown",p(this,we)),Zt.windowResizer.subscribe(p(this,Rt),Le.RESIZE_ORDER.SCROLL+1),rs.elementResizer.subscribe(this,p(this,Rt)),this.scrollElement.onScroll(p(this,ve)),this.scrollElement.axisAttibute.subscribe(p(this,ge))}disconnectedCallback(){p(this,F).removeEventListener("pointerdown",p(this,we)),Zt.windowResizer.unsubscribe(p(this,Rt)),rs.elementResizer.unsubscribe(p(this,Rt)),this.scrollElement.offScroll(p(this,ve)),this.scrollElement.axisAttibute.unsubscribe(p(this,ge))}};Xt=new WeakMap;F=new WeakMap;st=new WeakMap;it=new WeakMap;Yt=new WeakMap;jt=new WeakMap;Rt=new WeakMap;ve=new WeakMap;ge=new WeakMap;we=new WeakMap;exports.ScrollbarElement=$s([mt.define("e-scrollbar")],exports.ScrollbarElement);const Fs=Ke.createStylesheet({button:{all:"inherit"}});class cs extends Oe{constructor(){super(),this.openShadow(Fs),Ze.isBrowser&&q.element(this,{children:[q.button({onClick:()=>{this.handleClick()},children:[q.slot()]})]})}}var Ds=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,As=(r,e,i,n)=>{for(var h=n>1?void 0:n?Rs(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Ds(e,i,h),h};exports.ScrollSetButtonElement=class extends cs{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=As([mt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Ts=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Bs=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Ts(e,i,h),h};exports.ScrollStepButtonElement=class extends cs{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Bs([mt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Is(e,i,h),h},us=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Ot=(r,e,i)=>(us(r,e,"read from private field"),i?i.call(r):e.get(r)),ns=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},hs=(r,e,i,n)=>(us(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),_t,te,j,dt,Gt,oe,ae,Ut;class Us{constructor(e,i,n){$(this,j,void 0);$(this,dt,void 0);$(this,Gt,void 0);$(this,oe,void 0);$(this,ae,()=>{a(this,dt).scrollToSection(a(this,Gt),a(this,oe))});$(this,Ut,()=>{a(this,j).classList.toggle("current",a(this,dt).counter.current===a(this,Gt))});R(this,j,document.createElement("button")),R(this,dt,e),R(this,oe,n),R(this,Gt,i),a(this,j).addEventListener("click",a(this,ae)),a(this,dt).counter.subscribe(a(this,Ut)),a(this,Ut).call(this)}get element(){return a(this,j)}destroy(){a(this,j).removeEventListener("click",a(this,ae)),a(this,dt).counter.unsubscribe(a(this,Ut)),a(this,j).remove()}}j=new WeakMap,dt=new WeakMap,Gt=new WeakMap,oe=new WeakMap,ae=new WeakMap,Ut=new WeakMap;exports.ScrollBulletButtonsElement=class extends Oe{constructor(){super(...arguments),ns(this,_t,[]),ns(this,te,os.debounce(()=>{Ot(this,_t).forEach(e=>e.destroy()),hs(this,_t,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new Us(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Ot(this,_t).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Ot(this,te)),Ot(this,te).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Ot(this,te)),Ot(this,_t).forEach(e=>e.destroy()),hs(this,_t,[])}};_t=new WeakMap;te=new WeakMap;exports.ScrollBulletButtonsElement=Gs([mt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var Zs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Ns=(r,e,i,n)=>{for(var h=n>1?void 0:n?Ks(e,i):e,c=r.length-1,u;c>=0;c--)(u=r[c])&&(h=(n?u(e,i,h):u(h))||h);return n&&h&&Zs(e,i,h),h},Xe=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(Xe(r,e,"read from private field"),i?i.call(r):e.get(r)),o=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},d=(r,e,i,n)=>(Xe(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),_=(r,e,i)=>(Xe(r,e,"access private method"),i),At,Ct,yt,Pt,Et,O,B,I,H,Wt,M,lt,ct,nt,ht,ot,Tt,ee,W,K,Z,ut,pt,Q,be,v,qt,Bt,_e,T,X,x,k,A,se,xt,y,Ce,Ae,Ye,ps,Te,fs,qe,ds,Be,Ss,Ie,ms,He,vs,Ge,gs,ye,ie,rt,kt,je,ws,ts,bs,Pe,Ue,Ee;exports.ScrollSegmentElement=class extends Oe{constructor(){super(...arguments),o(this,Ce),o(this,Ye),o(this,Te),o(this,qe),o(this,Be),o(this,Ie),o(this,He),o(this,Ge),o(this,rt),o(this,je),o(this,ts),o(this,Pe),o(this,At,new S.CSSProperty(this,"--target","")),o(this,Ct,new S.CSSProperty(this,"--disabled",!1)),o(this,yt,new S.CSSProperty(this,"--distance-offset",0)),o(this,Pt,new S.CSSProperty(this,"--start-offset",0)),o(this,Et,new S.CSSProperty(this,"--capture-once",!1)),o(this,O,new S.CSSProperty(this,"--captured","")),o(this,B,new S.CSSProperty(this,"--released","")),o(this,I,new S.CSSProperty(this,"--captured-from-start","")),o(this,H,new S.CSSProperty(this,"--captured-from-finish","")),o(this,Wt,new S.CSSProperty(this,"--released-from-start","")),o(this,M,new S.CSSProperty(this,"--released-from-finish","")),o(this,lt,new S.CSSProperty(this,"--passed-var","")),o(this,ct,new S.CSSProperty(this,"--progress-var","")),o(this,nt,new S.CSSProperty(this,"--distance-var","")),o(this,ht,new S.CSSProperty(this,"--start-var","")),o(this,ot,new S.CSSProperty(this,"--finish-var","")),o(this,Tt,new S.CSSProperty(this,"--smoothstep",!1)),o(this,ee,new S.CSSProperty(this,"--smootherstep",!1)),o(this,W,new gt.Store(!1)),o(this,K,new gt.Store(!1)),o(this,Z,new gt.Store(!1)),o(this,ut,new gt.Store(!1)),o(this,pt,new gt.Store(!1)),o(this,Q,new gt.Store(!1)),o(this,be,[]),o(this,v,this),o(this,qt,0),o(this,Bt,0),o(this,_e,0),o(this,T,0),o(this,X,0),o(this,x,0),o(this,k,0),o(this,A,0),o(this,se,!1),o(this,xt,!1),o(this,y,!0),o(this,ye,()=>{t(this,y)||(this.resize(),t(this,ie).call(this))}),o(this,ie,()=>{!t(this,y)&&t(this,se)&&this.tick()}),o(this,Ee,os.debounce(()=>{const e=Lt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),d(this,be,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return t(this,yt)}get startOffsetCSSProperty(){return t(this,Pt)}get captureOnceCSSProperty(){return t(this,Et)}get capturedCSSProperty(){return t(this,O)}get releasedCSSProperty(){return t(this,B)}get capturedFromStartCSSProperty(){return t(this,I)}get capturedFromFinishCSSProperty(){return t(this,H)}get releasedFromStartCSSProperty(){return t(this,Wt)}get releasedFromFinishCSSProperty(){return t(this,M)}get passedVarCSSProperty(){return t(this,lt)}get progressVarCSSProperty(){return t(this,ct)}get distanceVarCSSProperty(){return t(this,nt)}get startVarCSSProperty(){return t(this,ht)}get finishVarCSSProperty(){return t(this,ot)}get smoothstepCSSProperty(){return t(this,Tt)}get smootherstepCSSProperty(){return t(this,ee)}get disabledCSSProperty(){return t(this,Ct)}get targetCSSProperty(){return t(this,At)}get isCaptured(){return t(this,W)}get isReleased(){return t(this,K)}get isCapturedFromStart(){return t(this,Z)}get isReleasedFromStart(){return t(this,ut)}get isCapturedFromFinish(){return t(this,pt)}get isReleasedFromFinish(){return t(this,Q)}get directionPosition(){return t(this,qt)}get directionSize(){return t(this,Bt)}get passed(){return t(this,T)}get progress(){return t(this,X)}get start(){return t(this,x)}get finish(){return t(this,A)}get distance(){return t(this,k)}get isCapturedOnce(){return t(this,xt)}get isDisabled(){return t(this,y)}resize(){d(this,Bt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),d(this,qt,this.scrollElement.vertical?St.getCumulativeOffsetTop(this,this.scrollElement):St.getCumulativeOffsetLeft(this,this.scrollElement)),d(this,x,this.getStart()),d(this,k,this.getDistance()),d(this,x,t(this,x)+t(this,Pt).current),d(this,k,t(this,k)+t(this,yt).current),d(this,A,t(this,x)+t(this,k)),this.scrollElement.currentScrollValue>t(this,A)&&!t(this,W).current&&!t(this,K).current&&(t(this,W).current=!0),this.setVar(t(this,ht).current,t(this,x)),this.setVar(t(this,ot).current,t(this,A)),this.setVar(t(this,nt).current,t(this,k)),d(this,se,!0)}tick(){let e=this.scrollElement.currentScrollValue;t(this,be).forEach(n=>{e+=n.value}),d(this,T,this.updateValue(e-t(this,x),0,t(this,k))||0),d(this,X,t(this,T)/t(this,k)||0);const i=Math.round(e);t(this,W).current&&(i>t(this,x)?t(this,Z).current||_(this,Be,Ss).call(this):t(this,Z).current&&!t(this,ut).current&&_(this,He,vs).call(this),i<t(this,A)?t(this,Q).current&&!t(this,pt).current&&_(this,Ie,ms).call(this):t(this,Z).current&&!t(this,Q).current&&_(this,Ge,gs).call(this)),i>t(this,x)&&i<t(this,A)?(_(this,Ce,Ae).call(this),t(this,W).current||_(this,Te,fs).call(this)):t(this,W).current&&(d(this,T,It.step(t(this,k)/2,t(this,T),0,t(this,k))),d(this,X,t(this,T)/t(this,k)),_(this,Ce,Ae).call(this),_(this,qe,ds).call(this)),t(this,xt)&&t(this,Et).current&&(t(this,O).current&&t(this,v).classList.add(t(this,O).current),d(this,y,!0))}disable(){this.style.cssText="",d(this,qt,0),d(this,Bt,0),d(this,T,0),d(this,X,0),d(this,x,0),d(this,k,0),d(this,A,0),d(this,se,!1),t(this,W).current=!1,t(this,K).current=!1,t(this,Z).current=!1,t(this,ut).current=!1,t(this,pt).current=!1,t(this,Q).current=!1,d(this,xt,!1),d(this,y,!0),_(this,Pe,Ue).call(this)}enable(){d(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,At).observe(),t(this,Ct).observe(),t(this,yt).observe(),t(this,Pt).observe(),t(this,Et).observe(),t(this,O).observe(),t(this,B).observe(),t(this,I).observe(),t(this,H).observe(),t(this,Wt).observe(),t(this,M).observe(),t(this,lt).observe(),t(this,ct).observe(),t(this,nt).observe(),t(this,ht).observe(),t(this,ot).observe(),t(this,Tt).observe(),t(this,ee).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",t(this,Ee)),t(this,Ee).call(this),t(this,Ct).current||this.enable(),t(this,At).subscribe(i=>{i.previous&&_(this,Pe,Ue).call(this),i.current?i.current==="parent"?d(this,v,this.parentElement||this):d(this,v,document.querySelector(i.current)||this):d(this,v,this)}),t(this,Ct).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),t(this,Pt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,yt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,O).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,I).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,H).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,B).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,Wt).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,M).subscribe(i=>{_(this,rt,kt).call(this,i)}),t(this,Et).subscribe(i=>{t(this,y)||!i.current&&i.previous&&(this.resize(),this.enable())}),t(this,lt).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,this.passed))}),t(this,ct).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,X)))}),t(this,ht).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,x)))}),t(this,ot).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,A)))}),t(this,nt).subscribe(i=>{t(this,y)||(this.removeVar(i.previous),this.setVar(i.current,t(this,k)))}),Zt.windowResizer.subscribe(t(this,ye),Le.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,ie)),e=!0}disconnectedCallback(){Zt.windowResizer.unsubscribe(t(this,ye)),this.scrollElement.offScroll(t(this,ie)),t(this,At).close(),t(this,Ct).close(),t(this,yt).close(),t(this,Pt).close(),t(this,Et).close(),t(this,O).close(),t(this,B).close(),t(this,I).close(),t(this,H).close(),t(this,Wt).close(),t(this,M).close(),t(this,lt).close(),t(this,ct).close(),t(this,nt).close(),t(this,ht).close(),t(this,ot).close(),t(this,Tt).close(),t(this,ee).close(),t(this,W).close(),t(this,K).close(),t(this,Z).close(),t(this,ut).close(),t(this,pt).close(),t(this,Q).close(),this.disable()}removeVar(e){e&&t(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&t(this,v).style.setProperty(`--${e}`,i.toString())}updateValue(e,i=0,n=1){return this.smootherstepCSSProperty.current?It.smootherstep(e,i,n)*n:t(this,Tt).current?It.smoothstep(e,i,n)*n:It.clamp(e,i,n)}getDistance(){return t(this,Bt)+t(this,_e)}getStart(){return t(this,qt)-t(this,_e)}};At=new WeakMap;Ct=new WeakMap;yt=new WeakMap;Pt=new WeakMap;Et=new WeakMap;O=new WeakMap;B=new WeakMap;I=new WeakMap;H=new WeakMap;Wt=new WeakMap;M=new WeakMap;lt=new WeakMap;ct=new WeakMap;nt=new WeakMap;ht=new WeakMap;ot=new WeakMap;Tt=new WeakMap;ee=new WeakMap;W=new WeakMap;K=new WeakMap;Z=new WeakMap;ut=new WeakMap;pt=new WeakMap;Q=new WeakMap;be=new WeakMap;v=new WeakMap;qt=new WeakMap;Bt=new WeakMap;_e=new WeakMap;T=new WeakMap;X=new WeakMap;x=new WeakMap;k=new WeakMap;A=new WeakMap;se=new WeakMap;xt=new WeakMap;y=new WeakMap;Ce=new WeakSet;Ae=function(){_(this,Ye,ps).call(this),this.setVar(t(this,lt).current,t(this,T)),this.setVar(t(this,ct).current,t(this,X))};Ye=new WeakSet;ps=function(){this.dispatchEvent(new CustomEvent("segmentPass",{detail:{distance:t(this,k),start:t(this,x),finish:t(this,A),passed:t(this,T),progress:t(this,X)}}))};Te=new WeakSet;fs=function(){t(this,W).current=!0,t(this,K).current=!1,d(this,xt,!0),t(this,B).current&&t(this,v).classList.remove(t(this,B).current),t(this,M).current&&t(this,v).classList.remove(t(this,M).current),t(this,M).current&&t(this,v).classList.remove(t(this,M).current),t(this,O).current&&t(this,v).classList.add(t(this,O).current)};qe=new WeakSet;ds=function(){t(this,K).current=!0,t(this,W).current=!1,d(this,xt,!0),t(this,O).current&&t(this,v).classList.remove(t(this,O).current),t(this,I).current&&t(this,v).classList.remove(t(this,I).current),t(this,H).current&&t(this,v).classList.remove(t(this,H).current),t(this,B).current&&t(this,v).classList.add(t(this,B).current)};Be=new WeakSet;Ss=function(){t(this,W).current=!0,t(this,Z).current=!0,t(this,ut).current=!1,t(this,I).current&&t(this,v).classList.add(t(this,I).current)};Ie=new WeakSet;ms=function(){t(this,W).current=!0,t(this,pt).current=!0,t(this,Q).current=!1,t(this,H).current&&t(this,v).classList.add(t(this,H).current)};He=new WeakSet;vs=function(){t(this,K).current=!0,t(this,ut).current=!0,t(this,Z).current=!1,t(this,M).current&&t(this,v).classList.add(t(this,M).current)};Ge=new WeakSet;gs=function(){t(this,K).current=!0,t(this,Q).current=!0,t(this,pt).current=!1,t(this,M).current&&t(this,v).classList.add(t(this,M).current)};ye=new WeakMap;ie=new WeakMap;rt=new WeakSet;kt=function(r){if(t(this,y)){r.previous&&t(this,v).classList.remove(r.previous),r.current&&t(this,v).classList.remove(r.current);return}r.current&&t(this,W).current?(r.previous&&t(this,v).classList.remove(r.previous),t(this,v).classList.add(r.current)):!r.current&&r.previous&&t(this,v).classList.remove(r.previous)};je=new WeakSet;ws=function(...r){r.forEach(e=>{e&&t(this,v).classList.remove(e)})};ts=new WeakSet;bs=function(...r){r.forEach(e=>{e&&t(this,v).style.removeProperty(`--${e}`)})};Pe=new WeakSet;Ue=function(){_(this,je,ws).call(this,t(this,O).current,t(this,I).current,t(this,H).current,t(this,B).current,t(this,Wt).current,t(this,M).current),_(this,ts,bs).call(this,t(this,lt).current,t(this,ct).current,t(this,nt).current,t(this,ht).current,t(this,ot).current)};Ee=new WeakMap;exports.ScrollSegmentElement=Ns([mt.define("e-scroll-segment")],exports.ScrollSegmentElement);