aptechka 0.1.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/lib/Animated-CzBHCHNm.js +130 -0
  2. package/lib/Animated-DZ_fbJmi.cjs +1 -0
  3. package/lib/Damped--qBZAdEi.cjs +1 -0
  4. package/lib/Damped-Bm1kSn1f.js +36 -0
  5. package/lib/Derived-BS2ja9qa.js +27 -0
  6. package/lib/Derived-CqmIkTGN.cjs +1 -0
  7. package/lib/ElementConstructor-DB0xOoat.js +199 -0
  8. package/lib/ElementConstructor-v1FPLXAW.cjs +1 -0
  9. package/lib/{SourceManager-F94MRde6.js → SourceManager-B44FUTig.js} +26 -26
  10. package/lib/SourceManager-D447KWpH.cjs +1 -0
  11. package/lib/Store-BOOfmlyv.cjs +1 -0
  12. package/lib/Store-uTyReFzx.js +152 -0
  13. package/lib/Viewport-CDqiD8Ao.cjs +1 -0
  14. package/lib/Viewport-Cj0i-H5d.js +129 -0
  15. package/lib/WheelControls-CX9WUbBC.js +83 -0
  16. package/lib/WheelControls-CfDeGCOU.cjs +1 -0
  17. package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
  18. package/lib/abstract-elements/index.cjs +1 -0
  19. package/lib/abstract-elements/index.d.ts +1 -0
  20. package/lib/abstract-elements/index.js +27 -0
  21. package/lib/accordion/AccordionElement.d.ts +30 -0
  22. package/lib/accordion/index.cjs +1 -0
  23. package/lib/accordion/index.d.ts +1 -0
  24. package/lib/accordion/index.js +166 -0
  25. package/lib/animation/Animated.d.ts +9 -12
  26. package/lib/animation/Tweened.d.ts +1 -1
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.d.ts +1 -1
  29. package/lib/animation/index.js +11 -17
  30. package/lib/attribute/index.cjs +1 -1
  31. package/lib/attribute/index.d.ts +8 -4
  32. package/lib/attribute/index.js +44 -35
  33. package/lib/canvas/index.cjs +1 -0
  34. package/lib/{canvas-2d → canvas}/index.d.ts +7 -6
  35. package/lib/canvas/index.js +97 -0
  36. package/lib/connector/index.cjs +1 -0
  37. package/lib/connector/index.d.ts +14 -0
  38. package/lib/connector/index.js +53 -0
  39. package/lib/controls/WheelControls.d.ts +3 -2
  40. package/lib/controls/index.cjs +1 -1
  41. package/lib/controls/index.d.ts +0 -1
  42. package/lib/controls/index.js +23 -28
  43. package/lib/createStylesheet-74ZP3AZm.js +8 -0
  44. package/lib/createStylesheet-ChhZFwSX.cjs +1 -0
  45. package/lib/createTheme-BMH9cRrS.js +15 -0
  46. package/lib/createTheme-COo8IzPG.cjs +1 -0
  47. package/lib/custom-element/index.cjs +1 -1
  48. package/lib/custom-element/index.d.ts +3 -1
  49. package/lib/custom-element/index.js +19 -9
  50. package/lib/device/Viewport.d.ts +1 -1
  51. package/lib/device/index.cjs +1 -1
  52. package/lib/device/index.js +5 -121
  53. package/lib/element-constructor/ElementConstructor.d.ts +11 -15
  54. package/lib/element-constructor/createStylesheet.d.ts +2 -0
  55. package/lib/element-constructor/createTheme.d.ts +12 -0
  56. package/lib/element-constructor/htmlTags.d.ts +115 -113
  57. package/lib/element-constructor/index.cjs +1 -1
  58. package/lib/element-constructor/index.d.ts +2 -1
  59. package/lib/element-constructor/index.js +387 -1135
  60. package/lib/element-constructor/svgTags.d.ts +63 -63
  61. package/lib/element-resizer/index.cjs +1 -0
  62. package/lib/element-resizer/index.d.ts +9 -0
  63. package/lib/element-resizer/index.js +64 -0
  64. package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
  65. package/lib/en3/index.cjs +7 -7
  66. package/lib/en3/index.js +252 -242
  67. package/lib/en3/objects/En3Clip.d.ts +2 -2
  68. package/lib/events-CoqmkUxo.js +11 -0
  69. package/lib/events-D68xg4dy.cjs +1 -0
  70. package/lib/file-EevnUtRj.cjs +1 -0
  71. package/lib/file-lxi_oXJf.js +13 -0
  72. package/lib/htmlTags-CNEFIHPp.js +683 -0
  73. package/lib/htmlTags-CwYHVo9n.cjs +1 -0
  74. package/lib/image/index.cjs +1 -1
  75. package/lib/image/index.js +13 -20
  76. package/lib/index-DyJhLxk8.js +310 -0
  77. package/lib/index-tPw9mmLF.cjs +9 -0
  78. package/lib/intersector/index.cjs +1 -1
  79. package/lib/intersector/index.d.ts +2 -1
  80. package/lib/intersector/index.js +33 -22
  81. package/lib/jsx/ComponentWrapper.d.ts +12 -0
  82. package/lib/jsx/h.d.ts +7 -0
  83. package/lib/jsx/hooks.d.ts +19 -0
  84. package/lib/jsx/index.cjs +1 -0
  85. package/lib/jsx/index.d.ts +4 -0
  86. package/lib/jsx/index.js +125 -0
  87. package/lib/jsx/render.d.ts +2 -0
  88. package/lib/jsx/type.d.ts +185 -0
  89. package/lib/ladder/index.cjs +1 -1
  90. package/lib/ladder/index.js +3 -4
  91. package/lib/layout-box/index.cjs +1 -1
  92. package/lib/layout-box/index.d.ts +1 -0
  93. package/lib/layout-box/index.js +113 -99
  94. package/lib/loading/index.cjs +1 -1
  95. package/lib/loading/index.js +1 -1
  96. package/lib/media/index.cjs +1 -1
  97. package/lib/media/index.js +17 -20
  98. package/lib/modal/ModalElement.d.ts +12 -0
  99. package/lib/modal/index.cjs +1 -0
  100. package/lib/modal/index.d.ts +1 -0
  101. package/lib/modal/index.js +144 -0
  102. package/lib/morph/index.cjs +1 -1
  103. package/lib/morph/index.js +1 -1
  104. package/lib/number-Bo5RdrA1.js +23 -0
  105. package/lib/number-yVpzMdbQ.cjs +1 -0
  106. package/lib/popover/PopoverButtonElement.d.ts +14 -0
  107. package/lib/popover/PopoverElement.d.ts +19 -0
  108. package/lib/popover/index.cjs +1 -0
  109. package/lib/popover/index.d.ts +2 -0
  110. package/lib/popover/index.js +122 -0
  111. package/lib/router/index.cjs +1 -1
  112. package/lib/router/index.js +2 -2
  113. package/lib/scroll/ScrollElement.d.ts +5 -3
  114. package/lib/scroll/index.cjs +1 -71
  115. package/lib/scroll/index.js +349 -314
  116. package/lib/scroll-entries/index.cjs +1 -1
  117. package/lib/scroll-entries/index.d.ts +1 -1
  118. package/lib/scroll-entries/index.js +4 -2
  119. package/lib/select/SelectElement.d.ts +25 -0
  120. package/lib/select/SelectHeadElement.d.ts +12 -0
  121. package/lib/select/SelectOptionElement.d.ts +13 -0
  122. package/lib/select/SelectUserElement.d.ts +7 -0
  123. package/lib/select/index.cjs +1 -0
  124. package/lib/select/index.d.ts +4 -0
  125. package/lib/select/index.js +7 -0
  126. package/lib/source/SourceClass.d.ts +1 -1
  127. package/lib/source/index.cjs +2 -2
  128. package/lib/source/index.js +13 -18
  129. package/lib/store/CumulativeResource.d.ts +12 -0
  130. package/lib/store/Resource.d.ts +5 -2
  131. package/lib/store/Store.d.ts +56 -9
  132. package/lib/store/StoreRegistry.d.ts +2 -2
  133. package/lib/store/index.cjs +1 -1
  134. package/lib/store/index.d.ts +2 -1
  135. package/lib/store/index.js +108 -66
  136. package/lib/string-BrDhnNUL.js +39 -0
  137. package/lib/string-DzUwFYSS.cjs +1 -0
  138. package/lib/studio/StudioElement.d.ts +12 -0
  139. package/lib/studio/index.cjs +10 -0
  140. package/lib/studio/index.d.ts +1 -0
  141. package/lib/studio/index.js +985 -0
  142. package/lib/studio/studioStorage.d.ts +14 -0
  143. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
  144. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
  145. package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
  146. package/lib/studio/tweaker/TweakerFieldElement.d.ts +20 -0
  147. package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
  148. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
  149. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
  150. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
  151. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
  152. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +7 -0
  153. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
  154. package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
  155. package/lib/style-At6aDoqG.cjs +1 -0
  156. package/lib/style-j2TwriJ_.js +10 -0
  157. package/lib/theme/index.cjs +1 -0
  158. package/lib/theme/index.d.ts +90 -0
  159. package/lib/theme/index.js +34 -0
  160. package/lib/ticker/index.cjs +1 -1
  161. package/lib/ticker/index.js +1 -1
  162. package/lib/utils/events.d.ts +6 -0
  163. package/lib/utils/index.cjs +1 -1
  164. package/lib/utils/index.d.ts +8 -7
  165. package/lib/utils/index.js +95 -105
  166. package/lib/utils/number.d.ts +2 -3
  167. package/lib/utils/string.d.ts +1 -0
  168. package/lib/utils/style.d.ts +2 -0
  169. package/lib/utils/ts-utility.d.ts +2 -0
  170. package/lib/video/index.cjs +1 -1
  171. package/lib/video/index.js +13 -20
  172. package/lib/window-resizer/index.cjs +1 -0
  173. package/lib/window-resizer/index.d.ts +9 -0
  174. package/lib/window-resizer/index.js +46 -0
  175. package/package.json +92 -30
  176. package/lib/Damped-1hlKSFaB.cjs +0 -1
  177. package/lib/Damped-523xgzT3.js +0 -152
  178. package/lib/SourceManager-3c3kr7oj.cjs +0 -1
  179. package/lib/Store-2hWEUGTj.js +0 -135
  180. package/lib/Store-WXFmsaEI.cjs +0 -1
  181. package/lib/WheelControls-F-xg5-oq.js +0 -102
  182. package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
  183. package/lib/canvas-2d/index.cjs +0 -5
  184. package/lib/canvas-2d/index.js +0 -90
  185. package/lib/controls/User.d.ts +0 -7
  186. package/lib/element-constructor/specialObjects.d.ts +0 -2
  187. package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
  188. package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
  189. package/lib/measurer/Meaurer.d.ts +0 -8
  190. package/lib/measurer/index.cjs +0 -1
  191. package/lib/measurer/index.d.ts +0 -3
  192. package/lib/measurer/index.js +0 -48
  193. package/lib/number-2bR0KBcX.cjs +0 -1
  194. package/lib/number-bCHB2GAD.js +0 -31
  195. package/lib/resizer/index.cjs +0 -1
  196. package/lib/resizer/index.d.ts +0 -10
  197. package/lib/resizer/index.js +0 -45
  198. package/lib/string-GmxZA5Nq.js +0 -31
  199. package/lib/string-WmNOGq16.cjs +0 -1
  200. package/lib/utils/dev.d.ts +0 -3
  201. /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
  202. /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
  203. /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
  204. /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
  205. /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
  206. /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
  207. /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
  208. /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
  209. /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
  210. /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
  211. /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
  212. /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
  213. /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
  214. /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -18,6 +18,16 @@
