aptechka 0.1.10 → 0.1.12

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 (39) hide show
  1. package/lib/abstract-elements/index.cjs +1 -1
  2. package/lib/abstract-elements/index.js +1 -1
  3. package/lib/canvas/index.cjs +1 -1
  4. package/lib/canvas/index.d.ts +6 -5
  5. package/lib/canvas/index.js +47 -43
  6. package/lib/component/Component.d.ts +9 -12
  7. package/lib/component/index.cjs +1 -1
  8. package/lib/component/index.js +137 -141
  9. package/lib/{createStylesheet-BoJwXvjE.cjs → createStylesheet-DTOK6fTn.cjs} +1 -1
  10. package/lib/{createStylesheet-DSgkNlUZ.js → createStylesheet-Zqf3lXhM.js} +1 -1
  11. package/lib/{createTheme-COo8IzPG.cjs → createTheme-B_W5dUY9.cjs} +1 -1
  12. package/lib/{createTheme-BMH9cRrS.js → createTheme-D0IoYkYN.js} +1 -1
  13. package/lib/element-constructor/index.cjs +1 -1
  14. package/lib/element-constructor/index.js +3 -3
  15. package/lib/{index-Cv4y7_7y.cjs → index-3G1lTMEf.cjs} +1 -1
  16. package/lib/{index-228VqUsZ.js → index-BWTXnG5n.js} +2 -2
  17. package/lib/modal/index.cjs +1 -1
  18. package/lib/modal/index.js +2 -2
  19. package/lib/scroll/index.cjs +1 -1
  20. package/lib/scroll/index.js +2 -2
  21. package/lib/select/index.cjs +1 -1
  22. package/lib/select/index.js +1 -1
  23. package/lib/string-3lAkpJJP.js +51 -0
  24. package/lib/string-vBu90jhV.cjs +1 -0
  25. package/lib/studio/index.cjs +1 -1
  26. package/lib/studio/index.js +3 -3
  27. package/lib/tags-75InVOh4.cjs +1 -0
  28. package/lib/{tags-kZqsS_nJ.js → tags-DgRVzazL.js} +141 -139
  29. package/lib/theme/index.cjs +1 -1
  30. package/lib/theme/index.js +2 -2
  31. package/lib/utils/cssom.d.ts +5 -0
  32. package/lib/utils/index.cjs +1 -1
  33. package/lib/utils/index.d.ts +2 -1
  34. package/lib/utils/index.js +100 -87
  35. package/lib/utils/string.d.ts +1 -0
  36. package/package.json +1 -1
  37. package/lib/string-BrDhnNUL.js +0 -39
  38. package/lib/string-DzUwFYSS.cjs +0 -1
  39. package/lib/tags-920hsh9U.cjs +0 -1
@@ -1,15 +1,15 @@
1
- var dn = Object.defineProperty, wn = Object.defineProperties;
2
- var hn = Object.getOwnPropertyDescriptors;
1
+ var ln = Object.defineProperty, dn = Object.defineProperties;
2
+ var wn = Object.getOwnPropertyDescriptors;
3
3
  var Q = Object.getOwnPropertySymbols;
