aptechka 0.25.1 → 0.26.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 (188) hide show
  1. package/lib/Animation-B9m8bw96.cjs +1 -0
  2. package/lib/Animation-DN95L7Xo.js +105 -0
  3. package/lib/Damped-CTsV8tl_.cjs +1 -0
  4. package/lib/Damped-Chu29wn-.js +53 -0
  5. package/lib/Tweened-BUuSLSF7.js +44 -0
  6. package/lib/Tweened-BttGiyB0.cjs +1 -0
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.js +6 -53
  9. package/lib/canvas-CU5Xjahf.cjs +1 -0
  10. package/lib/canvas-DeZ0SLUJ.js +34 -0
  11. package/lib/connector/index.cjs +1 -1
  12. package/lib/connector/index.js +1 -1
  13. package/lib/controls/index.cjs +1 -1
  14. package/lib/controls/index.js +3 -3
  15. package/lib/coordinates-CgdGoSYs.js +24 -0
  16. package/lib/coordinates-D8Np3cPD.cjs +1 -0
  17. package/lib/css-property/index.cjs +1 -1
  18. package/lib/css-property/index.js +1 -1
  19. package/lib/dev/index.cjs +1 -1
  20. package/lib/dev/index.js +1 -1
  21. package/lib/device/index.cjs +1 -1
  22. package/lib/device/index.js +1 -1
  23. package/lib/element-resizer/react/index.cjs +1 -0
  24. package/lib/element-resizer/react/index.js +8 -0
  25. package/lib/element-resizer/vanilla/index.cjs +1 -0
  26. package/lib/element-resizer/{index.js → vanilla/index.js} +2 -2
  27. package/lib/en3/index.cjs +8 -0
  28. package/lib/en3/index.js +374 -0
  29. package/lib/events-CsVF98U6.js +6 -0
  30. package/lib/events-KVanG9sR.cjs +1 -0
  31. package/lib/intersector/react/index.cjs +1 -0
  32. package/lib/intersector/react/index.js +12 -0
  33. package/lib/intersector/vanilla/index.cjs +1 -0
  34. package/lib/intersector/{index.js → vanilla/index.js} +2 -2
  35. package/lib/jss-CjccJC-K.js +21 -0
  36. package/lib/jss-GJLvaNfT.cjs +1 -0
  37. package/lib/layout-box/index.cjs +1 -1
  38. package/lib/layout-box/index.js +3 -3
  39. package/lib/loading/index.cjs +1 -1
  40. package/lib/loading/index.js +42 -85
  41. package/lib/math-BOBiC4TN.js +45 -0
  42. package/lib/math-GDWEqu7y.cjs +1 -0
  43. package/lib/media/index.cjs +1 -1
  44. package/lib/media/index.js +1 -1
  45. package/lib/media-elements/index.cjs +5 -0
  46. package/lib/media-elements/index.js +389 -0
  47. package/lib/morph/index.cjs +1 -0
  48. package/lib/morph/index.js +227 -0
  49. package/lib/need_redo_tweaker/index.cjs +4 -4
  50. package/lib/need_redo_tweaker/index.js +100 -82
  51. package/lib/object-CCiXnER2.cjs +1 -0
  52. package/lib/object-D6MVWB4l.js +85 -0
  53. package/lib/pointer/index.cjs +1 -0
  54. package/lib/pointer/index.js +151 -0
  55. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  56. package/lib/polyfills-X6KXuHg-.js +33 -0
  57. package/lib/router/index.cjs +1 -0
  58. package/lib/router/index.js +266 -0
  59. package/lib/scroll/react/index.cjs +30 -0
  60. package/lib/scroll/react/index.js +761 -0
  61. package/lib/scroll/vanilla/index.cjs +1 -0
  62. package/lib/scroll/vanilla/index.js +1120 -0
  63. package/lib/slicer/index.cjs +11 -0
  64. package/lib/slicer/index.js +108 -0
  65. package/lib/source/index.cjs +1 -1
  66. package/lib/source/index.js +1 -1
  67. package/lib/style-BqzUd8Fy.cjs +1 -0
  68. package/lib/style-M-RBTQxT.js +21 -0
  69. package/lib/ticker/react/index.cjs +1 -0
  70. package/lib/ticker/react/index.js +19 -0
  71. package/lib/ticker/vanilla/index.cjs +1 -0
  72. package/lib/ticker/{index.js → vanilla/index.js} +2 -2
  73. package/lib/url-BDc0awLa.js +22 -0
  74. package/lib/url-C3Vj8msL.cjs +1 -0
  75. package/lib/utils/index.cjs +1 -1
  76. package/lib/utils/index.js +146 -220
  77. package/lib/window-resizer/react/index.cjs +1 -0
  78. package/lib/window-resizer/react/index.js +8 -0
  79. package/lib/window-resizer/vanilla/index.cjs +1 -0
  80. package/lib/window-resizer/vanilla/index.js +32 -0
  81. package/package.json +132 -20
  82. package/lib/Tweened-CDYmG9hk.js +0 -138
  83. package/lib/Tweened-DlyMbHu_.cjs +0 -1
  84. package/lib/animation/Animation.d.ts +0 -34
  85. package/lib/animation/Damped.d.ts +0 -18
  86. package/lib/animation/Tweened.d.ts +0 -14
  87. package/lib/animation/index.d.ts +0 -3
  88. package/lib/attribute/index.d.ts +0 -14
  89. package/lib/class-linked-status/index.d.ts +0 -11
  90. package/lib/connector/index.d.ts +0 -15
  91. package/lib/controls/AutoplayControls.d.ts +0 -16
  92. package/lib/controls/Controls.d.ts +0 -8
  93. package/lib/controls/DragControls.d.ts +0 -15
  94. package/lib/controls/KeyboardControls.d.ts +0 -13
  95. package/lib/controls/WheelControls.d.ts +0 -18
  96. package/lib/controls/index.d.ts +0 -5
  97. package/lib/css-property/index.d.ts +0 -16
  98. package/lib/css-unit-parser/index.d.ts +0 -6
  99. package/lib/css-value-parser/index.d.ts +0 -6
  100. package/lib/dev/index.d.ts +0 -1
  101. package/lib/device/Device.d.ts +0 -16
  102. package/lib/device/Viewport.d.ts +0 -28
  103. package/lib/device/index.d.ts +0 -2
  104. package/lib/element-resizer/index.cjs +0 -1
  105. package/lib/element-resizer/index.d.ts +0 -9
  106. package/lib/intersector/index.cjs +0 -1
  107. package/lib/intersector/index.d.ts +0 -9
  108. package/lib/ladder/index.d.ts +0 -23
  109. package/lib/layout-box/index.d.ts +0 -95
  110. package/lib/loading/index.d.ts +0 -38
  111. package/lib/media/index.d.ts +0 -11
  112. package/lib/need_redo_tweaker/CheckboxElement.d.ts +0 -14
  113. package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +0 -10
  114. package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +0 -10
  115. package/lib/need_redo_tweaker/TweakerElement.d.ts +0 -17
  116. package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +0 -19
  117. package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +0 -23
  118. package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +0 -10
  119. package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +0 -13
  120. package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +0 -10
  121. package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +0 -9
  122. package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +0 -10
  123. package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +0 -74
  124. package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +0 -2
  125. package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +0 -12
  126. package/lib/need_redo_tweaker/element-constructor/index.d.ts +0 -4
  127. package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +0 -1
  128. package/lib/need_redo_tweaker/element-constructor/tags.d.ts +0 -118
  129. package/lib/need_redo_tweaker/index.d.ts +0 -1
  130. package/lib/need_redo_tweaker/select/SelectElement.d.ts +0 -24
  131. package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +0 -12
  132. package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +0 -13
  133. package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +0 -6
  134. package/lib/need_redo_tweaker/select/index.d.ts +0 -4
  135. package/lib/need_redo_tweaker/theme/index.d.ts +0 -35
  136. package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +0 -14
  137. package/lib/need_redo_tweaker/tweakerStorage.d.ts +0 -23
  138. package/lib/notifier/index.d.ts +0 -8
  139. package/lib/order/index.d.ts +0 -22
  140. package/lib/polyfills-AItxku8u.js +0 -76
  141. package/lib/polyfills-Caa6z-Ay.cjs +0 -1
  142. package/lib/scroll-entries/index.d.ts +0 -20
  143. package/lib/source/SourceClass.d.ts +0 -11
  144. package/lib/source/SourceManager.d.ts +0 -13
  145. package/lib/source/SourceSet.d.ts +0 -8
  146. package/lib/source/index.d.ts +0 -3
  147. package/lib/store/Composed.d.ts +0 -7
  148. package/lib/store/Derived.d.ts +0 -7
  149. package/lib/store/DerivedArray.d.ts +0 -7
  150. package/lib/store/Resource.d.ts +0 -11
  151. package/lib/store/Store.d.ts +0 -35
  152. package/lib/store/StoreRegistry.d.ts +0 -22
  153. package/lib/store/index.d.ts +0 -6
  154. package/lib/style-3MQV6Cnl.js +0 -122
  155. package/lib/style-BoXabX_p.cjs +0 -1
  156. package/lib/ticker/index.cjs +0 -1
  157. package/lib/ticker/index.d.ts +0 -21
  158. package/lib/utils/array.d.ts +0 -2
  159. package/lib/utils/attributes.d.ts +0 -2
  160. package/lib/utils/browser.d.ts +0 -1
  161. package/lib/utils/bytes.d.ts +0 -1
  162. package/lib/utils/canvas.d.ts +0 -7
  163. package/lib/utils/collisions.d.ts +0 -3
  164. package/lib/utils/coordinates.d.ts +0 -13
  165. package/lib/utils/cssom.d.ts +0 -5
  166. package/lib/utils/decoding.d.ts +0 -2
  167. package/lib/utils/dom.d.ts +0 -5
  168. package/lib/utils/easings.d.ts +0 -17
  169. package/lib/utils/events.d.ts +0 -8
  170. package/lib/utils/file.d.ts +0 -1
  171. package/lib/utils/function.d.ts +0 -2
  172. package/lib/utils/gestures.d.ts +0 -1
  173. package/lib/utils/index.d.ts +0 -27
  174. package/lib/utils/jss.d.ts +0 -12
  175. package/lib/utils/layout.d.ts +0 -3
  176. package/lib/utils/math.d.ts +0 -11
  177. package/lib/utils/number.d.ts +0 -3
  178. package/lib/utils/object.d.ts +0 -9
  179. package/lib/utils/polyfills.d.ts +0 -1
  180. package/lib/utils/promises.d.ts +0 -1
  181. package/lib/utils/string.d.ts +0 -8
  182. package/lib/utils/style.d.ts +0 -2
  183. package/lib/utils/ts-shape.d.ts +0 -20
  184. package/lib/utils/ts-utility.d.ts +0 -26
  185. package/lib/utils/url.d.ts +0 -9
  186. package/lib/window-resizer/index.cjs +0 -1
  187. package/lib/window-resizer/index.d.ts +0 -9
  188. package/lib/window-resizer/index.js +0 -42