18
18
  ],
19
19
  "type": "module",
20
20
  "exports": {
21
+ "./abstract-elements": {
22
+ "require": "./lib/abstract-elements/index.cjs",
23
+ "default": "./lib/abstract-elements/index.js",
24
+ "types": "./lib/abstract-elements/index.d.ts"
25
+ },
26
+ "./accordion": {
27
+ "require": "./lib/accordion/index.cjs",
28
+ "default": "./lib/accordion/index.js",
29
+ "types": "./lib/accordion/index.d.ts"
30
+ },
21
31
  "./animation": {
22
32
  "require": "./lib/animation/index.cjs",
23
33
  "default": "./lib/animation/index.js",
@@ -28,10 +38,15 @@
28
38
  "default": "./lib/attribute/index.js",
29
39
  "types": "./lib/attribute/index.d.ts"
30
40
  },
31
- "./canvas-2d": {
32
- "require": "./lib/canvas-2d/index.cjs",
33
- "default": "./lib/canvas-2d/index.js",
34
- "types": "./lib/canvas-2d/index.d.ts"
41
+ "./canvas": {
42
+ "require": "./lib/canvas/index.cjs",
43
+ "default": "./lib/canvas/index.js",
44
+ "types": "./lib/canvas/index.d.ts"
45
+ },
46
+ "./connector": {
47
+ "require": "./lib/connector/index.cjs",
48
+ "default": "./lib/connector/index.js",
49
+ "types": "./lib/connector/index.d.ts"
35
50
  },
36
51
  "./controls": {
37
52
  "require": "./lib/controls/index.cjs",
@@ -58,6 +73,11 @@
58
73
  "default": "./lib/element-constructor/index.js",
59
74
  "types": "./lib/element-constructor/index.d.ts"
60
75
  },
76
+ "./element-resizer": {
77
+ "require": "./lib/element-resizer/index.cjs",
78
+ "default": "./lib/element-resizer/index.js",
79
+ "types": "./lib/element-resizer/index.d.ts"
80
+ },
61
81
  "./en3": {
62
82
  "require": "./lib/en3/index.cjs",
63
83
  "default": "./lib/en3/index.js",
@@ -73,6 +93,11 @@
73
93
  "default": "./lib/intersector/index.js",
74
94
  "types": "./lib/intersector/index.d.ts"
75
95
  },
96
+ "./jsx": {
97
+ "require": "./lib/jsx/index.cjs",
98
+ "default": "./lib/jsx/index.js",
99
+ "types": "./lib/jsx/index.d.ts"
100
+ },
76
101
  "./ladder": {
77
102
  "require": "./lib/ladder/index.cjs",
78
103
  "default": "./lib/ladder/index.js",
@@ -88,16 +113,16 @@
88
113
  "default": "./lib/loading/index.js",
89
114
  "types": "./lib/loading/index.d.ts"
90
115
  },
91
- "./measurer": {
92
- "require": "./lib/measurer/index.cjs",
93
- "default": "./lib/measurer/index.js",
94
- "types": "./lib/measurer/index.d.ts"
95
- },
96
116
  "./media": {
97
117
  "require": "./lib/media/index.cjs",
98
118
  "default": "./lib/media/index.js",
99
119
  "types": "./lib/media/index.d.ts"
100
120
  },
121
+ "./modal": {
122
+ "require": "./lib/modal/index.cjs",
123
+ "default": "./lib/modal/index.js",
124
+ "types": "./lib/modal/index.d.ts"
125
+ },
101
126
  "./morph": {
102
127
  "require": "./lib/morph/index.cjs",
103
128
  "default": "./lib/morph/index.js",
@@ -113,10 +138,10 @@
113
138
  "default": "./lib/order/index.js",
114
139
  "types": "./lib/order/index.d.ts"
115
140
  },
116
- "./resizer": {
117
- "require": "./lib/resizer/index.cjs",
118
- "default": "./lib/resizer/index.js",
119
- "types": "./lib/resizer/index.d.ts"
141
+ "./popover": {
142
+ "require": "./lib/popover/index.cjs",
143
+ "default": "./lib/popover/index.js",
144
+ "types": "./lib/popover/index.d.ts"
120
145
  },
121
146
  "./router": {
122
147
  "require": "./lib/router/index.cjs",
@@ -133,6 +158,11 @@
133
158
  "default": "./lib/scroll-entries/index.js",
134
159
  "types": "./lib/scroll-entries/index.d.ts"
135
160
  },
161
+ "./select": {
162
+ "require": "./lib/select/index.cjs",
163
+ "default": "./lib/select/index.js",
164
+ "types": "./lib/select/index.d.ts"
165
+ },
136
166
  "./source": {
137
167
  "require": "./lib/source/index.cjs",
138
168
  "default": "./lib/source/index.js",
@@ -143,6 +173,16 @@
143
173
  "default": "./lib/store/index.js",
144
174
  "types": "./lib/store/index.d.ts"
145
175
  },
176
+ "./studio": {
177
+ "require": "./lib/studio/index.cjs",
178
+ "default": "./lib/studio/index.js",
179
+ "types": "./lib/studio/index.d.ts"
180
+ },
181
+ "./theme": {
182
+ "require": "./lib/theme/index.cjs",
183
+ "default": "./lib/theme/index.js",
184
+ "types": "./lib/theme/index.d.ts"
185
+ },
146
186
  "./ticker": {
147
187
  "require": "./lib/ticker/index.cjs",
148
188
  "default": "./lib/ticker/index.js",
@@ -157,18 +197,29 @@
157
197
  "require": "./lib/video/index.cjs",
158
198
  "default": "./lib/video/index.js",
159
199
  "types": "./lib/video/index.d.ts"
200
+ },
201
+ "./window-resizer": {
202
+ "require": "./lib/window-resizer/index.cjs",
203
+ "default": "./lib/window-resizer/index.js",
204
+ "types": "./lib/window-resizer/index.d.ts"
160
205
  }
161
206
  },
162
207
  "typesVersions": {
163
208
  "*": {
209
+ "accordion": [
210
+ "lib/accordion/index.d.ts"
211
+ ],
164
212
  "animation": [
165
213
  "lib/animation/index.d.ts"
166
214
  ],
167
215
  "attribute": [
168
216
  "lib/attribute/index.d.ts"
169
217
  ],
170
- "canvas-2d": [
171
- "lib/canvas-2d/index.d.ts"
218
+ "canvas": [
219
+ "lib/canvas/index.d.ts"
220
+ ],
221
+ "connector": [
222
+ "lib/connector/index.d.ts"
172
223
  ],
173
224
  "controls": [
174
225
  "lib/controls/index.d.ts"
@@ -194,6 +245,9 @@
194
245
  "intersector": [
195
246
  "lib/intersector/index.d.ts"
196
247
  ],
248
+ "jsx": [
249
+ "lib/jsx/index.d.ts"
250
+ ],
197
251
  "ladder": [
198
252
  "lib/ladder/index.d.ts"
199
253
  ],
@@ -203,12 +257,12 @@
203
257
  "loading": [
204
258
  "lib/loading/index.d.ts"
205
259
  ],
206
- "measurer": [
207
- "lib/measurer/index.d.ts"
208
- ],
209
260
  "media": [
210
261
  "lib/media/index.d.ts"
211
262
  ],
263
+ "modal": [
264
+ "lib/modal/index.d.ts"
265
+ ],
212
266
  "morph": [
213
267
  "lib/morph/index.d.ts"
214
268
  ],
@@ -218,8 +272,8 @@
218
272
  "order": [
219
273
  "lib/order/index.d.ts"
220
274
  ],
221
- "resizer": [
222
- "lib/resizer/index.d.ts"
275
+ "popover": [
276
+ "lib/popover/index.d.ts"
223
277
  ],
224
278
  "router": [
225
279
  "lib/router/index.d.ts"
@@ -230,12 +284,21 @@
230
284
  "scroll-entries": [
231
285
  "lib/scroll-entries/index.d.ts"
232
286
  ],
287
+ "select": [
288
+ "lib/select/index.d.ts"
289
+ ],
233
290
  "source": [
234
291
  "lib/source/index.d.ts"
235
292
  ],
236
293
  "store": [
237
294
  "lib/store/index.d.ts"
238
295
  ],
296
+ "studio": [
297
+ "lib/studio/index.d.ts"
298
+ ],
299
+ "theme": [
300
+ "lib/theme/index.d.ts"
301
+ ],
239
302
  "ticker": [
240
303
  "lib/ticker/index.d.ts"
241
304
  ],
@@ -251,24 +314,23 @@
251
314
  "dev": "vite --mode site",
252
315
  "build:lib": "tsc && vite build --mode lib",
253
316
  "build:site": "tsc && vite build --mode site",
254
- "preview": "vite preview",
255
- "pp": "npm publish --access public"
317
+ "preview": "vite preview"
256
318
  },
257
319
  "devDependencies": {
258
- "@types/node": "^20.11.5",
259
- "@types/three": "^0.160.0",
260
- "vite": "^5.0.12",
320
+ "@types/node": "^20.11.17",
321
+ "@types/three": "^0.161.2",
322
+ "vite": "5.1.1",
261
323
  "vite-plugin-dts": "^3.7.2",
262
- "vite-plugin-html-components": "^0.1.2"
324
+ "vite-plugin-htmc": "^0.1.1"
263
325
  },
264
326
  "dependencies": {
265
- "detect-gpu": "^5.0.37",
266
- "three": "^0.160.1",
327
+ "detect-gpu": "^5.0.38",
328
+ "three": "^0.161.0",
267
329
  "urlpattern-polyfill": "^10.0.0"
268
330
  },
269
331
  "peerDependencies": {
270
332
  "detect-gpu": "^5.0.37",
271
- "three": "^0.160.1",
333
+ "three": "^0.161.0",
272
334
  "urlpattern-polyfill": "^10.0.0"
273
335
  }
274
336
  }
@@ -1 +0,0 @@
1
- "use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-WXFmsaEI.cjs"),E=require("./ticker/index.cjs");var g,S,y,n,l,x,m,f,q,c,F,P,d,A;class j extends w.Store{constructor(t){super(0,t);a(this,d);a(this,g,void 0);a(this,S,void 0);a(this,y,void 0);a(this,n,void 0);a(this,l,void 0);a(this,x,void 0);a(this,m,void 0);a(this,f,new w.Store(!1));a(this,q,0);a(this,c,0);a(this,F,t=>{this.set(t.current)});a(this,P,t=>{const r=this.current;this.handleAnimationFrame(t);const u=Math.abs(r-this.target);h(this,c,u/t.elapsed)});h(this,S,t==null?void 0:t.order),h(this,g,t==null?void 0:t.maxFPS),h(this,y,t==null?void 0:t.culling),h(this,l,b(this,d,A).call(this,t==null?void 0:t.min)),h(this,x,b(this,d,A).call(this,t==null?void 0:t.max)),h(this,n,this.current=0)}get target(){return i(this,n)}get isRunning(){return i(this,f)}get direction(){return i(this,q)}get maxFPS(){return i(this,g)}get speed(){return i(this,c)}get min(){return i(this,l).call(this)}set min(t){h(this,l,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get max(){return i(this,x).call(this)}set max(t){h(this,x,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get delta(){return this.max-this.min}get progress(){return this.delta?L.fix((this.current-this.min)/this.delta,6):0}get setter(){return i(this,m)}get entry(){return D(v({},super.entry),{min:this.min,max:this.max,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}set setter(t){var r,u;(r=i(this,m))==null||r.unsubscribe(i(this,F)),h(this,m,t),(u=i(this,m))==null||u.subscribe(i(this,F))}set(t,r=!1){const u=i(this,n);h(this,n,_.clamp(t,this.min,this.max)),r&&(this.current=i(this,n)),i(this,n)!==u&&(h(this,c,0),h(this,q,Math.sign(t-i(this,n))||1),this.update())}shift(t,r=!1){this.set(i(this,n)+t,r)}close(){var t;super.close(),this.unlistenAnimationFrame(),(t=i(this,m))==null||t.unsubscribe(i(this,F)),h(this,m,void 0)}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){i(this,f).current=!0,E.ticker.subscribe(i(this,P),{maxFPS:i(this,g),order:i(this,S),culling:i(this,y)})}unlistenAnimationFrame(){h(this,c,0),i(this,f).current=!1,E.ticker.unsubscribe(i(this,P))}}g=new WeakMap,S=new WeakMap,y=new WeakMap,n=new WeakMap,l=new WeakMap,x=new WeakMap,m=new WeakMap,f=new WeakMap,q=new WeakMap,c=new WeakMap,F=new WeakMap,P=new WeakMap,d=new WeakSet,A=function(t){const r=t||0;return typeof r=="function"?r:()=>r};class J extends j{constructor(t){var r,u;super(D(v({},t),{min:(r=t==null?void 0:t.min)!=null?r:-1/0,max:(u=t==null?void 0:t.max)!=null?u:1/0}));R(this,"damping");this.damping=(t==null?void 0:t.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(t){L.fix(this.current,4)===L.fix(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=_.damp(this.current,this.target,this.damping,t.elapsed)}}exports.Animated=j;exports.Damped=J;
@@ -1,152 +0,0 @@
1
- var q = Object.defineProperty, z = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var C = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var D = (s, e, t) => e in s ? q(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, I = (s, e) => {
6
- for (var t in e || (e = {}))
7
- C.call(e, t) && D(s, t, e[t]);
8
- if (k)
9
- for (var t of k(e))
10
- G.call(e, t) && D(s, t, e[t]);
11
- return s;
12
- }, L = (s, e) => z(s, B(e));
13
- var w = (s, e, t) => (D(s, typeof e != "symbol" ? e + "" : e, t), t), M = (s, e, t) => {
14
- if (!e.has(s))
15
- throw TypeError("Cannot " + t);
16
- };
17
- var i = (s, e, t) => (M(s, e, "read from private field"), t ? t.call(s) : e.get(s)), n = (s, e, t) => {
18
- if (e.has(s))
19
- throw TypeError("Cannot add the same private member more than once");
20
- e instanceof WeakSet ? e.add(s) : e.set(s, t);
21
- }, h = (s, e, t, r) => (M(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
22
- var b = (s, e, t) => (M(s, e, "access private method"), t);
23
- import { c as H, d as J } from "./math-_a3IpKOc.js";
24
- import { f as R } from "./number-bCHB2GAD.js";
25
- import { S as E } from "./Store-2hWEUGTj.js";
26
- import { ticker as j } from "./ticker/index.js";
27
- var g, S, y, a, l, f, u, x, P, c, F, v, d, A;
28
- class K extends E {
29
- constructor(t) {
30
- super(0, t);
31
- n(this, d);
32
- n(this, g, void 0);
33
- n(this, S, void 0);
34
- n(this, y, void 0);
35
- n(this, a, void 0);
36
- n(this, l, void 0);
37
- n(this, f, void 0);
38
- n(this, u, void 0);
39
- n(this, x, new E(!1));
40
- n(this, P, 0);
41
- n(this, c, 0);
42
- n(this, F, (t) => {
43
- this.set(t.current);
44
- });
45
- n(this, v, (t) => {
46
- const r = this.current;
47
- this.handleAnimationFrame(t);
48
- const m = Math.abs(r - this.target);
49
- h(this, c, m / t.elapsed);
50
- });
51
- h(this, S, t == null ? void 0 : t.order), h(this, g, t == null ? void 0 : t.maxFPS), h(this, y, t == null ? void 0 : t.culling), h(this, l, b(this, d, A).call(this, t == null ? void 0 : t.min)), h(this, f, b(this, d, A).call(this, t == null ? void 0 : t.max)), h(this, a, this.current = 0);
52
- }
53
- get target() {
54
- return i(this, a);
55
- }
56
- get isRunning() {
57
- return i(this, x);
58
- }
59
- get direction() {
60
- return i(this, P);
61
- }
62
- get maxFPS() {
63
- return i(this, g);
64
- }
65
- get speed() {
66
- return i(this, c);
67
- }
68
- get min() {
69
- return i(this, l).call(this);
70
- }
71
- set min(t) {
72
- h(this, l, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
73
- }
74
- get max() {
75
- return i(this, f).call(this);
76
- }
77
- set max(t) {
78
- h(this, f, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
79
- }
80
- get delta() {
81
- return this.max - this.min;
82
- }
83
- get progress() {
84
- return this.delta ? R((this.current - this.min) / this.delta, 6) : 0;
85
- }
86
- get setter() {
87
- return i(this, u);
88
- }
89
- get entry() {
90
- return L(I({}, super.entry), {
91
- min: this.min,
92
- max: this.max,
93
- delta: this.delta,
94
- direction: this.direction,
95
- progress: this.progress,
96
- speed: this.speed
97
- });
98
- }
99
- set setter(t) {
100
- var r, m;
101
- (r = i(this, u)) == null || r.unsubscribe(i(this, F)), h(this, u, t), (m = i(this, u)) == null || m.subscribe(i(this, F));
102
- }
103
- set(t, r = !1) {
104
- const m = i(this, a);
105
- h(this, a, H(t, this.min, this.max)), r && (this.current = i(this, a)), i(this, a) !== m && (h(this, c, 0), h(this, P, Math.sign(t - i(this, a)) || 1), this.update());
106
- }
107
- shift(t, r = !1) {
108
- this.set(i(this, a) + t, r);
109
- }
110
- close() {
111
- var t;
112
- super.close(), this.unlistenAnimationFrame(), (t = i(this, u)) == null || t.unsubscribe(i(this, F)), h(this, u, void 0);
113
- }
114
- reset() {
115
- this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
116
- }
117
- listenAnimationFrame() {
118
- i(this, x).current = !0, j.subscribe(i(this, v), {
119
- maxFPS: i(this, g),
120
- order: i(this, S),
121
- culling: i(this, y)
122
- });
123
- }
124
- unlistenAnimationFrame() {
125
- h(this, c, 0), i(this, x).current = !1, j.unsubscribe(i(this, v));
126
- }
127
- }
128
- g = new WeakMap(), S = new WeakMap(), y = new WeakMap(), a = new WeakMap(), l = new WeakMap(), f = new WeakMap(), u = new WeakMap(), x = new WeakMap(), P = new WeakMap(), c = new WeakMap(), F = new WeakMap(), v = new WeakMap(), d = new WeakSet(), A = function(t) {
129
- const r = t || 0;
130
- return typeof r == "function" ? r : () => r;
131
- };
132
- class V extends K {
133
- constructor(t) {
134
- var r, m;
135
- super(L(I({}, t), {
136
- min: (r = t == null ? void 0 : t.min) != null ? r : -1 / 0,
137
- max: (m = t == null ? void 0 : t.max) != null ? m : 1 / 0
138
- }));
139
- w(this, "damping");
140
- this.damping = (t == null ? void 0 : t.damping) || 0;
141
- }
142
- update() {
143
- this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
144
- }
145
- handleAnimationFrame(t) {
146
- R(this.current, 4) === R(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = J(this.current, this.target, this.damping, t.elapsed);
147
- }
148
- }
149
- export {
150
- K as A,
151
- V as D
152
- };
@@ -1 +0,0 @@
1
- "use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(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)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-WXFmsaEI.cjs");var l,g,q,x,a,p,E;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,E,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const d=/\d+x/g,h=i.find(f=>f.match(d));c(this,q,h?parseInt(h):1);const y=/\d+max/g,w=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(w));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${r(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")),c(this,E,"."+i[i.length-1])}get url(){return r(this,l)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,x)}get extension(){return r(this,E)}get queryType(){return r(this,p)}get queryPx(){return r(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,E=new WeakMap;var m;class b{constructor(s){o(this,m,void 0);c(this,m,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const d=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...d,...h]:[...d,...h]).forEach(e=>{r(this,m).has(e[0])||r(this,m).set(e[0],[]),r(this,m).get(e[0]).push(e[1])})}get mediaBuckets(){return r(this,m)}}m=new WeakMap;var P,S;class B extends z.Store{constructor(t){super(void 0);o(this,P,void 0);o(this,S,()=>{let t;r(this,P).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,d=0;t==null||t.forEach(h=>{h.density>d&&h.density<=Math.max(devicePixelRatio,1)&&(d=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,P,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){R.resizer.subscribe(r(this,S),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){R.resizer.unsubscribe(r(this,S))}}P=new WeakMap,S=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -1,135 +0,0 @@
1
- var b = (s, t, e) => {
2
- if (!t.has(s))
3
- throw TypeError("Cannot " + e);
4
- };
5
- var r = (s, t, e) => (b(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
6
- if (t.has(s))
7
- throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(s) : t.set(s, e);
9
- }, i = (s, t, e, n) => (b(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e);
10
- var w = (s, t, e) => (b(s, t, "access private method"), e);
11
- import { i as A } from "./browser-S4eq8AeN.js";
12
- var l, f, S;
13
- class k {
14
- constructor() {
15
- a(this, l, null);
16
- a(this, f, void 0);
17
- a(this, S, "");
18
- A && (i(this, f, document.documentElement.getAttribute("data-project") || void 0), i(this, S, r(this, f) ? r(this, f) + "-store-registry" : "store-registry"));
19
- }
20
- get projectName() {
21
- return r(this, f);
22
- }
23
- get localStoreRegistryName() {
24
- return r(this, S);
25
- }
26
- get loadedState() {
27
- return r(this, l);
28
- }
29
- saveState() {
30
- const t = this.getState(), e = JSON.stringify(t);
31
- localStorage.setItem(r(this, S), e);
32
- }
33
- loadState(t = localStorage.getItem(r(this, S))) {
34
- t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), o.current.forEach((e) => {
35
- this.updateStore(e);
36
- }));
37
- }
38
- resetState() {
39
- o.current.forEach((t) => {
40
- t.reset();
41
- }), this.saveState();
42
- }
43
- updateStore(t) {
44
- var n, y;
45
- if (!Array.isArray((n = r(this, l)) == null ? void 0 : n.stores))
46
- return t;
47
- const e = t.passport;
48
- if (e) {
49
- const N = (y = r(this, l)) == null ? void 0 : y.stores.find((j) => j.name === e.name);
50
- N && (t.current = N.value);
51
- }
52
- return t;
53
- }
54
- getState() {
55
- const t = {
56
- stores: []
57
- };
58
- return o.current.forEach((e) => {
59
- e.passport && t.stores.push({
60
- value: e.current,
61
- name: e.passport.name
62
- });
63
- }), t;
64
- }
65
- }
66
- l = new WeakMap(), f = new WeakMap(), S = new WeakMap();
67
- const q = new k();
68
- var c, d, g, u, m, h, p, v, R;
69
- class z {
70
- constructor(t, e) {
71
- a(this, v);
72
- a(this, c, void 0);
73
- a(this, d, void 0);
74
- a(this, g, void 0);
75
- a(this, u, void 0);
76
- a(this, m, void 0);
77
- a(this, h, /* @__PURE__ */ new Set());
78
- a(this, p, void 0);
79
- i(this, c, e == null ? void 0 : e.passport), i(this, d, t), i(this, g, void 0), i(this, u, t), i(this, m, (e == null ? void 0 : e.equalityCheck) || ((n, y) => n === y)), i(this, p, (e == null ? void 0 : e.validate) || ((n) => n)), r(this, c) && q.updateStore(this);
80
- }
81
- get passport() {
82
- return r(this, c);
83
- }
84
- get initial() {
85
- return r(this, d);
86
- }
87
- get previous() {
88
- return r(this, g);
89
- }
90
- get current() {
91
- return r(this, u);
92
- }
93
- set current(t) {
94
- r(this, m).call(this, r(this, u), t) || (i(this, g, r(this, u)), i(this, u, r(this, p).call(this, t)), w(this, v, R).call(this));
95
- }
96
- get subscribers() {
97
- return r(this, h);
98
- }
99
- get entry() {
100
- return {
101
- current: r(this, u),
102
- previous: r(this, g)
103
- };
104
- }
105
- subscribe(t) {
106
- return r(this, c) && !r(this, h).size && C(this), r(this, h).add(t), t(this.entry), () => {
107
- this.unsubscribe(t);
108
- };
109
- }
110
- unsubscribe(t) {
111
- r(this, h).delete(t), r(this, c) && !r(this, h).size && E(this);
112
- }
113
- reset() {
114
- this.current = this.initial;
115
- }
116
- close() {
117
- r(this, h).clear(), r(this, c) && E(this);
118
- }
119
- }
120
- c = new WeakMap(), d = new WeakMap(), g = new WeakMap(), u = new WeakMap(), m = new WeakMap(), h = new WeakMap(), p = new WeakMap(), v = new WeakSet(), R = function() {
121
- for (const t of r(this, h))
122
- t(this.entry);
123
- };
124
- const o = new z([]);
125
- function C(s) {
126
- o.current.find((t) => t.passport.name === s.passport.name) || (o.current = [...o.current, s]);
127
- }
128
- function E(s) {
129
- o.current.includes(s) && (o.current = o.current.filter((t) => t !== s));
130
- }
131
- export {
132
- z as S,
133
- o as a,
134
- q as s
135
- };
@@ -1 +0,0 @@
1
- "use strict";var b=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(b(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,c)=>(b(s,t,"write to private field"),c?c.call(s,e):t.set(s,e),e);var w=(s,t,e)=>(b(s,t,"access private method"),e);const k=require("./browser-QbF6EW-w.cjs");var l,f,S;class z{constructor(){a(this,l,null);a(this,f,void 0);a(this,S,"");k.isBrowser&&(i(this,f,document.documentElement.getAttribute("data-project")||void 0),i(this,S,r(this,f)?r(this,f)+"-store-registry":"store-registry"))}get projectName(){return r(this,f)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),n.current.forEach(e=>{this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var c,p;if(!Array.isArray((c=r(this,l))==null?void 0:c.stores))return t;const e=t.passport;if(e){const N=(p=r(this,l))==null?void 0:p.stores.find(A=>A.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,f=new WeakMap,S=new WeakMap;const E=new z;var u,d,g,o,y,h,m,v,q;class j{constructor(t,e){a(this,v);a(this,u,void 0);a(this,d,void 0);a(this,g,void 0);a(this,o,void 0);a(this,y,void 0);a(this,h,new Set);a(this,m,void 0);i(this,u,e==null?void 0:e.passport),i(this,d,t),i(this,g,void 0),i(this,o,t),i(this,y,(e==null?void 0:e.equalityCheck)||((c,p)=>c===p)),i(this,m,(e==null?void 0:e.validate)||(c=>c)),r(this,u)&&E.updateStore(this)}get passport(){return r(this,u)}get initial(){return r(this,d)}get previous(){return r(this,g)}get current(){return r(this,o)}set current(t){r(this,y).call(this,r(this,o),t)||(i(this,g,r(this,o)),i(this,o,r(this,m).call(this,t)),w(this,v,q).call(this))}get subscribers(){return r(this,h)}get entry(){return{current:r(this,o),previous:r(this,g)}}subscribe(t){return r(this,u)&&!r(this,h).size&&C(this),r(this,h).add(t),t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,h).delete(t),r(this,u)&&!r(this,h).size&&R(this)}reset(){this.current=this.initial}close(){r(this,h).clear(),r(this,u)&&R(this)}}u=new WeakMap,d=new WeakMap,g=new WeakMap,o=new WeakMap,y=new WeakMap,h=new WeakMap,m=new WeakMap,v=new WeakSet,q=function(){for(const t of r(this,h))t(this.entry)};const n=new j([]);function C(s){n.current.find(t=>t.passport.name===s.passport.name)||(n.current=[...n.current,s])}function R(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
@@ -1,102 +0,0 @@
1
- var D = Object.defineProperty;
2
- var I = (t, i, e) => i in t ? D(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
- var E = (t, i, e) => (I(t, typeof i != "symbol" ? i + "" : i, e), e), v = (t, i, e) => {
4
- if (!i.has(t))
5
- throw TypeError("Cannot " + e);
6
- };
7
- var s = (t, i, e) => (v(t, i, "read from private field"), e ? e.call(t) : i.get(t)), a = (t, i, e) => {
8
- if (i.has(t))
9
- throw TypeError("Cannot add the same private member more than once");
10
- i instanceof WeakSet ? i.add(t) : i.set(t, e);
11
- }, h = (t, i, e, n) => (v(t, i, "write to private field"), n ? n.call(t, e) : i.set(t, e), e);
12
- import { i as r } from "./browser-S4eq8AeN.js";
13
- import { g as x } from "./dom-bHEwc_xV.js";
14
- import { Notifier as M } from "./notifier/index.js";
15
- var y;
16
- class b {
17
- constructor() {
18
- a(this, y, new M());
19
- }
20
- get changeEvent() {
21
- return s(this, y);
22
- }
23
- }
24
- y = new WeakMap();
25
- var w, c;
26
- class A {
27
- constructor() {
28
- a(this, w, void 0);
29
- a(this, c, !0);
30
- }
31
- get isIdle() {
32
- return s(this, c);
33
- }
34
- registerInteraction() {
35
- clearTimeout(s(this, w)), h(this, c, !1), h(this, w, setTimeout(() => {
36
- h(this, c, !0);
37
- }, 2e3));
38
- }
39
- }
40
- w = new WeakMap(), c = new WeakMap();
41
- const L = new A();
42
- var l, g;
43
- class P extends b {
44
- constructor(e) {
45
- super();
46
- a(this, l, null);
47
- a(this, g, (e) => {
48
- const n = e.shiftKey ? -1 : 1;
49
- let u = !0;
50
- e.code === "Space" ? this.changeEvent.notify(n * 500) : e.code === "ArrowLeft" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowRight" ? this.changeEvent.notify(1 * 100) : e.code === "ArrowUp" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowDown" ? this.changeEvent.notify(1 * 100) : e.code === "PageUp" ? this.changeEvent.notify(-1 * 1e3) : e.code === "PageDown" ? this.changeEvent.notify(1 * 1e3) : e.code === "Home" ? this.changeEvent.notify("min") : e.code === "End" ? this.changeEvent.notify("max") : u = !1, u && L.registerInteraction();
51
- });
52
- r && h(this, l, e != null && e.element && x(e.element) || window);
53
- }
54
- connect() {
55
- r && s(this, l).addEventListener("keydown", s(this, g));
56
- }
57
- disconnect() {
58
- r && s(this, l).removeEventListener("keydown", s(this, g));
59
- }
60
- }
61
- l = new WeakMap(), g = new WeakMap();
62
- var d, f, o, m;
63
- class U extends b {
64
- constructor(e) {
65
- super();
66
- E(this, "axis");
67
- E(this, "speed");
68
- E(this, "debounce");
69
- a(this, d, null);
70
- a(this, f, void 0);
71
- a(this, o, void 0);
72
- a(this, m, (e) => {
73
- let n = 0;
74
- if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
75
- if (n = (this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, L.registerInteraction(), e.stopPropagation(), e.preventDefault(), this.debounce) {
76
- const u = Date.now();
77
- if (u - s(this, o) > 40 && (n = 100 * Math.sign(n)), h(this, o, u), Math.abs(n) < 100 || s(this, f))
78
- return;
79
- this.changeEvent.notify(n), h(this, f, setTimeout(() => {
80
- h(this, f, void 0);
81
- }, 80));
82
- } else
83
- this.changeEvent.notify(n);
84
- });
85
- this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, h(this, o, Date.now()), r && h(this, d, e != null && e.element && x(e.element) || window);
86
- }
87
- connect() {
88
- r && s(this, d).addEventListener("wheel", s(this, m), {
89
- passive: !1
90
- });
91
- }
92
- disconnect() {
93
- r && s(this, d).removeEventListener("wheel", s(this, m));
94
- }
95
- }
96
- d = new WeakMap(), f = new WeakMap(), o = new WeakMap(), m = new WeakMap();
97
- export {
98
- b as C,
99
- P as K,
100
- U as W,
101
- L as u
102
- };
@@ -1 +0,0 @@
1
- "use strict";var B=Object.defineProperty;var C=(t,s,e)=>s in t?B(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var m=(t,s,e)=>(C(t,typeof s!="symbol"?s+"":s,e),e),x=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(x(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(x(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const a=require("./browser-QbF6EW-w.cjs"),L=require("./dom-QhWsdQS2.cjs"),D=require("./notifier/index.cjs");var y;class v{constructor(){r(this,y,new D.Notifier)}get changeEvent(){return i(this,y)}}y=new WeakMap;var u,c;class I{constructor(){r(this,u,void 0);r(this,c,!0)}get isIdle(){return i(this,c)}registerInteraction(){clearTimeout(i(this,u)),h(this,c,!1),h(this,u,setTimeout(()=>{h(this,c,!0)},2e3))}}u=new WeakMap,c=new WeakMap;const b=new I;var l,g;class M extends v{constructor(e){super();r(this,l,null);r(this,g,e=>{const n=e.shiftKey?-1:1;let w=!0;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"?this.changeEvent.notify("max"):w=!1,w&&b.registerInteraction()});a.isBrowser&&h(this,l,e!=null&&e.element&&L.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,l).addEventListener("keydown",i(this,g))}disconnect(){a.isBrowser&&i(this,l).removeEventListener("keydown",i(this,g))}}l=new WeakMap,g=new WeakMap;var d,o,f,E;class A extends v{constructor(e){super();m(this,"axis");m(this,"speed");m(this,"debounce");r(this,d,null);r(this,o,void 0);r(this,f,void 0);r(this,E,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="x"?e.deltaX:e.deltaY)*this.speed,b.registerInteraction(),e.stopPropagation(),e.preventDefault(),this.debounce){const w=Date.now();if(w-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,w),Math.abs(n)<100||i(this,o))return;this.changeEvent.notify(n),h(this,o,setTimeout(()=>{h(this,o,void 0)},80))}else this.changeEvent.notify(n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,f,Date.now()),a.isBrowser&&h(this,d,e!=null&&e.element&&L.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,d).addEventListener("wheel",i(this,E),{passive:!1})}disconnect(){a.isBrowser&&i(this,d).removeEventListener("wheel",i(this,E))}}d=new WeakMap,o=new WeakMap,f=new WeakMap,E=new WeakMap;exports.Controls=v;exports.KeyboardControls=M;exports.WheelControls=A;exports.user=b;