4
- var mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable;
5
- var X = (n, e, s) => e in n ? dn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, V = (n, e) => {
4
+ var hn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
5
+ var X = (n, e, s) => e in n ? ln(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, V = (n, e) => {
6
6
  for (var s in e || (e = {}))
7
- mn.call(e, s) && X(n, s, e[s]);
7
+ hn.call(e, s) && X(n, s, e[s]);
8
8
  if (Q)
9
9
  for (var s of Q(e))
10
- pn.call(e, s) && X(n, s, e[s]);
10
+ mn.call(e, s) && X(n, s, e[s]);
11
11
  return n;
12
- }, Z = (n, e) => wn(n, hn(e));
12
+ }, Z = (n, e) => dn(n, wn(e));
13
13
  var W = (n, e, s) => {
14
14
  if (!e.has(n))
15
15
  throw TypeError("Cannot " + s);
@@ -18,11 +18,11 @@ var a = (n, e, s) => (W(n, e, "read from private field"), s ? s.call(n) : e.get(
18
18
  if (e.has(n))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  e instanceof WeakSet ? e.add(n) : e.set(n, s);
21
- }, _ = (n, e, s, r) => (W(n, e, "write to private field"), r ? r.call(n, s) : e.set(n, s), s);
21
+ }, _ = (n, e, s, i) => (W(n, e, "write to private field"), i ? i.call(n, s) : e.set(n, s), s);
22
22
  var u = (n, e, s) => (W(n, e, "access private method"), s);
23
- import { S as m } from "./Store-JOKrNVEr.js";
24
- import { i as gn } from "./browser-0zX67oeU.js";
25
- import { c as O } from "./string-BrDhnNUL.js";
23
+ import { S as h } from "./Store-JOKrNVEr.js";
24
+ import { i as pn } from "./browser-0zX67oeU.js";
25
+ import { c as O, u as gn } from "./string-3lAkpJJP.js";
26
26
  import { connector as bn } from "./connector/index.js";
27
27
  const yn = /* @__PURE__ */ new Set([
28
28
  // 'a', 'style', 'title', 'script',
@@ -88,11 +88,11 @@ const yn = /* @__PURE__ */ new Set([
88
88
  "tspan",
89
89
  "view"
90
90
  ]);
91
- var c, h, d, C, j, N, nn, k, en, g, $, x, tn, A, sn, M, rn, D, an, b, J, y, z, F, on, H, un, S, Y, p, T, E, I, q, fn, P, cn, L, K, v, U, B, G;
91
+ var c, w, d, N, j, C, nn, k, en, g, $, x, tn, A, sn, M, rn, D, an, b, z, y, J, F, on, H, un, S, Y, p, T, E, I, q, fn, P, cn, v, K, L, U, B, G;
92
92
  const R = class R {
93
93
  constructor(...e) {
94
- f(this, C);
95
94
  f(this, N);
95
+ f(this, C);
96
96
  f(this, k);
97
97
  f(this, g);
98
98
  f(this, x);
@@ -108,59 +108,59 @@ const R = class R {
108
108
  f(this, E);
109
109
  f(this, q);
110
110
  f(this, P);
111
- f(this, L);
112
111
  f(this, v);
112
+ f(this, L);
113
113
  f(this, c, void 0);
114
- f(this, h, /* @__PURE__ */ new Set());
114
+ f(this, w, /* @__PURE__ */ new Set());
115
115
  f(this, d, /* @__PURE__ */ new Set());
116
116
  f(this, B, () => {
117
- a(this, h).forEach((e) => {
117
+ a(this, w).forEach((e) => {
118
118
  e();
119
- }), a(this, h).clear();
119
+ }), a(this, w).clear();
120
120
  });
121
121
  f(this, G, (e) => {
122
122
  a(this, d).forEach((s) => {
123
123
  s(e);
124
124
  }), a(this, d).clear();
125
125
  });
126
- const s = e[0], r = e[1];
127
- _(this, c, u(this, C, j).call(this, s, r == null ? void 0 : r.forceSvg)), u(this, k, en).call(this, r);
126
+ const s = e[0], i = e[1];
127
+ _(this, c, u(this, N, j).call(this, s, i == null ? void 0 : i.forceSvg)), u(this, k, en).call(this, i);
128
128
  }
129
129
  get node() {
130
130
  return a(this, c);
131
131
  }
132
132
  };
133
- c = new WeakMap(), h = new WeakMap(), d = new WeakMap(), C = new WeakSet(), j = function(e, s) {
134
- let r = null;
133
+ c = new WeakMap(), w = new WeakMap(), d = new WeakMap(), N = new WeakSet(), j = function(e, s) {
134
+ let i = null;
135
135
  if (e instanceof Node)
136
- r = e;
136
+ i = e;
137
137
  else if (typeof e == "string")
138
138
  if (!e.includes("<") && e.includes("-"))
139
- r = new (customElements.get(e))();
139
+ i = new (customElements.get(e))();
140
140
  else if (e.includes("<")) {
141
- const i = document.createElement("div");
142
- i.innerHTML = e, r = i.firstElementChild;
141
+ const r = document.createElement("div");
142
+ r.innerHTML = e, i = r.firstElementChild;
143
143
  } else
144
- yn.has(e) || s ? r = document.createElementNS(
144
+ yn.has(e) || s ? i = document.createElementNS(
145
145
  "http://www.w3.org/2000/svg",
146
146
  e
147
- ) : r = document.createElement(e);
147
+ ) : i = document.createElement(e);
148
148
  else
149
- r = document.createElement("div");
150
- return r;
151
- }, N = new WeakSet(), nn = function(e) {
149
+ i = document.createElement("div");
150
+ return i;
151
+ }, C = new WeakSet(), nn = function(e) {
152
152
  return e instanceof HTMLElement || e instanceof SVGElement;
153
153
  }, k = new WeakSet(), en = function(e) {
154
154
  if (!e)
155
155
  return;
156
- const s = u(this, N, nn).call(this, a(this, c)), r = e.ref;
157
- delete e.ref, e != null && e.onConnect && (a(this, h).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (a(this, d).add(e.onDisconnect), delete e.onDisconnect);
158
- let i, o;
156
+ const s = u(this, C, nn).call(this, a(this, c)), i = e.ref;
157
+ delete e.ref, e != null && e.onConnect && (a(this, w).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (a(this, d).add(e.onDisconnect), delete e.onDisconnect);
158
+ let r, o;
159
159
  for (const l in e) {
160
- const w = e[l];
161
- l === "class" && s ? u(this, g, $).call(this, w) : l === "style" && s ? u(this, M, rn).call(this, w) : l === "lightChildren" ? u(this, p, T).call(this, a(this, c), w) : l === "children" ? u(this, p, T).call(this, a(this, c) instanceof Element ? a(this, c).shadowRoot || a(this, c) : a(this, c), w) : l.startsWith("on") ? (o || (o = {}), o[l] = w) : (i || (i = {}), i[l] = w);
160
+ const m = e[l];
161
+ l === "class" && s ? u(this, g, $).call(this, m) : l === "style" && s ? u(this, M, rn).call(this, m) : l === "lightChildren" ? u(this, p, T).call(this, a(this, c), m) : l === "children" ? u(this, p, T).call(this, a(this, c) instanceof Element ? a(this, c).shadowRoot || a(this, c) : a(this, c), m) : l.startsWith("on") ? (o || (o = {}), o[l] = m) : (r || (r = {}), r[l] = m);
162
162
  }
163
- if (u(this, H, un).call(this, i), u(this, F, on).call(this, o), r && (typeof r == "function" ? r(a(this, c)) : r.current = a(this, c)), gn && (a(this, d).size || a(this, h).size)) {
163
+ if (u(this, H, un).call(this, r), u(this, F, on).call(this, o), i && (typeof i == "function" ? i(a(this, c)) : i.current = a(this, c)), pn && (a(this, d).size || a(this, w).size)) {
164
164
  const l = a(this, c) instanceof DocumentFragment ? a(this, c).firstChild : a(this, c);
165
165
  bn.subscribe(l, {
166
166
  connectCallback: a(this, B),
@@ -175,76 +175,78 @@ c = new WeakMap(), h = new WeakMap(), d = new WeakMap(), C = new WeakSet(), j =
175
175
  if (typeof e == "string")
176
176
  s.classList.add(e);
177
177
  else if (Array.isArray(e))
178
- e.forEach((r) => {
179
- u(this, g, $).call(this, r);
178
+ e.forEach((i) => {
179
+ u(this, g, $).call(this, i);
180
180
  });
181
181
  else if (typeof e == "object")
182
- if (e instanceof m)
182
+ if (e instanceof h)
183
183
  u(this, x, tn).call(this, e);
184
184
  else
185
- for (const r in e) {
186
- const i = e[r];
187
- i instanceof m ? u(this, A, sn).call(this, r, i) : i ? s.classList.add(r) : s.classList.remove(r);
185
+ for (const i in e) {
186
+ const r = e[i];
187
+ r instanceof h ? u(this, A, sn).call(this, i, r) : r ? s.classList.add(i) : s.classList.remove(i);
188
188
  }
189
189
  } else
190
190
  return;
191
191
  }, x = new WeakSet(), tn = function(e) {
192
192
  const s = a(this, c);
193
193
  a(this, d).add(
194
- e.subscribe(({ current: r, previous: i }) => {
195
- i && [i].flat().forEach((o) => {
194
+ e.subscribe(({ current: i, previous: r }) => {
195
+ r && [r].flat().forEach((o) => {
196
196
  o && s.classList.remove(o);
197
- }), r && [r].flat().forEach((o) => {
197
+ }), i && [i].flat().forEach((o) => {
198
198
  o && s.classList.add(o);
199
199
  });
200
200
  })
201
201
  );
202
202
  }, A = new WeakSet(), sn = function(e, s) {
203
- const r = a(this, c);
203
+ const i = a(this, c);
204
204
  a(this, d).add(
205
- s.subscribe(({ current: i }) => {
206
- i ? r.classList.add(e) : r.classList.remove(e);
205
+ s.subscribe(({ current: r }) => {
206
+ r ? i.classList.add(e) : i.classList.remove(e);
207
207
  })
208
208
  );
209
209
  }, M = new WeakSet(), rn = function(e) {
210
210
  if (!e)
211
211
  return;
212
212
  const s = a(this, c);
213
- s.tagName === "style" || s.tagName === "STYLE" ? u(this, b, J).call(this, e) : u(this, D, an).call(this, e);
213
+ s.tagName === "style" || s.tagName === "STYLE" ? u(this, b, z).call(this, e) : u(this, D, an).call(this, e);
214
214
  }, D = new WeakSet(), an = function(e) {
215
215
  for (const s in e) {
216
- const r = s, i = e[r];
217
- i instanceof m ? a(this, d).add(
218
- i.subscribe(({ current: o }) => {
219
- u(this, y, z).call(this, r, o);
216
+ const i = s, r = e[i];
217
+ r instanceof h ? a(this, d).add(
218
+ r.subscribe(({ current: o }) => {
219
+ u(this, y, J).call(this, i, o);
220
220
  })
221
- ) : u(this, y, z).call(this, r, i);
221
+ ) : u(this, y, J).call(this, i, r);
222
222
  }
223
- }, b = new WeakSet(), J = function(e) {
223
+ }, b = new WeakSet(), z = function(e) {
224
224
  const s = a(this, c);
225
- for (const r in e) {
226
- const i = e[r];
227
- if (typeof i == "object" && !(i instanceof m))
228
- s.appendChild(new Text(`${r} {`)), u(this, b, J).call(this, i), s.appendChild(new Text("}"));
229
- else if (i instanceof m) {
225
+ for (const i in e) {
226
+ const r = e[i];
227
+ if (typeof r == "object" && !(r instanceof h))
228
+ s.appendChild(new Text(`${i} {`)), u(this, b, z).call(this, r), s.appendChild(new Text("}"));
229
+ else if (r instanceof h) {
230
230
  const o = new Text();
231
231
  a(this, d).add(
232
- i.subscribe((l) => {
233
- l.current ? o.nodeValue = `${O(r)}: ${l.current};` : o.nodeValue = "";
232
+ r.subscribe((l) => {
233
+ l.current ? o.nodeValue = `${O(i)}: ${l.current};` : o.nodeValue = "";
234
234
  })
235
235
  ), s.appendChild(o);
236
236
  } else
237
- s.appendChild(new Text(`${O(r)}: ${i};`));
237
+ s.appendChild(new Text(`${O(i)}: ${r};`));
238
238
  }
239
- }, y = new WeakSet(), z = function(e, s) {
240
- const r = a(this, c);
241
- e.includes("--") ? s ? r.style.setProperty(e, s) : r.style.removeProperty(e) : s ? r.style[e] = s : r.style[e] = "";
239
+ }, y = new WeakSet(), J = function(e, s) {
240
+ const i = a(this, c);
241
+ e.includes("--") ? s ? i.style.setProperty(e, s) : i.style.removeProperty(e) : s ? i.style[e] = s : i.style[e] = "";
242
242
  }, F = new WeakSet(), on = function(e) {
243
243
  if (!e)
244
244
  return;
245
245
  const s = a(this, c);
246
- for (const r in e) {
247
- const i = r, o = i.split("on").slice(1).map((w, ln) => ln === 0 ? w.toLocaleLowerCase() : w).join("on"), l = e[i];
246
+ for (const i in e) {
247
+ const r = i, o = gn(
248
+ r.split("on").slice(1).join("on")
249
+ ), l = e[r];
248
250
  typeof l == "object" ? s.addEventListener(
249
251
  o,
250
252
  l.callback,
@@ -253,75 +255,75 @@ c = new WeakMap(), h = new WeakMap(), d = new WeakMap(), C = new WeakSet(), j =
253
255
  }
254
256
  }, H = new WeakSet(), un = function(e) {
255
257
  for (const s in e) {
256
- const r = e[s];
257
- r instanceof m ? a(this, d).add(
258
- r.subscribe(({ current: i }) => {
259
- u(this, S, Y).call(this, s, i);
258
+ const i = e[s];
259
+ i instanceof h ? a(this, d).add(
260
+ i.subscribe(({ current: r }) => {
261
+ u(this, S, Y).call(this, s, r);
260
262
  })
261
- ) : u(this, S, Y).call(this, s, r);
263
+ ) : u(this, S, Y).call(this, s, i);
262
264
  }
263
265
  }, S = new WeakSet(), Y = function(e, s) {
264
- var i, o;
265
- const r = a(this, c);
266
- e in r && !((o = (i = r.constructor) == null ? void 0 : i.observedAttributes) != null && o.includes(e)) ? s != null && (r[e] = s.toString()) : s != null && r.setAttribute(e, s.toString());
266
+ var r, o;
267
+ const i = a(this, c);
268
+ e in i && !((o = (r = i.constructor) == null ? void 0 : r.observedAttributes) != null && o.includes(e)) ? s != null && (i[e] = s.toString()) : s != null && i.setAttribute(e, s.toString());
267
269
  }, p = new WeakSet(), T = function(e, s) {
268
- s && (s = [s].flat(), s.forEach((r) => {
269
- if (r instanceof m) {
270
- const i = document.createElement("div");
271
- i.style.display = "contents", e.appendChild(i), a(this, d).add(
272
- r.subscribe(({ current: o }) => {
273
- u(this, P, cn).call(this, i, u(this, q, fn).call(this, o), Array.from(i.childNodes));
270
+ s && (s = [s].flat(), s.forEach((i) => {
271
+ if (i instanceof h) {
272
+ const r = document.createElement("div");
273
+ r.style.display = "contents", e.appendChild(r), a(this, d).add(
274
+ i.subscribe(({ current: o }) => {
275
+ u(this, P, cn).call(this, r, u(this, q, fn).call(this, o), Array.from(r.childNodes));
274
276
  })
275
277
  );
276
- } else if (r instanceof R)
277
- u(this, E, I).call(this, e, r.node);
278
- else if (r instanceof Function)
279
- u(this, p, T).call(this, e, r());
278
+ } else if (i instanceof R)
279
+ u(this, E, I).call(this, e, i.node);
280
+ else if (i instanceof Function)
281
+ u(this, p, T).call(this, e, i());
280
282
  else {
281
- const i = u(this, v, U).call(this, r);
282
- i instanceof Node && u(this, E, I).call(this, e, i);
283
+ const r = u(this, L, U).call(this, i);
284
+ r instanceof Node && u(this, E, I).call(this, e, r);
283
285
  }
284
286
  }));
285
287
  }, E = new WeakSet(), I = function(e, s) {
286
- !(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (a(this, h).add(() => {
287
- [...document.head.querySelectorAll("style")].find((i) => i.outerHTML === s.outerHTML) || document.head.appendChild(s);
288
+ !(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (a(this, w).add(() => {
289
+ [...document.head.querySelectorAll("style")].find((r) => r.outerHTML === s.outerHTML) || document.head.appendChild(s);
288
290
  }), a(this, d).add(() => {
289
291
  s.remove();
290
292
  })) : e.appendChild(s);
291
293
  }, q = new WeakSet(), fn = function(e) {
292
- return [e].flat().map((r) => r instanceof R ? r.node : u(this, v, U).call(this, r)).flat().filter(Boolean);
293
- }, P = new WeakSet(), cn = function(e, s, r) {
294
- r.length > s.length && r.forEach((i) => {
295
- s.find((o) => u(this, L, K).call(this, i, o)) || (e.removeChild(i), r = r.filter((o) => o !== i));
296
- }), r.forEach((i, o) => {
294
+ return [e].flat().map((i) => i instanceof R ? i.node : u(this, L, U).call(this, i)).flat().filter(Boolean);
295
+ }, P = new WeakSet(), cn = function(e, s, i) {
296
+ i.length > s.length && i.forEach((r) => {
297
+ s.find((o) => u(this, v, K).call(this, r, o)) || (e.removeChild(r), i = i.filter((o) => o !== r));
298
+ }), i.forEach((r, o) => {
297
299
  if (o < s.length) {
298
300
  const l = s[o];
299
- u(this, L, K).call(this, i, l) || e.replaceChild(l, i);
301
+ u(this, v, K).call(this, r, l) || e.replaceChild(l, r);
300
302
  } else
301
- e.removeChild(i);
303
+ e.removeChild(r);
302
304
  });
303
- for (let i = r.length; i < s.length; i++)
304
- e.appendChild(s[i]);
305
- }, L = new WeakSet(), K = function(e, s) {
305
+ for (let r = i.length; r < s.length; r++)
306
+ e.appendChild(s[r]);
307
+ }, v = new WeakSet(), K = function(e, s) {
306
308
  return s ? s instanceof Node ? e.isEqualNode(s) : e.textContent === s.toString() : !1;
307
- }, v = new WeakSet(), U = function(e) {
309
+ }, L = new WeakSet(), U = function(e) {
308
310
  if (e instanceof Node)
309
311
  return e;
310
312
  if (e != null) {
311
313
  const s = String(e);
312
314
  if (s.trim().startsWith("<") && s.trim().endsWith(">")) {
313
- const r = document.createElement("div");
314
- return r.innerHTML = s, r.firstElementChild;
315
+ const i = document.createElement("div");
316
+ return i.innerHTML = s, i.firstElementChild;
315
317
  } else
316
318
  return new Text(s);
317
319
  } else
318
320
  return;
319
321
  }, B = new WeakMap(), G = new WeakMap();
320
322
  let t = R;
321
- function Cn(...n) {
323
+ function Nn(...n) {
322
324
  return new t(...n);
323
325
  }
324
- function Nn(n) {
326
+ function Cn(n) {
325
327
  return new t("a", n);
326
328
  }
327
329
  function kn(n) {
@@ -369,10 +371,10 @@ function Wn(n) {
369
371
  function $n(n) {
370
372
  return new t("canvas", n);
371
373
  }
372
- function Jn(n) {
374
+ function zn(n) {
373
375
  return new t("caption", n);
374
376
  }
375
- function zn(n) {
377
+ function Jn(n) {
376
378
  return new t("cite", n);
377
379
  }
378
380
  function Yn(n) {
@@ -417,10 +419,10 @@ function te(n) {
417
419
  function se(n) {
418
420
  return new t("em", n);
419
421
  }
420
- function re(n) {
422
+ function ie(n) {
421
423
  return new t("embed", n);
422
424
  }
423
- function ie(n) {
425
+ function re(n) {
424
426
  return new t("fieldset", n);
425
427
  }
426
428
  function ae(n) {
@@ -471,19 +473,19 @@ function Se(n) {
471
473
  function Ee(n) {
472
474
  return new t("i", n);
473
475
  }
474
- function Le(n) {
476
+ function ve(n) {
475
477
  return new t("iframe", n);
476
478
  }
477
- function ve(n) {
479
+ function Le(n) {
478
480
  return new t("img", n);
479
481
  }
480
482
  function Te(n) {
481
483
  return new t("input", n);
482
484
  }
483
- function Ce(n) {
485
+ function Ne(n) {
484
486
  return new t("ins", n);
485
487
  }
486
- function Ne(n) {
488
+ function Ce(n) {
487
489
  return new t("kbd", n);
488
490
  }
489
491
  function ke(n) {
@@ -531,10 +533,10 @@ function We(n) {
531
533
  function $e(n) {
532
534
  return new t("optgroup", n);
533
535
  }
534
- function Je(n) {
536
+ function ze(n) {
535
537
  return new t("option", n);
536
538
  }
537
- function ze(n) {
539
+ function Je(n) {
538
540
  return new t("output", n);
539
541
  }
540
542
  function Ye(n) {
@@ -579,10 +581,10 @@ function tt(n) {
579
581
  function st(n) {
580
582
  return new t("select", n);
581
583
  }
582
- function rt(n) {
584
+ function it(n) {
583
585
  return new t("slot", n);
584
586
  }
585
- function it(n) {
587
+ function rt(n) {
586
588
  return new t("small", n);
587
589
  }
588
590
  function at(n) {
@@ -635,19 +637,19 @@ function St(n) {
635
637
  function Et(n) {
636
638
  return new t("time", n);
637
639
  }
638
- function Lt(n) {
640
+ function vt(n) {
639
641
  return new t("title", n);
640
642
  }
641
- function vt(n) {
643
+ function Lt(n) {
642
644
  return new t("tr", n);
643
645
  }
644
646
  function Tt(n) {
645
647
  return new t("track", n);
646
648
  }
647
- function Ct(n) {
649
+ function Nt(n) {
648
650
  return new t("u", n);
649
651
  }
650
- function Nt(n) {
652
+ function Ct(n) {
651
653
  return new t("ul", n);
652
654
  }
653
655
  function kt(n) {
@@ -673,7 +675,7 @@ function Ft(n) {
673
675
  }));
674
676
  }
675
677
  export {
676
- ve as $,
678
+ Le as $,
677
679
  _n as A,
678
680
  On as B,
679
681
  jn as C,
@@ -682,8 +684,8 @@ export {
682
684
  ee as F,
683
685
  te as G,
684
686
  se as H,
685
- re as I,
686
- ie as J,
687
+ ie as I,
688
+ re as J,
687
689
  ae as K,
688
690
  oe as L,
689
691
  ue as M,
@@ -700,11 +702,11 @@ export {
700
702
  ye as X,
701
703
  Se as Y,
702
704
  Ee as Z,
703
- Le as _,
704
- Nn as a,
705
+ ve as _,
706
+ Cn as a,
705
707
  Te as a0,
706
- Ce as a1,
707
- Ne as a2,
708
+ Ne as a1,
709
+ Ce as a2,
708
710
  ke as a3,
709
711
  xe as a4,
710
712
  Ae as a5,
@@ -728,11 +730,11 @@ export {
728
730
  yt as aN,
729
731
  St as aO,
730
732
  Et as aP,
731
- Lt as aQ,
732
- vt as aR,
733
+ vt as aQ,
734
+ Lt as aR,
733
735
  Tt as aS,
734
- Ct as aT,
735
- Nt as aU,
736
+ Nt as aT,
737
+ Ct as aU,
736
738
  kt as aV,
737
739
  xt as aW,
738
740
  At as aX,
@@ -747,8 +749,8 @@ export {
747
749
  Ve as af,
748
750
  We as ag,
749
751
  $e as ah,
750
- Je as ai,
751
- ze as aj,
752
+ ze as ai,
753
+ Je as aj,
752
754
  Ye as ak,
753
755
  Ie as al,
754
756
  Ke as am,
@@ -763,12 +765,12 @@ export {
763
765
  et as av,
764
766
  tt as aw,
765
767
  st as ax,
766
- rt as ay,
767
- it as az,
768
+ it as ay,
769
+ rt as az,
768
770
  kn as b,
769
771
  xn as c,
770
772
  An as d,
771
- Cn as e,
773
+ Nn as e,
772
774
  Mn as f,
773
775
  Dn as g,
774
776
  Fn as h,
@@ -781,8 +783,8 @@ export {
781
783
  Vn as o,
782
784
  Wn as p,
783
785
  $n as q,
784
- Jn as r,
785
- zn as s,
786
+ zn as r,
787
+ Jn as s,
786
788
  Yn as t,
787
789
  In as u,
788
790
  Kn as v,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),t=require("../tags-920hsh9U.cjs"),a=require("../createTheme-COo8IzPG.cjs"),e=a.createTheme({colorDark:"#1c1c1c",colorDarkAux:"#282828",colorLight:"#ffffff",colorActive:"#00E5B0",tweakerWidth:"480px",tweakerOffset:"20px",tweakerFolderHeight:"40px",heightInput:"30px",borderRadius:"12px",gapLarge:"16px",gapMedium:"12px",gapSmall:"8px",gapExtraSmall:"4px",fontSizeLarge:"20px",fontSizeMedium:"16px",fontSizeSmall:"14px",durationShort:"0.2s"},{prefix:"aptechka-"});r.isBrowser&&document.head.appendChild(t.style({":root":e.style}).node);exports.aptechkaTheme=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),t=require("../tags-75InVOh4.cjs"),a=require("../createTheme-B_W5dUY9.cjs"),e=a.createTheme({colorDark:"#1c1c1c",colorDarkAux:"#282828",colorLight:"#ffffff",colorActive:"#00E5B0",tweakerWidth:"480px",tweakerOffset:"20px",tweakerFolderHeight:"40px",heightInput:"30px",borderRadius:"12px",gapLarge:"16px",gapMedium:"12px",gapSmall:"8px",gapExtraSmall:"4px",fontSizeLarge:"20px",fontSizeMedium:"16px",fontSizeSmall:"14px",durationShort:"0.2s"},{prefix:"aptechka-"});r.isBrowser&&document.head.appendChild(t.style({":root":e.style}).node);exports.aptechkaTheme=e;
@@ -1,7 +1,7 @@
1
1
  import "../Store-JOKrNVEr.js";
2
2
  import { i as e } from "../browser-0zX67oeU.js";
3
- import { aD as r } from "../tags-kZqsS_nJ.js";
4
- import { c as o } from "../createTheme-BMH9cRrS.js";
3
+ import { aD as r } from "../tags-DgRVzazL.js";
4
+ import { c as o } from "../createTheme-D0IoYkYN.js";
5
5
  const t = o(
6
6
  {
7
7
  colorDark: "#1c1c1c",
@@ -0,0 +1,5 @@
1
+ export declare function getRootVariables<T extends string, V extends {
2
+ [key in T]: string;
3
+ } = {
4
+ [key in T]: string;
5
+ }>(...names: T[]): V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),f=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs"),n=require("../easings-DsS5-Kqc.cjs"),I=require("../events-Crwi8fz6.cjs"),y=require("../file-EevnUtRj.cjs"),g=require("../function-MthRj-GJ.cjs"),h=require("../layout-8ryRAMGJ.cjs"),u=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),o=require("../object-C1ph624j.cjs"),r=require("../string-DzUwFYSS.cjs"),C=require("../style-At6aDoqG.cjs");function E(t,e,...i){return[...t.slice(0,e),...i,...t.slice(e)]}function w(t,e){const i=t.measureText(e),a=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent,s=i.width;return{height:a,width:s}}function Q(t){return Math.floor(t)+.5}function S(t,e,i,a,s,l){let m=t/e,x=i/a,c=0,d=0;return s=typeof s=="undefined"?.5:s,l=typeof l=="undefined"?.5:l,m>x?(c=a,d=a*m):(d=i,c=i/m),[(i-d)*s,(a-c)*l,d,c]}function T(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function D(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function P(t,e,i=!1){let a=t.x-e.width/2,s=e.height/2-t.y;return i&&(a=a/(e.width/2),s=s/(e.height/2)),{x:a,y:s}}function q(t,e){const i=t.x/e.x,a=t.y/e.y;return{x:i,y:a}}function v(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function R(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function N(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=f.isBrowser;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getElement=p.getElement;exports.easeInCubic=n.easeInCubic;exports.easeInExpo=n.easeInExpo;exports.easeInOutCubic=n.easeInOutCubic;exports.easeInOutExpo=n.easeInOutExpo;exports.easeInOutQuad=n.easeInOutQuad;exports.easeInOutQuart=n.easeInOutQuart;exports.easeInOutQuint=n.easeInOutQuint;exports.easeInQuad=n.easeInQuad;exports.easeInQuart=n.easeInQuart;exports.easeInQuint=n.easeInQuint;exports.easeOutCubic=n.easeOutCubic;exports.easeOutExpo=n.easeOutExpo;exports.easeOutQuad=n.easeOutQuad;exports.easeOutQuart=n.easeOutQuart;exports.easeOutQuint=n.easeOutQuint;exports.linear=n.linear;exports.dispatchSizeChangeEvent=I.dispatchSizeChangeEvent;exports.createJSONAndSave=y.createJSONAndSave;exports.debounce=g.debounce;exports.throttle=g.throttle;exports.getCumulativeOffsetLeft=h.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=h.getCumulativeOffsetTop;exports.getCumulativePosition=h.getCumulativePosition;exports.calculateDistance=u.calculateDistance;exports.calculateDistanceWithRadius=u.calculateDistanceWithRadius;exports.clamp=u.clamp;exports.damp=u.damp;exports.lerp=u.lerp;exports.mapRange=u.mapRange;exports.round=u.round;exports.smootherstep=u.smootherstep;exports.smoothstep=u.smoothstep;exports.step=u.step;exports.preciseNumber=O.preciseNumber;exports.roundNumberTo=O.roundNumberTo;exports.cloneDeep=o.cloneDeep;exports.compareObjects=o.compareObjects;exports.isESClass=o.isESClass;exports.isNullish=o.isNullish;exports.isObject=o.isObject;exports.mergeDeep=o.mergeDeep;exports.omit=o.omit;exports.pick=o.pick;exports.camelToKebab=r.camelToKebab;exports.capitalize=r.capitalize;exports.generateId=r.generateId;exports.kebabToCamel=r.kebabToCamel;exports.snakeToDotted=r.snakeToDotted;exports.toPascalCase=r.toPascalCase;exports.getElementTransitionDurationMS=C.getElementTransitionDurationMS;exports.getElementTransitionDurationS=C.getElementTransitionDurationS;exports.cover=S;exports.decode=N;exports.dotCircleCollision=D;exports.dotRectCollision=T;exports.encode=R;exports.fixPosition=Q;exports.getPointerPosition=v;exports.insert=E;exports.measureText=w;exports.normalize=q;exports.screenToCartesian=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),x=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs"),a=require("../easings-DsS5-Kqc.cjs"),y=require("../events-Crwi8fz6.cjs"),E=require("../file-EevnUtRj.cjs"),g=require("../function-MthRj-GJ.cjs"),h=require("../layout-8ryRAMGJ.cjs"),o=require("../math-GDWEqu7y.cjs"),f=require("../number-yVpzMdbQ.cjs"),u=require("../object-C1ph624j.cjs"),l=require("../string-vBu90jhV.cjs"),O=require("../style-At6aDoqG.cjs");function I(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function S(t,e){const n=t.measureText(e),i=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,s=n.width;return{height:i,width:s}}function w(t){return Math.floor(t)+.5}function Q(t,e,n,i,s,r){let m=t/e,C=n/i,c=0,d=0;return s=typeof s=="undefined"?.5:s,r=typeof r=="undefined"?.5:r,m>C?(c=i,d=i*m):(d=n,c=n/m),[(n-d)*s,(i-c)*r,d,c]}function T(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function v(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function D(t,e,n=!1){let i=t.x-e.width/2,s=e.height/2-t.y;return n&&(i=i/(e.width/2),s=s/(e.height/2)),{x:i,y:s}}function P(t,e){const n=t.x/e.x,i=t.y/e.y;return{x:n,y:i}}function q(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function R(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(s=>{const r=i.styleMap.get(s);r?e[s]=r.toString():console.warn(`variable named ${s} not found`)})})}),e}function A(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function N(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=x.isBrowser;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.dispatchSizeChangeEvent=y.dispatchSizeChangeEvent;exports.createJSONAndSave=E.createJSONAndSave;exports.debounce=g.debounce;exports.throttle=g.throttle;exports.getCumulativeOffsetLeft=h.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=h.getCumulativeOffsetTop;exports.getCumulativePosition=h.getCumulativePosition;exports.calculateDistance=o.calculateDistance;exports.calculateDistanceWithRadius=o.calculateDistanceWithRadius;exports.clamp=o.clamp;exports.damp=o.damp;exports.lerp=o.lerp;exports.mapRange=o.mapRange;exports.round=o.round;exports.smootherstep=o.smootherstep;exports.smoothstep=o.smoothstep;exports.step=o.step;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.cloneDeep=u.cloneDeep;exports.compareObjects=u.compareObjects;exports.isESClass=u.isESClass;exports.isNullish=u.isNullish;exports.isObject=u.isObject;exports.mergeDeep=u.mergeDeep;exports.omit=u.omit;exports.pick=u.pick;exports.camelToKebab=l.camelToKebab;exports.capitalize=l.capitalize;exports.generateId=l.generateId;exports.kebabToCamel=l.kebabToCamel;exports.snakeToDotted=l.snakeToDotted;exports.toPascalCase=l.toPascalCase;exports.uncapitalize=l.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.cover=Q;exports.decode=N;exports.dotCircleCollision=v;exports.dotRectCollision=T;exports.encode=A;exports.fixPosition=w;exports.getPointerPosition=q;exports.getRootVariables=R;exports.insert=I;exports.measureText=S;exports.normalize=P;exports.screenToCartesian=D;
@@ -4,6 +4,7 @@ export { isBrowser } from './browser';
4
4
  export { measureText, fixPosition, cover } from './canvas';
5
5
  export { dotRectCollision, dotCircleCollision } from './collisions';
6
6
  export { screenToCartesian, normalize, getPointerPosition } from './coordinates';
7
+ export { getRootVariables } from './cssom';
7
8
  export { encode, decode } from './decoding';
8
9
  export { findParentElement, getElement, findScrollParentElement, type ElementOrSelector, } from './dom';
9
10
  export { linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInExpo, easeOutExpo, easeInOutExpo, type EasingFunction, } from './easings';
@@ -14,7 +15,7 @@ export { getCumulativePosition, getCumulativeOffsetLeft, getCumulativeOffsetTop,
14
15
  export { lerp, damp, step, round, clamp, mapRange, smoothstep, smootherstep, calculateDistance, calculateDistanceWithRadius, } from './math';
15
16
  export { preciseNumber, roundNumberTo } from './number';
16
17
  export { isObject, cloneDeep, mergeDeep, isNullish, compareObjects, pick, omit, isESClass, } from './object';
17
- export { kebabToCamel, camelToKebab, snakeToDotted, toPascalCase, capitalize, generateId, } from './string';
18
+ export { kebabToCamel, camelToKebab, snakeToDotted, toPascalCase, capitalize, uncapitalize, generateId, } from './string';
18
19
  export { getElementTransitionDurationMS, getElementTransitionDurationS, } from './style';
19
20
  export type { Axes2D, Axes3D, Dot2D, Rect2D, Circle, Dot3D, Rect3D, } from './ts-shape';
20
21
  export type { NestedKeys, NestedValueOf, DeepOmit, DeepPartial, Requiredish, WithRequired, Split, SplitFirst, Tail, KebabToCamel, CamelToKebab, } from './ts-utility';