aptechka 0.5.42 → 0.7.0

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 (273) hide show
  1. package/lib/Animation-6Na1MCtM.cjs +1 -0
  2. package/lib/Animation-CELiTw3n.js +132 -0
  3. package/lib/Composed-DmLYTh1b.js +35 -0
  4. package/lib/Composed-Dx2hs-va.cjs +1 -0
  5. package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
  6. package/lib/Damped-loFiBsBy.cjs +1 -0
  7. package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
  8. package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
  9. package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
  10. package/lib/ElementConstructor-OYlPJf2L.js +366 -0
  11. package/lib/Resource-D3TQormz.cjs +1 -0
  12. package/lib/Resource-DIcoALGo.js +64 -0
  13. package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
  14. package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
  15. package/lib/Store-6s0YXK4o.cjs +1 -0
  16. package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
  17. package/lib/Tweened-B_mclQ61.cjs +1 -0
  18. package/lib/Tweened-NE8M9onF.js +48 -0
  19. package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
  20. package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +5 -2
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +141 -105
  26. package/lib/animation/Animation.d.ts +11 -19
  27. package/lib/animation/Damped.d.ts +4 -6
  28. package/lib/animation/Tweened.d.ts +2 -4
  29. package/lib/animation/index.cjs +1 -1
  30. package/lib/animation/index.js +3 -3
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.d.ts +1 -1
  33. package/lib/attribute/index.js +31 -31
  34. package/lib/canvas/index.cjs +1 -1
  35. package/lib/canvas/index.d.ts +1 -1
  36. package/lib/canvas/index.js +29 -29
  37. package/lib/checkbox/index.cjs +1 -1
  38. package/lib/checkbox/index.js +20 -20
  39. package/lib/class-linked-status/index.cjs +1 -1
  40. package/lib/class-linked-status/index.js +1 -1
  41. package/lib/controls/AutoplayControls.d.ts +1 -1
  42. package/lib/controls/DragControls.d.ts +1 -1
  43. package/lib/controls/WheelControls.d.ts +1 -1
  44. package/lib/controls/index.cjs +1 -1
  45. package/lib/controls/index.js +3 -3
  46. package/lib/counter/index.d.ts +8 -0
  47. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  48. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +2 -1
  51. package/lib/css-property/index.js +36 -32
  52. package/lib/custom-element/index.d.ts +1 -4
  53. package/lib/dev/index.cjs +1 -1
  54. package/lib/dev/index.js +1 -1
  55. package/lib/device/index.cjs +1 -1
  56. package/lib/device/index.js +1 -1
  57. package/lib/element-constructor/ElementConstructor.d.ts +2 -2
  58. package/lib/element-constructor/index.cjs +1 -1
  59. package/lib/element-constructor/index.js +114 -113
  60. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  61. package/lib/en3/core/En3View.d.ts +1 -1
  62. package/lib/en3/core/en3.d.ts +7 -3
  63. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  64. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  65. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  66. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  67. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  68. package/lib/en3/helpers/index.cjs +1 -0
  69. package/lib/en3/helpers/index.d.ts +2 -0
  70. package/lib/en3/helpers/index.js +1165 -0
  71. package/lib/en3/index.cjs +1 -215
  72. package/lib/en3/index.d.ts +1 -19
  73. package/lib/en3/index.js +4 -4227
  74. package/lib/en3/libs/index.cjs +1 -0
  75. package/lib/en3/libs/index.d.ts +1 -0
  76. package/lib/en3/libs/index.js +201 -0
  77. package/lib/en3/loaders/_En3GLTFLoader.d.ts +12 -0
  78. package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
  79. package/lib/en3/loaders/index.cjs +1 -0
  80. package/lib/en3/loaders/index.d.ts +3 -0
  81. package/lib/en3/loaders/index.js +1757 -0
  82. package/lib/en3/loaders/loaders.d.ts +13 -0
  83. package/lib/en3/misc/index.cjs +10 -0
  84. package/lib/en3/misc/index.d.ts +2 -0
  85. package/lib/en3/misc/index.js +115 -0
  86. package/lib/en3/objects/En3Clip.d.ts +1 -1
  87. package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
  88. package/lib/en3/objects/En3GLTF.d.ts +4 -3
  89. package/lib/en3/objects/En3Image.d.ts +1 -1
  90. package/lib/en3/objects/En3ImageLike.d.ts +3 -2
  91. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  92. package/lib/en3/objects/En3Video.d.ts +1 -1
  93. package/lib/en3/objects/fluid/Advection.d.ts +1 -1
  94. package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
  95. package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
  96. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
  97. package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
  98. package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
  99. package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
  100. package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
  101. package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
  102. package/lib/en3/objects/fluid/index.d.ts +0 -3
  103. package/lib/en3/objects/index.d.ts +7 -0
  104. package/lib/en3/utils/coverTexture.d.ts +1 -1
  105. package/lib/en3/utils/index.cjs +1 -0
  106. package/lib/en3/utils/index.d.ts +5 -0
  107. package/lib/en3/utils/index.js +43 -0
  108. package/lib/en3-C4mzaF6q.cjs +8 -0
  109. package/lib/en3-hbkN1OPu.js +343 -0
  110. package/lib/globals-DMjysUXI.js +8 -0
  111. package/lib/globals-bYKki-b9.cjs +1 -0
  112. package/lib/image/index.cjs +1 -1
  113. package/lib/image/index.js +1 -1
  114. package/lib/{index-BtsOv9u0.js → index-BAH_fO2N.js} +66 -66
  115. package/lib/index-D1LQUR-R.cjs +9 -0
  116. package/lib/instantiate-D19Uvc31.js +125 -0
  117. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  118. package/lib/jsx/ComponentElement.d.ts +18 -0
  119. package/lib/jsx/globals.d.ts +13 -0
  120. package/lib/jsx/h.d.ts +7 -0
  121. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  122. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  123. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  124. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  125. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  126. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  127. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  128. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  129. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  130. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  131. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  132. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  133. package/lib/jsx/hooks/onElementResize.js +11 -0
  134. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  135. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  136. package/lib/jsx/hooks/onIntersection.js +11 -0
  137. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  138. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  139. package/lib/jsx/hooks/onWindowResize.js +8 -0
  140. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  141. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  142. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  143. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  144. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  145. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  146. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  147. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  148. package/lib/jsx/hooks/store/index.cjs +1 -0
  149. package/lib/jsx/hooks/store/index.d.ts +7 -0
  150. package/lib/jsx/hooks/store/index.js +49 -0
  151. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  152. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  153. package/lib/jsx/hooks/watchAttribute.js +17 -0
  154. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  155. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  156. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  157. package/lib/jsx/index.cjs +1 -0
  158. package/lib/jsx/index.d.ts +13 -0
  159. package/lib/jsx/index.js +91 -0
  160. package/lib/jsx/instantiate.d.ts +5 -0
  161. package/lib/jsx/register.d.ts +1 -0
  162. package/lib/jsx/render.d.ts +6 -0
  163. package/lib/jsx/type.d.ts +188 -0
  164. package/lib/ladder/index.cjs +1 -1
  165. package/lib/ladder/index.d.ts +2 -0
  166. package/lib/ladder/index.js +84 -66
  167. package/lib/layout-box/index.cjs +1 -1
  168. package/lib/layout-box/index.d.ts +11 -2
  169. package/lib/layout-box/index.js +190 -164
  170. package/lib/media/index.cjs +1 -1
  171. package/lib/media/index.js +1 -1
  172. package/lib/modal/index.cjs +1 -1
  173. package/lib/modal/index.js +16 -16
  174. package/lib/morph/Morph.d.ts +2 -2
  175. package/lib/morph/index.cjs +1 -1
  176. package/lib/morph/index.d.ts +1 -1
  177. package/lib/morph/index.js +135 -143
  178. package/lib/notifier/index.d.ts +2 -2
  179. package/lib/notifier/index.js +3 -1
  180. package/lib/onConnect-DGP866cj.cjs +1 -0
  181. package/lib/onConnect-y5DrxJ9P.js +7 -0
  182. package/lib/pointer/Pointer.d.ts +1 -1
  183. package/lib/pointer/PointerElement.d.ts +1 -1
  184. package/lib/pointer/index.cjs +1 -1
  185. package/lib/pointer/index.js +3 -3
  186. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  187. package/lib/polyfills-X6KXuHg-.js +33 -0
  188. package/lib/popover/PopoverButtonElement.d.ts +1 -1
  189. package/lib/popover/PopoverElement.d.ts +2 -2
  190. package/lib/popover/index.cjs +1 -1
  191. package/lib/popover/index.js +49 -49
  192. package/lib/router/Router.d.ts +11 -3
  193. package/lib/router/index.cjs +1 -1
  194. package/lib/router/index.d.ts +1 -1
  195. package/lib/router/index.js +185 -165
  196. package/lib/scroll/ScrollElement.d.ts +8 -25
  197. package/lib/scroll/ScrollSection.d.ts +23 -0
  198. package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
  199. package/lib/scroll/ScrollUserElement.d.ts +1 -1
  200. package/lib/scroll/index.cjs +1 -1
  201. package/lib/scroll/index.js +87 -83
  202. package/lib/scroll-entries/index.d.ts +1 -1
  203. package/lib/select/SelectUserElement.d.ts +1 -1
  204. package/lib/select/index.cjs +1 -1
  205. package/lib/select/index.js +1 -1
  206. package/lib/sequence/index.cjs +1 -1
  207. package/lib/sequence/index.d.ts +1 -1
  208. package/lib/sequence/index.js +8 -8
  209. package/lib/slicer/SlicerElement.d.ts +2 -2
  210. package/lib/slicer/index.cjs +4 -4
  211. package/lib/slicer/index.js +31 -31
  212. package/lib/source/SourceElement.d.ts +2 -2
  213. package/lib/source/SourceManager.d.ts +1 -1
  214. package/lib/source/index.cjs +1 -1
  215. package/lib/source/index.js +2 -2
  216. package/lib/store/ArrayStore.d.ts +21 -0
  217. package/lib/store/Store.d.ts +1 -7
  218. package/lib/store/index.cjs +1 -1
  219. package/lib/store/index.d.ts +2 -2
  220. package/lib/store/index.js +65 -139
  221. package/lib/tags-BqJKcIve.js +485 -0
  222. package/lib/tags-ld5jemJw.cjs +1 -0
  223. package/lib/theme/index.cjs +1 -1
  224. package/lib/theme/index.js +2 -2
  225. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +2 -2
  226. package/lib/tweaker/TweakerColorManagerElement.d.ts +2 -2
  227. package/lib/tweaker/TweakerElement.d.ts +1 -1
  228. package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
  229. package/lib/tweaker/TweakerFolderElement.d.ts +5 -3
  230. package/lib/tweaker/TweakerLinkManagerElement.d.ts +2 -2
  231. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  232. package/lib/tweaker/TweakerSelectManagerElement.d.ts +2 -2
  233. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  234. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  235. package/lib/tweaker/index.cjs +3 -3
  236. package/lib/tweaker/index.js +535 -412
  237. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  238. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  239. package/lib/url-C3dWnJQg.cjs +1 -0
  240. package/lib/url-DMNfW7uN.js +22 -0
  241. package/lib/utils/function.d.ts +2 -2
  242. package/lib/utils/index.cjs +1 -1
  243. package/lib/utils/index.d.ts +1 -0
  244. package/lib/utils/index.js +39 -34
  245. package/lib/utils/layout.d.ts +1 -1
  246. package/lib/utils/number.d.ts +1 -0
  247. package/lib/utils/url.d.ts +9 -0
  248. package/lib/video/index.cjs +1 -1
  249. package/lib/video/index.js +14 -14
  250. package/package.json +108 -12
  251. package/lib/Animation-DDHjrbtL.cjs +0 -1
  252. package/lib/Animation-Dq_05jlR.js +0 -217
  253. package/lib/Damped-l0mnlhar.cjs +0 -1
  254. package/lib/Store-C-1ruEIm.cjs +0 -1
  255. package/lib/Tweened-CwDC2zl8.js +0 -51
  256. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  257. package/lib/animation/AnimationLink.d.ts +0 -13
  258. package/lib/en3/loaders/en3GLTFLoader.d.ts +0 -14
  259. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  260. package/lib/en3/test/En3HTML.d.ts +0 -10
  261. package/lib/index-Buf76Qoq.cjs +0 -9
  262. package/lib/polyfills-BA-CL_HF.js +0 -27
  263. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  264. package/lib/resized/index.cjs +0 -1
  265. package/lib/resized/index.d.ts +0 -12
  266. package/lib/resized/index.js +0 -30
  267. package/lib/store/CumulativeResource.d.ts +0 -13
  268. package/lib/tags-CMPg9ETZ.js +0 -848
  269. package/lib/tags-Djb6mb1o.cjs +0 -1
  270. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  271. package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  272. package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  273. package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +2 -2