@@ -1,30 +1,36 @@
1
- import { a as W, p as j } from "../attributes-69we3byR.js";
2
- import { i as f } from "../browser-0zX67oeU.js";
3
- import { f as V, b as U, a as F, g as K } from "../dom-0S_WDL4g.js";
4
- import { c as G, n as J, f as Y, p as Z, b as X, i as _, m as H, e as L, g as tt, j as et, d as st, o as nt, a as at, h as ot, k as it, l as rt } from "../easings-BKi40vHz.js";
5
- import { b as lt, f as ct, c as ht, a as ft, d as pt, k as dt, j as mt, g as gt, e as yt, i as xt, m as St, h as wt, o as Ct, p as Bt } from "../style-3MQV6Cnl.js";
6
- import { d as Ot, t as bt } from "../function-C10DGppn.js";
7
- import { s as Pt } from "../gestures-D2Fdra_G.js";
8
- import { c as p } from "../string-f0Dnk0L1.js";
9
- import { a as At, g as Dt, i as Mt, k as Qt, s as $t, t as kt, u as Tt } from "../string-f0Dnk0L1.js";
10
- import { g as zt, a as Wt, b as jt } from "../layout-HoBT_Da2.js";
11
- import { e as Vt, f as Ut, c as Ft, d as Kt, l as qt, m as Gt, n as Jt, p as Yt, r as Zt, g as Xt, b as _t, a as Ht, s as Lt, t as te } from "../polyfills-AItxku8u.js";
12
- function g(e, t, ...s) {
13
- return [...e.slice(0, t), ...s, ...e.slice(t)];
14
- }
15
- function y(e, t) {
16
- const s = e.length;
17
- t = t % s;
18
- const n = new Array(s);
19
- for (let a = 0; a < s; a++) {
20
- const o = (a + t) % s;
21
- n[o] = e[a];
1
+ import { a as b, p as y } from "../attributes-69we3byR.js";
2
+ import { i as w } from "../browser-0zX67oeU.js";
3
+ import { a as S, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
4
+ import { g as P, n as v, s as A } from "../coordinates-CgdGoSYs.js";
5
+ import { f as D, b as M, a as R, g as k } from "../dom-0S_WDL4g.js";
6
+ import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
7
+ import { d as ee } from "../events-CsVF98U6.js";
8
+ import { c as te, a as se, g as oe } from "../style-M-RBTQxT.js";
9
+ import { d as re, t as ie } from "../function-C10DGppn.js";
10
+ import { s as ue } from "../gestures-D2Fdra_G.js";
11
+ import { c as fe, s as pe } from "../jss-CjccJC-K.js";
12
+ import { g as de, a as xe, b as ge } from "../layout-HoBT_Da2.js";
13
+ import { e as be, f as ye, c as Ce, d as we, l as Ee, m as Se, r as Oe, b as Be, a as Ie, s as Te } from "../math-BOBiC4TN.js";
14
+ import { n as ve, p as Ae, r as Qe, t as De } from "../polyfills-X6KXuHg-.js";
15
+ import { c as Re, d as ke, i as ze, b as je, a as Ne, m as Ve, e as Ue, o as $e, p as Fe } from "../object-D6MVWB4l.js";
16
+ import { c as We, a as qe, g as Ge, i as He, k as Je, s as Le, t as Ye, u as Ze } from "../string-f0Dnk0L1.js";
17
+ import { c as _e, n as ea, s as aa } from "../url-BDc0awLa.js";
18
+ function i(a, e, ...t) {
19
+ return [...a.slice(0, e), ...t, ...a.slice(e)];
20
+ }
21
+ function c(a, e) {
22
+ const t = a.length;
23
+ e = e % t;
24
+ const s = new Array(t);
25
+ for (let o = 0; o < t; o++) {
26
+ const n = (o + e) % t;
27
+ s[n] = a[o];
22
28
  }
23
- return n;
29
+ return s;
24
30
  }
25
- function x(e, t = 2) {
26
- if (!+e) return "0 Bytes";
27
- const s = 1024, n = t < 0 ? 0 : t, a = [
31
+ function u(a, e = 2) {
32
+ if (!+a) return "0 Bytes";
33
+ const t = 1024, s = e < 0 ? 0 : e, o = [
28
34
  "Bytes",
29
35
  "KiB",
30
36
  "MiB",
@@ -34,214 +40,134 @@ function x(e, t = 2) {
34
40
  "EiB",
35
41
  "ZiB",
36
42
  "YiB"
37
- ], o = Math.floor(Math.log(e) / Math.log(s));
38
- return `${parseFloat((e / Math.pow(s, o)).toFixed(n))} ${a[o]}`;
39
- }
40
- function S(e, t) {
41
- const s = e.measureText(t), n = s.actualBoundingBoxAscent + s.actualBoundingBoxDescent, a = s.width;
42
- return {
43
- height: n,
44
- width: a
45
- };
46
- }
47
- function w(e) {
48
- return Math.floor(e) + 0.5;
49
- }
50
- function C(e, t, s, n, a, o) {
51
- let i = e / t, l = s / n, r = 0, u = 0;
52
- return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (r = n, u = n * i) : (u = s, r = s / i), [
53
- (s - u) * a,
54
- (n - r) * o,
55
- u,
56
- r
57
- ];
58
- }
59
- function B(e, t, s, n, a, o) {
60
- let i = e / t, l = s / n, r = 0, u = 0;
61
- return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (u = s, r = s / i) : (r = n, u = n * i), [
62
- (s - u) * a,
63
- (n - r) * o,
64
- u,
65
- r
66
- ];
67
- }
68
- function E(e, t) {
69
- return e.x < t.x + t.width && e.x > t.x && e.y < t.y + t.height && e.y > t.y;
70
- }
71
- function O(e, t) {
72
- return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2) < t.radius;
73
- }
74
- function b(e, t, s = !1) {
75
- let n = e.x - t.width / 2, a = t.height / 2 - e.y;
76
- return s && (n = n / (t.width / 2), a = a / (t.height / 2)), { x: n, y: a };
43
+ ], n = Math.floor(Math.log(a) / Math.log(t));
44
+ return `${parseFloat((a / Math.pow(t, n)).toFixed(s))} ${o[n]}`;
77
45
  }
78
- function I(e, t) {
79
- const s = e.x / t.width, n = e.y / t.height;
80
- return { x: s, y: n };
46
+ function l(a, e) {
47
+ return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
81
48
  }
82
- function P(e, t) {
83
- return t = t || {
84
- x: 0,
85
- y: 0,
86
- width: document.documentElement.offsetWidth,
87
- height: innerHeight
88
- }, {
89
- x: (e.x - t.x) / t.width * t.width,
90
- y: (e.y - t.y) / t.height * t.height
91
- };
49
+ function f(a, e) {
50
+ return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
92
51
  }
93
- function c(e, t) {
94
- const s = e.styleMap.get(t);
95
- if (s) {
96
- const n = s.toString();
97
- return n.startsWith("var") ? c(e, n.slice(4, -1)) : n;
52
+ function r(a, e) {
53
+ const t = a.styleMap.get(e);
54
+ if (t) {
55
+ const s = t.toString();
56
+ return s.startsWith("var") ? r(a, s.slice(4, -1)) : s;
98
57
  }
99
58
  }
100
- function R(...e) {
101
- const t = {};
102
- return Array.from(document.styleSheets).forEach((s) => {
103
- Array.from(s.cssRules).forEach((n) => {
104
- n instanceof CSSStyleRule && n.selectorText === ":root" && e.forEach((a) => {
105
- const o = c(n, a);
106
- o && (t[a] = o);
59
+ function p(...a) {
60
+ const e = {};
61
+ return Array.from(document.styleSheets).forEach((t) => {
62
+ Array.from(t.cssRules).forEach((s) => {
63
+ s instanceof CSSStyleRule && s.selectorText === ":root" && a.forEach((o) => {
64
+ const n = r(s, o);
65
+ n && (e[o] = n);
107
66
  });
108
67
  });
109
- }), e.forEach((s) => {
110
- t[s] || console.warn(`variable named ${s} not found`);
111
- }), t;
68
+ }), a.forEach((t) => {
69
+ e[t] || console.warn(`variable named ${t} not found`);
70
+ }), e;
112
71
  }
113
- function A(e) {
114
- const t = window.atob(e);
115
- return decodeURIComponent(window.escape(t));
72
+ function m(a) {
73
+ const e = window.atob(a);
74
+ return decodeURIComponent(window.escape(e));
116
75
  }
117
- function D(e) {
118
- const t = window.unescape(encodeURIComponent(e));
119
- return window.btoa(t);
76
+ function d(a) {
77
+ const e = window.unescape(encodeURIComponent(a));
78
+ return window.btoa(e);
120
79
  }
121
- function h(e) {
122
- let t = "";
123
- for (const s in e) {
124
- const n = e[s];
125
- typeof n == "object" ? (t += `${s} {`, t += h(n), t += "}") : t += `${p(s)}: ${n};`;
126
- }
127
- return t;
128
- }
129
- function M(e) {
130
- if (f) {
131
- const t = new CSSStyleSheet();
132
- return t.replaceSync(h(e)), t;
133
- }
134
- return null;
135
- }
136
- function Q(e) {
137
- return new Promise((t) => {
80
+ function x(a) {
81
+ return new Promise((e) => {
138
82
  setTimeout(() => {
139
- t();
140
- }, e);
83
+ e();
84
+ }, a);
141
85
  });
142
86
  }
143
- function $(e, t = "") {
144
- t = t.endsWith("/") ? t.slice(0, -1) : t, e = e.replace(t, ""), e.startsWith("/") && (e = e.slice(1));
145
- const s = e.split("#"), n = s[0].split("?"), a = n[0].startsWith("/") ? n[0] : "/" + n[0], o = t + a, i = n == null ? void 0 : n[1], l = s == null ? void 0 : s[1];
146
- return {
147
- leaf: a,
148
- pathname: o,
149
- parameters: i,
150
- hash: l
151
- };
152
- }
153
- function k(e = "/") {
154
- return e.endsWith("/") || (e += "/"), e.startsWith("/") || (e += "/"), e;
155
- }
156
- function T(e, t, s, n) {
157
- const a = s || location.search, o = n ? n.startsWith("#") ? n : "#" + n : "", i = a ? a.startsWith("?") ? a : "?" + a : "", l = `${t}${o}${i}`;
158
- e === "push" ? history.pushState(null, "", l) : e === "replace" && history.replaceState(null, "", l);
159
- }
160
87
  export {
161
- Vt as calculateDistance,
162
- Ut as calculateDistanceWithRadius,
163
- p as camelToKebab,
164
- At as capitalize,
165
- T as changeHistory,
166
- Ft as clamp,
167
- lt as cloneDeep,
168
- ct as compareObjects,
169
- B as contain,
170
- C as cover,
171
- ht as createJSONAndSave,
172
- M as createStylesheet,
173
- Kt as damp,
174
- Ot as debounce,
175
- D as decode,
176
- ft as dispatchBeforeSizeChangeEvent,
177
- pt as dispatchSizeChangeEvent,
178
- O as dotCircleCollision,
179
- E as dotRectCollision,
180
- G as easeInCubic,
181
- J as easeInExpo,
182
- Y as easeInOutCubic,
183
- Z as easeInOutExpo,
184
- X as easeInOutQuad,
185
- _ as easeInOutQuart,
186
- H as easeInOutQuint,
187
- L as easeInQuad,
188
- tt as easeInQuart,
189
- et as easeInQuint,
190
- st as easeOutCubic,
191
- nt as easeOutExpo,
192
- at as easeOutQuad,
193
- ot as easeOutQuart,
194
- it as easeOutQuint,
195
- A as encode,
196
- V as findParentElement,
197
- U as findScrollParentElement,
198
- w as fixPosition,
199
- x as formatBytes,
200
- Dt as generateId,
201
- F as getAllParentElements,
202
- zt as getCumulativeOffsetLeft,
203
- Wt as getCumulativeOffsetTop,
204
- jt as getCumulativePosition,
205
- K as getElement,
206
- dt as getElementTransitionDurationMS,
207
- mt as getElementTransitionDurationS,
88
+ be as calculateDistance,
89
+ ye as calculateDistanceWithRadius,
90
+ We as camelToKebab,
91
+ qe as capitalize,
92
+ _e as changeHistory,
93
+ Ce as clamp,
94
+ Re as cloneDeep,
95
+ ke as compareObjects,
96
+ S as contain,
97
+ O as cover,
98
+ te as createJSONAndSave,
99
+ fe as createStylesheet,
100
+ we as damp,
101
+ re as debounce,
102
+ d as decode,
103
+ ee as dispatchEvent,
104
+ f as dotCircleCollision,
105
+ l as dotRectCollision,
106
+ j as easeInCubic,
107
+ N as easeInExpo,
108
+ V as easeInOutCubic,
109
+ U as easeInOutExpo,
110
+ $ as easeInOutQuad,
111
+ F as easeInOutQuart,
112
+ K as easeInOutQuint,
113
+ W as easeInQuad,
114
+ q as easeInQuart,
115
+ G as easeInQuint,
116
+ H as easeOutCubic,
117
+ J as easeOutExpo,
118
+ L as easeOutQuad,
119
+ Y as easeOutQuart,
120
+ Z as easeOutQuint,
121
+ m as encode,
122
+ D as findParentElement,
123
+ M as findScrollParentElement,
124
+ B as fixPosition,
125
+ u as formatBytes,
126
+ Ge as generateId,
127
+ R as getAllParentElements,
128
+ de as getCumulativeOffsetLeft,
129
+ xe as getCumulativeOffsetTop,
130
+ ge as getCumulativePosition,
131
+ k as getElement,
132
+ se as getElementTransitionDurationMS,
133
+ oe as getElementTransitionDurationS,
208
134
  P as getPointerPosition,
209
- R as getRootVariables,
210
- g as insert,
211
- f as isBrowser,
212
- gt as isESClass,
213
- yt as isNullish,
214
- xt as isObject,
215
- Mt as isUppercase,
216
- Qt as kebabToCamel,
217
- qt as lerp,
218
- rt as linear,
219
- Gt as mapRange,
220
- S as measureText,
221
- St as mergeDeep,
222
- wt as mixin,
223
- I as normalize,
224
- k as normalizeBase,
225
- Jt as nullishCoalescing,
226
- Ct as omit,
227
- W as parseAttribute,
228
- j as parseAttributeValue,
229
- Bt as pick,
230
- Yt as preciseNumber,
231
- Zt as round,
232
- Xt as roundNumberTo,
233
- b as screenToCartesian,
234
- Pt as setupDrag,
235
- y as shiftArray,
236
- _t as smootherstep,
237
- Ht as smoothstep,
238
- $t as snakeToDotted,
239
- $ as splitPath,
240
- Lt as step,
241
- h as styleToString,
242
- bt as throttle,
243
- kt as toPascalCase,
244
- te as toStep,
245
- Tt as uncapitalize,
246
- Q as wait
135
+ p as getRootVariables,
136
+ i as insert,
137
+ w as isBrowser,
138
+ ze as isESClass,
139
+ je as isNullish,
140
+ Ne as isObject,
141
+ He as isUppercase,
142
+ Je as kebabToCamel,
143
+ Ee as lerp,
144
+ X as linear,
145
+ Se as mapRange,
146
+ I as measureText,
147
+ Ve as mergeDeep,
148
+ Ue as mixin,
149
+ v as normalize,
150
+ ea as normalizeBase,
151
+ ve as nullishCoalescing,
152
+ $e as omit,
153
+ b as parseAttribute,
154
+ y as parseAttributeValue,
155
+ Fe as pick,
156
+ Ae as preciseNumber,
157
+ Oe as round,
158
+ Qe as roundNumberTo,
159
+ A as screenToCartesian,
160
+ ue as setupDrag,
161
+ c as shiftArray,
162
+ Be as smootherstep,
163
+ Ie as smoothstep,
164
+ Le as snakeToDotted,
165
+ aa as splitPath,
166
+ Te as step,
167
+ pe as styleToString,
168
+ ie as throttle,
169
+ Ye as toPascalCase,
170
+ De as toStep,
171
+ Ze as uncapitalize,
172
+ x as wait
247
173
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("../vanilla/index.cjs");function s([e,i]){r.useEffect(()=>n.windowResizer.subscribe(e,i),[e,i])}exports.useWindowResizer=s;
@@ -0,0 +1,8 @@
1
+ import { useEffect as r } from "react";
2
+ import { windowResizer as o } from "../vanilla/index.js";
3
+ function f([e, i]) {
4
+ r(() => o.subscribe(e, i), [e, i]);
5
+ }
6
+ export {
7
+ f as useWindowResizer
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";var w=e=>{throw TypeError(e)};var f=(e,i,s)=>i.has(e)||w("Cannot "+s);var t=(e,i,s)=>(f(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?w("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(f(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../../notifier/index.cjs"),l=require("../../browser-CpzFX2xg.cjs"),R=require("../../function-MthRj-GJ.cjs");var r,n,d;class h extends z.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const b=super.subscribe(s,o);return t(this,r)||s(),b}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
@@ -0,0 +1,32 @@
1
+ var h = (s) => {
2
+ throw TypeError(s);
3
+ };
4
+ var c = (s, e, i) => e.has(s) || h("Cannot " + i);
5
+ var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
6
+ import { Notifier as m } from "../../notifier/index.js";
7
+ import { i as p } from "../../browser-0zX67oeU.js";
8
+ import { d as z } from "../../function-C10DGppn.js";
9
+ var r, o, d;
10
+ class b extends m {
11
+ constructor() {
12
+ super();
13
+ u(this, r, !1);
14
+ u(this, o, () => {
15
+ t(this, r) || (f(this, r, !0), t(this, d).call(this));
16
+ });
17
+ u(this, d, z(() => {
18
+ this.notify(), f(this, r, !1);
19
+ }, 0));
20
+ p && (window.addEventListener("resize", t(this, o)), t(this, o).call(this));
21
+ }
22
+ subscribe(i, n) {
23
+ const w = super.subscribe(i, n);
24
+ return t(this, r) || i(), w;
25
+ }
26
+ }
27
+ r = new WeakMap(), o = new WeakMap(), d = new WeakMap();
28
+ const L = new b();
29
+ export {
30
+ b as WindowResizer,
31
+ L as windowResizer
32
+ };