aptechka 0.12.0 → 0.13.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 (430) hide show
  1. package/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
  2. package/lib/Animation-seVC6-fS.cjs +1 -0
  3. package/lib/Composed-ChlKoJEp.cjs +1 -0
  4. package/lib/Composed-CoX1ImVk.js +31 -0
  5. package/lib/Damped-BDO-F13V.js +53 -0
  6. package/lib/Damped-C7WAqKPh.cjs +1 -0
  7. package/lib/Derived-B-2UXnVE.cjs +1 -0
  8. package/lib/Derived-CDGpSMKu.js +56 -0
  9. package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
  10. package/lib/SourceManager-TzU9Rw08.cjs +1 -0
  11. package/lib/Store-BnA-dJsE.cjs +1 -0
  12. package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
  13. package/lib/Tweened-CHhmfvzo.js +44 -0
  14. package/lib/Tweened-DSXD0I0k.cjs +1 -0
  15. package/lib/Viewport-BmLTk_6k.cjs +1 -0
  16. package/lib/Viewport-DTlImj28.js +123 -0
  17. package/lib/accordion/index.cjs +1 -0
  18. package/lib/accordion/index.js +167 -0
  19. package/{client-lib → lib}/animation/index.cjs +1 -1
  20. package/lib/animation/index.js +8 -0
  21. package/lib/attribute/index.cjs +1 -0
  22. package/{client-lib → lib}/attribute/index.js +15 -20
  23. package/lib/canvas/index.cjs +1 -0
  24. package/lib/canvas/index.js +111 -0
  25. package/lib/checkbox/index.cjs +1 -0
  26. package/{client-lib → lib}/checkbox/index.js +20 -25
  27. package/lib/class-linked-status/index.cjs +1 -0
  28. package/lib/class-linked-status/index.js +45 -0
  29. package/lib/connector/index.cjs +1 -0
  30. package/{client-lib → lib}/connector/index.js +14 -18
  31. package/lib/controls/index.cjs +1 -0
  32. package/lib/controls/index.js +207 -0
  33. package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
  34. package/{client-lib/createStylesheet-DNG2b5X4.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
  35. package/lib/css-property/index.cjs +1 -0
  36. package/lib/css-property/index.js +58 -0
  37. package/lib/css-unit-parser/index.cjs +8 -0
  38. package/lib/css-unit-parser/index.js +31 -0
  39. package/{client-lib → lib}/dev/index.cjs +1 -1
  40. package/{client-lib → lib}/dev/index.js +1 -1
  41. package/{client-lib → lib}/device/index.cjs +1 -1
  42. package/{client-lib → lib}/device/index.js +1 -1
  43. package/{client-lib → lib}/element-constructor/index.cjs +1 -1
  44. package/{client-lib → lib}/element-constructor/index.js +2 -2
  45. package/lib/element-resizer/index.cjs +1 -0
  46. package/{client-lib → lib}/element-resizer/index.js +12 -16
  47. package/lib/en3/helpers/index.cjs +1 -0
  48. package/{client-lib → lib}/en3/helpers/index.js +612 -646
  49. package/{client-lib → lib}/en3/index.cjs +1 -1
  50. package/lib/en3/index.js +6 -0
  51. package/{client-lib → lib}/en3/libs/index.js +1 -2
  52. package/lib/en3/loaders/index.cjs +1 -0
  53. package/{client-lib → lib}/en3/loaders/index.js +152 -167
  54. package/lib/en3/misc/index.cjs +10 -0
  55. package/{client-lib → lib}/en3/misc/index.js +18 -23
  56. package/{client-lib → lib}/en3/utils/index.cjs +1 -1
  57. package/{client-lib → lib}/en3/utils/index.js +2 -2
  58. package/lib/en3-C1fLmsjs.cjs +8 -0
  59. package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
  60. package/{client-lib → lib}/image/index.cjs +1 -1
  61. package/{client-lib → lib}/image/index.js +1 -1
  62. package/{client-lib/index-BuvwT3dS.js → lib/index-BhbT9PrL.js} +35 -40
  63. package/lib/index-BpsQqM-8.cjs +9 -0
  64. package/lib/intersector/index.cjs +1 -0
  65. package/{client-lib → lib}/intersector/index.js +12 -16
  66. package/lib/ladder/index.cjs +1 -0
  67. package/{client-lib → lib}/ladder/index.js +20 -25
  68. package/lib/layout-box/index.cjs +1 -0
  69. package/lib/layout-box/index.js +318 -0
  70. package/lib/loading/index.cjs +1 -0
  71. package/{client-lib → lib}/loading/index.js +17 -21
  72. package/lib/media/index.cjs +1 -0
  73. package/lib/media/index.js +26 -0
  74. package/lib/modal/index.cjs +1 -0
  75. package/{client-lib → lib}/modal/index.js +22 -26
  76. package/lib/morph/index.cjs +1 -0
  77. package/lib/morph/index.js +225 -0
  78. package/lib/notifier/index.cjs +1 -0
  79. package/lib/notifier/index.js +36 -0
  80. package/lib/pointer/index.cjs +1 -0
  81. package/{client-lib → lib}/pointer/index.js +37 -41
  82. package/lib/popover/index.cjs +1 -0
  83. package/{client-lib → lib}/popover/index.js +71 -79
  84. package/lib/router/index.cjs +1 -0
  85. package/{client-lib → lib}/router/index.js +54 -60
  86. package/lib/scroll/index.cjs +1 -0
  87. package/lib/scroll/index.js +1131 -0
  88. package/lib/scroll-entries/index.cjs +1 -0
  89. package/{client-lib → lib}/scroll-entries/index.js +11 -15
  90. package/{client-lib → lib}/select/index.cjs +1 -1
  91. package/{client-lib → lib}/select/index.js +1 -1
  92. package/lib/sequence/index.cjs +1 -0
  93. package/{client-lib → lib}/sequence/index.js +26 -30
  94. package/lib/slicer/index.cjs +11 -0
  95. package/{client-lib → lib}/slicer/index.js +27 -31
  96. package/lib/source/index.cjs +5 -0
  97. package/{client-lib → lib}/source/index.js +19 -24
  98. package/lib/store/index.cjs +1 -0
  99. package/{client-lib → lib}/store/index.js +29 -33
  100. package/{client-lib → lib}/svg-path-data/index.js +3 -6
  101. package/lib/tags-4AoxVUe3.js +833 -0
  102. package/lib/tags-v-OSVkiQ.cjs +1 -0
  103. package/{client-lib → lib}/theme/index.cjs +1 -1
  104. package/{client-lib → lib}/theme/index.js +2 -2
  105. package/lib/ticker/index.cjs +1 -0
  106. package/lib/ticker/index.js +119 -0
  107. package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
  108. package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
  109. package/lib/tweaker/index.cjs +10 -0
  110. package/{client-lib → lib}/tweaker/index.js +271 -279
  111. package/{client-lib → lib}/utils/index.js +1 -2
  112. package/lib/video/index.cjs +1 -0
  113. package/{client-lib → lib}/video/index.js +13 -17
  114. package/lib/window-resizer/index.cjs +1 -0
  115. package/lib/window-resizer/index.js +42 -0
  116. package/package.json +351 -378
  117. package/client-lib/Animation-BInSRYNr.cjs +0 -1
  118. package/client-lib/Composed-Fa7owymK.js +0 -35
  119. package/client-lib/Composed-Iihn8fT4.cjs +0 -1
  120. package/client-lib/Damped-Da3EnNN4.cjs +0 -1
  121. package/client-lib/Damped-yrNXlkDE.js +0 -57
  122. package/client-lib/Derived-CNbsNMn_.cjs +0 -1
  123. package/client-lib/Derived-rInkx3e4.js +0 -60
  124. package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
  125. package/client-lib/Store-Cr3VaD9G.cjs +0 -1
  126. package/client-lib/Tweened-CjgvoOwL.js +0 -48
  127. package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
  128. package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
  129. package/client-lib/Viewport-Cgtq2I_K.js +0 -127
  130. package/client-lib/accordion/AccordionElement.d.ts +0 -30
  131. package/client-lib/accordion/index.cjs +0 -1
  132. package/client-lib/accordion/index.d.ts +0 -1
  133. package/client-lib/accordion/index.js +0 -176
  134. package/client-lib/animation/Animation.d.ts +0 -35
  135. package/client-lib/animation/Damped.d.ts +0 -19
  136. package/client-lib/animation/Tweened.d.ts +0 -15
  137. package/client-lib/animation/index.d.ts +0 -3
  138. package/client-lib/animation/index.js +0 -8
  139. package/client-lib/attribute/index.cjs +0 -1
  140. package/client-lib/attribute/index.d.ts +0 -15
  141. package/client-lib/canvas/index.cjs +0 -1
  142. package/client-lib/canvas/index.d.ts +0 -35
  143. package/client-lib/canvas/index.js +0 -119
  144. package/client-lib/checkbox/index.cjs +0 -1
  145. package/client-lib/checkbox/index.d.ts +0 -14
  146. package/client-lib/class-linked-status/index.cjs +0 -1
  147. package/client-lib/class-linked-status/index.d.ts +0 -12
  148. package/client-lib/class-linked-status/index.js +0 -49
  149. package/client-lib/connector/index.cjs +0 -1
  150. package/client-lib/connector/index.d.ts +0 -15
  151. package/client-lib/controls/AutoplayControls.d.ts +0 -17
  152. package/client-lib/controls/Controls.d.ts +0 -9
  153. package/client-lib/controls/DragControls.d.ts +0 -16
  154. package/client-lib/controls/KeyboardControls.d.ts +0 -14
  155. package/client-lib/controls/WheelControls.d.ts +0 -19
  156. package/client-lib/controls/index.cjs +0 -1
  157. package/client-lib/controls/index.d.ts +0 -5
  158. package/client-lib/controls/index.js +0 -213
  159. package/client-lib/counter/index.d.ts +0 -6
  160. package/client-lib/css-property/index.cjs +0 -1
  161. package/client-lib/css-property/index.d.ts +0 -17
  162. package/client-lib/css-property/index.js +0 -62
  163. package/client-lib/css-unit-parser/index.cjs +0 -8
  164. package/client-lib/css-unit-parser/index.d.ts +0 -6
  165. package/client-lib/css-unit-parser/index.js +0 -36
  166. package/client-lib/css-value-parser/index.d.ts +0 -6
  167. package/client-lib/dev/index.d.ts +0 -1
  168. package/client-lib/device/Device.d.ts +0 -19
  169. package/client-lib/device/Viewport.d.ts +0 -29
  170. package/client-lib/device/index.d.ts +0 -2
  171. package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
  172. package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
  173. package/client-lib/element-constructor/createTheme.d.ts +0 -13
  174. package/client-lib/element-constructor/index.d.ts +0 -4
  175. package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
  176. package/client-lib/element-constructor/tags.d.ts +0 -119
  177. package/client-lib/element-resizer/index.cjs +0 -1
  178. package/client-lib/element-resizer/index.d.ts +0 -10
  179. package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
  180. package/client-lib/en3/core/En3View.d.ts +0 -40
  181. package/client-lib/en3/core/en3.d.ts +0 -39
  182. package/client-lib/en3/core/en3Cache.d.ts +0 -4
  183. package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
  184. package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
  185. package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
  186. package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
  187. package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
  188. package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
  189. package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
  190. package/client-lib/en3/helpers/index.cjs +0 -1
  191. package/client-lib/en3/helpers/index.d.ts +0 -2
  192. package/client-lib/en3/index.d.ts +0 -3
  193. package/client-lib/en3/index.js +0 -6
  194. package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
  195. package/client-lib/en3/libs/index.d.ts +0 -1
  196. package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
  197. package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
  198. package/client-lib/en3/loaders/index.cjs +0 -1
  199. package/client-lib/en3/loaders/index.d.ts +0 -3
  200. package/client-lib/en3/loaders/loaders.d.ts +0 -13
  201. package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
  202. package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
  203. package/client-lib/en3/misc/index.cjs +0 -10
  204. package/client-lib/en3/misc/index.d.ts +0 -2
  205. package/client-lib/en3/objects/En3Clip.d.ts +0 -15
  206. package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
  207. package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
  208. package/client-lib/en3/objects/En3Image.d.ts +0 -8
  209. package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
  210. package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
  211. package/client-lib/en3/objects/En3Video.d.ts +0 -13
  212. package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
  213. package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
  214. package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
  215. package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
  216. package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
  217. package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
  218. package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
  219. package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
  220. package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
  221. package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
  222. package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
  223. package/client-lib/en3/objects/fluid/index.d.ts +0 -3
  224. package/client-lib/en3/objects/index.d.ts +0 -7
  225. package/client-lib/en3/utils/coverTexture.d.ts +0 -7
  226. package/client-lib/en3/utils/dispose.d.ts +0 -3
  227. package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
  228. package/client-lib/en3/utils/index.d.ts +0 -5
  229. package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
  230. package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
  231. package/client-lib/en3-CBBYE8rb.cjs +0 -8
  232. package/client-lib/image/index.d.ts +0 -11
  233. package/client-lib/index-Ctct2GyP.cjs +0 -9
  234. package/client-lib/intersector/index.cjs +0 -1
  235. package/client-lib/intersector/index.d.ts +0 -10
  236. package/client-lib/ladder/index.cjs +0 -1
  237. package/client-lib/ladder/index.d.ts +0 -24
  238. package/client-lib/layout-box/index.cjs +0 -1
  239. package/client-lib/layout-box/index.d.ts +0 -96
  240. package/client-lib/layout-box/index.js +0 -326
  241. package/client-lib/libs/path-data-polyfill.d.ts +0 -1
  242. package/client-lib/loading/index.cjs +0 -1
  243. package/client-lib/loading/index.d.ts +0 -39
  244. package/client-lib/media/index.cjs +0 -1
  245. package/client-lib/media/index.d.ts +0 -12
  246. package/client-lib/media/index.js +0 -30
  247. package/client-lib/modal/ModalElement.d.ts +0 -13
  248. package/client-lib/modal/index.cjs +0 -1
  249. package/client-lib/modal/index.d.ts +0 -1
  250. package/client-lib/morph/Link.d.ts +0 -7
  251. package/client-lib/morph/Morph.d.ts +0 -37
  252. package/client-lib/morph/index.cjs +0 -1
  253. package/client-lib/morph/index.d.ts +0 -1
  254. package/client-lib/morph/index.js +0 -235
  255. package/client-lib/notifier/index.cjs +0 -1
  256. package/client-lib/notifier/index.d.ts +0 -8
  257. package/client-lib/notifier/index.js +0 -40
  258. package/client-lib/order/index.d.ts +0 -22
  259. package/client-lib/pointer/Pointer.d.ts +0 -23
  260. package/client-lib/pointer/PointerElement.d.ts +0 -14
  261. package/client-lib/pointer/index.cjs +0 -1
  262. package/client-lib/pointer/index.d.ts +0 -2
  263. package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
  264. package/client-lib/popover/PopoverElement.d.ts +0 -26
  265. package/client-lib/popover/index.cjs +0 -1
  266. package/client-lib/popover/index.d.ts +0 -2
  267. package/client-lib/router/Link.d.ts +0 -7
  268. package/client-lib/router/Route.d.ts +0 -21
  269. package/client-lib/router/Router.d.ts +0 -41
  270. package/client-lib/router/index.cjs +0 -1
  271. package/client-lib/router/index.d.ts +0 -2
  272. package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
  273. package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
  274. package/client-lib/scroll/ScrollElement.d.ts +0 -82
  275. package/client-lib/scroll/ScrollSection.d.ts +0 -23
  276. package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
  277. package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
  278. package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
  279. package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
  280. package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
  281. package/client-lib/scroll/index.cjs +0 -1
  282. package/client-lib/scroll/index.d.ts +0 -6
  283. package/client-lib/scroll/index.js +0 -1154
  284. package/client-lib/scroll-entries/index.cjs +0 -1
  285. package/client-lib/scroll-entries/index.d.ts +0 -21
  286. package/client-lib/select/SelectElement.d.ts +0 -24
  287. package/client-lib/select/SelectHeadElement.d.ts +0 -13
  288. package/client-lib/select/SelectOptionElement.d.ts +0 -14
  289. package/client-lib/select/SelectUserElement.d.ts +0 -7
  290. package/client-lib/select/index.d.ts +0 -4
  291. package/client-lib/sequence/index.cjs +0 -1
  292. package/client-lib/sequence/index.d.ts +0 -21
  293. package/client-lib/slicer/DecoderElement.d.ts +0 -11
  294. package/client-lib/slicer/Letter.d.ts +0 -11
  295. package/client-lib/slicer/SlicerElement.d.ts +0 -21
  296. package/client-lib/slicer/Word.d.ts +0 -17
  297. package/client-lib/slicer/index.cjs +0 -11
  298. package/client-lib/slicer/index.d.ts +0 -4
  299. package/client-lib/source/SourceClass.d.ts +0 -11
  300. package/client-lib/source/SourceElement.d.ts +0 -25
  301. package/client-lib/source/SourceManager.d.ts +0 -14
  302. package/client-lib/source/SourceSet.d.ts +0 -9
  303. package/client-lib/source/index.cjs +0 -5
  304. package/client-lib/source/index.d.ts +0 -4
  305. package/client-lib/store/Cached.d.ts +0 -18
  306. package/client-lib/store/Composed.d.ts +0 -8
  307. package/client-lib/store/Derived.d.ts +0 -13
  308. package/client-lib/store/DerivedArray.d.ts +0 -13
  309. package/client-lib/store/Resource.d.ts +0 -12
  310. package/client-lib/store/Store.d.ts +0 -76
  311. package/client-lib/store/StoreRegistry.d.ts +0 -23
  312. package/client-lib/store/index.cjs +0 -1
  313. package/client-lib/store/index.d.ts +0 -7
  314. package/client-lib/svg-path-data/index.d.ts +0 -15
  315. package/client-lib/tags-B0do5eeb.cjs +0 -1
  316. package/client-lib/tags-wG5k157g.js +0 -860
  317. package/client-lib/test/starting-style/index.d.ts +0 -1
  318. package/client-lib/theme/index.d.ts +0 -35
  319. package/client-lib/ticker/index.cjs +0 -1
  320. package/client-lib/ticker/index.d.ts +0 -22
  321. package/client-lib/ticker/index.js +0 -125
  322. package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
  323. package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
  324. package/client-lib/tweaker/TweakerElement.d.ts +0 -18
  325. package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
  326. package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
  327. package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
  328. package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
  329. package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
  330. package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
  331. package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
  332. package/client-lib/tweaker/index.cjs +0 -10
  333. package/client-lib/tweaker/index.d.ts +0 -1
  334. package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
  335. package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
  336. package/client-lib/utils/array.d.ts +0 -2
  337. package/client-lib/utils/attributes.d.ts +0 -2
  338. package/client-lib/utils/browser.d.ts +0 -1
  339. package/client-lib/utils/bytes.d.ts +0 -1
  340. package/client-lib/utils/canvas.d.ts +0 -7
  341. package/client-lib/utils/collisions.d.ts +0 -4
  342. package/client-lib/utils/coordinates.d.ts +0 -14
  343. package/client-lib/utils/cssom.d.ts +0 -5
  344. package/client-lib/utils/decoding.d.ts +0 -2
  345. package/client-lib/utils/dom.d.ts +0 -5
  346. package/client-lib/utils/easings.d.ts +0 -17
  347. package/client-lib/utils/events.d.ts +0 -8
  348. package/client-lib/utils/file.d.ts +0 -1
  349. package/client-lib/utils/function.d.ts +0 -2
  350. package/client-lib/utils/gestures.d.ts +0 -1
  351. package/client-lib/utils/index.d.ts +0 -26
  352. package/client-lib/utils/layout.d.ts +0 -3
  353. package/client-lib/utils/math.d.ts +0 -12
  354. package/client-lib/utils/number.d.ts +0 -3
  355. package/client-lib/utils/object.d.ts +0 -9
  356. package/client-lib/utils/polyfills.d.ts +0 -1
  357. package/client-lib/utils/promises.d.ts +0 -1
  358. package/client-lib/utils/string.d.ts +0 -8
  359. package/client-lib/utils/style.d.ts +0 -2
  360. package/client-lib/utils/ts-shape.d.ts +0 -20
  361. package/client-lib/utils/ts-utility.d.ts +0 -26
  362. package/client-lib/utils/url.d.ts +0 -9
  363. package/client-lib/video/index.cjs +0 -1
  364. package/client-lib/video/index.d.ts +0 -22
  365. package/client-lib/window-resizer/index.cjs +0 -1
  366. package/client-lib/window-resizer/index.d.ts +0 -10
  367. package/client-lib/window-resizer/index.js +0 -46
  368. package/server-lib/optimizer/FFmpeg.d.ts +0 -10
  369. package/server-lib/optimizer/generateFavicon.d.ts +0 -4
  370. package/server-lib/optimizer/generateSequence.d.ts +0 -3
  371. package/server-lib/optimizer/generateSprite.d.ts +0 -4
  372. package/server-lib/optimizer/index.d.ts +0 -10
  373. package/server-lib/optimizer/index.js +0 -404
  374. package/server-lib/optimizer/inputFiles.d.ts +0 -26
  375. package/server-lib/optimizer/optimize.d.ts +0 -13
  376. package/server-lib/optimizer/optimizeImage.d.ts +0 -4
  377. package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
  378. package/server-lib/optimizer/optimizer.d.ts +0 -5
  379. package/server-lib/optimizer/types.d.ts +0 -51
  380. package/server-lib/optimizer/utils.d.ts +0 -1
  381. package/server-lib/utils/buffer.d.ts +0 -1
  382. package/server-lib/utils/fs.d.ts +0 -11
  383. package/server-lib/utils/index.d.ts +0 -5
  384. package/server-lib/utils/index.js +0 -65
  385. package/server-lib/utils/math.d.ts +0 -1
  386. package/server-lib/utils/path.d.ts +0 -3
  387. package/server-lib/utils/types.d.ts +0 -8
  388. /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
  389. /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
  390. /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
  391. /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
  392. /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
  393. /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
  394. /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
  395. /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
  396. /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
  397. /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
  398. /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
  399. /package/{client-lib → lib}/css-value-parser/index.js +0 -0
  400. /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
  401. /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
  402. /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
  403. /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
  404. /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
  405. /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
  406. /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
  407. /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
  408. /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
  409. /package/{client-lib → lib}/function-C10DGppn.js +0 -0
  410. /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
  411. /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
  412. /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
  413. /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
  414. /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
  415. /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
  416. /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
  417. /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
  418. /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
  419. /package/{client-lib → lib}/order/index.cjs +0 -0
  420. /package/{client-lib → lib}/order/index.js +0 -0
  421. /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
  422. /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
  423. /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
  424. /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
  425. /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
  426. /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
  427. /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
  428. /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
  429. /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
  430. /package/{client-lib → lib}/utils/index.cjs +0 -0
@@ -0,0 +1,1131 @@
1
+ var me = Object.defineProperty;
2
+ var js = Object.getOwnPropertySymbols;
3
+ var be = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable;
4
+ var Qs = (f) => {
5
+ throw TypeError(f);
6
+ };
7
+ var Js = (f, n, e) => n in f ? me(f, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : f[n] = e, Xs = (f, n) => {
8
+ for (var e in n || (n = {}))
9
+ be.call(n, e) && Js(f, e, n[e]);
10
+ if (js)
11
+ for (var e of js(n))
12
+ ge.call(n, e) && Js(f, e, n[e]);
13
+ return f;
14
+ };
15
+ var Os = (f, n, e) => n.has(f) || Qs("Cannot " + e);
16
+ var t = (f, n, e) => (Os(f, n, "read from private field"), e ? e.call(f) : n.get(f)), i = (f, n, e) => n.has(f) ? Qs("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(f) : n.set(f, e), r = (f, n, e, s) => (Os(f, n, "write to private field"), s ? s.call(f, e) : n.set(f, e), e), o = (f, n, e) => (Os(f, n, "access private method"), e);
17
+ import { S as Ft } from "../Store-DGtldlBH.js";
18
+ import { D as ve } from "../Derived-CDGpSMKu.js";
19
+ import { i as Ns } from "../browser-0zX67oeU.js";
20
+ import { p as ye } from "../easings-BKi40vHz.js";
21
+ import { a as ks, g as Ds } from "../layout-HoBT_Da2.js";
22
+ import { c as se, s as Ce } from "../math-BOBiC4TN.js";
23
+ import "../ticker/index.js";
24
+ import { TICK_ORDER as ee, RESIZE_ORDER as Ks } from "../order/index.js";
25
+ import { D as ie } from "../Damped-BDO-F13V.js";
26
+ import { T as Pe } from "../Tweened-CHhmfvzo.js";
27
+ import { WheelControls as we, KeyboardControls as Ee, DragControls as xe, AutoplayControls as Le } from "../controls/index.js";
28
+ import { windowResizer as fs } from "../window-resizer/index.js";
29
+ import { scrollEntries as Qt } from "../scroll-entries/index.js";
30
+ import { e as _s, D as As, ay as Is, p as Ve } from "../tags-4AoxVUe3.js";
31
+ import { c as Zs } from "../createStylesheet-DO5t5q-m.js";
32
+ import { cssUnitParser as Ys } from "../css-unit-parser/index.js";
33
+ import { CSSProperty as c } from "../css-property/index.js";
34
+ import { d as ze } from "../Viewport-DTlImj28.js";
35
+ import { elementResizer as Ms } from "../element-resizer/index.js";
36
+ import { s as Fe } from "../gestures-D2Fdra_G.js";
37
+ import { aptechkaTheme as te } from "../theme/index.js";
38
+ import { f as ke } from "../dom-P5QbAASX.js";
39
+ import { d as re } from "../function-C10DGppn.js";
40
+ var b, ps, C, It, j, ft;
41
+ class De {
42
+ constructor(n, e, s) {
43
+ i(this, b);
44
+ i(this, ps);
45
+ i(this, C);
46
+ i(this, It, 0);
47
+ i(this, j, 0);
48
+ i(this, ft, null);
49
+ r(this, b, n), r(this, ps, e), r(this, C, s), Qt.register(t(this, b));
50
+ }
51
+ get index() {
52
+ return t(this, ps);
53
+ }
54
+ get size() {
55
+ return t(this, It);
56
+ }
57
+ get position() {
58
+ return t(this, j);
59
+ }
60
+ destroy() {
61
+ Qt.unregister(t(this, b)), t(this, b).style.transform = "", this.mark(null);
62
+ }
63
+ setSize(n) {
64
+ n ? (t(this, b).style.setProperty("--size", n + "px"), t(this, C).axisCSSProperty.current === "x" ? (t(this, b).style.width = n + "px", t(this, b).style.height = "") : (t(this, b).style.height = n + "px", t(this, b).style.width = "")) : (t(this, b).style.width = "", t(this, b).style.height = "", t(this, b).style.removeProperty("--size"));
65
+ }
66
+ resize() {
67
+ r(this, It, t(this, C).vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth), r(this, j, t(this, C).vertical ? ks(t(this, b)) : Ds(t(this, b))), r(this, j, t(this, j) - t(this, C).contentPosition);
68
+ }
69
+ transform() {
70
+ let n = 0;
71
+ const e = t(this, C).viewportSize * t(this, C).sectionDistanceScaleCSSProperty.current;
72
+ t(this, C).loopCSSProperty.current && t(this, C).overscroll && t(this, j) + t(this, It) < t(this, C).currentScrollValue && (n = t(this, C).distance * -1 - t(this, C).gap), Qt.update(
73
+ t(this, b),
74
+ t(this, C).axisCSSProperty.current,
75
+ n
76
+ );
77
+ const s = t(this, C).currentScrollValue + n, h = t(this, j) - t(this, C).viewportSize - e, a = t(this, j) + t(this, It) + e, g = se(s, h, a);
78
+ t(this, C).vertical ? t(this, b).style.transform = `translate3d(0px, ${g * -1}px, 0px)` : t(this, b).style.transform = `translate3d(${g * -1}px, 0px, 0px)`;
79
+ }
80
+ mark(n) {
81
+ t(this, ft) !== n && (t(this, ft) && t(this, b).classList.remove(t(this, ft)), n && t(this, b).classList.add(n), r(this, ft, n), t(this, b).dispatchEvent(
82
+ new CustomEvent(
83
+ "sectionsChange",
84
+ {
85
+ composed: !0,
86
+ detail: {
87
+ mark: t(this, ft)
88
+ }
89
+ }
90
+ )
91
+ ));
92
+ }
93
+ }
94
+ b = new WeakMap(), ps = new WeakMap(), C = new WeakMap(), It = new WeakMap(), j = new WeakMap(), ft = new WeakMap();
95
+ const Ie = Zs({
96
+ ":host": {
97
+ position: "relative",
98
+ width: "100%",
99
+ height: "100%",
100
+ display: "block",
101
+ outline: "none"
102
+ },
103
+ ':host([hibernated="true"])': {
104
+ display: "contents"
105
+ },
106
+ ".static": {
107
+ position: "var(--static-position, absolute)",
108
+ top: "var(--static-top, 0)",
109
+ left: "var(--static-left, 0)",
110
+ width: "var(--static-width, 100%)",
111
+ height: "var(--static-height, 100%)"
112
+ },
113
+ ".content": {
114
+ position: "relative",
115
+ display: "flex",
116
+ width: "100%",
117
+ height: "100%",
118
+ gap: "var(--gap, 0px)",
119
+ willChange: "var(--will-change, transform)"
120
+ },
121
+ ':host([hibernated="true"]) .content': {
122
+ display: "contents"
123
+ },
124
+ "::slotted(*)": {
125
+ flexShrink: "0"
126
+ }
127
+ });
128
+ var d, Mt, k, J, Q, U, X, dt, pt, G, D, Rt, Ot, At, Tt, ts, N, Ht, St, K, mt, Y, bt, $t, Bt, Wt, m, Ss, l, ms, bs, w, v, O, _, gt, tt, V, y, ss, vt, qt, Ut, es, st, u, ds, Yt, Hs, $s, Bs, Ws, A, gs, he, is, vs, qs, kt, Us;
129
+ class Ts extends HTMLElement {
130
+ constructor() {
131
+ super();
132
+ i(this, u);
133
+ i(this, d, null);
134
+ i(this, Mt, new c(this, "--controls", !0));
135
+ i(this, k, new c(this, "--axis", "y"));
136
+ i(this, J, new c(this, "--direction", 0));
137
+ i(this, Q, new c(this, "--pages", 0, {
138
+ validate: (e) => Math.max(0, e - 1)
139
+ }));
140
+ i(this, U, new c(this, "--split", !1));
141
+ i(this, X, new c(this, "--sectional", !1));
142
+ i(this, dt, new c(this, "--auto-size", !1));
143
+ i(this, pt, new c(
144
+ this,
145
+ "--wheel-max-delta",
146
+ !1
147
+ ));
148
+ i(this, G, new c(
149
+ this,
150
+ "--sections-in-view",
151
+ 1
152
+ ));
153
+ i(this, D, new c(this, "--loop", !1));
154
+ i(this, Rt, new c(this, "--damping", 20));
155
+ i(this, Ot, new c(this, "--mass", 0));
156
+ i(this, At, new c(this, "--stiffness", 0));
157
+ i(this, Tt, new c(this, "--mouse-drag", !1));
158
+ i(this, ts, new c(
159
+ this,
160
+ "--section-distance-scale",
161
+ 0.5
162
+ ));
163
+ i(this, N, new c(this, "--autoplay", 0));
164
+ i(this, Ht, new c(
165
+ this,
166
+ "--autoplay-pause-duration",
167
+ 0
168
+ ));
169
+ i(this, St, new c(
170
+ this,
171
+ "--autoplay-user-direction",
172
+ !1
173
+ ));
174
+ i(this, K, new c(this, "--classes", 0));
175
+ i(this, mt, new c(
176
+ this,
177
+ "--current-index-start-offset",
178
+ 0
179
+ ));
180
+ i(this, Y, new c(
181
+ this,
182
+ "--current-index-end-offset",
183
+ 0
184
+ ));
185
+ i(this, bt, new c(this, "--focus-delay", 0));
186
+ i(this, $t, new c(
187
+ this,
188
+ "--focus-duration",
189
+ 3e3
190
+ ));
191
+ i(this, Bt, new c(this, "--disabled", !1));
192
+ i(this, Wt, new c(this, "--hibernated", !1));
193
+ i(this, m, null);
194
+ i(this, Ss, null);
195
+ i(this, l, []);
196
+ i(this, ms, 0);
197
+ i(this, bs, 0);
198
+ i(this, w, 0);
199
+ i(this, v, 0);
200
+ i(this, O, 0);
201
+ i(this, _, null);
202
+ i(this, gt, null);
203
+ i(this, tt, null);
204
+ i(this, V, null);
205
+ i(this, y, new Ft(0));
206
+ i(this, ss, 0);
207
+ i(this, vt, 0);
208
+ i(this, qt, !0);
209
+ i(this, Ut, !0);
210
+ i(this, es);
211
+ i(this, st, new Pe());
212
+ i(this, A, () => {
213
+ t(this, d).unlistenAnimationFrame();
214
+ const e = this.currentScrollValue / t(this, v) || 0, s = t(this, y).current;
215
+ if (r(this, ms, this.vertical ? ks(this) : Ds(this)), r(this, bs, this.vertical ? ks(t(this, m)) : Ds(t(this, m))), r(this, w, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? r(this, O, Ys.parse(
216
+ getComputedStyle(t(this, m)).rowGap
217
+ )) : r(this, O, Ys.parse(
218
+ getComputedStyle(t(this, m)).columnGap
219
+ )), t(this, dt).current && t(this, l).length) {
220
+ const h = t(this, G).current, a = (t(this, w) - t(this, O) * (h - 1)) / h;
221
+ t(this, l).forEach((g) => {
222
+ g.setSize(a);
223
+ });
224
+ } else
225
+ t(this, l).forEach((h) => {
226
+ h.setSize();
227
+ });
228
+ if (t(this, l).forEach((h) => {
229
+ h.resize();
230
+ }), t(this, Q).current) {
231
+ r(this, v, t(this, w) * t(this, Q).current);
232
+ const h = t(this, v) + t(this, w);
233
+ this.vertical ? (t(this, m).style.width = h + "px", t(this, m).style.height = "100%") : (t(this, m).style.height = h + "px", t(this, m).style.width = "100%");
234
+ } else
235
+ this.vertical ? (t(this, m).style.width = "100%", t(this, m).style.height = "max-content", r(this, v, t(this, m).offsetHeight - t(this, w))) : (t(this, m).style.width = "max-content", t(this, m).style.height = "100%", r(this, v, t(this, m).offsetWidth - t(this, w)));
236
+ if (!t(this, D).current) {
237
+ const h = getComputedStyle(this), a = this.vertical ? parseFloat(h.paddingBlockStart) + parseFloat(h.paddingBlockEnd) : parseFloat(h.paddingInlineStart) + parseFloat(h.paddingInlineEnd);
238
+ r(this, v, t(this, v) + a), t(this, d).max = t(this, v);
239
+ }
240
+ if (t(this, D).current && t(this, l).length) {
241
+ const h = t(this, l)[t(this, l).length - 1], a = h.position + h.size - t(this, w), g = t(this, v) - a;
242
+ r(this, vt, h.position + h.size + g);
243
+ } else
244
+ r(this, vt, t(this, v));
245
+ if (t(this, X).current && t(this, l).length) {
246
+ const h = t(this, l)[s];
247
+ t(this, d).set(h.position, {
248
+ equalize: !0
249
+ });
250
+ } else
251
+ t(this, d).set(e * t(this, v), {
252
+ equalize: !0
253
+ });
254
+ });
255
+ i(this, gs, () => {
256
+ const e = this.currentScrollValue;
257
+ if (r(this, ss, Math.max(0, e - t(this, v))), t(this, l).length) {
258
+ let s = 0;
259
+ for (let h = 0; h < t(this, l).length; h++) {
260
+ const a = t(this, l)[h];
261
+ a.transform(), this.targetScrollValue + a.size / 2 >= a.position && (s = h);
262
+ }
263
+ t(this, y).current = s;
264
+ } else
265
+ this.vertical ? t(this, m).style.transform = `translate3d(0px, ${e * -1}px, 0px)` : t(this, m).style.transform = `translate3d(${e * -1}px, 0px, 0px)`;
266
+ Qt.update(
267
+ this,
268
+ t(this, k).current,
269
+ e
270
+ );
271
+ });
272
+ i(this, is, (e, s) => {
273
+ t(this, Mt).current && (t(this, St).current && (t(this, V).pauseAndContinue(
274
+ t(this, Ht).current
275
+ ), t(this, V).direction = Math.sign(s) || 1), t(this, vs).call(this, e, s));
276
+ });
277
+ i(this, vs, (e, s) => {
278
+ if (t(this, J).current) {
279
+ if (t(this, J).current < 0 && s > 0)
280
+ return;
281
+ if (t(this, J).current > 0 && s < 0)
282
+ return;
283
+ }
284
+ if (t(this, st).unlistenAnimationFrame(), !t(this, N).current && t(this, bt).current && (clearInterval(t(this, es)), r(this, es, setTimeout(() => {
285
+ const h = o(this, u, Us).call(this);
286
+ h && this.scrollToSection(h.index, {
287
+ tween: {
288
+ duration: t(this, $t).current,
289
+ easing: ye
290
+ }
291
+ });
292
+ }, t(this, bt).current))), !(e === "drag" && !ze.isMobile && !t(this, Tt).current))
293
+ if (t(this, X).current) {
294
+ const h = Math.sign(s);
295
+ t(this, l).length ? this.shiftSections(h) : t(this, d).shift(h * t(this, w));
296
+ } else
297
+ t(this, d).shift(s);
298
+ });
299
+ Ns && (r(this, d, new ie(0, {
300
+ damping: 0.01,
301
+ min: 0,
302
+ order: ee.SCROLL
303
+ })), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ie), _s(this, {
304
+ tabIndex: 0,
305
+ children: [
306
+ As({
307
+ class: "static",
308
+ children: [Is({ name: "static" })]
309
+ }),
310
+ As({
311
+ class: "content",
312
+ children: [Is({ ref: (s) => r(this, Ss, s) })],
313
+ style: {
314
+ flexDirection: new ve(
315
+ t(this, k),
316
+ (s) => s === "x" ? "row" : "column"
317
+ )
318
+ },
319
+ ref: (s) => r(this, m, s)
320
+ })
321
+ ]
322
+ }), r(this, _, new we({ element: t(this, m) })), t(this, _).changeEvent.subscribe(
323
+ t(this, is)
324
+ ), r(this, gt, new Ee({
325
+ element: this
326
+ })), t(this, gt).changeEvent.subscribe(
327
+ t(this, is)
328
+ ), r(this, tt, new xe({ element: t(this, m) })), t(this, tt).changeEvent.subscribe(t(this, is)), r(this, V, new Le({
329
+ culling: this
330
+ })), t(this, V).changeEvent.subscribe(t(this, vs)), t(this, k).subscribe(({ current: s }) => {
331
+ t(this, m).style.flexDirection = s === "x" ? "row" : "column", t(this, _).axis = t(this, pt).current ? "max" : s, t(this, gt).dimension = s === "x" ? "width" : "height", t(this, tt).axis = s, s === "x" ? this.style.touchAction = "pan-y" : s === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, A).call(this);
332
+ }), t(this, pt).subscribe((s) => {
333
+ t(this, _).axis = s.current ? "max" : t(this, k).current;
334
+ }), t(this, Q).subscribe(() => {
335
+ this.isConnected && t(this, A).call(this);
336
+ }), t(this, U).subscribe(({ current: s }) => {
337
+ this.isConnected && (s ? o(this, u, ds).call(this) : o(this, u, Yt).call(this));
338
+ }), t(this, X).subscribe((s) => {
339
+ t(this, _).debounce = s.current, t(this, tt).swipe = s.current, t(this, V).interval = s.current, this.isConnected && (s.current && !s.previous && !t(this, l).length ? o(this, u, ds).call(this) : !s.current && s.previous && t(this, l).length && o(this, u, Yt).call(this));
340
+ }), t(this, dt).subscribe((s) => {
341
+ this.isConnected && (t(this, A).call(this), s.current && !s.previous && !t(this, l).length ? o(this, u, ds).call(this) : !s.current && s.previous && t(this, l).length && o(this, u, Yt).call(this));
342
+ }), t(this, G).subscribe((s) => {
343
+ this.isConnected && (t(this, A).call(this), o(this, u, kt).call(this));
344
+ }), t(this, D).subscribe((s) => {
345
+ s.current ? (this.isConnected && (t(this, l).length || (t(this, U).current = !0)), t(this, l).length && (t(this, d).max = 1 / 0, t(this, d).min = -1 / 0)) : (r(this, ss, 0), t(this, d).max = t(this, v), t(this, d).min = 0);
346
+ }), t(this, Rt).subscribe((s) => {
347
+ t(this, d).damping = s.current;
348
+ }), t(this, Ot).subscribe((s) => {
349
+ t(this, d).mass = s.current;
350
+ }), t(this, At).subscribe((s) => {
351
+ t(this, d).stiffness = s.current;
352
+ }), t(this, Bt).subscribe((s) => {
353
+ s.current && !s.previous ? o(this, u, Hs).call(this) : !s.current && s.previous && o(this, u, $s).call(this);
354
+ }), t(this, Wt).subscribe((s) => {
355
+ s.current && !s.previous ? o(this, u, Bs).call(this) : !s.current && s.previous && o(this, u, Ws).call(this);
356
+ }), t(this, N).subscribe((s) => {
357
+ t(this, V).speed = s.current, s.current && !s.previous ? t(this, V).connect() : !s.current && s.previous && t(this, V).disconnect();
358
+ }), t(this, St).subscribe((s) => {
359
+ s.current || (t(this, V).direction = 1);
360
+ }), t(this, K).subscribe((s) => {
361
+ this.isConnected && o(this, u, kt).call(this);
362
+ }), t(this, mt).subscribe((s) => {
363
+ this.isConnected && t(this, K).current && o(this, u, kt).call(this);
364
+ }), t(this, Y).subscribe((s) => {
365
+ this.isConnected && t(this, K).current && o(this, u, kt).call(this);
366
+ }), t(this, d).isRunning.subscribe((s) => {
367
+ this.classList.toggle("active", s.current);
368
+ }), t(this, y).subscribe((s) => {
369
+ t(this, l).length && o(this, u, kt).call(this);
370
+ }), t(this, st).subscribe((s) => {
371
+ t(this, st).isRunning.current && t(this, d).set(s.current);
372
+ }));
373
+ }
374
+ get damped() {
375
+ return t(this, d);
376
+ }
377
+ get controlsCSSProperty() {
378
+ return t(this, Mt);
379
+ }
380
+ get axisCSSProperty() {
381
+ return t(this, k);
382
+ }
383
+ get directionCSSProperty() {
384
+ return t(this, J);
385
+ }
386
+ get pagesCSSProperty() {
387
+ return t(this, Q);
388
+ }
389
+ get splitCSSProperty() {
390
+ return t(this, U);
391
+ }
392
+ get sectionalCSSProperty() {
393
+ return t(this, X);
394
+ }
395
+ get autoSizeCSSProperty() {
396
+ return t(this, dt);
397
+ }
398
+ get wheelMaxDeltaCSSProperty() {
399
+ return t(this, pt);
400
+ }
401
+ get sectionsInViewCSSProperty() {
402
+ return t(this, G);
403
+ }
404
+ get loopCSSProperty() {
405
+ return t(this, D);
406
+ }
407
+ get dampingCSSProperty() {
408
+ return t(this, Rt);
409
+ }
410
+ get massCSSProperty() {
411
+ return t(this, Ot);
412
+ }
413
+ get stiffnessCSSProperty() {
414
+ return t(this, At);
415
+ }
416
+ get mouseDragCSSProperty() {
417
+ return t(this, Tt);
418
+ }
419
+ get sectionDistanceScaleCSSProperty() {
420
+ return t(this, ts);
421
+ }
422
+ get autoplayCSSProperty() {
423
+ return t(this, N);
424
+ }
425
+ get autoplayPauseDurationCSSProperty() {
426
+ return t(this, Ht);
427
+ }
428
+ get autoplayUserDirectionCSSProperty() {
429
+ return t(this, St);
430
+ }
431
+ get classesCSSProperty() {
432
+ return t(this, K);
433
+ }
434
+ get currentIndexStartOffsetCSSProperty() {
435
+ return t(this, mt);
436
+ }
437
+ get currentIndexEndOffsetCSSProperty() {
438
+ return t(this, Y);
439
+ }
440
+ get focusDelayCSSProperty() {
441
+ return t(this, bt);
442
+ }
443
+ get focusDurationCSSProperty() {
444
+ return t(this, $t);
445
+ }
446
+ get disabledCSSProperty() {
447
+ return t(this, Bt);
448
+ }
449
+ get hibernatedCSSProperty() {
450
+ return t(this, Wt);
451
+ }
452
+ get currentScrollValue() {
453
+ return o(this, u, qs).call(this, "current");
454
+ }
455
+ get targetScrollValue() {
456
+ return o(this, u, qs).call(this, "target");
457
+ }
458
+ get contentElement() {
459
+ return t(this, m);
460
+ }
461
+ get sections() {
462
+ return t(this, l);
463
+ }
464
+ get position() {
465
+ return t(this, ms);
466
+ }
467
+ get contentPosition() {
468
+ return t(this, bs);
469
+ }
470
+ get viewportSize() {
471
+ return t(this, w);
472
+ }
473
+ get scrollSize() {
474
+ return t(this, v);
475
+ }
476
+ get gap() {
477
+ return t(this, O);
478
+ }
479
+ get counter() {
480
+ return t(this, y);
481
+ }
482
+ get limit() {
483
+ return t(this, l).length - t(this, G).current;
484
+ }
485
+ get distance() {
486
+ return t(this, vt);
487
+ }
488
+ get loopDistance() {
489
+ return t(this, D).current ? t(this, vt) + t(this, O) : t(this, vt);
490
+ }
491
+ get overscroll() {
492
+ return t(this, ss);
493
+ }
494
+ get vertical() {
495
+ return t(this, k).current === "y";
496
+ }
497
+ get currentProgress() {
498
+ return this.currentScrollValue / this.loopDistance || 0;
499
+ }
500
+ get targetProgress() {
501
+ return this.targetScrollValue / this.loopDistance || 0;
502
+ }
503
+ get scrollWidth() {
504
+ return t(this, k).current === "y" ? 0 : t(this, d).distance;
505
+ }
506
+ get scrollHeight() {
507
+ return t(this, k).current === "x" ? 0 : t(this, d).distance;
508
+ }
509
+ onScroll(...e) {
510
+ return t(this, d).subscribe(...e);
511
+ }
512
+ offScroll(...e) {
513
+ t(this, d).unsubscribe(...e);
514
+ }
515
+ //https://github.com/pmndrs/drei/blob/d3282cdd02d170ef603a5e096505d83dc93cd57a/src/web/ScrollControls.tsx#L85C7-L100C9
516
+ range(e, s, h = 0) {
517
+ const a = e - h, g = a + s + h * 2;
518
+ return this.currentProgress < a ? 0 : this.currentProgress > g ? 1 : (this.currentProgress - a) / (g - a);
519
+ }
520
+ curve(e, s, h = 0) {
521
+ return Math.sin(this.range(e, s, h) * Math.PI);
522
+ }
523
+ visible(e, s, h = 0) {
524
+ const a = e - h, g = a + s + h * 2;
525
+ return this.currentProgress >= a && this.currentProgress <= g;
526
+ }
527
+ scrollToSection(e, s) {
528
+ if (!t(this, l).length)
529
+ return;
530
+ const h = t(this, y).current;
531
+ o(this, u, he).call(this, e);
532
+ const a = t(this, l)[h], g = t(this, l)[t(this, y).current];
533
+ if (a && g) {
534
+ let R = 0;
535
+ const Xt = o(this, u, Us).call(this), Se = Xt ? this.targetScrollValue - Xt.position : 0;
536
+ t(this, D).current ? t(this, y).current === 0 && h === t(this, l).length - 1 ? R = t(this, v) + t(this, w) - a.position + t(this, O) : t(this, y).current === t(this, l).length - 1 && h === 0 ? R = g.position - (t(this, v) + t(this, w) + t(this, O)) : R = g.position - a.position : R = g.position - a.position, this.shiftPosition(R - Se, s);
537
+ }
538
+ }
539
+ shiftSections(e, s) {
540
+ t(this, l).length && this.scrollToSection(t(this, y).current + e, s);
541
+ }
542
+ setPosition(e, s) {
543
+ s != null && s.tween ? (t(this, st).set(t(this, d).current, { equalize: !0 }), t(this, st).set(e, Xs({}, s.tween))) : t(this, d).set(e, {
544
+ equalize: (s == null ? void 0 : s.behaviour) === "instant"
545
+ });
546
+ }
547
+ shiftPosition(e, s) {
548
+ this.setPosition(t(this, d).target + e, s);
549
+ }
550
+ connectedCallback() {
551
+ t(this, Mt).observe(), t(this, k).observe(), t(this, J).observe(), t(this, Q).observe(), t(this, U).observe(), t(this, X).observe(), t(this, dt).observe(), t(this, pt).observe(), t(this, G).observe(), t(this, D).observe(), t(this, Rt).observe(), t(this, Ot).observe(), t(this, At).observe(), t(this, Tt).observe(), t(this, ts).observe(), t(this, N).observe(), t(this, N).observe(), t(this, Ht).observe(), t(this, St).observe(), t(this, K).observe(), t(this, mt).observe(), t(this, Y).observe(), t(this, bt).observe(), t(this, $t).observe(), t(this, Bt).observe(), t(this, Wt).observe(), o(this, u, Ws).call(this);
552
+ }
553
+ disconnectedCallback() {
554
+ t(this, Mt).unobserve(), t(this, k).unobserve(), t(this, J).unobserve(), t(this, Q).unobserve(), t(this, U).unobserve(), t(this, X).unobserve(), t(this, dt).unobserve(), t(this, pt).unobserve(), t(this, G).unobserve(), t(this, D).unobserve(), t(this, Rt).unobserve(), t(this, Ot).unobserve(), t(this, At).unobserve(), t(this, Tt).unobserve(), t(this, ts).unobserve(), t(this, N).unobserve(), t(this, Ht).unobserve(), t(this, St).unobserve(), t(this, K).unobserve(), t(this, mt).unobserve(), t(this, Y).unobserve(), t(this, bt).unobserve(), t(this, $t).unobserve(), t(this, Bt).unobserve(), t(this, Wt).unobserve(), o(this, u, Bs).call(this);
555
+ }
556
+ }
557
+ d = new WeakMap(), Mt = new WeakMap(), k = new WeakMap(), J = new WeakMap(), Q = new WeakMap(), U = new WeakMap(), X = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), G = new WeakMap(), D = new WeakMap(), Rt = new WeakMap(), Ot = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), ts = new WeakMap(), N = new WeakMap(), Ht = new WeakMap(), St = new WeakMap(), K = new WeakMap(), mt = new WeakMap(), Y = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), Bt = new WeakMap(), Wt = new WeakMap(), m = new WeakMap(), Ss = new WeakMap(), l = new WeakMap(), ms = new WeakMap(), bs = new WeakMap(), w = new WeakMap(), v = new WeakMap(), O = new WeakMap(), _ = new WeakMap(), gt = new WeakMap(), tt = new WeakMap(), V = new WeakMap(), y = new WeakMap(), ss = new WeakMap(), vt = new WeakMap(), qt = new WeakMap(), Ut = new WeakMap(), es = new WeakMap(), st = new WeakMap(), u = new WeakSet(), ds = function() {
558
+ o(this, u, Yt).call(this), t(this, Ss).assignedElements().forEach((e, s) => {
559
+ e instanceof HTMLElement && t(this, l).push(new De(e, s, this));
560
+ }), t(this, m).style.transform = "", this.dispatchEvent(
561
+ new CustomEvent("sectionsChange", {
562
+ composed: !0
563
+ })
564
+ ), t(this, A).call(this), o(this, u, kt).call(this);
565
+ }, Yt = function() {
566
+ t(this, l).forEach((e) => {
567
+ e.destroy();
568
+ }), r(this, l, []), t(this, y).current = 0, t(this, d).reset(), this.dispatchEvent(
569
+ new CustomEvent("sectionsChange", {
570
+ composed: !0
571
+ })
572
+ );
573
+ }, Hs = function() {
574
+ t(this, qt) || (r(this, qt, !0), t(this, d).unsubscribe(t(this, gs)), t(this, d).unlistenAnimationFrame(), t(this, _).disconnect(), t(this, gt).disconnect(), t(this, tt).disconnect(), t(this, V).disconnect(), clearInterval(t(this, es)), t(this, st).unlistenAnimationFrame());
575
+ }, $s = function() {
576
+ t(this, qt) && (r(this, qt, !1), t(this, d).subscribe(t(this, gs)), t(this, _).connect(), t(this, gt).connect(), t(this, tt).connect(), t(this, N).current && t(this, V).connect());
577
+ }, Bs = function() {
578
+ t(this, Ut) || (r(this, Ut, !0), fs.unsubscribe(t(this, A)), Ms.unsubscribe(t(this, A)), t(this, d).reset(), o(this, u, Hs).call(this), t(this, m).style.transform = "", t(this, U).current && o(this, u, Yt).call(this), Qt.unregister(this));
579
+ }, Ws = function() {
580
+ t(this, Ut) && (r(this, Ut, !1), t(this, U).current && o(this, u, ds).call(this), Qt.register(this), fs.subscribe(t(this, A), Ks.SCROLL), Ms.subscribe(this, t(this, A)), o(this, u, $s).call(this));
581
+ }, A = new WeakMap(), gs = new WeakMap(), he = function(e) {
582
+ t(this, D).current ? (t(this, y).current = e % t(this, l).length, t(this, y).current = t(this, y).current < 0 ? t(this, l).length + t(this, y).current : t(this, y).current) : t(this, y).current = se(e, 0, this.limit);
583
+ }, is = new WeakMap(), vs = new WeakMap(), qs = function(e = "current") {
584
+ if (t(this, D).current && t(this, l).length) {
585
+ const s = t(this, d)[e] % (t(this, v) + t(this, w) + t(this, O));
586
+ return s < 0 ? t(this, v) + s + t(this, w) + t(this, O) : s;
587
+ } else
588
+ return t(this, d)[e];
589
+ }, kt = function() {
590
+ if (t(this, K).current && t(this, l).length) {
591
+ const e = t(this, y).current + t(this, mt).current;
592
+ e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end");
593
+ const s = t(this, G).current + t(this, Y).current;
594
+ t(this, l).forEach((h, a) => {
595
+ const g = e - this.limit - 1 + t(this, Y).current, R = e + s, Xt = this.sections.length - R;
596
+ a >= e && a < R || a <= g ? h.mark("current") : a >= R && a < R + Xt / 2 || a <= g + s ? h.mark("next") : h.mark("previous");
597
+ });
598
+ }
599
+ }, Us = function() {
600
+ let e = null, s = 1 / 0;
601
+ for (let h = 0; h < t(this, l).length; h++) {
602
+ const a = Math.abs(t(this, l)[h].position - this.targetScrollValue);
603
+ a < s && (s = a, e = h);
604
+ }
605
+ return e !== null ? t(this, l)[e] : null;
606
+ };
607
+ customElements.get("e-scroll") || customElements.define("e-scroll", Ts);
608
+ var ys;
609
+ class Rs extends HTMLElement {
610
+ constructor() {
611
+ super(...arguments);
612
+ i(this, ys, null);
613
+ }
614
+ get scrollElement() {
615
+ return t(this, ys);
616
+ }
617
+ connectedCallback() {
618
+ const e = ke(this, Ts);
619
+ e instanceof Ts ? r(this, ys, e) : console.error(this, "e-scroll not found");
620
+ }
621
+ }
622
+ ys = new WeakMap();
623
+ const Me = Zs({
624
+ ":host": {
625
+ display: "inline-block",
626
+ zIndex: "1",
627
+ backgroundColor: te.colorFont.var
628
+ },
629
+ ':host([axis="y"])': {
630
+ position: "absolute",
631
+ right: "0",
632
+ top: "0",
633
+ width: "1vmin",
634
+ height: "100%"
635
+ },
636
+ ':host([axis="x"])': {
637
+ position: "absolute",
638
+ left: "0",
639
+ bottom: "0",
640
+ width: "100%",
641
+ height: "1vmin"
642
+ },
643
+ ".default-thumb": {
644
+ backgroundColor: te.colorMain.var,
645
+ borderRadius: "1vmin",
646
+ touchAction: "none"
647
+ },
648
+ "::slotted(*)": {
649
+ touchAction: "none"
650
+ }
651
+ });
652
+ var rs, I, et, it, hs, ns, Gt, Cs, Ps, ws;
653
+ class Re extends Rs {
654
+ constructor() {
655
+ super();
656
+ i(this, rs, null);
657
+ i(this, I, null);
658
+ i(this, et, !1);
659
+ i(this, it, 0);
660
+ i(this, hs, 0);
661
+ i(this, ns, 0);
662
+ i(this, Gt, () => {
663
+ r(this, et, this.offsetWidth > this.offsetHeight);
664
+ const e = t(this, et) ? this.offsetWidth : this.offsetHeight;
665
+ r(this, it, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, it, Math.max(t(this, it), 30)), t(this, et) ? (t(this, I).style.width = t(this, it) + "px", t(this, I).style.height = "100%") : (t(this, I).style.width = "100%", t(this, I).style.height = t(this, it) + "px"), r(this, hs, e - t(this, it)), this.scrollElement.scrollSize || (this.style.display = "none");
666
+ });
667
+ i(this, Cs, () => {
668
+ r(this, ns, this.scrollElement.currentProgress * t(this, hs)), t(this, et) ? t(this, I).style.transform = `translate3d(${t(this, ns)}px, 0px, 0px)` : t(this, I).style.transform = `translate3d(0px, ${t(this, ns)}px, 0px)`;
669
+ });
670
+ i(this, Ps, () => {
671
+ this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
672
+ });
673
+ i(this, ws, (e) => {
674
+ document.documentElement.classList.add("grabbing"), Fe(
675
+ (a) => {
676
+ const g = t(this, et) ? a.x : a.y, R = this.scrollElement.distance / t(this, hs), Xt = (g - h) * R;
677
+ this.scrollElement.setPosition(s + Xt);
678
+ },
679
+ () => {
680
+ document.documentElement.classList.remove("grabbing");
681
+ }
682
+ );
683
+ const s = this.scrollElement.targetScrollValue, h = t(this, et) ? e.x : e.y;
684
+ });
685
+ Ns && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Me), _s(this, {
686
+ slot: "static",
687
+ "drag-dead-zone": "",
688
+ children: [
689
+ Is({
690
+ ref: (s) => r(this, rs, s),
691
+ children: As({ class: "default-thumb" })
692
+ })
693
+ ]
694
+ }));
695
+ }
696
+ get thumbElement() {
697
+ return t(this, I);
698
+ }
699
+ connectedCallback() {
700
+ super.connectedCallback();
701
+ const e = t(this, rs).assignedElements()[0] || t(this, rs).firstElementChild;
702
+ r(this, I, e), t(this, I).addEventListener("pointerdown", t(this, ws)), fs.subscribe(t(this, Gt), Ks.SCROLL + 1), Ms.subscribe(this, t(this, Gt)), this.scrollElement.onScroll(t(this, Cs)), this.scrollElement.axisCSSProperty.subscribe(t(this, Ps));
703
+ }
704
+ disconnectedCallback() {
705
+ t(this, I).removeEventListener("pointerdown", t(this, ws)), fs.unsubscribe(t(this, Gt)), Ms.unsubscribe(t(this, Gt)), this.scrollElement.offScroll(t(this, Cs)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, Ps));
706
+ }
707
+ }
708
+ rs = new WeakMap(), I = new WeakMap(), et = new WeakMap(), it = new WeakMap(), hs = new WeakMap(), ns = new WeakMap(), Gt = new WeakMap(), Cs = new WeakMap(), Ps = new WeakMap(), ws = new WeakMap();
709
+ customElements.get("e-scrollbar") || customElements.define("e-scrollbar", Re);
710
+ const Oe = Zs({
711
+ button: {
712
+ all: "inherit"
713
+ }
714
+ });
715
+ class ne extends Rs {
716
+ constructor() {
717
+ super(), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Oe), Ns && _s(this, {
718
+ children: [
719
+ Ve({
720
+ onClick: () => {
721
+ this.handleClick();
722
+ },
723
+ children: [Is()]
724
+ })
725
+ ]
726
+ });
727
+ }
728
+ }
729
+ class Ae extends ne {
730
+ handleClick() {
731
+ const n = this.getAttribute("index"), e = this.getAttribute("behaviour");
732
+ this.scrollElement.scrollToSection(parseInt(n || "0"), { behaviour: e });
733
+ }
734
+ }
735
+ customElements.get("e-scroll-set-button") || customElements.define("e-scroll-set-button", Ae);
736
+ class Te extends ne {
737
+ handleClick() {
738
+ const n = this.getAttribute("step"), e = this.getAttribute("behaviour");
739
+ this.scrollElement.shiftSections(parseInt(n || "1"), { behaviour: e });
740
+ }
741
+ }
742
+ customElements.get("e-scroll-step-button") || customElements.define("e-scroll-step-button", Te);
743
+ var rt, yt, os, Es, xs, cs;
744
+ class He {
745
+ constructor(n, e, s) {
746
+ i(this, rt);
747
+ i(this, yt);
748
+ i(this, os);
749
+ i(this, Es);
750
+ i(this, xs, () => {
751
+ t(this, yt).scrollToSection(t(this, os), {
752
+ behaviour: t(this, Es)
753
+ });
754
+ });
755
+ i(this, cs, () => {
756
+ t(this, rt).classList.toggle(
757
+ "current",
758
+ t(this, yt).counter.current === t(this, os)
759
+ );
760
+ });
761
+ r(this, rt, document.createElement("button")), r(this, yt, n), r(this, Es, s), r(this, os, e), t(this, rt).addEventListener("click", t(this, xs)), t(this, yt).counter.subscribe(t(this, cs)), t(this, cs).call(this);
762
+ }
763
+ get element() {
764
+ return t(this, rt);
765
+ }
766
+ destroy() {
767
+ t(this, rt).removeEventListener("click", t(this, xs)), t(this, yt).counter.unsubscribe(t(this, cs)), t(this, rt).remove();
768
+ }
769
+ }
770
+ rt = new WeakMap(), yt = new WeakMap(), os = new WeakMap(), Es = new WeakMap(), xs = new WeakMap(), cs = new WeakMap();
771
+ var Ct, ls;
772
+ class $e extends Rs {
773
+ constructor() {
774
+ super(...arguments);
775
+ i(this, Ct, []);
776
+ i(this, ls, re(() => {
777
+ t(this, Ct).forEach((e) => e.destroy()), r(this, Ct, []);
778
+ for (let e = 0; e < this.scrollElement.sections.length; e++) {
779
+ const s = new He(
780
+ this.scrollElement,
781
+ e,
782
+ this.getAttribute("behaviour") || "smooth"
783
+ );
784
+ this.appendChild(s.element), t(this, Ct).push(s);
785
+ }
786
+ }, 0));
787
+ }
788
+ connectedCallback() {
789
+ super.connectedCallback(), this.scrollElement.addEventListener(
790
+ "sectionsChange",
791
+ t(this, ls)
792
+ ), t(this, ls).call(this);
793
+ }
794
+ disconnectedCallback() {
795
+ this.scrollElement.removeEventListener(
796
+ "sectionsChange",
797
+ t(this, ls)
798
+ ), t(this, Ct).forEach((e) => e.destroy()), r(this, Ct, []);
799
+ }
800
+ }
801
+ Ct = new WeakMap(), ls = new WeakMap();
802
+ customElements.get("e-scroll-bullet-buttons") || customElements.define("e-scroll-bullet-buttons", $e);
803
+ var Nt, Kt, _t, Zt, Pt, wt, Et, xt, z, T, H, $, Lt, E, ht, nt, ot, ct, lt, x, B, W, ut, at, Z, Ls, p, jt, Jt, Vs, L, Vt, M, F, q, us, zt, P, S, oe, ce, le, ue, ae, fe, zs, as, Dt, de, pe, Gs, Fs;
804
+ class Be extends Rs {
805
+ constructor() {
806
+ super();
807
+ i(this, S);
808
+ i(this, Nt, new c(this, "--damping", 20));
809
+ i(this, Kt, new c(this, "--mass", 0));
810
+ i(this, _t, new c(this, "--stiffness", 0));
811
+ i(this, Zt, new c(this, "--target", ""));
812
+ i(this, Pt, new c(this, "--disabled", !1));
813
+ i(this, wt, new c(
814
+ this,
815
+ "--distance-offset",
816
+ 0,
817
+ { rawValueCheck: !1 }
818
+ ));
819
+ i(this, Et, new c(this, "--start-offset", 0, {
820
+ rawValueCheck: !1
821
+ }));
822
+ i(this, xt, new c(
823
+ this,
824
+ "--capture-once",
825
+ !1
826
+ ));
827
+ i(this, z, new c(this, "--captured", ""));
828
+ i(this, T, new c(this, "--released", ""));
829
+ i(this, H, new c(
830
+ this,
831
+ "--captured-from-start",
832
+ ""
833
+ ));
834
+ i(this, $, new c(
835
+ this,
836
+ "--captured-from-finish",
837
+ ""
838
+ ));
839
+ i(this, Lt, new c(
840
+ this,
841
+ "--released-from-start",
842
+ ""
843
+ ));
844
+ i(this, E, new c(
845
+ this,
846
+ "--released-from-finish",
847
+ ""
848
+ ));
849
+ i(this, ht, new c(this, "--passed-var", ""));
850
+ i(this, nt, new c(this, "--progress-var", ""));
851
+ i(this, ot, new c(this, "--distance-var", ""));
852
+ i(this, ct, new c(this, "--start-var", ""));
853
+ i(this, lt, new c(this, "--finish-var", ""));
854
+ i(this, x, new Ft(!1));
855
+ i(this, B, new Ft(!1));
856
+ i(this, W, new Ft(!1));
857
+ i(this, ut, new Ft(!1));
858
+ i(this, at, new Ft(!1));
859
+ i(this, Z, new Ft(!1));
860
+ i(this, Ls, []);
861
+ i(this, p, this);
862
+ i(this, jt, 0);
863
+ i(this, Jt, 0);
864
+ i(this, Vs, 0);
865
+ i(this, L, new ie(0, { order: ee.SCROLL - 1, min: 0, max: 1 }));
866
+ i(this, Vt, 0);
867
+ i(this, M, 0);
868
+ i(this, F, 0);
869
+ i(this, q, 0);
870
+ i(this, us, !1);
871
+ i(this, zt, !1);
872
+ i(this, P, !0);
873
+ i(this, zs, () => {
874
+ t(this, P) || (this.resize(), t(this, as).call(this));
875
+ });
876
+ i(this, as, () => {
877
+ !t(this, P) && t(this, us) && this.tick();
878
+ });
879
+ i(this, Fs, re(() => {
880
+ const e = Qt.getAll(this).reverse();
881
+ let s = 0;
882
+ e.forEach((h, a) => {
883
+ h.element === this.scrollElement && (s = a);
884
+ }), r(this, Ls, e.slice(s + 1));
885
+ }, 0));
886
+ }
887
+ get distanceOffsetCSSProperty() {
888
+ return t(this, wt);
889
+ }
890
+ get startOffsetCSSProperty() {
891
+ return t(this, Et);
892
+ }
893
+ get captureOnceCSSProperty() {
894
+ return t(this, xt);
895
+ }
896
+ get capturedCSSProperty() {
897
+ return t(this, z);
898
+ }
899
+ get releasedCSSProperty() {
900
+ return t(this, T);
901
+ }
902
+ get capturedFromStartCSSProperty() {
903
+ return t(this, H);
904
+ }
905
+ get capturedFromFinishCSSProperty() {
906
+ return t(this, $);
907
+ }
908
+ get releasedFromStartCSSProperty() {
909
+ return t(this, Lt);
910
+ }
911
+ get releasedFromFinishCSSProperty() {
912
+ return t(this, E);
913
+ }
914
+ get passedVarCSSProperty() {
915
+ return t(this, ht);
916
+ }
917
+ get progressVarCSSProperty() {
918
+ return t(this, nt);
919
+ }
920
+ get distanceVarCSSProperty() {
921
+ return t(this, ot);
922
+ }
923
+ get startVarCSSProperty() {
924
+ return t(this, ct);
925
+ }
926
+ get finishVarCSSProperty() {
927
+ return t(this, lt);
928
+ }
929
+ get disabledCSSProperty() {
930
+ return t(this, Pt);
931
+ }
932
+ get dampingCSSProperty() {
933
+ return t(this, Nt);
934
+ }
935
+ get massCSSProperty() {
936
+ return t(this, Kt);
937
+ }
938
+ get stiffnessCSSProperty() {
939
+ return t(this, _t);
940
+ }
941
+ get targetCSSProperty() {
942
+ return t(this, Zt);
943
+ }
944
+ get isCaptured() {
945
+ return t(this, x);
946
+ }
947
+ get isReleased() {
948
+ return t(this, B);
949
+ }
950
+ get isCapturedFromStart() {
951
+ return t(this, W);
952
+ }
953
+ get isReleasedFromStart() {
954
+ return t(this, ut);
955
+ }
956
+ get isCapturedFromFinish() {
957
+ return t(this, at);
958
+ }
959
+ get isReleasedFromFinish() {
960
+ return t(this, Z);
961
+ }
962
+ get directionPosition() {
963
+ return t(this, jt);
964
+ }
965
+ get directionSize() {
966
+ return t(this, Jt);
967
+ }
968
+ get passed() {
969
+ return t(this, L);
970
+ }
971
+ get progress() {
972
+ return t(this, Vt);
973
+ }
974
+ get start() {
975
+ return t(this, M);
976
+ }
977
+ get finish() {
978
+ return t(this, q);
979
+ }
980
+ get distance() {
981
+ return t(this, F);
982
+ }
983
+ get isCapturedOnce() {
984
+ return t(this, zt);
985
+ }
986
+ get isDisabled() {
987
+ return t(this, P);
988
+ }
989
+ resize() {
990
+ r(this, Jt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, jt, this.scrollElement.vertical ? ks(this, this.scrollElement) : Ds(this, this.scrollElement)), r(this, M, this.getStart()), r(this, F, this.getDistance()), r(this, M, t(this, M) + t(this, Et).current), r(this, F, t(this, F) + t(this, wt).current), r(this, q, t(this, M) + t(this, F)), this.scrollElement.currentScrollValue > t(this, q) && !t(this, x).current && !t(this, B).current && (t(this, x).current = !0), this.setVar(t(this, ct).current, t(this, M)), this.setVar(t(this, lt).current, t(this, q)), this.setVar(t(this, ot).current, t(this, F)), t(this, L).max = t(this, F), r(this, us, !0);
991
+ }
992
+ tick() {
993
+ let e = this.scrollElement.currentScrollValue;
994
+ t(this, Ls).forEach((h) => {
995
+ e += h.value;
996
+ }), t(this, L).set(e - t(this, M));
997
+ const s = Math.round(e);
998
+ t(this, x).current && (s > t(this, M) ? t(this, W).current || o(this, S, le).call(this) : t(this, W).current && !t(this, ut).current && o(this, S, ae).call(this), s < t(this, q) ? t(this, Z).current && !t(this, at).current && o(this, S, ue).call(this) : t(this, W).current && !t(this, Z).current && o(this, S, fe).call(this)), s > t(this, M) && s < t(this, q) ? t(this, x).current || o(this, S, oe).call(this) : t(this, x).current && (t(this, L).set(
999
+ Ce(t(this, F) / 2, t(this, L).current, 0, t(this, F))
1000
+ ), o(this, S, ce).call(this)), t(this, zt) && t(this, xt).current && (t(this, z).current && t(this, p).classList.add(t(this, z).current), r(this, P, !0));
1001
+ }
1002
+ disable() {
1003
+ this.style.cssText = "", r(this, jt, 0), r(this, Jt, 0), t(this, L).reset(), r(this, Vt, 0), r(this, M, 0), r(this, F, 0), r(this, q, 0), r(this, us, !1), t(this, x).current = !1, t(this, B).current = !1, t(this, W).current = !1, t(this, ut).current = !1, t(this, at).current = !1, t(this, Z).current = !1, r(this, zt, !1), r(this, P, !0), o(this, S, Gs).call(this);
1004
+ }
1005
+ enable() {
1006
+ r(this, P, !1);
1007
+ }
1008
+ connectedCallback() {
1009
+ super.connectedCallback(), t(this, Nt).observe(), t(this, Kt).observe(), t(this, _t).observe(), t(this, Zt).observe(), t(this, Pt).observe(), t(this, wt).observe(), t(this, Et).observe(), t(this, xt).observe(), t(this, z).observe(), t(this, T).observe(), t(this, H).observe(), t(this, $).observe(), t(this, Lt).observe(), t(this, E).observe(), t(this, ht).observe(), t(this, nt).observe(), t(this, ot).observe(), t(this, ct).observe(), t(this, lt).observe();
1010
+ let e = !1;
1011
+ this.scrollElement.addEventListener(
1012
+ "sectionsChange",
1013
+ t(this, Fs)
1014
+ ), t(this, Fs).call(this), t(this, Pt).current || this.enable(), t(this, Nt).subscribe((s) => {
1015
+ t(this, L).damping = s.current;
1016
+ }), t(this, Kt).subscribe((s) => {
1017
+ t(this, L).mass = s.current;
1018
+ }), t(this, _t).subscribe((s) => {
1019
+ t(this, L).stiffness = s.current;
1020
+ }), t(this, Zt).subscribe((s) => {
1021
+ s.previous && o(this, S, Gs).call(this), s.current ? s.current === "parent" ? r(this, p, this.parentElement || this) : r(this, p, document.querySelector(s.current) || this) : r(this, p, this);
1022
+ }), t(this, Pt).subscribe((s) => {
1023
+ s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
1024
+ }), t(this, Et).subscribe(() => {
1025
+ e && !t(this, P) && this.resize();
1026
+ }), t(this, wt).subscribe(() => {
1027
+ e && !t(this, P) && this.resize();
1028
+ }), t(this, z).subscribe((s) => {
1029
+ o(this, S, Dt).call(this, s);
1030
+ }), t(this, H).subscribe((s) => {
1031
+ o(this, S, Dt).call(this, s);
1032
+ }), t(this, $).subscribe((s) => {
1033
+ o(this, S, Dt).call(this, s);
1034
+ }), t(this, T).subscribe((s) => {
1035
+ o(this, S, Dt).call(this, s);
1036
+ }), t(this, Lt).subscribe((s) => {
1037
+ o(this, S, Dt).call(this, s);
1038
+ }), t(this, E).subscribe((s) => {
1039
+ o(this, S, Dt).call(this, s);
1040
+ }), t(this, xt).subscribe((s) => {
1041
+ t(this, P) || !s.current && s.previous && (this.resize(), this.enable());
1042
+ }), t(this, ht).subscribe((s) => {
1043
+ t(this, P) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
1044
+ }), t(this, nt).subscribe((s) => {
1045
+ t(this, P) || (this.removeVar(s.previous), this.setVar(s.current, t(this, Vt)));
1046
+ }), t(this, ct).subscribe((s) => {
1047
+ t(this, P) || (this.removeVar(s.previous), this.setVar(s.current, t(this, M)));
1048
+ }), t(this, lt).subscribe((s) => {
1049
+ t(this, P) || (this.removeVar(s.previous), this.setVar(s.current, t(this, q)));
1050
+ }), t(this, ot).subscribe((s) => {
1051
+ t(this, P) || (this.removeVar(s.previous), this.setVar(s.current, t(this, F)));
1052
+ }), t(this, L).subscribe((s) => {
1053
+ r(this, Vt, t(this, L).current / t(this, F) || 0), this.setVar(
1054
+ t(this, ht).current,
1055
+ t(this, L).current.toFixed(6)
1056
+ ), this.setVar(
1057
+ t(this, nt).current,
1058
+ t(this, Vt).toFixed(6)
1059
+ );
1060
+ }), fs.subscribe(t(this, zs), Ks.SEGMENT), this.scrollElement.onScroll(t(this, as)), e = !0;
1061
+ }
1062
+ disconnectedCallback() {
1063
+ fs.unsubscribe(t(this, zs)), this.scrollElement.offScroll(t(this, as)), t(this, Nt).close(), t(this, Kt).close(), t(this, _t).close(), t(this, Zt).close(), t(this, Pt).close(), t(this, wt).close(), t(this, Et).close(), t(this, xt).close(), t(this, z).close(), t(this, T).close(), t(this, H).close(), t(this, $).close(), t(this, Lt).close(), t(this, E).close(), t(this, ht).close(), t(this, nt).close(), t(this, ot).close(), t(this, ct).close(), t(this, lt).close(), t(this, x).close(), t(this, B).close(), t(this, W).close(), t(this, ut).close(), t(this, at).close(), t(this, Z).close(), this.disable();
1064
+ }
1065
+ removeVar(e) {
1066
+ e && t(this, p).style.removeProperty(`--${e}`);
1067
+ }
1068
+ setVar(e, s) {
1069
+ e && t(this, p).style.setProperty(`--${e}`, s.toString());
1070
+ }
1071
+ getDistance() {
1072
+ return t(this, Jt) + t(this, Vs);
1073
+ }
1074
+ getStart() {
1075
+ return t(this, jt) - t(this, Vs);
1076
+ }
1077
+ }
1078
+ Nt = new WeakMap(), Kt = new WeakMap(), _t = new WeakMap(), Zt = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), z = new WeakMap(), T = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), Lt = new WeakMap(), E = new WeakMap(), ht = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), ct = new WeakMap(), lt = new WeakMap(), x = new WeakMap(), B = new WeakMap(), W = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), Z = new WeakMap(), Ls = new WeakMap(), p = new WeakMap(), jt = new WeakMap(), Jt = new WeakMap(), Vs = new WeakMap(), L = new WeakMap(), Vt = new WeakMap(), M = new WeakMap(), F = new WeakMap(), q = new WeakMap(), us = new WeakMap(), zt = new WeakMap(), P = new WeakMap(), S = new WeakSet(), oe = function() {
1079
+ t(this, x).current = !0, t(this, B).current = !1, r(this, zt, !0), t(this, T).current && t(this, p).classList.remove(t(this, T).current), t(this, E).current && t(this, p).classList.remove(
1080
+ t(this, E).current
1081
+ ), t(this, E).current && t(this, p).classList.remove(
1082
+ t(this, E).current
1083
+ ), t(this, z).current && t(this, p).classList.add(t(this, z).current);
1084
+ }, ce = function() {
1085
+ t(this, B).current = !0, t(this, x).current = !1, r(this, zt, !0), t(this, z).current && t(this, p).classList.remove(t(this, z).current), t(this, H).current && t(this, p).classList.remove(
1086
+ t(this, H).current
1087
+ ), t(this, $).current && t(this, p).classList.remove(
1088
+ t(this, $).current
1089
+ ), t(this, T).current && t(this, p).classList.add(t(this, T).current);
1090
+ }, le = function() {
1091
+ t(this, x).current = !0, t(this, W).current = !0, t(this, ut).current = !1, t(this, H).current && t(this, p).classList.add(
1092
+ t(this, H).current
1093
+ );
1094
+ }, ue = function() {
1095
+ t(this, x).current = !0, t(this, at).current = !0, t(this, Z).current = !1, t(this, $).current && t(this, p).classList.add(
1096
+ t(this, $).current
1097
+ );
1098
+ }, ae = function() {
1099
+ t(this, B).current = !0, t(this, ut).current = !0, t(this, W).current = !1, t(this, E).current && t(this, p).classList.add(
1100
+ t(this, E).current
1101
+ );
1102
+ }, fe = function() {
1103
+ t(this, B).current = !0, t(this, Z).current = !0, t(this, at).current = !1, t(this, E).current && t(this, p).classList.add(
1104
+ t(this, E).current
1105
+ );
1106
+ }, zs = new WeakMap(), as = new WeakMap(), Dt = function(e) {
1107
+ if (t(this, P)) {
1108
+ e.previous && t(this, p).classList.remove(e.previous), e.current && t(this, p).classList.remove(e.current);
1109
+ return;
1110
+ }
1111
+ e.current && t(this, x).current ? (e.previous && t(this, p).classList.remove(e.previous), t(this, p).classList.add(e.current)) : !e.current && e.previous && t(this, p).classList.remove(e.previous);
1112
+ }, de = function(...e) {
1113
+ e.forEach((s) => {
1114
+ s && t(this, p).classList.remove(s);
1115
+ });
1116
+ }, pe = function(...e) {
1117
+ e.forEach((s) => {
1118
+ s && t(this, p).style.removeProperty(`--${s}`);
1119
+ });
1120
+ }, Gs = function() {
1121
+ o(this, S, de).call(this, t(this, z).current, t(this, H).current, t(this, $).current, t(this, T).current, t(this, Lt).current, t(this, E).current), o(this, S, pe).call(this, t(this, ht).current, t(this, nt).current, t(this, ot).current, t(this, ct).current, t(this, lt).current);
1122
+ }, Fs = new WeakMap();
1123
+ customElements.get("e-scroll-segment") || customElements.define("e-scroll-segment", Be);
1124
+ export {
1125
+ $e as ScrollBulletButtonsElement,
1126
+ Ts as ScrollElement,
1127
+ Be as ScrollSegmentElement,
1128
+ Ae as ScrollSetButtonElement,
1129
+ Te as ScrollStepButtonElement,
1130
+ Re as ScrollbarElement
1131
+ };