@@ -18,43 +18,32 @@ var a = (e, i, r) => (Ms(e, i, "read from private field"), r ? r.call(e) : i.get
18
18
  throw TypeError("Cannot add the same private member more than once");
19
19
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
20
20
  }, $ = (e, i, r, h) => (Ms(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
21
- import { S as yt } from "../Store-BQXXikps.js";
22
- import { D as ri } from "../Derived-kPJs5JC5.js";
21
+ import { S as yt } from "../Store-BI2xxXOA.js";
22
+ import { D as ri } from "../Derived-DlCvc0xQ.js";
23
23
  import { i as ds } from "../browser-0zX67oeU.js";
24
24
  import { p as hi } from "../easings-BKi40vHz.js";
25
25
  import { a as Ne, g as Ue } from "../layout-HoBT_Da2.js";
26
26
  import { c as Ts, s as ni } from "../math-BOBiC4TN.js";
27
27
  import "../ticker/index.js";
28
28
  import { TICK_ORDER as Is, RESIZE_ORDER as Ss } from "../order/index.js";
29
- import { D as As } from "../Damped-P4MkCGoY.js";
30
- import { T as ai } from "../Tweened-CwDC2zl8.js";
31
- import { WheelControls as oi, KeyboardControls as ci, DragControls as li, AutoplayControls as ui } from "../controls/index.js";
29
+ import { D as As } from "../Damped-Mx_FNNVz.js";
30
+ import { T as ai } from "../Tweened-NE8M9onF.js";
31
+ import { WheelControls as oi, KeyboardControls as li, DragControls as ci, AutoplayControls as ui } from "../controls/index.js";
32
32
  import { CustomElement as Rs, define as de } from "../custom-element/index.js";
33
33
  import { windowResizer as ue } from "../window-resizer/index.js";
34
34
  import { scrollEntries as Gt } from "../scroll-entries/index.js";
35
- import { e as vs, D as es, ay as Ke, p as pi } from "../tags-CMPg9ETZ.js";
36
- import { c as ms } from "../createStylesheet-DBCEbDjI.js";
35
+ import { e as vs, D as es, ax as Ke, p as pi } from "../tags-BqJKcIve.js";
36
+ import { c as ms } from "../createStylesheet-CR_yi5tp.js";
37
37
  import { cssUnitParser as Es } from "../css-unit-parser/index.js";
38
- import { CSSProperty as l } from "../css-property/index.js";
39
- import { d as fi } from "../Viewport-CFFhFKqX.js";
38
+ import { CSSProperty as c } from "../css-property/index.js";
39
+ import { d as fi } from "../Viewport-D9IL7kUQ.js";
40
40
  import { elementResizer as Ze } from "../element-resizer/index.js";
41
41
  import { s as di } from "../gestures-D2Fdra_G.js";
42
42
  import { aptechkaTheme as xs } from "../theme/index.js";
43
43
  import { f as Si } from "../dom-0S_WDL4g.js";
44
44
  import { d as Bs } from "../function-C10DGppn.js";
45
- var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, bi = (e, i, r, h) => {
46
- for (var n = h > 1 ? void 0 : h ? mi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
47
- (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
48
- return h && n && vi(i, r, n), n;
49
- }, bs = (e, i, r) => {
50
- if (!i.has(e))
51
- throw TypeError("Cannot " + r);
52
- }, t = (e, i, r) => (bs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
53
- if (i.has(e))
54
- throw TypeError("Cannot add the same private member more than once");
55
- i instanceof WeakSet ? i.add(e) : i.set(e, r);
56
- }, w = (e, i, r, h) => (bs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), v = (e, i, r) => (bs(e, i, "access private method"), r), S, Nt, T, it, rt, Y, ht, Pt, kt, J, A, Ut, Kt, Zt, Jt, Se, Q, Qt, Wt, X, Ot, vt, Mt, Xt, Yt, jt, g, Je, u, Le, Ve, M, C, R, j, At, mt, D, P, ve, Et, pe, fe, Pe, ct, ae, ke, Rt, oe, Qe, ws, Xe, gs, ze, ss, $e, is, B, je, rs, Hs, me, Fe, De, hs, lt, Tt, Oe, ns, _, We, y, Ht, et, gt;
57
- class wi {
45
+ var _, We, y, Ht, et, gt;
46
+ class vi {
58
47
  constructor(i, r, h) {
59
48
  L(this, _, void 0);
60
49
  L(this, We, void 0);
@@ -85,7 +74,7 @@ class wi {
85
74
  transform() {
86
75
  let i = 0;
87
76
  const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
88
- a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, et) + a(this, Ht) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Gt.update(
77
+ a(this, y).loopCSSProperty.current && a(this, y).overscroll && a(this, et) + a(this, Ht) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Gt.update(
89
78
  a(this, _),
90
79
  a(this, y).axisCSSProperty.current,
91
80
  i
@@ -95,16 +84,31 @@ class wi {
95
84
  }
96
85
  mark(i) {
97
86
  a(this, gt) !== i && (a(this, gt) && a(this, _).classList.remove(a(this, gt)), i && a(this, _).classList.add(i), $(this, gt, i), a(this, _).dispatchEvent(
98
- new CustomEvent("sectionsChange", {
99
- composed: !0,
100
- detail: {
101
- mark: a(this, gt)
87
+ new CustomEvent(
88
+ "sectionsChange",
89
+ {
90
+ composed: !0,
91
+ detail: {
92
+ mark: a(this, gt)
93
+ }
102
94
  }
103
- })
95
+ )
104
96
  ));
105
97
  }
106
98
  }
107
99
  _ = new WeakMap(), We = new WeakMap(), y = new WeakMap(), Ht = new WeakMap(), et = new WeakMap(), gt = new WeakMap();
100
+ var mi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, wi = (e, i, r, h) => {
101
+ for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
102
+ (d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
103
+ return h && n && mi(i, r, n), n;
104
+ }, bs = (e, i, r) => {
105
+ if (!i.has(e))
106
+ throw TypeError("Cannot " + r);
107
+ }, t = (e, i, r) => (bs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
108
+ if (i.has(e))
109
+ throw TypeError("Cannot add the same private member more than once");
110
+ i instanceof WeakSet ? i.add(e) : i.set(e, r);
111
+ }, w = (e, i, r, h) => (bs(e, i, "write to private field"), i.set(e, r), r), v = (e, i, r) => (bs(e, i, "access private method"), r), S, Nt, T, it, rt, Y, ht, Pt, kt, J, A, Ut, Kt, Zt, Jt, Se, Q, Qt, Wt, X, Ot, vt, Mt, Xt, Yt, jt, g, Je, u, Le, Ve, M, C, R, j, At, mt, D, P, ve, Et, pe, fe, Pe, lt, ae, ke, Rt, oe, Qe, ws, Xe, gs, ze, ss, $e, is, B, je, rs, Hs, me, Fe, De, hs, ct, Tt, Oe, ns;
108
112
  const gi = ms({
109
113
  ":host": {
110
114
  position: "relative",
@@ -140,41 +144,41 @@ const gi = ms({
140
144
  });
141
145
  let Ye = class extends Rs {
142
146
  constructor() {
143
- super(), o(this, ae), o(this, Rt), o(this, Qe), o(this, Xe), o(this, ze), o(this, $e), o(this, rs), o(this, De), o(this, lt), o(this, Oe), o(this, S, null), o(this, Nt, new l(this, "--controls", !0)), o(this, T, new l(this, "--axis", "y")), o(this, it, new l(this, "--direction", 0)), o(this, rt, new l(this, "--pages", 0, {
147
+ super(), o(this, ae), o(this, Rt), o(this, Qe), o(this, Xe), o(this, ze), o(this, $e), o(this, rs), o(this, De), o(this, ct), o(this, Oe), o(this, S, null), o(this, Nt, new c(this, "--controls", !0)), o(this, T, new c(this, "--axis", "y")), o(this, it, new c(this, "--direction", 0)), o(this, rt, new c(this, "--pages", 0, {
144
148
  validate: (e) => Math.max(0, e - 1)
145
- })), o(this, Y, new l(this, "--split", !1)), o(this, ht, new l(this, "--sectional", !1)), o(this, Pt, new l(this, "--auto-size", !1)), o(this, kt, new l(
149
+ })), o(this, Y, new c(this, "--split", !1)), o(this, ht, new c(this, "--sectional", !1)), o(this, Pt, new c(this, "--auto-size", !1)), o(this, kt, new c(
146
150
  this,
147
151
  "--wheel-max-delta",
148
152
  !1
149
- )), o(this, J, new l(
153
+ )), o(this, J, new c(
150
154
  this,
151
155
  "--sections-in-view",
152
156
  1
153
- )), o(this, A, new l(this, "--infinite", !1)), o(this, Ut, new l(this, "--damping", 20)), o(this, Kt, new l(this, "--mass", 0)), o(this, Zt, new l(this, "--stiffness", 0)), o(this, Jt, new l(this, "--mouse-drag", !1)), o(this, Se, new l(
157
+ )), o(this, A, new c(this, "--loop", !1)), o(this, Ut, new c(this, "--damping", 20)), o(this, Kt, new c(this, "--mass", 0)), o(this, Zt, new c(this, "--stiffness", 0)), o(this, Jt, new c(this, "--mouse-drag", !1)), o(this, Se, new c(
154
158
  this,
155
159
  "--section-distance-scale",
156
160
  0.5
157
- )), o(this, Q, new l(this, "--autoplay", 0)), o(this, Qt, new l(
161
+ )), o(this, Q, new c(this, "--autoplay", 0)), o(this, Qt, new c(
158
162
  this,
159
163
  "--autoplay-pause-duration",
160
164
  0
161
- )), o(this, Wt, new l(
165
+ )), o(this, Wt, new c(
162
166
  this,
163
167
  "--autoplay-user-direction",
164
168
  !1
165
- )), o(this, X, new l(this, "--classes", 0)), o(this, Ot, new l(
169
+ )), o(this, X, new c(this, "--classes", 0)), o(this, Ot, new c(
166
170
  this,
167
171
  "--current-index-start-offset",
168
172
  0
169
- )), o(this, vt, new l(
173
+ )), o(this, vt, new c(
170
174
  this,
171
175
  "--current-index-end-offset",
172
176
  0
173
- )), o(this, Mt, new l(this, "--focus-delay", 0)), o(this, Xt, new l(
177
+ )), o(this, Mt, new c(this, "--focus-delay", 0)), o(this, Xt, new c(
174
178
  this,
175
179
  "--focus-duration",
176
180
  3e3
177
- )), o(this, Yt, new l(this, "--disabled", !1)), o(this, jt, new l(this, "--hibernated", !1)), o(this, g, null), o(this, Je, null), o(this, u, []), o(this, Le, 0), o(this, Ve, 0), o(this, M, 0), o(this, C, 0), o(this, R, 0), o(this, j, null), o(this, At, null), o(this, mt, null), o(this, D, null), o(this, P, new yt(0)), o(this, ve, 0), o(this, Et, 0), o(this, pe, !0), o(this, fe, !0), o(this, Pe, void 0), o(this, ct, new ai()), o(this, B, () => {
181
+ )), o(this, Yt, new c(this, "--disabled", !1)), o(this, jt, new c(this, "--hibernated", !1)), o(this, g, null), o(this, Je, null), o(this, u, []), o(this, Le, 0), o(this, Ve, 0), o(this, M, 0), o(this, C, 0), o(this, R, 0), o(this, j, null), o(this, At, null), o(this, mt, null), o(this, D, null), o(this, P, new yt(0)), o(this, ve, 0), o(this, Et, 0), o(this, pe, !0), o(this, fe, !0), o(this, Pe, void 0), o(this, lt, new ai()), o(this, B, () => {
178
182
  t(this, S).unlistenAnimationFrame();
179
183
  const e = this.currentScrollValue / t(this, C) || 0, i = t(this, P).current;
180
184
  if (w(this, Le, this.vertical ? Ne(this) : Ue(this)), w(this, Ve, this.vertical ? Ne(t(this, g)) : Ue(t(this, g))), w(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? w(this, R, Es.parse(
@@ -243,7 +247,7 @@ let Ye = class extends Rs {
243
247
  if (t(this, it).current > 0 && i < 0)
244
248
  return;
245
249
  }
246
- if (t(this, ct).unlistenAnimationFrame(), !t(this, Q).current && t(this, Mt).current && (clearInterval(t(this, Pe)), w(this, Pe, setTimeout(() => {
250
+ if (t(this, lt).unlistenAnimationFrame(), !t(this, Q).current && t(this, Mt).current && (clearInterval(t(this, Pe)), w(this, Pe, setTimeout(() => {
247
251
  const r = v(this, Oe, ns).call(this);
248
252
  r && this.scrollToSection(r.index, {
249
253
  tween: {
@@ -282,11 +286,11 @@ let Ye = class extends Rs {
282
286
  ]
283
287
  }), w(this, j, new oi({ element: t(this, g) })), t(this, j).changeEvent.subscribe(
284
288
  t(this, me)
285
- ), w(this, At, new ci({
289
+ ), w(this, At, new li({
286
290
  element: this
287
291
  })), t(this, At).changeEvent.subscribe(
288
292
  t(this, me)
289
- ), w(this, mt, new li({ element: t(this, g) })), t(this, mt).changeEvent.subscribe(t(this, me)), w(this, D, new ui()), t(this, D).changeEvent.subscribe(t(this, Fe)), t(this, T).subscribe(({ current: e }) => {
293
+ ), w(this, mt, new ci({ element: t(this, g) })), t(this, mt).changeEvent.subscribe(t(this, me)), w(this, D, new ui()), t(this, D).changeEvent.subscribe(t(this, Fe)), t(this, T).subscribe(({ current: e }) => {
290
294
  t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, j).axis = t(this, kt).current ? "max" : e, t(this, At).dimension = e === "x" ? "width" : "height", t(this, mt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
291
295
  }), t(this, kt).subscribe((e) => {
292
296
  t(this, j).axis = e.current ? "max" : t(this, T).current;
@@ -299,7 +303,7 @@ let Ye = class extends Rs {
299
303
  }), t(this, Pt).subscribe((e) => {
300
304
  this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, u).length ? v(this, ae, ke).call(this) : !e.current && e.previous && t(this, u).length && v(this, Rt, oe).call(this));
301
305
  }), t(this, J).subscribe((e) => {
302
- this.isConnected && (t(this, B).call(this), v(this, lt, Tt).call(this));
306
+ this.isConnected && (t(this, B).call(this), v(this, ct, Tt).call(this));
303
307
  }), t(this, A).subscribe((e) => {
304
308
  e.current ? (this.isConnected && (t(this, u).length || (t(this, Y).current = !0)), t(this, u).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (w(this, ve, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
305
309
  }), t(this, Ut).subscribe((e) => {
@@ -317,17 +321,17 @@ let Ye = class extends Rs {
317
321
  }), t(this, Wt).subscribe((e) => {
318
322
  e.current || (t(this, D).direction = 1);
319
323
  }), t(this, X).subscribe((e) => {
320
- this.isConnected && v(this, lt, Tt).call(this);
324
+ this.isConnected && v(this, ct, Tt).call(this);
321
325
  }), t(this, Ot).subscribe((e) => {
322
- this.isConnected && t(this, X).current && v(this, lt, Tt).call(this);
326
+ this.isConnected && t(this, X).current && v(this, ct, Tt).call(this);
323
327
  }), t(this, vt).subscribe((e) => {
324
- this.isConnected && t(this, X).current && v(this, lt, Tt).call(this);
328
+ this.isConnected && t(this, X).current && v(this, ct, Tt).call(this);
325
329
  }), t(this, S).isRunning.subscribe((e) => {
326
330
  this.classList.toggle("active", e.current);
327
331
  }), t(this, P).subscribe((e) => {
328
- t(this, u).length && v(this, lt, Tt).call(this);
329
- }), t(this, ct).subscribe((e) => {
330
- t(this, ct).isRunning.current && t(this, S).set(e.current);
332
+ t(this, u).length && v(this, ct, Tt).call(this);
333
+ }), t(this, lt).subscribe((e) => {
334
+ t(this, lt).isRunning.current && t(this, S).set(e.current);
331
335
  }));
332
336
  }
333
337
  get damped() {
@@ -360,7 +364,7 @@ let Ye = class extends Rs {
360
364
  get sectionsInViewCSSProperty() {
361
365
  return t(this, J);
362
366
  }
363
- get infiniteCSSProperty() {
367
+ get loopCSSProperty() {
364
368
  return t(this, A);
365
369
  }
366
370
  get dampingCSSProperty() {
@@ -444,7 +448,7 @@ let Ye = class extends Rs {
444
448
  get distance() {
445
449
  return t(this, Et);
446
450
  }
447
- get infiniteDistance() {
451
+ get loopDistance() {
448
452
  return t(this, A).current ? t(this, Et) + t(this, R) : t(this, Et);
449
453
  }
450
454
  get overscroll() {
@@ -454,10 +458,10 @@ let Ye = class extends Rs {
454
458
  return t(this, T).current === "y";
455
459
  }
456
460
  get currentProgress() {
457
- return this.currentScrollValue / this.infiniteDistance || 0;
461
+ return this.currentScrollValue / this.loopDistance || 0;
458
462
  }
459
463
  get targetProgress() {
460
- return this.targetScrollValue / this.infiniteDistance || 0;
464
+ return this.targetScrollValue / this.loopDistance || 0;
461
465
  }
462
466
  get scrollWidth() {
463
467
  return t(this, T).current === "y" ? 0 : t(this, S).distance;
@@ -499,7 +503,7 @@ let Ye = class extends Rs {
499
503
  t(this, u).length && this.scrollToSection(t(this, P).current + e, i);
500
504
  }
501
505
  setPosition(e, i) {
502
- i != null && i.tween ? (t(this, ct).set(t(this, S).current, { equalize: !0 }), t(this, ct).set(e, Ws({}, i.tween))) : t(this, S).set(e, {
506
+ i != null && i.tween ? (t(this, lt).set(t(this, S).current, { equalize: !0 }), t(this, lt).set(e, Ws({}, i.tween))) : t(this, S).set(e, {
503
507
  equalize: (i == null ? void 0 : i.behaviour) === "instant"
504
508
  });
505
509
  }
@@ -557,16 +561,16 @@ Et = /* @__PURE__ */ new WeakMap();
557
561
  pe = /* @__PURE__ */ new WeakMap();
558
562
  fe = /* @__PURE__ */ new WeakMap();
559
563
  Pe = /* @__PURE__ */ new WeakMap();
560
- ct = /* @__PURE__ */ new WeakMap();
564
+ lt = /* @__PURE__ */ new WeakMap();
561
565
  ae = /* @__PURE__ */ new WeakSet();
562
566
  ke = function() {
563
567
  v(this, Rt, oe).call(this), t(this, Je).assignedElements().forEach((e, i) => {
564
- e instanceof HTMLElement && t(this, u).push(new wi(e, i, this));
568
+ e instanceof HTMLElement && t(this, u).push(new vi(e, i, this));
565
569
  }), t(this, g).style.transform = "", this.dispatchEvent(
566
570
  new CustomEvent("sectionsChange", {
567
571
  composed: !0
568
572
  })
569
- ), t(this, B).call(this), v(this, lt, Tt).call(this);
573
+ ), t(this, B).call(this), v(this, ct, Tt).call(this);
570
574
  };
571
575
  Rt = /* @__PURE__ */ new WeakSet();
572
576
  oe = function() {
@@ -580,7 +584,7 @@ oe = function() {
580
584
  };
581
585
  Qe = /* @__PURE__ */ new WeakSet();
582
586
  ws = function() {
583
- t(this, pe) || (w(this, pe, !0), t(this, S).unsubscribe(t(this, je)), t(this, S).unlistenAnimationFrame(), t(this, j).disconnect(), t(this, At).disconnect(), t(this, mt).disconnect(), t(this, D).disconnect(), clearInterval(t(this, Pe)), t(this, ct).unlistenAnimationFrame());
587
+ t(this, pe) || (w(this, pe, !0), t(this, S).unsubscribe(t(this, je)), t(this, S).unlistenAnimationFrame(), t(this, j).disconnect(), t(this, At).disconnect(), t(this, mt).disconnect(), t(this, D).disconnect(), clearInterval(t(this, Pe)), t(this, lt).unlistenAnimationFrame());
584
588
  };
585
589
  Xe = /* @__PURE__ */ new WeakSet();
586
590
  gs = function() {
@@ -610,7 +614,7 @@ hs = function(e = "current") {
610
614
  } else
611
615
  return t(this, S)[e];
612
616
  };
613
- lt = /* @__PURE__ */ new WeakSet();
617
+ ct = /* @__PURE__ */ new WeakSet();
614
618
  Tt = function() {
615
619
  if (t(this, X).current && t(this, u).length) {
616
620
  const e = t(this, P).current + t(this, Ot).current;
@@ -631,7 +635,7 @@ ns = function() {
631
635
  }
632
636
  return e !== null ? t(this, u)[e] : null;
633
637
  };
634
- Ye = bi([
638
+ Ye = wi([
635
639
  de("e-scroll")
636
640
  ], Ye);
637
641
  var Me;
@@ -660,7 +664,7 @@ var _i = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, yi = (e, i
660
664
  if (i.has(e))
661
665
  throw TypeError("Cannot add the same private member more than once");
662
666
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
663
- }, Ct = (e, i, r, h) => (Gs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), be, I, nt, at, we, ge, te, Te, Ie, Ae;
667
+ }, Ct = (e, i, r, h) => (Gs(e, i, "write to private field"), i.set(e, r), r), be, I, nt, at, we, ge, te, Te, Ie, Ae;
664
668
  const Pi = ms({
665
669
  ":host": {
666
670
  display: "inline-block",
@@ -805,34 +809,34 @@ var zi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Fi = (e, i
805
809
  if (i.has(e))
806
810
  throw TypeError("Cannot add the same private member more than once");
807
811
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
808
- }, Fs = (e, i, r, h) => (Ns(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), xt, _e, st, _t, ce, Ee, xe, le;
812
+ }, Fs = (e, i, r, h) => (Ns(e, i, "write to private field"), i.set(e, r), r), xt, _e, st, _t, le, Ee, xe, ce;
809
813
  class Di {
810
814
  constructor(i, r, h) {
811
815
  L(this, st, void 0);
812
816
  L(this, _t, void 0);
813
- L(this, ce, void 0);
817
+ L(this, le, void 0);
814
818
  L(this, Ee, void 0);
815
819
  L(this, xe, () => {
816
- a(this, _t).scrollToSection(a(this, ce), {
820
+ a(this, _t).scrollToSection(a(this, le), {
817
821
  behaviour: a(this, Ee)
818
822
  });
819
823
  });
820
- L(this, le, () => {
824
+ L(this, ce, () => {
821
825
  a(this, st).classList.toggle(
822
826
  "current",
823
- a(this, _t).counter.current === a(this, ce)
827
+ a(this, _t).counter.current === a(this, le)
824
828
  );
825
829
  });
826
- $(this, st, document.createElement("button")), $(this, _t, i), $(this, Ee, h), $(this, ce, r), a(this, st).addEventListener("click", a(this, xe)), a(this, _t).counter.subscribe(a(this, le)), a(this, le).call(this);
830
+ $(this, st, document.createElement("button")), $(this, _t, i), $(this, Ee, h), $(this, le, r), a(this, st).addEventListener("click", a(this, xe)), a(this, _t).counter.subscribe(a(this, ce)), a(this, ce).call(this);
827
831
  }
828
832
  get element() {
829
833
  return a(this, st);
830
834
  }
831
835
  destroy() {
832
- a(this, st).removeEventListener("click", a(this, xe)), a(this, _t).counter.unsubscribe(a(this, le)), a(this, st).remove();
836
+ a(this, st).removeEventListener("click", a(this, xe)), a(this, _t).counter.unsubscribe(a(this, ce)), a(this, st).remove();
833
837
  }
834
838
  }
835
- st = new WeakMap(), _t = new WeakMap(), ce = new WeakMap(), Ee = new WeakMap(), xe = new WeakMap(), le = new WeakMap();
839
+ st = new WeakMap(), _t = new WeakMap(), le = new WeakMap(), Ee = new WeakMap(), xe = new WeakMap(), ce = new WeakMap();
836
840
  let Ds = class extends ts {
837
841
  constructor() {
838
842
  super(...arguments), $s(this, xt, []), $s(this, _e, Bs(() => {
@@ -872,45 +876,45 @@ var Oi = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, Ii = (e, i
872
876
  }, _s = (e, i, r) => {
873
877
  if (!i.has(e))
874
878
  throw TypeError("Cannot " + r);
875
- }, s = (e, i, r) => (_s(e, i, "read from private field"), r ? r.call(e) : i.get(e)), c = (e, i, r) => {
879
+ }, s = (e, i, r) => (_s(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
876
880
  if (i.has(e))
877
881
  throw TypeError("Cannot add the same private member more than once");
878
882
  i instanceof WeakSet ? i.add(e) : i.set(e, r);
879
- }, b = (e, i, r, h) => (_s(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (_s(e, i, "access private method"), r), ee, se, ie, re, Lt, Vt, zt, $t, O, H, G, q, It, x, ut, pt, ft, dt, St, E, Z, K, bt, wt, tt, Re, m, he, ne, Be, V, Ft, F, z, U, Ce, Bt, k, as, Us, os, Ks, cs, Zs, ls, Js, us, Qs, ps, Xs, He, ye, ot, Dt, Cs, Ys, ys, js, Ge, fs, qe;
883
+ }, b = (e, i, r, h) => (_s(e, i, "write to private field"), i.set(e, r), r), W = (e, i, r) => (_s(e, i, "access private method"), r), ee, se, ie, re, Lt, Vt, zt, $t, O, H, G, q, It, x, ut, pt, ft, dt, St, E, Z, K, bt, wt, tt, Re, m, he, ne, Be, V, Ft, F, z, U, Ce, Bt, k, as, Us, os, Ks, ls, Zs, cs, Js, us, Qs, ps, Xs, He, ye, ot, Dt, Cs, Ys, ys, js, Ge, fs, qe;
880
884
  let Os = class extends ts {
881
885
  constructor() {
882
- super(), c(this, as), c(this, os), c(this, cs), c(this, ls), c(this, us), c(this, ps), c(this, ot), c(this, Cs), c(this, ys), c(this, Ge), c(this, ee, new l(this, "--damping", 20)), c(this, se, new l(this, "--mass", 0)), c(this, ie, new l(this, "--stiffness", 0)), c(this, re, new l(this, "--target", "")), c(this, Lt, new l(this, "--disabled", !1)), c(this, Vt, new l(
886
+ super(), l(this, as), l(this, os), l(this, ls), l(this, cs), l(this, us), l(this, ps), l(this, ot), l(this, Cs), l(this, ys), l(this, Ge), l(this, ee, new c(this, "--damping", 20)), l(this, se, new c(this, "--mass", 0)), l(this, ie, new c(this, "--stiffness", 0)), l(this, re, new c(this, "--target", "")), l(this, Lt, new c(this, "--disabled", !1)), l(this, Vt, new c(
883
887
  this,
884
888
  "--distance-offset",
885
889
  0,
886
890
  { rawValueCheck: !1 }
887
- )), c(this, zt, new l(this, "--start-offset", 0, {
891
+ )), l(this, zt, new c(this, "--start-offset", 0, {
888
892
  rawValueCheck: !1
889
- })), c(this, $t, new l(
893
+ })), l(this, $t, new c(
890
894
  this,
891
895
  "--capture-once",
892
896
  !1
893
- )), c(this, O, new l(this, "--captured", "")), c(this, H, new l(this, "--released", "")), c(this, G, new l(
897
+ )), l(this, O, new c(this, "--captured", "")), l(this, H, new c(this, "--released", "")), l(this, G, new c(
894
898
  this,
895
899
  "--captured-from-start",
896
900
  ""
897
- )), c(this, q, new l(
901
+ )), l(this, q, new c(
898
902
  this,
899
903
  "--captured-from-finish",
900
904
  ""
901
- )), c(this, It, new l(
905
+ )), l(this, It, new c(
902
906
  this,
903
907
  "--released-from-start",
904
908
  ""
905
- )), c(this, x, new l(
909
+ )), l(this, x, new c(
906
910
  this,
907
911
  "--released-from-finish",
908
912
  ""
909
- )), c(this, ut, new l(this, "--passed-var", "")), c(this, pt, new l(this, "--progress-var", "")), c(this, ft, new l(this, "--distance-var", "")), c(this, dt, new l(this, "--start-var", "")), c(this, St, new l(this, "--finish-var", "")), c(this, E, new yt(!1)), c(this, Z, new yt(!1)), c(this, K, new yt(!1)), c(this, bt, new yt(!1)), c(this, wt, new yt(!1)), c(this, tt, new yt(!1)), c(this, Re, []), c(this, m, this), c(this, he, 0), c(this, ne, 0), c(this, Be, 0), c(this, V, new As(0, { order: Is.SCROLL - 1, min: 0, max: 1 })), c(this, Ft, 0), c(this, F, 0), c(this, z, 0), c(this, U, 0), c(this, Ce, !1), c(this, Bt, !1), c(this, k, !0), c(this, He, () => {
913
+ )), l(this, ut, new c(this, "--passed-var", "")), l(this, pt, new c(this, "--progress-var", "")), l(this, ft, new c(this, "--distance-var", "")), l(this, dt, new c(this, "--start-var", "")), l(this, St, new c(this, "--finish-var", "")), l(this, E, new yt(!1)), l(this, Z, new yt(!1)), l(this, K, new yt(!1)), l(this, bt, new yt(!1)), l(this, wt, new yt(!1)), l(this, tt, new yt(!1)), l(this, Re, []), l(this, m, this), l(this, he, 0), l(this, ne, 0), l(this, Be, 0), l(this, V, new As(0, { order: Is.SCROLL - 1, min: 0, max: 1 })), l(this, Ft, 0), l(this, F, 0), l(this, z, 0), l(this, U, 0), l(this, Ce, !1), l(this, Bt, !1), l(this, k, !0), l(this, He, () => {
910
914
  s(this, k) || (this.resize(), s(this, ye).call(this));
911
- }), c(this, ye, () => {
915
+ }), l(this, ye, () => {
912
916
  !s(this, k) && s(this, Ce) && this.tick();
913
- }), c(this, qe, Bs(() => {
917
+ }), l(this, qe, Bs(() => {
914
918
  const e = Gt.getAll(this).reverse();
915
919
  let i = 0;
916
920
  e.forEach((r, h) => {
@@ -1029,7 +1033,7 @@ let Os = class extends ts {
1029
1033
  e += r.value;
1030
1034
  }), s(this, V).set(e - s(this, F));
1031
1035
  const i = Math.round(e);
1032
- s(this, E).current && (i > s(this, F) ? s(this, K).current || W(this, cs, Zs).call(this) : s(this, K).current && !s(this, bt).current && W(this, us, Qs).call(this), i < s(this, U) ? s(this, tt).current && !s(this, wt).current && W(this, ls, Js).call(this) : s(this, K).current && !s(this, tt).current && W(this, ps, Xs).call(this)), i > s(this, F) && i < s(this, U) ? s(this, E).current || W(this, as, Us).call(this) : s(this, E).current && (s(this, V).set(
1036
+ s(this, E).current && (i > s(this, F) ? s(this, K).current || W(this, ls, Zs).call(this) : s(this, K).current && !s(this, bt).current && W(this, us, Qs).call(this), i < s(this, U) ? s(this, tt).current && !s(this, wt).current && W(this, cs, Js).call(this) : s(this, K).current && !s(this, tt).current && W(this, ps, Xs).call(this)), i > s(this, F) && i < s(this, U) ? s(this, E).current || W(this, as, Us).call(this) : s(this, E).current && (s(this, V).set(
1033
1037
  ni(s(this, z) / 2, s(this, V).current, 0, s(this, z))
1034
1038
  ), W(this, os, Ks).call(this)), s(this, Bt) && s(this, $t).current && (s(this, O).current && s(this, m).classList.add(s(this, O).current), b(this, k, !0));
1035
1039
  }
@@ -1163,13 +1167,13 @@ Ks = function() {
1163
1167
  s(this, q).current
1164
1168
  ), s(this, H).current && s(this, m).classList.add(s(this, H).current);
1165
1169
  };
1166
- cs = /* @__PURE__ */ new WeakSet();
1170
+ ls = /* @__PURE__ */ new WeakSet();
1167
1171
  Zs = function() {
1168
1172
  s(this, E).current = !0, s(this, K).current = !0, s(this, bt).current = !1, s(this, G).current && s(this, m).classList.add(
1169
1173
  s(this, G).current
1170
1174
  );
1171
1175
  };
1172
- ls = /* @__PURE__ */ new WeakSet();
1176
+ cs = /* @__PURE__ */ new WeakSet();
1173
1177
  Js = function() {
1174
1178
  s(this, E).current = !0, s(this, wt).current = !0, s(this, tt).current = !1, s(this, q).current && s(this, m).classList.add(
1175
1179
  s(this, q).current
@@ -1,5 +1,5 @@
1
- import { Axes2D } from '../utils';
2
1
  import { Notifier } from '../notifier';
2
+ import { Axes2D } from '../utils';
3
3
 
4
4
  export interface ScrollEntry {
5
5
  axis: Axes2D;
@@ -1,5 +1,5 @@
1
- import { SelectElement } from './SelectElement';
2
1
  import { CustomElement } from '../custom-element';
2
+ import { SelectElement } from './SelectElement';
3
3
 
4
4
  export declare class SelectUserElement extends CustomElement {
5
5
  #private;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Buf76Qoq.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-D1LQUR-R.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
- import { S as l, d as a, c, b as m } from "../index-BtsOv9u0.js";
1
+ import { S as l, d as a, c, b as m } from "../index-BAH_fO2N.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1 +1 @@
1
- "use strict";var P=(n,s,t)=>new Promise((i,a)=>{var u=r=>{try{d(t.next(r))}catch(w){a(w)}},o=r=>{try{d(t.throw(r))}catch(w){a(w)}},d=r=>r.done?i(r.value):Promise.resolve(r.value).then(u,o);d((t=t.apply(n,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../canvas/index.cjs"),C=require("../css-property/index.cjs"),I=require("../custom-element/index.cjs"),q=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-C-1ruEIm.cjs");const L=require("../browser-CpzFX2xg.cjs"),W=require("../canvas-CU5Xjahf.cjs"),R=require("../source/index.cjs");var z=Object.defineProperty,O=Object.getOwnPropertyDescriptor,B=(n,s,t,i)=>{for(var a=i>1?void 0:i?O(s,t):s,u=n.length-1,o;u>=0;u--)(o=n[u])&&(a=(i?o(s,t,a):o(a))||a);return i&&a&&z(s,t,a),a},x=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)},e=(n,s,t)=>(x(n,s,"read from private field"),t?t.call(n):s.get(n)),c=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},m=(n,s,t,i)=>(x(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t),h,E,g,p,v,S,_,b,l,f;function D(n){const s=n.match(/\{([\d-]+)\}/);if(s){const t=s[1].split("-");if(t.length===2){const i=parseInt(t[0],10),a=parseInt(t[1],10);return{start:i,end:a}}}return null}exports.SequenceElement=class extends R.SourceElement{constructor(s){super(),c(this,h,[]),c(this,E,new C.CSSProperty(this,"--fit","contain")),c(this,g,new C.CSSProperty(this,"--autoplay",!1)),c(this,p,new C.CSSProperty(this,"--offset-x",.5)),c(this,v,new C.CSSProperty(this,"--offset-y",.5)),c(this,S,null),c(this,_,0),c(this,b,1),c(this,l,()=>{if(e(this,h).length){const t=e(this,h)[0];e(this,E).current==="cover"?m(this,S,W.cover(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current)):m(this,S,W.contain(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current))}}),c(this,f,t=>{if(this.status.isFalse("loaded")||!e(this,S))return;t.detail.context.clearRect(0,0,t.detail.width,t.detail.height);const i=e(this,h)[e(this,_)];i&&t.detail.context.drawImage(i,...e(this,S)),e(this,g).current&&m(this,_,(e(this,_)+1)%e(this,h).length)}),L.isBrowser&&(m(this,b,parseInt(((s==null?void 0:s.pad)||this.getAttribute("pad")||"1").toString())),e(this,E).subscribe(e(this,l)),e(this,p).subscribe(e(this,l)),e(this,v).subscribe(e(this,l)),this.addEventListener("sourceCapture",t=>{this.consumerElement.addEventListener("canvasRender",e(this,f))}),this.addEventListener("sourceRelease",t=>{this.consumerElement.removeEventListener("canvasRender",e(this,f))}))}setProgress(s){e(this,h).length&&m(this,_,Math.floor((e(this,h).length-1)*s))}connectedCallback(){super.connectedCallback(),e(this,g).observe(),e(this,E).observe(),e(this,p).observe(),e(this,v).observe(),q.elementResizer.subscribe(this,e(this,l))}disconnectedCallback(){super.disconnectedCallback(),e(this,g).unobserve(),e(this,E).unobserve(),e(this,p).unobserve(),e(this,v).unobserve(),m(this,h,[]),q.elementResizer.unsubscribe(e(this,l)),this.consumerElement.removeEventListener("canvasRender",e(this,f))}createConsumer(){return new k.CanvasElement}consumeSource(s){return P(this,null,function*(){var t,i,a,u;if(s){this.consumerElement.removeEventListener("canvasRender",e(this,f));const o=[],d=D(s);if(d)for(let r=d.start;r<=d.end;r++){const w=s.replace(/\{([^}]+)\}/,r.toString().padStart(e(this,b),"0")),y=new Image;y.src=w,o.push(y)}else{const r=new Image;r.src=s,o.push(r)}try{yield Promise.all(o.map((r,w)=>new Promise((y,M)=>{r.onload=()=>{y()},r.onerror=T=>{M(`${r.src} Image not found`)}}))),m(this,h,o),e(this,l).call(this),(i=(t=this.consumerElement).onload)==null||i.call(t,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",e(this,f))}catch(r){console.error(r),(u=(a=this.consumerElement).onerror)==null||u.call(a,new Event("error"))}}})}};h=new WeakMap;E=new WeakMap;g=new WeakMap;p=new WeakMap;v=new WeakMap;S=new WeakMap;_=new WeakMap;b=new WeakMap;l=new WeakMap;f=new WeakMap;exports.SequenceElement=B([I.define("e-sequence")],exports.SequenceElement);
1
+ "use strict";var P=(n,s,t)=>new Promise((i,a)=>{var u=r=>{try{d(t.next(r))}catch(w){a(w)}},o=r=>{try{d(t.throw(r))}catch(w){a(w)}},d=r=>r.done?i(r.value):Promise.resolve(r.value).then(u,o);d((t=t.apply(n,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../canvas/index.cjs"),y=require("../css-property/index.cjs"),I=require("../custom-element/index.cjs"),q=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-6s0YXK4o.cjs");const L=require("../browser-CpzFX2xg.cjs"),W=require("../canvas-CU5Xjahf.cjs"),R=require("../source/index.cjs");var z=Object.defineProperty,O=Object.getOwnPropertyDescriptor,B=(n,s,t,i)=>{for(var a=i>1?void 0:i?O(s,t):s,u=n.length-1,o;u>=0;u--)(o=n[u])&&(a=(i?o(s,t,a):o(a))||a);return i&&a&&z(s,t,a),a},x=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)},e=(n,s,t)=>(x(n,s,"read from private field"),t?t.call(n):s.get(n)),c=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},m=(n,s,t,i)=>(x(n,s,"write to private field"),s.set(n,t),t),h,E,g,p,v,S,_,C,l,f;function D(n){const s=n.match(/\{([\d-]+)\}/);if(s){const t=s[1].split("-");if(t.length===2){const i=parseInt(t[0],10),a=parseInt(t[1],10);return{start:i,end:a}}}return null}exports.SequenceElement=class extends R.SourceElement{constructor(s){super(),c(this,h,[]),c(this,E,new y.CSSProperty(this,"--fit","contain")),c(this,g,new y.CSSProperty(this,"--autoplay",!1)),c(this,p,new y.CSSProperty(this,"--offset-x",.5)),c(this,v,new y.CSSProperty(this,"--offset-y",.5)),c(this,S,null),c(this,_,0),c(this,C,1),c(this,l,()=>{if(e(this,h).length){const t=e(this,h)[0];e(this,E).current==="cover"?m(this,S,W.cover(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current)):m(this,S,W.contain(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current))}}),c(this,f,t=>{if(this.status.isFalse("loaded")||!e(this,S))return;t.detail.context.clearRect(0,0,t.detail.width,t.detail.height);const i=e(this,h)[e(this,_)];i&&t.detail.context.drawImage(i,...e(this,S)),e(this,g).current&&m(this,_,(e(this,_)+1)%e(this,h).length)}),L.isBrowser&&(m(this,C,parseInt(((s==null?void 0:s.pad)||this.getAttribute("pad")||"1").toString())),e(this,E).subscribe(e(this,l)),e(this,p).subscribe(e(this,l)),e(this,v).subscribe(e(this,l)),this.addEventListener("sourceCapture",t=>{this.consumerElement.addEventListener("canvasRender",e(this,f))}),this.addEventListener("sourceRelease",t=>{this.consumerElement.removeEventListener("canvasRender",e(this,f))}))}setProgress(s){e(this,h).length&&m(this,_,Math.floor((e(this,h).length-1)*s))}connectedCallback(){super.connectedCallback(),e(this,g).observe(),e(this,E).observe(),e(this,p).observe(),e(this,v).observe(),q.elementResizer.subscribe(this,e(this,l))}disconnectedCallback(){super.disconnectedCallback(),e(this,g).unobserve(),e(this,E).unobserve(),e(this,p).unobserve(),e(this,v).unobserve(),m(this,h,[]),q.elementResizer.unsubscribe(e(this,l)),this.consumerElement.removeEventListener("canvasRender",e(this,f))}createConsumer(){return new k.CanvasElement}consumeSource(s){return P(this,null,function*(){var t,i,a,u;if(s){this.consumerElement.removeEventListener("canvasRender",e(this,f));const o=[],d=D(s);if(d)for(let r=d.start;r<=d.end;r++){const w=s.replace(/\{([^}]+)\}/,r.toString().padStart(e(this,C),"0")),b=new Image;b.src=w,o.push(b)}else{const r=new Image;r.src=s,o.push(r)}try{yield Promise.all(o.map((r,w)=>new Promise((b,M)=>{r.onload=()=>{b()},r.onerror=T=>{M(`${r.src} Image not found`)}}))),m(this,h,o),e(this,l).call(this),(i=(t=this.consumerElement).onload)==null||i.call(t,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",e(this,f))}catch(r){console.error(r),(u=(a=this.consumerElement).onerror)==null||u.call(a,new Event("error"))}}})}};h=new WeakMap;E=new WeakMap;g=new WeakMap;p=new WeakMap;v=new WeakMap;S=new WeakMap;_=new WeakMap;C=new WeakMap;l=new WeakMap;f=new WeakMap;exports.SequenceElement=B([I.define("e-sequence")],exports.SequenceElement);
@@ -1,5 +1,5 @@
1
- import { SourceElement, SourceManagerSourceSet } from '../source';
2
1
  import { CanvasElement } from '../canvas';
2
+ import { SourceElement, SourceManagerSourceSet } from '../source';
3
3
 
4
4
  export interface SequenceElementParameters {
5
5
  srcset: SourceManagerSourceSet;
@@ -15,11 +15,11 @@ var y = (s, t, r) => new Promise((a, i) => {
15
15
  n((r = r.apply(s, t)).next());
16
16
  });
17
17
  import { CanvasElement as I } from "../canvas/index.js";
18
- import { CSSProperty as C } from "../css-property/index.js";
18
+ import { CSSProperty as b } from "../css-property/index.js";
19
19
  import { define as L } from "../custom-element/index.js";
20
20
  import { elementResizer as W } from "../element-resizer/index.js";
21
21
  import "../window-resizer/index.js";
22
- import "../Store-BQXXikps.js";
22
+ import "../Store-BI2xxXOA.js";
23
23
  import { i as x } from "../browser-0zX67oeU.js";
24
24
  import { c as R, a as O } from "../canvas-DeZ0SLUJ.js";
25
25
  import { SourceElement as z } from "../source/index.js";
@@ -34,7 +34,7 @@ var B = Object.defineProperty, D = Object.getOwnPropertyDescriptor, q = (s, t, r
34
34
  if (t.has(s))
35
35
  throw TypeError("Cannot add the same private member more than once");
36
36
  t instanceof WeakSet ? t.add(s) : t.set(s, r);
37
- }, p = (s, t, r, a) => (k(s, t, "write to private field"), a ? a.call(s, r) : t.set(s, r), r), l, E, S, f, v, _, g, b, d, w;
37
+ }, p = (s, t, r, a) => (k(s, t, "write to private field"), t.set(s, r), r), l, E, S, f, v, _, g, C, d, w;
38
38
  function A(s) {
39
39
  const t = s.match(/\{([\d-]+)\}/);
40
40
  if (t) {
@@ -48,11 +48,11 @@ function A(s) {
48
48
  }
49
49
  let P = class extends z {
50
50
  constructor(s) {
51
- super(), c(this, l, []), c(this, E, new C(
51
+ super(), c(this, l, []), c(this, E, new b(
52
52
  this,
53
53
  "--fit",
54
54
  "contain"
55
- )), c(this, S, new C(this, "--autoplay", !1)), c(this, f, new C(this, "--offset-x", 0.5)), c(this, v, new C(this, "--offset-y", 0.5)), c(this, _, null), c(this, g, 0), c(this, b, 1), c(this, d, () => {
55
+ )), c(this, S, new b(this, "--autoplay", !1)), c(this, f, new b(this, "--offset-x", 0.5)), c(this, v, new b(this, "--offset-y", 0.5)), c(this, _, null), c(this, g, 0), c(this, C, 1), c(this, d, () => {
56
56
  if (e(this, l).length) {
57
57
  const t = e(this, l)[0];
58
58
  e(this, E).current === "cover" ? p(this, _, R(
@@ -77,7 +77,7 @@ let P = class extends z {
77
77
  t.detail.context.clearRect(0, 0, t.detail.width, t.detail.height);
78
78
  const r = e(this, l)[e(this, g)];
79
79
  r && t.detail.context.drawImage(r, ...e(this, _)), e(this, S).current && p(this, g, (e(this, g) + 1) % e(this, l).length);
80
- }), x && (p(this, b, parseInt(
80
+ }), x && (p(this, C, parseInt(
81
81
  ((s == null ? void 0 : s.pad) || this.getAttribute("pad") || "1").toString()
82
82
  )), e(this, E).subscribe(e(this, d)), e(this, f).subscribe(e(this, d)), e(this, v).subscribe(e(this, d)), this.addEventListener("sourceCapture", (t) => {
83
83
  this.consumerElement.addEventListener(
@@ -119,7 +119,7 @@ let P = class extends z {
119
119
  for (let n = u.start; n <= u.end; n++) {
120
120
  const h = s.replace(
121
121
  /\{([^}]+)\}/,
122
- n.toString().padStart(e(this, b), "0")
122
+ n.toString().padStart(e(this, C), "0")
123
123
  ), m = new Image();
124
124
  m.src = h, o.push(m);
125
125
  }
@@ -154,7 +154,7 @@ f = /* @__PURE__ */ new WeakMap();
154
154
  v = /* @__PURE__ */ new WeakMap();
155
155
  _ = /* @__PURE__ */ new WeakMap();
156
156
  g = /* @__PURE__ */ new WeakMap();
157
- b = /* @__PURE__ */ new WeakMap();
157
+ C = /* @__PURE__ */ new WeakMap();
158
158
  d = /* @__PURE__ */ new WeakMap();
159
159
  w = /* @__PURE__ */ new WeakMap();
160
160
  P = q([
@@ -1,6 +1,6 @@
1
- import { CustomElement } from '../custom-element';
2
- import { Letter } from './Letter';
3
1
  import { Word } from './Word.js';
2
+ import { Letter } from './Letter';
3
+ import { CustomElement } from '../custom-element';
4
4
 
5
5
  export interface SlicerParameters {
6
6
  wordConstructor?: typeof Word;
@@ -1,11 +1,11 @@
1
- "use strict";var L=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)};var i=(n,t,e)=>(L(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},d=(n,t,e,s)=>(L(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../custom-element/index.cjs"),$=require("../string-DhgS_iFl.cjs");var w,h,f;class T{constructor(t){p(this,w,void 0);p(this,h,void 0);p(this,f,void 0);d(this,w,t.index),d(this,h,document.createElement("span")),d(this,f,[]),t.letters&&t.letterConstructor&&t.lettersAcc!==void 0?(d(this,f,t.text.split("").map((e,s)=>new t.letterConstructor({index:t.lettersAcc+s,text:e,clone:t.clone}))),i(this,h).append(...i(this,f).map(e=>e.element))):t.clone?i(this,h).innerHTML=`
1
+ "use strict";var L=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)};var i=(n,t,e)=>(L(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},d=(n,t,e,s)=>(L(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../custom-element/index.cjs"),$=require("../string-DhgS_iFl.cjs");var w,c,f;class T{constructor(t){p(this,w,void 0);p(this,c,void 0);p(this,f,void 0);d(this,w,t.index),d(this,c,document.createElement("span")),d(this,f,[]),t.letters&&t.letterConstructor&&t.lettersAcc!==void 0?(d(this,f,t.text.split("").map((e,s)=>new t.letterConstructor({index:t.lettersAcc+s,text:e,clone:t.clone}))),i(this,c).append(...i(this,f).map(e=>e.element))):t.clone?i(this,c).innerHTML=`
2
2
  <span class="original">${t.text}</span>
3
3
  <span class="clone" aria-hidden>${t.text}</span>
4
- `:i(this,h).innerHTML=`
4
+ `:i(this,c).innerHTML=`
5
5
  <span class="value">${t.text}</span>
6
- `,i(this,h).classList.add("word")}get index(){return i(this,w)}get element(){return i(this,h)}get letters(){return i(this,f)}}w=new WeakMap,h=new WeakMap,f=new WeakMap;var C,a;class S{constructor(t){p(this,C,void 0);p(this,a,void 0);d(this,C,t.index),d(this,a,document.createElement("span")),i(this,a).classList.add("letter"),t.clone?i(this,a).innerHTML=`
6
+ `,i(this,c).classList.add("word")}get index(){return i(this,w)}get element(){return i(this,c)}get letters(){return i(this,f)}}w=new WeakMap,c=new WeakMap,f=new WeakMap;var C,a;class S{constructor(t){p(this,C,void 0);p(this,a,void 0);d(this,C,t.index),d(this,a,document.createElement("span")),i(this,a).classList.add("letter"),t.clone?i(this,a).innerHTML=`
7
7
  <span class="original">${t.text}</span>
8
8
  <span class="clone" aria-hidden>${t.text}</span>
9
9
  `:i(this,a).innerHTML=`
10
10
  <span class="value">${t.text}</span>
11
- `}get index(){return i(this,C)}get element(){return i(this,a)}}C=new WeakMap,a=new WeakMap;var D=Object.defineProperty,O=Object.getOwnPropertyDescriptor,W=(n,t,e,s)=>{for(var r=s>1?void 0:s?O(t,e):t,l=n.length-1,u;l>=0;l--)(u=n[l])&&(r=(s?u(t,e,r):u(r))||r);return s&&r&&D(t,e,r),r},A=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)},o=(n,t,e)=>(A(n,t,"read from private field"),e?e.call(n):t.get(n)),_=(n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},y=(n,t,e,s)=>(A(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e),g,c,x,E,M;exports.SlicerElement=class extends P.CustomElement{constructor(t){super(),_(this,g,""),_(this,c,[]),_(this,x,[]),_(this,E,void 0),_(this,M,void 0),y(this,E,(t==null?void 0:t.wordConstructor)||T),y(this,M,(t==null?void 0:t.letterConstructor)||S)}get wordsArray(){return o(this,c)}get lettersArray(){return o(this,x)}get originalText(){return o(this,g)}connectedCallback(){var e;y(this,g,((e=this.textContent)==null?void 0:e.trim())||""),this.innerHTML="";let t=0;y(this,c,o(this,g).replace(/ +/g," ").split(" ").map((s,r)=>{const l=new(o(this,E))({index:r,text:s,letters:this.hasAttribute("letters"),lettersAcc:t,letterConstructor:o(this,M),clone:this.hasAttribute("clone")});return t+=l.letters.length,o(this,x).push(...l.letters),l})),this.hasAttribute("index")&&(o(this,c).forEach(s=>{s.element.style.setProperty("--word-index",s.index.toString())}),o(this,x).forEach(s=>{s.element.style.setProperty("--letter-index",s.index.toString())})),o(this,c).forEach((s,r)=>{if(this.appendChild(s.element),r!==o(this,c).length-1){const l=document.createElement("span");l.innerHTML="&nbsp;",this.appendChild(l)}}),this.style.setProperty("--words-length",o(this,c).length.toString()),this.style.setProperty("--letters-length",o(this,x).length.toString())}disconnectedCallback(){y(this,c,[]),this.textContent=o(this,g),this.style.removeProperty("--words-length"),this.style.removeProperty("--letters-length")}};g=new WeakMap;c=new WeakMap;x=new WeakMap;E=new WeakMap;M=new WeakMap;exports.SlicerElement=W([P.define("e-slicer")],exports.SlicerElement);var m=Object.defineProperty,H=Object.getOwnPropertyDescriptor,b=(n,t,e,s)=>{for(var r=s>1?void 0:s?H(t,e):t,l=n.length-1,u;l>=0;l--)(u=n[l])&&(r=(s?u(t,e,r):u(r))||r);return s&&r&&m(t,e,r),r},v;class q extends S{constructor(e){super(e);p(this,v,void 0);d(this,v,$.generateId(2+Math.floor(Math.random()*15),"abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?")+e.text),this.play(0)}play(e){const s=Math.floor(e*(i(this,v).length-1));this.element.textContent=i(this,v)[s]}}v=new WeakMap;exports.DecoderElement=class extends exports.SlicerElement{constructor(){super({letterConstructor:q})}play(t){this.lettersArray.forEach(e=>{e.play(t)})}};exports.DecoderElement=b([P.define("e-decoder")],exports.DecoderElement);exports.Letter=S;exports.Word=T;
11
+ `}get index(){return i(this,C)}get element(){return i(this,a)}}C=new WeakMap,a=new WeakMap;var D=Object.defineProperty,O=Object.getOwnPropertyDescriptor,W=(n,t,e,s)=>{for(var r=s>1?void 0:s?O(t,e):t,l=n.length-1,u;l>=0;l--)(u=n[l])&&(r=(s?u(t,e,r):u(r))||r);return s&&r&&D(t,e,r),r},A=(n,t,e)=>{if(!t.has(n))throw TypeError("Cannot "+e)},o=(n,t,e)=>(A(n,t,"read from private field"),e?e.call(n):t.get(n)),_=(n,t,e)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,e)},y=(n,t,e,s)=>(A(n,t,"write to private field"),t.set(n,e),e),g,h,v,E,M;exports.SlicerElement=class extends P.CustomElement{constructor(t){super(),_(this,g,""),_(this,h,[]),_(this,v,[]),_(this,E,void 0),_(this,M,void 0),y(this,E,(t==null?void 0:t.wordConstructor)||T),y(this,M,(t==null?void 0:t.letterConstructor)||S)}get wordsArray(){return o(this,h)}get lettersArray(){return o(this,v)}get originalText(){return o(this,g)}connectedCallback(){var e;y(this,g,((e=this.textContent)==null?void 0:e.trim())||""),this.innerHTML="";let t=0;y(this,h,o(this,g).replace(/ +/g," ").split(" ").map((s,r)=>{const l=new(o(this,E))({index:r,text:s,letters:this.hasAttribute("letters"),lettersAcc:t,letterConstructor:o(this,M),clone:this.hasAttribute("clone")});return t+=l.letters.length,o(this,v).push(...l.letters),l})),this.hasAttribute("index")&&(o(this,h).forEach(s=>{s.element.style.setProperty("--word-index",s.index.toString())}),o(this,v).forEach(s=>{s.element.style.setProperty("--letter-index",s.index.toString())})),o(this,h).forEach((s,r)=>{if(this.appendChild(s.element),r!==o(this,h).length-1){const l=document.createElement("span");l.innerHTML="&nbsp;",this.appendChild(l)}}),this.style.setProperty("--words-length",o(this,h).length.toString()),this.style.setProperty("--letters-length",o(this,v).length.toString())}disconnectedCallback(){y(this,h,[]),this.textContent=o(this,g),this.style.removeProperty("--words-length"),this.style.removeProperty("--letters-length")}};g=new WeakMap;h=new WeakMap;v=new WeakMap;E=new WeakMap;M=new WeakMap;exports.SlicerElement=W([P.define("e-slicer")],exports.SlicerElement);var m=Object.defineProperty,H=Object.getOwnPropertyDescriptor,b=(n,t,e,s)=>{for(var r=s>1?void 0:s?H(t,e):t,l=n.length-1,u;l>=0;l--)(u=n[l])&&(r=(s?u(t,e,r):u(r))||r);return s&&r&&m(t,e,r),r},x;class q extends S{constructor(e){super(e);p(this,x,void 0);d(this,x,$.generateId(2+Math.floor(Math.random()*15),"abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?")+e.text),this.play(0)}play(e){const s=Math.floor(e*(i(this,x).length-1));this.element.textContent=i(this,x)[s]}}x=new WeakMap;exports.DecoderElement=class extends exports.SlicerElement{constructor(){super({letterConstructor:q})}play(t){this.lettersArray.forEach(e=>{e.play(t)})}};exports.DecoderElement=b([P.define("e-decoder")],exports.DecoderElement);exports.Letter=S;exports.Word=T;