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
@@ -5,16 +5,18 @@ var Xe = (r, s, t) => s.has(r) || vt("Cannot " + t);
5
5
  var e = (r, s, t) => (Xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), o = (r, s, t) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), c = (r, s, t, i) => (Xe(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t), l = (r, s, t) => (Xe(r, s, "access private method"), t);
6
6
  import { i as X } from "../browser-0zX67oeU.js";
7
7
  import { S as P, s as B, a as j } from "../Store-OTdcl6SX.js";
8
- import { g as yt, k as Ut, d as Et, a as Xt, c as Qt } from "../style-3MQV6Cnl.js";
9
- import { d as jt } from "../function-C10DGppn.js";
10
- import { s as xt } from "../gestures-D2Fdra_G.js";
11
- import "../ticker/index.js";
12
- import { c as Oe, u as es } from "../string-f0Dnk0L1.js";
13
- import { connector as ts } from "../connector/index.js";
14
- import { ViewportMediaRules as ss } from "../device/index.js";
15
- import { n as St, c as is, t as ns } from "../polyfills-AItxku8u.js";
16
- import { elementResizer as kt } from "../element-resizer/index.js";
17
- const os = /* @__PURE__ */ new Set([
8
+ import { a as Ut, c as Xt } from "../style-M-RBTQxT.js";
9
+ import { d as Qt } from "../function-C10DGppn.js";
10
+ import { s as Et } from "../gestures-D2Fdra_G.js";
11
+ import "../ticker/vanilla/index.js";
12
+ import { c as Oe, u as jt } from "../string-f0Dnk0L1.js";
13
+ import { i as yt } from "../object-D6MVWB4l.js";
14
+ import { connector as es } from "../connector/index.js";
15
+ import { ViewportMediaRules as ts } from "../device/index.js";
16
+ import { c as ss } from "../math-BOBiC4TN.js";
17
+ import { n as St, t as is } from "../polyfills-X6KXuHg-.js";
18
+ import { elementResizer as kt } from "../element-resizer/vanilla/index.js";
19
+ const ns = /* @__PURE__ */ new Set([
18
20
  // 'a', 'style', 'title', 'script',
19
21
  "animate",
20
22
  "animateMotion",
@@ -79,7 +81,7 @@ const os = /* @__PURE__ */ new Set([
79
81
  "view",
80
82
  "use"
81
83
  ]);
82
- var d, $, v, be, I, H, a, Ct, Lt, Tt, Qe, je, zt, Mt, At, Nt, et, tt, Rt, st, it, Ft, nt, Be, ot, rt, at, We, qe;
84
+ var d, $, v, be, I, H, a, xt, Ct, Lt, Qe, je, Tt, zt, Mt, At, et, tt, Nt, st, it, Rt, nt, Be, ot, rt, at, We, qe;
83
85
  const Je = class Je {
84
86
  constructor(...s) {
85
87
  o(this, a);
@@ -101,7 +103,7 @@ const Je = class Je {
101
103
  });
102
104
  if (X) {
103
105
  const t = s[0], i = s[1];
104
- c(this, d, l(this, a, Ct).call(this, t, i == null ? void 0 : i.forceSvg)), l(this, a, Tt).call(this, i);
106
+ c(this, d, l(this, a, xt).call(this, t, i == null ? void 0 : i.forceSvg)), l(this, a, Lt).call(this, i);
105
107
  }
106
108
  }
107
109
  get node() {
@@ -114,7 +116,7 @@ const Je = class Je {
114
116
  ]), l(this, a, st).call(this), l(this, a, Qe).call(this);
115
117
  }
116
118
  };
117
- d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I = new WeakMap(), H = new WeakMap(), a = new WeakSet(), Ct = function(s, t) {
119
+ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I = new WeakMap(), H = new WeakMap(), a = new WeakSet(), xt = function(s, t) {
118
120
  let i = null;
119
121
  if (s instanceof Node)
120
122
  i = s;
@@ -124,23 +126,23 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
124
126
  else if (s.includes("<")) {
125
127
  const n = document.createElement("div");
126
128
  n.innerHTML = s, i = n.firstElementChild;
127
- } else os.has(s) || t ? i = document.createElementNS(
129
+ } else ns.has(s) || t ? i = document.createElementNS(
128
130
  "http://www.w3.org/2000/svg",
129
131
  s
130
132
  ) : i = document.createElement(s);
131
133
  else
132
134
  i = document.createElement("div");
133
135
  return i;
134
- }, Lt = function(s) {
136
+ }, Ct = function(s) {
135
137
  return s instanceof HTMLElement || s instanceof SVGElement;
136
- }, Tt = function(s) {
138
+ }, Lt = function(s) {
137
139
  if (!s) return;
138
- const t = l(this, a, Lt).call(this, e(this, d)), i = s.ref;
140
+ const t = l(this, a, Ct).call(this, e(this, d)), i = s.ref;
139
141
  delete s.ref, s != null && s.onConnect && (e(this, $).add(s.onConnect), delete s.onConnect), s != null && s.onDisconnect && (e(this, v).add(s.onDisconnect), delete s.onDisconnect);
140
142
  let n, h;
141
143
  for (const u in s) {
142
144
  const m = s[u];
143
- u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, At).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, e(this, d), m) : u === "children" ? l(this, a, Be).call(this, e(this, d) instanceof Element ? e(this, d).shadowRoot || e(this, d) : e(this, d), m) : u === "connectedClass" ? e(this, $).add(() => {
145
+ u === "class" && t ? l(this, a, je).call(this, m) : u === "style" && t ? l(this, a, Mt).call(this, m) : u === "lightChildren" ? l(this, a, Be).call(this, e(this, d), m) : u === "children" ? l(this, a, Be).call(this, e(this, d) instanceof Element ? e(this, d).shadowRoot || e(this, d) : e(this, d), m) : u === "connectedClass" ? e(this, $).add(() => {
144
146
  requestAnimationFrame(() => {
145
147
  e(this, d).classList.add(
146
148
  typeof m == "boolean" ? "connected" : m
@@ -148,11 +150,11 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
148
150
  });
149
151
  }) : u.startsWith("on") ? (h || (h = {}), h[u] = m) : (n || (n = {}), n[u] = m);
150
152
  }
151
- l(this, a, Ft).call(this, n), l(this, a, Rt).call(this, h), i && (typeof i == "function" ? i(e(this, d)) : i.current = e(this, d)), l(this, a, Qe).call(this);
153
+ l(this, a, Rt).call(this, n), l(this, a, Nt).call(this, h), i && (typeof i == "function" ? i(e(this, d)) : i.current = e(this, d)), l(this, a, Qe).call(this);
152
154
  }, Qe = function() {
153
155
  if (X && (e(this, v).size || e(this, $).size)) {
154
156
  const s = e(this, d) instanceof DocumentFragment ? e(this, d).firstChild : e(this, d);
155
- c(this, be, ts.subscribe(
157
+ c(this, be, es.subscribe(
156
158
  s,
157
159
  {
158
160
  connectCallback: e(this, We),
@@ -172,14 +174,14 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
172
174
  });
173
175
  else if (typeof s == "object")
174
176
  if (s instanceof P)
175
- l(this, a, zt).call(this, s);
177
+ l(this, a, Tt).call(this, s);
176
178
  else
177
179
  for (const t in s) {
178
180
  const i = s[t];
179
- i instanceof P ? l(this, a, Mt).call(this, t, i) : i ? e(this, d).classList.add(t) : e(this, d).classList.remove(t);
181
+ i instanceof P ? l(this, a, zt).call(this, t, i) : i ? e(this, d).classList.add(t) : e(this, d).classList.remove(t);
180
182
  }
181
183
  } else return;
182
- }, zt = function(s) {
184
+ }, Tt = function(s) {
183
185
  e(this, v).add(
184
186
  s.subscribe(({ current: t, previous: i }) => {
185
187
  i && [i].flat().forEach((n) => {
@@ -189,17 +191,17 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
189
191
  });
190
192
  })
191
193
  );
192
- }, Mt = function(s, t) {
194
+ }, zt = function(s, t) {
193
195
  e(this, v).add(
194
196
  t.subscribe(({ current: i }) => {
195
197
  i ? e(this, d).classList.add(s) : e(this, d).classList.remove(s);
196
198
  })
197
199
  );
198
- }, At = function(s) {
200
+ }, Mt = function(s) {
199
201
  if (!s)
200
202
  return;
201
- e(this, d).tagName === "style" || e(this, d).tagName === "STYLE" ? l(this, a, et).call(this, s) : l(this, a, Nt).call(this, s);
202
- }, Nt = function(s) {
203
+ e(this, d).tagName === "style" || e(this, d).tagName === "STYLE" ? l(this, a, et).call(this, s) : l(this, a, At).call(this, s);
204
+ }, At = function(s) {
203
205
  for (const t in s) {
204
206
  const i = t, n = s[i];
205
207
  n instanceof P ? e(this, v).add(
@@ -229,11 +231,11 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
229
231
  }
230
232
  }, tt = function(s, t) {
231
233
  s.includes("--") ? t ? e(this, d).style.setProperty(s, t.toString()) : e(this, d).style.removeProperty(s) : t ? e(this, d).style[s] = t.toString() : e(this, d).style[s] = "";
232
- }, Rt = function(s) {
234
+ }, Nt = function(s) {
233
235
  if (s) {
234
236
  e(this, H) || c(this, H, []);
235
237
  for (const t in s) {
236
- const i = t, n = es(
238
+ const i = t, n = jt(
237
239
  i.split("on").slice(1).join("on")
238
240
  ), h = s[i];
239
241
  typeof h == "object" ? e(this, H).push({
@@ -265,7 +267,7 @@ d = new WeakMap(), $ = new WeakMap(), v = new WeakMap(), be = new WeakMap(), I =
265
267
  t.options
266
268
  );
267
269
  });
268
- }, Ft = function(s) {
270
+ }, Rt = function(s) {
269
271
  for (const t in s) {
270
272
  const i = s[t];
271
273
  i instanceof P ? e(this, v).add(
@@ -355,7 +357,7 @@ let A = Je;
355
357
  function g(...r) {
356
358
  return new A(...r);
357
359
  }
358
- function rs(r) {
360
+ function os(r) {
359
361
  return new A("a", r);
360
362
  }
361
363
  function ee(r) {
@@ -367,7 +369,7 @@ function w(r) {
367
369
  function Ve(r) {
368
370
  return new A("input", r);
369
371
  }
370
- function Pt(r) {
372
+ function Ft(r) {
371
373
  return new A("label", r);
372
374
  }
373
375
  function me(r) {
@@ -376,16 +378,16 @@ function me(r) {
376
378
  function lt(r) {
377
379
  return new A("span", r);
378
380
  }
379
- function $t(r) {
381
+ function Pt(r) {
380
382
  return new A("style", {
381
383
  style: r
382
384
  });
383
385
  }
384
386
  function k(r) {
385
387
  const s = new CSSStyleSheet();
386
- return s.replaceSync($t(r).node.innerHTML), s;
388
+ return s.replaceSync(Pt(r).node.innerHTML), s;
387
389
  }
388
- function as(r, s) {
390
+ function rs(r, s) {
389
391
  const t = s == null ? void 0 : s.prefix, i = {
390
392
  style: {}
391
393
  };
@@ -396,7 +398,7 @@ function as(r, s) {
396
398
  }, i.style[`--${t}${Oe(n)}`] = r[n];
397
399
  return i;
398
400
  }
399
- const f = as(
401
+ const f = rs(
400
402
  {
401
403
  colorMain: "#1c1c1c",
402
404
  colorMainAux: "#282828",
@@ -408,12 +410,12 @@ const f = as(
408
410
  { prefix: "aptechka-" }
409
411
  );
410
412
  if (X) {
411
- const r = $t({
413
+ const r = Pt({
412
414
  ":root": f.style
413
415
  }).node;
414
416
  r.setAttribute("data-permanent", ""), document.head.appendChild(r);
415
417
  }
416
- const It = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', Ht = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', ls = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', hs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>', Dt = `<svg
418
+ const $t = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', It = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', as = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', ls = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>', Ht = `<svg
417
419
  xmlns="http://www.w3.org/2000/svg"
418
420
  width="32"
419
421
  height="32"
@@ -423,7 +425,7 @@ const It = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
423
425
  </svg>
424
426
  `;
425
427
  var q, L, D;
426
- class cs {
428
+ class hs {
427
429
  constructor() {
428
430
  o(this, q);
429
431
  o(this, L);
@@ -466,7 +468,7 @@ class cs {
466
468
  }
467
469
  }
468
470
  q = new WeakMap(), L = new WeakMap(), D = new WeakMap();
469
- const x = new cs(), ds = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', us = k({
471
+ const x = new hs(), cs = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', ds = k({
470
472
  ":host": {
471
473
  position: "relative",
472
474
  display: "inline-block",
@@ -515,8 +517,8 @@ const pt = class pt extends HTMLElement {
515
517
  o(this, J);
516
518
  o(this, K, null);
517
519
  o(this, te);
518
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us), c(this, te, this.attachInternals()), g(this, {
519
- children: Pt({
520
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ds), c(this, te, this.attachInternals()), g(this, {
521
+ children: Ft({
520
522
  children: [
521
523
  lt({
522
524
  class: "fake",
@@ -524,7 +526,7 @@ const pt = class pt extends HTMLElement {
524
526
  children: [
525
527
  lt({
526
528
  class: "default",
527
- children: [ds]
529
+ children: [cs]
528
530
  })
529
531
  ]
530
532
  })
@@ -588,7 +590,7 @@ class ge extends HTMLElement {
588
590
  }
589
591
  }
590
592
  O = new WeakMap();
591
- const fs = k({
593
+ const us = k({
592
594
  ":host": {
593
595
  width: "100%",
594
596
  display: "inline-flex",
@@ -601,9 +603,9 @@ const fs = k({
601
603
  borderRadius: f.borderRadiusSmall.var
602
604
  }
603
605
  });
604
- class Vt extends ge {
606
+ class Dt extends ge {
605
607
  constructor(...s) {
606
- super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs), g(this, {
608
+ super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(us), g(this, {
607
609
  children: [
608
610
  g("e-checkbox", {
609
611
  onChange: (i) => {
@@ -621,9 +623,9 @@ class Vt extends ge {
621
623
  }
622
624
  customElements.get("e-tweaker-boolean-manager") || customElements.define(
623
625
  "e-tweaker-boolean-manager",
624
- Vt
626
+ Dt
625
627
  );
626
- const ms = k({
628
+ const fs = k({
627
629
  ":host": {
628
630
  width: "100%",
629
631
  display: "inline-flex",
@@ -646,9 +648,9 @@ const ms = k({
646
648
  height: "calc(var(--height-input) * 0.93)"
647
649
  }
648
650
  });
649
- class _t extends ge {
651
+ class Vt extends ge {
650
652
  constructor(...s) {
651
- super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms), g(this, {
653
+ super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(fs), g(this, {
652
654
  children: [
653
655
  Ve({
654
656
  type: "color",
@@ -661,19 +663,19 @@ class _t extends ge {
661
663
  });
662
664
  }
663
665
  }
664
- customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", _t);
665
- const gs = k({
666
+ customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", Vt);
667
+ const ms = k({
666
668
  a: {
667
669
  color: "inherit",
668
670
  fontSize: "var(--font-size-small)"
669
671
  }
670
672
  });
671
- class Bt extends ge {
673
+ class _t extends ge {
672
674
  constructor(...s) {
673
675
  var i;
674
- super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), g(this, {
676
+ super(...s), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ms), g(this, {
675
677
  children: [
676
- rs({
678
+ os({
677
679
  href: this.firstStore,
678
680
  target: (i = this.firstStore.__manager) != null && i.sameWindow ? "_self" : "_blank",
679
681
  children: this.firstStore
@@ -682,8 +684,8 @@ class Bt extends ge {
682
684
  });
683
685
  }
684
686
  }
685
- customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", Bt);
686
- const ps = k({
687
+ customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", _t);
688
+ const gs = k({
687
689
  ":host": {
688
690
  width: "100%",
689
691
  display: "flex",
@@ -748,7 +750,7 @@ const ps = k({
748
750
  }
749
751
  });
750
752
  var Y, se, ie, V, Z, ve, ye, R, G, Se, ke, p, Q, ct, dt, Ke, Ee;
751
- class Kt extends ge {
753
+ class Bt extends ge {
752
754
  constructor(...t) {
753
755
  var n, h, u, m;
754
756
  super(...t);
@@ -765,7 +767,7 @@ class Kt extends ge {
765
767
  o(this, Se, (t) => {
766
768
  const i = l(this, p, Q).call(this, t);
767
769
  return i.map((n, h) => {
768
- const u = typeof n == "string" ? parseFloat(n) || e(this, V) : n, m = is(u, e(this, V), e(this, Z)), S = ns(m, e(this, ie));
770
+ const u = typeof n == "string" ? parseFloat(n) || e(this, V) : n, m = ss(u, e(this, V), e(this, Z)), S = is(m, e(this, ie));
769
771
  i[h] = S;
770
772
  }), e(this, ye) === "number" ? i[0] : i;
771
773
  });
@@ -778,7 +780,7 @@ class Kt extends ge {
778
780
  o(this, Ee, () => {
779
781
  l(this, p, ct).call(this);
780
782
  });
781
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ps), c(this, V, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, Z, St((h = this.firstStore.__manager) == null ? void 0 : h.max, 1 / 0)), c(this, ie, ((u = this.firstStore.__manager) == null ? void 0 : u.step) || 0.01), c(this, ve, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), c(this, ye, Array.isArray(this.firstStore.current) ? "array" : "number"), c(this, R, isFinite(e(this, Z)) && isFinite(e(this, V))), g(this, {
783
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(gs), c(this, V, St((n = this.firstStore.__manager) == null ? void 0 : n.min, -1 / 0)), c(this, Z, St((h = this.firstStore.__manager) == null ? void 0 : h.max, 1 / 0)), c(this, ie, ((u = this.firstStore.__manager) == null ? void 0 : u.step) || 0.01), c(this, ve, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), c(this, ye, Array.isArray(this.firstStore.current) ? "array" : "number"), c(this, R, isFinite(e(this, Z)) && isFinite(e(this, V))), g(this, {
782
784
  class: e(this, R) ? "" : "infinite",
783
785
  children: l(this, p, Q).call(this).map((S, C) => w({
784
786
  class: "inputs-wrapper",
@@ -807,7 +809,7 @@ class Kt extends ge {
807
809
  const pe = l(this, p, Q).call(this), _e = pe[C], E = e(this, se)[C], N = e(this, Y)[C];
808
810
  if (E && N) {
809
811
  const F = E.parentElement, _ = l(this, p, dt).call(this);
810
- F.classList.add("grabbing"), xt(
812
+ F.classList.add("grabbing"), Et(
811
813
  (W) => {
812
814
  const bt = W.x - b.x, Jt = e(this, R) ? F.offsetWidth / (_ || 1) : 1, Yt = _e + bt / Jt * e(this, ve);
813
815
  if (pe[C] = Yt, !e(this, R)) {
@@ -860,7 +862,23 @@ Y = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), V = new WeakMap(), Z
860
862
  const n = t.parentElement, h = l(this, p, dt).call(this), u = h ? i / h : 0.5;
861
863
  return (n.offsetWidth - t.offsetWidth) * u;
862
864
  }, Ee = new WeakMap();
863
- customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Kt);
865
+ customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", Bt);
866
+ function Kt(r) {
867
+ r.dispatchEvent(
868
+ new CustomEvent("sizeChange", {
869
+ bubbles: !0,
870
+ composed: !0
871
+ })
872
+ );
873
+ }
874
+ function ps(r) {
875
+ r.dispatchEvent(
876
+ new CustomEvent("beforeSizeChange", {
877
+ bubbles: !0,
878
+ composed: !0
879
+ })
880
+ );
881
+ }
864
882
  const ws = k({
865
883
  ":host": {
866
884
  position: "relative"
@@ -908,7 +926,7 @@ const wt = class wt extends HTMLElement {
908
926
  o(this, re);
909
927
  o(this, ae, null);
910
928
  o(this, Ye, () => {
911
- Et(this);
929
+ Kt(this);
912
930
  });
913
931
  X && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(ws), c(this, ne, this.attachInternals()), c(this, ae, new ResizeObserver(e(this, Ye))), g(this, {
914
932
  children: [
@@ -970,7 +988,7 @@ const wt = class wt extends HTMLElement {
970
988
  }
971
989
  };
972
990
  ne = new WeakMap(), oe = new WeakMap(), T = new WeakMap(), U = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), Ye = new WeakMap(), xe = new WeakSet(), ft = function() {
973
- Xt(this), this.dispatchEvent(
991
+ ps(this), this.dispatchEvent(
974
992
  new CustomEvent("selectToggle", {
975
993
  bubbles: !0,
976
994
  composed: !0,
@@ -1080,7 +1098,7 @@ class Ss extends Ot {
1080
1098
  me(),
1081
1099
  me({
1082
1100
  name: "arrow",
1083
- children: g(Dt, { class: "default-arrow" })
1101
+ children: g(Ht, { class: "default-arrow" })
1084
1102
  })
1085
1103
  ]
1086
1104
  }), this.slot = "head");
@@ -1202,10 +1220,10 @@ class Wt extends ge {
1202
1220
  }
1203
1221
  customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", Wt);
1204
1222
  const xs = {
1205
- boolean: Vt,
1206
- color: _t,
1207
- link: Bt,
1208
- number: Kt,
1223
+ boolean: Dt,
1224
+ color: Vt,
1225
+ link: _t,
1226
+ number: Bt,
1209
1227
  select: Zt,
1210
1228
  string: Wt
1211
1229
  }, Cs = k({
@@ -1295,14 +1313,14 @@ class gt extends HTMLElement {
1295
1313
  children: [
1296
1314
  ee({
1297
1315
  class: "head-button",
1298
- children: Ht,
1316
+ children: It,
1299
1317
  onClick: () => {
1300
1318
  navigator.clipboard.writeText(e(this, z)[0].current);
1301
1319
  }
1302
1320
  }),
1303
1321
  ee({
1304
1322
  class: "head-button",
1305
- children: It,
1323
+ children: $t,
1306
1324
  onClick: () => {
1307
1325
  e(this, z).forEach((m) => {
1308
1326
  m.reset();
@@ -1330,7 +1348,7 @@ class gt extends HTMLElement {
1330
1348
  e(this, fe).addStore(t);
1331
1349
  }
1332
1350
  connectedCallback() {
1333
- j.subscribe(e(this, Me)), addEventListener("keydown", e(this, Ae)), Et(this);
1351
+ j.subscribe(e(this, Me)), addEventListener("keydown", e(this, Ae)), Kt(this);
1334
1352
  }
1335
1353
  disconnectedCallback() {
1336
1354
  j.unsubscribe(e(this, Me)), removeEventListener("keydown", e(this, Ae));
@@ -1428,7 +1446,7 @@ const Ue = class Ue extends HTMLElement {
1428
1446
  children: [e(this, M).split(".").slice(-1).toString()]
1429
1447
  }) : null,
1430
1448
  e(this, Ne),
1431
- g(Dt, {
1449
+ g(Ht, {
1432
1450
  class: "arrow"
1433
1451
  })
1434
1452
  ]
@@ -1580,7 +1598,7 @@ const Ts = k({
1580
1598
  ":host .body-content::-webkit-scrollbar": {
1581
1599
  display: "none"
1582
1600
  },
1583
- [`@media ${ss["<=mobile"]}`]: {
1601
+ [`@media ${ts["<=mobile"]}`]: {
1584
1602
  ":host": {
1585
1603
  position: "absolute",
1586
1604
  top: "0",
@@ -1607,7 +1625,7 @@ class qt extends Ze {
1607
1625
  o(this, He, () => {
1608
1626
  x.save();
1609
1627
  });
1610
- o(this, De, jt(() => {
1628
+ o(this, De, Qt(() => {
1611
1629
  j.current.forEach((t) => {
1612
1630
  if (t.name) {
1613
1631
  const i = t.name.split(".");
@@ -1631,14 +1649,14 @@ class qt extends Ze {
1631
1649
  children: [
1632
1650
  ee({
1633
1651
  class: "tweaker-button",
1634
- children: It,
1652
+ children: $t,
1635
1653
  onClick: () => {
1636
1654
  B.resetState();
1637
1655
  }
1638
1656
  }),
1639
1657
  ee({
1640
1658
  class: ["tweaker-button"],
1641
- children: [Ht],
1659
+ children: [It],
1642
1660
  onClick: () => {
1643
1661
  navigator.clipboard.writeText(
1644
1662
  JSON.stringify(B.getState())
@@ -1647,15 +1665,15 @@ class qt extends Ze {
1647
1665
  }),
1648
1666
  ee({
1649
1667
  class: "tweaker-button",
1650
- children: ls,
1668
+ children: as,
1651
1669
  onClick: () => {
1652
- Qt(B.name, B.getState());
1670
+ Xt(B.name, B.getState());
1653
1671
  }
1654
1672
  }),
1655
- Pt({
1673
+ Ft({
1656
1674
  class: "tweaker-button",
1657
1675
  children: [
1658
- hs,
1676
+ ls,
1659
1677
  Ve({
1660
1678
  type: "file",
1661
1679
  style: {
@@ -1685,7 +1703,7 @@ class qt extends Ze {
1685
1703
  onPointerdown: (t) => {
1686
1704
  t.preventDefault();
1687
1705
  const i = this.getBoundingClientRect(), n = this.contentElement.scrollTop;
1688
- xt(
1706
+ Et(
1689
1707
  (h) => {
1690
1708
  const u = t.x - h.x, m = Math.max(400, i.width + u);
1691
1709
  this.style.width = m + "px", x.changeSize("tweaker", m);
@@ -0,0 +1 @@
1
+ "use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=f(e[r]));return t}function c(e,t,r=s){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),c(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((p,y)=>i(p,n[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function l(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function o(e,t){const r={};for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=f;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=c;exports.mixin=O;exports.omit=o;exports.pick=l;
@@ -0,0 +1,85 @@
1
+ function c(e) {
2
+ return typeof e == "object" && e !== null && !Array.isArray(e);
3
+ }
4
+ function y(e) {
5
+ if (e === null || typeof e != "object")
6
+ return e;
7
+ if (e instanceof Date)
8
+ return new Date(e.getTime());
9
+ if (e instanceof Node)
10
+ return e;
11
+ const t = Array.isArray(e) ? [] : {};
12
+ for (const r in e)
13
+ e.hasOwnProperty(r) && (t[r] = y(e[r]));
14
+ return t;
15
+ }
16
+ function a(e, t, r = c) {
17
+ for (const n in t)
18
+ r(t[n]) ? (e[n] || Object.assign(e, { [n]: {} }), a(e[n], t[n], r)) : Object.assign(e, { [n]: t[n] });
19
+ return e;
20
+ }
21
+ function u(e) {
22
+ return e === null || typeof e == "undefined";
23
+ }
24
+ function i(e, t) {
25
+ if (typeof e != typeof t)
26
+ return !1;
27
+ if ([e, t].some((r) => u(r)))
28
+ return e === t;
29
+ if (Array.isArray(e)) {
30
+ const r = e.length > t.length ? e : t, n = e.length > t.length ? t : e;
31
+ return r.every(
32
+ (s, f) => i(s, n[f])
33
+ );
34
+ }
35
+ if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
36
+ return e === t;
37
+ for (const r in e) {
38
+ if (!t.hasOwnProperty(r))
39
+ return !1;
40
+ if (typeof e[r] == "object" && typeof t[r] == "object") {
41
+ if (!i(e[r], t[r]))
42
+ return !1;
43
+ } else if (e[r] !== t[r])
44
+ return !1;
45
+ }
46
+ return !0;
47
+ }
48
+ function p(e, t) {
49
+ const r = {};
50
+ for (const n in e)
51
+ t.includes(n) && (r[n] = e[n]);
52
+ return r;
53
+ }
54
+ function o(e, t) {
55
+ const r = {};
56
+ for (const n in e)
57
+ t.includes(n) || (r[n] = e[n]);
58
+ return r;
59
+ }
60
+ function l(e) {
61
+ var t;
62
+ return typeof e == "function" && ((t = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : t.writable) === !1;
63
+ }
64
+ function O(e, ...t) {
65
+ t.forEach((r) => {
66
+ Object.getOwnPropertyNames(r.prototype).forEach((n) => {
67
+ Object.defineProperty(
68
+ e.prototype,
69
+ n,
70
+ Object.getOwnPropertyDescriptor(r.prototype, n) || /* @__PURE__ */ Object.create(null)
71
+ );
72
+ });
73
+ });
74
+ }
75
+ export {
76
+ c as a,
77
+ u as b,
78
+ y as c,
79
+ i as d,
80
+ O as e,
81
+ l as i,
82
+ a as m,
83
+ o,
84
+ p
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.defineProperty;var _=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var M=i=>{throw TypeError(i)};var D=(i,s,t)=>s in i?A(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,T=(i,s)=>{for(var t in s||(s={}))F.call(s,t)&&D(i,t,s[t]);if(_)for(var t of _(s))G.call(s,t)&&D(i,t,s[t]);return i};var k=(i,s,t)=>s.has(i)||M("Cannot "+t);var e=(i,s,t)=>(k(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>s.has(i)?M("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),c=(i,s,t,a)=>(k(i,s,"write to private field"),a?a.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-CDb6RMce.cjs");const q=require("../coordinates-D8Np3cPD.cjs"),I=require("../dom-JBOkFLTh.cjs"),H=require("../math-GDWEqu7y.cjs");require("../ticker/vanilla/index.cjs");const R=require("../Damped-CTsV8tl_.cjs"),j=require("../element-resizer/vanilla/index.cjs"),B=require("../window-resizer/vanilla/index.cjs"),P=require("../css-property/index.cjs");var o,l,m,d,y,u,b,v,f,w,C,p;class O{constructor(s){n(this,o);n(this,l);n(this,m);n(this,d);n(this,y);n(this,u);n(this,b,0);n(this,v,0);n(this,f,s=>{e(this,d).set(1)});n(this,w,s=>{e(this,d).set(0)});n(this,C,s=>{const t=q.getPointerPosition(s,e(this,o).getBoundingClientRect()),a={width:e(this,b),height:e(this,v)},h={x:t.x,y:t.y};if(e(this,y)){const z=q.screenToCartesian(h,a);h.x=z.x,h.y=z.y}if(e(this,u)){const z=q.normalize(h,a);h.x=H.clamp(z.x*2,-1,1),h.y=H.clamp(z.y*2,-1,1)}e(this,l).set(h.x),e(this,m).set(h.y)});n(this,p,()=>{c(this,b,this.element.clientWidth),c(this,v,this.element.clientHeight);let s=0,t=0,a=0,h=0;e(this,y)?e(this,u)?(s=-1,t=1,a=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,a=e(this,v)/2*-1,h=e(this,v)/2*1):e(this,u)?(s=0,t=1,a=0,h=1):(s=0,t=e(this,b),a=0,h=e(this,v)),e(this,l).min=s,e(this,l).max=t,e(this,m).min=a,e(this,m).max=h});c(this,o,I.getElement(s.element)),c(this,l,new R.Damped(0,s.damped)),c(this,m,new R.Damped(0,s.damped)),c(this,d,new R.Damped(0,T({min:0,max:1},s.damped))),c(this,y,s.cartesian||!1),c(this,u,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,l)}get y(){return e(this,m)}get z(){return e(this,d)}get cartesian(){return e(this,y)}set cartesian(s){c(this,y,s),e(this,p).call(this)}get normalize(){return e(this,u)}set normalize(s){c(this,u,s),e(this,p).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),j.elementResizer.subscribe(e(this,o),e(this,p)),B.windowResizer.subscribe(e(this,p))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),j.elementResizer.unsubscribe(e(this,p)),B.windowResizer.unsubscribe(e(this,p)),e(this,l).reset(),e(this,m).reset(),e(this,d).reset()}}o=new WeakMap,l=new WeakMap,m=new WeakMap,d=new WeakMap,y=new WeakMap,u=new WeakMap,b=new WeakMap,v=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,p=new WeakMap;var r,x,g,S,E,L;class W extends HTMLElement{constructor(){super();n(this,r);n(this,x,new P.CSSProperty(this,"--damping",20));n(this,g,new P.CSSProperty(this,"--mass",0));n(this,S,new P.CSSProperty(this,"--stiffness",0));n(this,E,new P.CSSProperty(this,"--cartesian",!1));n(this,L,new P.CSSProperty(this,"--normalize",!1));c(this,r,new O({element:this})),e(this,x).subscribe(t=>{e(this,r).x.damping=t.current,e(this,r).y.damping=t.current,e(this,r).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,r).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,r).normalize=t.current}),e(this,g).subscribe(t=>{e(this,r).x.mass=t.current,e(this,r).y.mass=t.current,e(this,r).z.mass=t.current}),e(this,S).subscribe(t=>{e(this,r).x.stiffness=t.current,e(this,r).y.stiffness=t.current,e(this,r).z.stiffness=t.current}),e(this,r).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,r).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,r).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,r)}connectedCallback(){e(this,r).connect(),e(this,x).observe(),e(this,g).observe(),e(this,S).observe()}disconnectedCallback(){e(this,r).disconnect(),e(this,x).unobserve(),e(this,g).unobserve(),e(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}r=new WeakMap,x=new WeakMap,g=new WeakMap,S=new WeakMap,E=new WeakMap,L=new WeakMap;customElements.get("e-pointer")||customElements.define("e-pointer",W);exports.Pointer=O;exports.PointerElement=W;