aptechka 0.1.5 → 0.1.7

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 (104) hide show
  1. package/lib/Animated-Bf-gPIQM.cjs +1 -0
  2. package/lib/{Animated-CzBHCHNm.js → Animated-Br_4OSth.js} +36 -35
  3. package/lib/Composed-C2Vv1xxR.cjs +1 -0
  4. package/lib/Composed-DhtYBEmo.js +79 -0
  5. package/lib/{Damped--qBZAdEi.cjs → Damped-BwpMU9Gi.cjs} +1 -1
  6. package/lib/{Damped-Bm1kSn1f.js → Damped-urvryQLo.js} +1 -1
  7. package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
  8. package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
  9. package/lib/{SourceManager-B44FUTig.js → SourceManager-BoP9RAJr.js} +1 -1
  10. package/lib/{SourceManager-D447KWpH.cjs → SourceManager-CI6NfLzW.cjs} +1 -1
  11. package/lib/Store-D0_rDIsE.cjs +1 -0
  12. package/lib/{Store-uTyReFzx.js → Store-JOKrNVEr.js} +18 -18
  13. package/lib/{Viewport-CDqiD8Ao.cjs → Viewport-COsaberc.cjs} +1 -1
  14. package/lib/{Viewport-Cj0i-H5d.js → Viewport-CXY5xcGJ.js} +1 -1
  15. package/lib/abstract-elements/index.cjs +1 -1
  16. package/lib/abstract-elements/index.js +2 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +2 -2
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +1 -1
  21. package/lib/canvas/index.cjs +1 -1
  22. package/lib/canvas/index.js +8 -8
  23. package/lib/connector/index.cjs +1 -1
  24. package/lib/connector/index.d.ts +1 -0
  25. package/lib/connector/index.js +32 -31
  26. package/lib/createStylesheet-BSXZrWW6.js +8 -0
  27. package/lib/createStylesheet-C1rimcGc.cjs +1 -0
  28. package/lib/device/index.cjs +1 -1
  29. package/lib/device/index.js +1 -1
  30. package/lib/element-constructor/ElementConstructor.d.ts +18 -27
  31. package/lib/element-constructor/index.cjs +1 -1
  32. package/lib/element-constructor/index.d.ts +1 -2
  33. package/lib/element-constructor/index.js +120 -639
  34. package/lib/element-constructor/knownSvgTags.d.ts +1 -0
  35. package/lib/element-constructor/tags.d.ts +117 -0
  36. package/lib/en3/index.cjs +1 -1
  37. package/lib/en3/index.js +2 -2
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-DyJhLxk8.js → index-dBwVZz_v.js} +25 -25
  41. package/lib/index-vI4hmrI8.cjs +9 -0
  42. package/lib/jsx/ComponentElement.d.ts +17 -0
  43. package/lib/jsx/h.d.ts +5 -4
  44. package/lib/jsx/hooks/animation-frame.d.ts +5 -0
  45. package/lib/jsx/hooks/animation.d.ts +3 -0
  46. package/lib/jsx/hooks/basic.d.ts +4 -0
  47. package/lib/jsx/hooks/element-resize.d.ts +3 -0
  48. package/lib/jsx/hooks/intersection.d.ts +3 -0
  49. package/lib/jsx/hooks/store.d.ts +6 -0
  50. package/lib/jsx/hooks/style.d.ts +2 -0
  51. package/lib/jsx/hooks/utils.d.ts +4 -0
  52. package/lib/jsx/hooks/window-resize.d.ts +2 -0
  53. package/lib/jsx/index.cjs +1 -1
  54. package/lib/jsx/index.d.ts +8 -1
  55. package/lib/jsx/index.js +170 -102
  56. package/lib/jsx/type.d.ts +7 -5
  57. package/lib/ladder/index.cjs +1 -1
  58. package/lib/ladder/index.js +1 -1
  59. package/lib/media/index.cjs +1 -1
  60. package/lib/media/index.js +1 -1
  61. package/lib/modal/index.cjs +1 -1
  62. package/lib/modal/index.js +7 -7
  63. package/lib/popover/index.cjs +1 -1
  64. package/lib/popover/index.js +1 -1
  65. package/lib/scroll/index.cjs +1 -1
  66. package/lib/scroll/index.js +23 -24
  67. package/lib/select/index.cjs +1 -1
  68. package/lib/select/index.js +1 -1
  69. package/lib/source/index.cjs +1 -1
  70. package/lib/source/index.js +2 -2
  71. package/lib/store/Derived.d.ts +1 -1
  72. package/lib/store/index.cjs +1 -1
  73. package/lib/store/index.js +48 -111
  74. package/lib/studio/index.cjs +2 -2
  75. package/lib/studio/index.js +307 -288
  76. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  77. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
  78. package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
  79. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  80. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
  81. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
  82. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  83. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
  84. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
  85. package/lib/tags-D-lzPz_v.js +748 -0
  86. package/lib/tags-DkAbVUQP.cjs +1 -0
  87. package/lib/theme/index.cjs +1 -1
  88. package/lib/theme/index.js +7 -7
  89. package/lib/video/index.cjs +1 -1
  90. package/lib/video/index.js +1 -1
  91. package/package.json +1 -1
  92. package/lib/Animated-DZ_fbJmi.cjs +0 -1
  93. package/lib/ElementConstructor-DB0xOoat.js +0 -199
  94. package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
  95. package/lib/Store-BOOfmlyv.cjs +0 -1
  96. package/lib/createStylesheet-74ZP3AZm.js +0 -8
  97. package/lib/createStylesheet-ChhZFwSX.cjs +0 -1
  98. package/lib/element-constructor/htmlTags.d.ts +0 -115
  99. package/lib/element-constructor/svgTags.d.ts +0 -64
  100. package/lib/htmlTags-CNEFIHPp.js +0 -683
  101. package/lib/htmlTags-CwYHVo9n.cjs +0 -1
  102. package/lib/index-tPw9mmLF.cjs +0 -9
  103. package/lib/jsx/ComponentWrapper.d.ts +0 -12
  104. package/lib/jsx/hooks.d.ts +0 -19
@@ -2,27 +2,26 @@ var yt = (i, s, e) => {
2
2
  if (!s.has(i))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var n = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get(i)), D = (i, s, e) => {
5
+ var n = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get(i)), V = (i, s, e) => {
6
6
  if (s.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
9
  }, $ = (i, s, e, r) => (yt(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e);
10
- import { S as Ht } from "../Store-uTyReFzx.js";
11
- import { D as Ft } from "../Derived-BS2ja9qa.js";
10
+ import { S as Ht } from "../Store-JOKrNVEr.js";
11
+ import { D as Ft } from "../Derived-Bc88XJ8J.js";
12
12
  import { i as At } from "../browser-0zX67oeU.js";
13
13
  import { a as gt, g as wt } from "../layout-HoBT_Da2.js";
14
14
  import { c as zt } from "../math-BOBiC4TN.js";
15
15
  import "../ticker/index.js";
16
- import { D as Bt } from "../Damped-Bm1kSn1f.js";
16
+ import { D as Bt } from "../Damped-urvryQLo.js";
17
17
  import { Attribute as E } from "../attribute/index.js";
18
18
  import { W as Kt, K as Gt } from "../WheelControls-CX9WUbBC.js";
19
19
  import { CustomElement as Lt, define as $t } from "../custom-element/index.js";
20
20
  import { TICK_ORDER as Nt, RESIZE_ORDER as Pt } from "../order/index.js";
21
21
  import { windowResizer as ot } from "../window-resizer/index.js";
22
22
  import { scrollEntries as I } from "../scroll-entries/index.js";
23
- import { e as Ot } from "../ElementConstructor-DB0xOoat.js";
24
- import { C as Mt, aw as bt } from "../htmlTags-CNEFIHPp.js";
25
- import { c as Vt } from "../createStylesheet-74ZP3AZm.js";
23
+ import { e as Ot, D as Mt, ay as bt } from "../tags-D-lzPz_v.js";
24
+ import { c as Dt } from "../createStylesheet-BSXZrWW6.js";
26
25
  import { f as Ut } from "../dom-BY7JhTx5.js";
27
26
  var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e, r) => {
28
27
  for (var a = r > 1 ? void 0 : r ? qt(s, e) : s, g = i.length - 1, x; g >= 0; g--)
@@ -35,13 +34,13 @@ var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s
35
34
  if (s.has(i))
36
35
  throw TypeError("Cannot add the same private member more than once");
37
36
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
38
- }, d = (i, s, e, r) => (Et(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), f = (i, s, e) => (Et(i, s, "access private method"), e), o, C, R, O, T, q, k, J, Q, X, u, ct, c, Y, j, v, p, W, H, m, B, P, N, ut, F, U, pt, kt, ft, Wt, tt, vt, et, _t, V, mt, xt, Dt, st, it, St, _, w, L, y;
37
+ }, d = (i, s, e, r) => (Et(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), f = (i, s, e) => (Et(i, s, "access private method"), e), o, C, R, O, T, q, k, J, Q, X, u, ct, c, Y, j, v, p, W, H, m, B, P, N, ut, F, U, pt, kt, ft, Wt, tt, vt, et, _t, D, mt, xt, Vt, st, it, St, _, w, L, y;
39
38
  class Qt {
40
39
  constructor(s, e) {
41
- D(this, _, void 0);
42
- D(this, w, void 0);
43
- D(this, L, 0);
44
- D(this, y, 0);
40
+ V(this, _, void 0);
41
+ V(this, w, void 0);
42
+ V(this, L, 0);
43
+ V(this, y, 0);
45
44
  $(this, _, s), $(this, w, e), I.register(n(this, _));
46
45
  }
47
46
  get size() {
@@ -72,7 +71,7 @@ class Qt {
72
71
  }
73
72
  }
74
73
  _ = new WeakMap(), w = new WeakMap(), L = new WeakMap(), y = new WeakMap();
75
- const Xt = Vt({
74
+ const Xt = Dt({
76
75
  ":host": {
77
76
  position: "relative",
78
77
  width: "100%",
@@ -113,7 +112,7 @@ let dt = class extends Lt {
113
112
  this,
114
113
  "wheel-max-delta",
115
114
  !1
116
- )), h(this, k, new E(this, "infinite", !1)), h(this, J, new E(this, "damping", 0.03)), h(this, Q, new E(this, "disabled", !1)), h(this, X, new E(this, "hibernated", !1)), h(this, u, null), h(this, ct, null), h(this, c, []), h(this, Y, 0), h(this, j, 0), h(this, v, 0), h(this, p, 0), h(this, W, null), h(this, H, null), h(this, m, new Ht(0)), h(this, B, 0), h(this, P, 0), h(this, V, () => {
115
+ )), h(this, k, new E(this, "infinite", !1)), h(this, J, new E(this, "damping", 0.03)), h(this, Q, new E(this, "disabled", !1)), h(this, X, new E(this, "hibernated", !1)), h(this, u, null), h(this, ct, null), h(this, c, []), h(this, Y, 0), h(this, j, 0), h(this, v, 0), h(this, p, 0), h(this, W, null), h(this, H, null), h(this, m, new Ht(0)), h(this, B, 0), h(this, P, 0), h(this, D, () => {
117
116
  const s = this.currentScrollValue / t(this, p);
118
117
  if (d(this, Y, this.vertical ? gt(this) : wt(this)), d(this, j, this.vertical ? gt(t(this, u)) : wt(t(this, u))), d(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), t(this, R).current) {
119
118
  d(this, p, t(this, v) * t(this, R).current);
@@ -189,11 +188,11 @@ let dt = class extends Lt {
189
188
  })
190
189
  ]
191
190
  }), d(this, W, new Kt({ element: this })), t(this, W).changeEvent.subscribe(t(this, st)), d(this, H, new Gt({ element: this })), t(this, H).changeEvent.subscribe(t(this, st)), t(this, C).subscribe(({ current: r }) => {
192
- t(this, u).style.flexDirection = r === "x" ? "row" : "column", t(this, W).axis = t(this, q).current ? "max" : r, this.isConnected && t(this, V).call(this);
191
+ t(this, u).style.flexDirection = r === "x" ? "row" : "column", t(this, W).axis = t(this, q).current ? "max" : r, this.isConnected && t(this, D).call(this);
193
192
  }), t(this, q).subscribe((r) => {
194
193
  t(this, W).axis = r.current ? "max" : t(this, C).current;
195
194
  }), t(this, R).subscribe(() => {
196
- this.isConnected && t(this, V).call(this);
195
+ this.isConnected && t(this, D).call(this);
197
196
  }), t(this, O).subscribe(({ current: r }) => {
198
197
  this.isConnected && (r ? f(this, N, ut).call(this) : f(this, F, U).call(this));
199
198
  }), t(this, T).subscribe((r) => {
@@ -283,7 +282,7 @@ let dt = class extends Lt {
283
282
  if (!t(this, c).length)
284
283
  return;
285
284
  const e = t(this, m).current;
286
- f(this, xt, Dt).call(this, i);
285
+ f(this, xt, Vt).call(this, i);
287
286
  const r = t(this, c)[e], a = t(this, c)[t(this, m).current];
288
287
  if (r && a) {
289
288
  let g = 0;
@@ -327,7 +326,7 @@ N = /* @__PURE__ */ new WeakSet();
327
326
  ut = function() {
328
327
  f(this, F, U).call(this), t(this, ct).assignedElements().forEach((i) => {
329
328
  i instanceof HTMLElement && t(this, c).push(new Qt(i, this));
330
- }), t(this, u).style.transform = "", t(this, V).call(this);
329
+ }), t(this, u).style.transform = "", t(this, D).call(this);
331
330
  };
332
331
  F = /* @__PURE__ */ new WeakSet();
333
332
  U = function() {
@@ -345,16 +344,16 @@ Wt = function() {
345
344
  };
346
345
  tt = /* @__PURE__ */ new WeakSet();
347
346
  vt = function() {
348
- ot.unsubscribe(t(this, V)), t(this, o).reset(), f(this, pt, kt).call(this), t(this, u).style.transform = "", t(this, O).current && f(this, F, U).call(this), I.unregister(this);
347
+ ot.unsubscribe(t(this, D)), t(this, o).reset(), f(this, pt, kt).call(this), t(this, u).style.transform = "", t(this, O).current && f(this, F, U).call(this), I.unregister(this);
349
348
  };
350
349
  et = /* @__PURE__ */ new WeakSet();
351
350
  _t = function() {
352
- t(this, O).current && f(this, N, ut).call(this), I.register(this), ot.subscribe(t(this, V), Pt.SCROLL), f(this, ft, Wt).call(this);
351
+ t(this, O).current && f(this, N, ut).call(this), I.register(this), ot.subscribe(t(this, D), Pt.SCROLL), f(this, ft, Wt).call(this);
353
352
  };
354
- V = /* @__PURE__ */ new WeakMap();
353
+ D = /* @__PURE__ */ new WeakMap();
355
354
  mt = /* @__PURE__ */ new WeakMap();
356
355
  xt = /* @__PURE__ */ new WeakSet();
357
- Dt = function(i) {
356
+ Vt = function(i) {
358
357
  t(this, k).current ? (t(this, m).current = i % t(this, c).length, t(this, m).current = t(this, m).current < 0 ? t(this, c).length + t(this, m).current : t(this, m).current) : t(this, m).current = zt(i, 0, t(this, c).length - 1);
359
358
  };
360
359
  st = /* @__PURE__ */ new WeakMap();
@@ -373,7 +372,7 @@ var Z;
373
372
  class Yt extends Lt {
374
373
  constructor() {
375
374
  super(...arguments);
376
- D(this, Z, null);
375
+ V(this, Z, null);
377
376
  }
378
377
  get scrollElement() {
379
378
  return n(this, Z);
@@ -396,7 +395,7 @@ var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s
396
395
  throw TypeError("Cannot add the same private member more than once");
397
396
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
398
397
  }, M = (i, s, e, r) => (Rt(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), rt, b, A, z, K, G, nt, ht, lt, at;
399
- const se = Vt({
398
+ const se = Dt({
400
399
  ":host": {
401
400
  display: "inline-block",
402
401
  zIndex: "1",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-tPw9mmLF.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-vI4hmrI8.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
- import { S as l, c as a, b as c, d as m } from "../index-DyJhLxk8.js";
1
+ import { S as l, c as a, b as c, d as m } from "../index-dBwVZz_v.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1,4 +1,4 @@
1
- "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-D447KWpH.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-CI6NfLzW.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -8,8 +8,8 @@ var t = (i, r, s) => (v(i, r, "read from private field"), s ? s.call(i) : r.get(
8
8
  r instanceof WeakSet ? r.add(i) : r.set(i, s);
9
9
  }, l = (i, r, s, h) => (v(i, r, "write to private field"), h ? h.call(i, s) : r.set(i, s), s);
10
10
  var E = (i, r, s) => (v(i, r, "access private method"), s);
11
- import { S as k } from "../SourceManager-B44FUTig.js";
12
- import { a as W, b as $ } from "../SourceManager-B44FUTig.js";
11
+ import { S as k } from "../SourceManager-BoP9RAJr.js";
12
+ import { a as W, b as $ } from "../SourceManager-BoP9RAJr.js";
13
13
  import { CustomElement as w } from "../custom-element/index.js";
14
14
  import { intersector as A } from "../intersector/index.js";
15
15
  import { loading as S } from "../loading/index.js";
@@ -2,6 +2,6 @@ import { Store, StoreOptions } from './Store';
2
2
  export type DerivedCallback<StoreType, DerivedType> = (value: StoreType) => DerivedType;
3
3
  export declare class Derived<DerivedType, StoreType> extends Store<DerivedType> {
4
4
  #private;
5
- constructor(store: Store<StoreType>, callback: DerivedCallback<StoreType, DerivedType>, parameters?: StoreOptions<DerivedType>);
5
+ constructor(store: Store<StoreType, any, any>, callback: DerivedCallback<StoreType, DerivedType>, parameters?: StoreOptions<DerivedType>);
6
6
  close(): void;
7
7
  }
@@ -1 +1 @@
1
- "use strict";var C=(t,r,e)=>{if(!r.has(t))throw TypeError("Cannot "+e)};var u=(t,r,e)=>(C(t,r,"read from private field"),e?e.call(t):r.get(t)),n=(t,r,e)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,e)},o=(t,r,e,s)=>(C(t,r,"write to private field"),s?s.call(t,e):r.set(t,e),e);var R=(t,r,e,s)=>({set _(c){o(t,r,c,e)},get _(){return u(t,r,s)}});var A=(t,r,e)=>new Promise((s,c)=>{var h=i=>{try{v(e.next(i))}catch(f){c(f)}},l=i=>{try{v(e.throw(i))}catch(f){c(f)}},v=i=>i.done?s(i.value):Promise.resolve(i.value).then(h,l);v((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-BOOfmlyv.cjs"),I=require("../Derived-CqmIkTGN.cjs"),q=require("../function-MthRj-GJ.cjs");var b;class E extends d.Store{constructor(e,s,c){super(null,c);n(this,b,void 0);o(this,b,e.subscribe(h=>{const l=[];h.current.forEach((v,i)=>{var f;h.current[i]===((f=h.previous)==null?void 0:f[i])&&this.current[i]?l.push(this.current[i]):l.push(s(v))}),this.current=l}))}close(){super.close(),u(this,b).call(this)}}b=new WeakMap;var S,a,p;class D extends d.Store{constructor(e,s,c){super(e,c);n(this,S,void 0);n(this,a,void 0);n(this,p,0);o(this,a,new d.Store(!1)),o(this,S,s),c!=null&&c.manualControl||this.refetch()}get isPending(){return u(this,a)}refetch(){u(this,a).current=!0,o(this,p,u(this,p)+1);const e=u(this,p);u(this,S).call(this).then(s=>{e===u(this,p)&&(u(this,a).current=!1,this.current=s)})}}S=new WeakMap,a=new WeakMap,p=new WeakMap;var g,m,y;class P extends D{constructor(e,s,c=100){super(e,s,{manualControl:!0,skipSubscribeNotification:!0});n(this,g,void 0);n(this,m,void 0);n(this,y,0);o(this,m,c)}get step(){return u(this,y)}startAccumulating(){o(this,g,setInterval(()=>A(this,null,function*(){++R(this,y)._,this.refetch()}),u(this,m)))}stopAccumulating(){clearInterval(u(this,g))}close(){super.close(),this.stopAccumulating()}}g=new WeakMap,m=new WeakMap,y=new WeakMap;var x;class j extends d.Store{constructor(e,s,c){super(null,c);n(this,x,[]);const h=q.debounce(()=>{this.current=s()},0);e.forEach(l=>{u(this,x).push(l.subscribe(()=>{h()}))})}close(){super.close(),u(this,x).forEach(e=>e())}}x=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.Derived=I.Derived;exports.Composed=j;exports.CumulativeResource=P;exports.DerivedArray=E;exports.Resource=D;
1
+ "use strict";var g=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var u=(e,r,t)=>(g(e,r,"read from private field"),t?t.call(e):r.get(e)),l=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},v=(e,r,t,s)=>(g(e,r,"write to private field"),s?s.call(e,t):r.set(e,t),t);var S=(e,r,t,s)=>({set _(o){v(e,r,o,t)},get _(){return u(e,r,s)}});var y=(e,r,t)=>new Promise((s,o)=>{var R=i=>{try{p(t.next(i))}catch(m){o(m)}},C=i=>{try{p(t.throw(i))}catch(m){o(m)}},p=i=>i.done?s(i.value):Promise.resolve(i.value).then(R,C);p((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../Store-D0_rDIsE.cjs"),A=require("../Derived-SjPdLJiZ.cjs"),d=require("../Composed-C2Vv1xxR.cjs");var c,a,n;class D extends d.Resource{constructor(t,s,o=100){super(t,s,{manualControl:!0,skipSubscribeNotification:!0});l(this,c,void 0);l(this,a,void 0);l(this,n,0);v(this,a,o)}get step(){return u(this,n)}startAccumulating(){v(this,c,setInterval(()=>y(this,null,function*(){++S(this,n)._,this.refetch()}),u(this,a)))}stopAccumulating(){clearInterval(u(this,c))}close(){super.close(),this.stopAccumulating()}}c=new WeakMap,a=new WeakMap,n=new WeakMap;exports.Store=h.Store;exports.activeStores=h.activeStores;exports.storeRegistry=h.storeRegistry;exports.Derived=A.Derived;exports.Composed=d.Composed;exports.DerivedArray=d.DerivedArray;exports.Resource=d.Resource;exports.CumulativeResource=D;
@@ -1,138 +1,75 @@
1
- var C = (e, t, s) => {
2
- if (!t.has(e))
3
- throw TypeError("Cannot " + s);
1
+ var v = (t, s, e) => {
2
+ if (!s.has(t))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var u = (e, t, s) => (C(e, t, "read from private field"), s ? s.call(e) : t.get(e)), n = (e, t, s) => {
6
- if (t.has(e))
5
+ var i = (t, s, e) => (v(t, s, "read from private field"), e ? e.call(t) : s.get(t)), n = (t, s, e) => {
6
+ if (s.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
- }, h = (e, t, s, r) => (C(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
10
- var S = (e, t, s, r) => ({
11
- set _(c) {
12
- h(e, t, c, s);
8
+ s instanceof WeakSet ? s.add(t) : s.set(t, e);
9
+ }, p = (t, s, e, r) => (v(t, s, "write to private field"), r ? r.call(t, e) : s.set(t, e), e);
10
+ var f = (t, s, e, r) => ({
11
+ set _(a) {
12
+ p(t, s, a, e);
13
13
  },
14
14
  get _() {
15
- return u(e, t, r);
15
+ return i(t, s, r);
16
16
  }
17
17
  });
18
- var y = (e, t, s) => new Promise((r, c) => {
19
- var o = (i) => {
18
+ var d = (t, s, e) => new Promise((r, a) => {
19
+ var g = (o) => {
20
20
  try {
21
- d(s.next(i));
22
- } catch (f) {
23
- c(f);
21
+ m(e.next(o));
22
+ } catch (h) {
23
+ a(h);
24
24
  }
25
- }, a = (i) => {
25
+ }, x = (o) => {
26
26
  try {
27
- d(s.throw(i));
28
- } catch (f) {
29
- c(f);
27
+ m(e.throw(o));
28
+ } catch (h) {
29
+ a(h);
30
30
  }
31
- }, d = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(o, a);
32
- d((s = s.apply(e, t)).next());
31
+ }, m = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(g, x);
32
+ m((e = e.apply(t, s)).next());
33
33
  });
34
- import { S as A } from "../Store-uTyReFzx.js";
35
- import { a as B, s as F } from "../Store-uTyReFzx.js";
36
- import { D as H } from "../Derived-BS2ja9qa.js";
37
- import { d as D } from "../function-C10DGppn.js";
38
- var m;
39
- class w extends A {
40
- constructor(s, r, c) {
41
- super(null, c);
42
- n(this, m, void 0);
43
- h(this, m, s.subscribe((o) => {
44
- const a = [];
45
- o.current.forEach((d, i) => {
46
- var f;
47
- o.current[i] === ((f = o.previous) == null ? void 0 : f[i]) && this.current[i] ? a.push(this.current[i]) : a.push(r(d));
48
- }), this.current = a;
49
- }));
50
- }
51
- close() {
52
- super.close(), u(this, m).call(this);
53
- }
54
- }
55
- m = new WeakMap();
56
- var b, l, p;
57
- class E extends A {
58
- constructor(s, r, c) {
59
- super(s, c);
60
- n(this, b, void 0);
61
- n(this, l, void 0);
62
- n(this, p, 0);
63
- h(this, l, new A(!1)), h(this, b, r), c != null && c.manualControl || this.refetch();
64
- }
65
- get isPending() {
66
- return u(this, l);
67
- }
68
- /**
69
- * Calls fetcher again and sets isPending to true.
70
- */
71
- refetch() {
72
- u(this, l).current = !0, h(this, p, u(this, p) + 1);
73
- const s = u(this, p);
74
- u(this, b).call(this).then((r) => {
75
- s === u(this, p) && (u(this, l).current = !1, this.current = r);
76
- });
77
- }
78
- }
79
- b = new WeakMap(), l = new WeakMap(), p = new WeakMap();
80
- var v, x, g;
81
- class N extends E {
82
- constructor(s, r, c = 100) {
83
- super(s, r, {
34
+ import { S as I, a as b, s as k } from "../Store-JOKrNVEr.js";
35
+ import { D as j } from "../Derived-Bc88XJ8J.js";
36
+ import { R as A } from "../Composed-DhtYBEmo.js";
37
+ import { C as w, D as z } from "../Composed-DhtYBEmo.js";
38
+ var c, u, l;
39
+ class R extends A {
40
+ constructor(e, r, a = 100) {
41
+ super(e, r, {
84
42
  manualControl: !0,
85
43
  skipSubscribeNotification: !0
86
44
  });
87
- n(this, v, void 0);
88
- n(this, x, void 0);
89
- n(this, g, 0);
90
- h(this, x, c);
45
+ n(this, c, void 0);
46
+ n(this, u, void 0);
47
+ n(this, l, 0);
48
+ p(this, u, a);
91
49
  }
92
50
  get step() {
93
- return u(this, g);
51
+ return i(this, l);
94
52
  }
95
53
  startAccumulating() {
96
- h(this, v, setInterval(() => y(this, null, function* () {
97
- ++S(this, g)._, this.refetch();
98
- }), u(this, x)));
54
+ p(this, c, setInterval(() => d(this, null, function* () {
55
+ ++f(this, l)._, this.refetch();
56
+ }), i(this, u)));
99
57
  }
100
58
  stopAccumulating() {
101
- clearInterval(u(this, v));
59
+ clearInterval(i(this, c));
102
60
  }
103
61
  close() {
104
62
  super.close(), this.stopAccumulating();
105
63
  }
106
64
  }
107
- v = new WeakMap(), x = new WeakMap(), g = new WeakMap();
108
- var I;
109
- class j extends A {
110
- constructor(s, r, c) {
111
- super(null, c);
112
- n(this, I, []);
113
- const o = D(() => {
114
- this.current = r();
115
- }, 0);
116
- s.forEach((a) => {
117
- u(this, I).push(
118
- a.subscribe(() => {
119
- o();
120
- })
121
- );
122
- });
123
- }
124
- close() {
125
- super.close(), u(this, I).forEach((s) => s());
126
- }
127
- }
128
- I = new WeakMap();
65
+ c = new WeakMap(), u = new WeakMap(), l = new WeakMap();
129
66
  export {
130
- j as Composed,
131
- N as CumulativeResource,
132
- H as Derived,
133
- w as DerivedArray,
134
- E as Resource,
135
- A as Store,
136
- B as activeStores,
137
- F as storeRegistry
67
+ w as Composed,
68
+ R as CumulativeResource,
69
+ j as Derived,
70
+ z as DerivedArray,
71
+ A as Resource,
72
+ I as Store,
73
+ b as activeStores,
74
+ k as storeRegistry
138
75
  };
@@ -1,4 +1,4 @@
1
- "use strict";var he=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var m=(t,e,r)=>(he(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},x=(t,e,r,n)=>(he(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const fe=require("../browser-CpzFX2xg.cjs"),p=require("../custom-element/index.cjs"),b=require("../ElementConstructor-v1FPLXAW.cjs"),f=require("../createStylesheet-ChhZFwSX.cjs"),d=require("../Store-BOOfmlyv.cjs"),me=require("../file-EevnUtRj.cjs"),be=require("../function-MthRj-GJ.cjs"),h=require("../htmlTags-CwYHVo9n.cjs"),ke=require("../Animated-DZ_fbJmi.cjs"),_e=require("../Viewport-CDqiD8Ao.cjs"),ye=require("../accordion/index.cjs"),Se=require("../index-tPw9mmLF.cjs"),i=require("../theme/index.cjs"),Te=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',Ce='<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>',xe='<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>';var C,w;class $e{constructor(){q(this,C,"");q(this,w,[]);x(this,C,d.storeRegistry.projectName+"-studio")}openPanel(e){m(this,w).includes(e)||m(this,w).push(e)}closePanel(e){x(this,w,m(this,w).filter(r=>r!==e))}isPanelOpened(e){return m(this,w).includes(e)}save(){const e={openedPanels:m(this,w)};localStorage.setItem(m(this,C),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(m(this,C));if(e)try{const r=JSON.parse(e);r.openedPanels&&x(this,w,r.openedPanels)}catch(r){console.error(r)}}}C=new WeakMap,w=new WeakMap;const T=new $e;var F;class A extends p.CustomElement{constructor(r){super();q(this,F,void 0);x(this,F,r)}get store(){return m(this,F)}}F=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ee=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Pe(e,r,a),a};const Me=f.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${i.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${i.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:i.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:i.aptechkaTheme.colorLight.var}});let ee=class extends A{constructor(t){super(t),this.openShadow(Me),b.element(this,{shadowChildren:[h.input({attributes:{type:"checkbox"},events:{change:e=>{this.store.current=e.currentTarget.checked}},ref:e=>{this.store.subscribe(r=>{e.checked=r.current})}})]})}};ee=Ee([p.define("e-tweaker-boolean-manager")],ee);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Re(e,r,a),a};const Le=f.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:i.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:i.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:i.aptechkaTheme.borderRadius.var,height:`calc(${i.aptechkaTheme.heightInput.var} * 0.93)`}});let te=class extends A{constructor(t){super(t),this.openShadow(Le),b.element(this,{shadowChildren:[h.input({attributes:{type:"color",value:this.store},events:{input:e=>{this.store.current=e.currentTarget.value}}})]})}};te=We([p.define("e-tweaker-color-manager")],te);var Fe=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Ie=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ae(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Fe(e,r,a),a};const qe=f.createStylesheet({a:{color:"inherit"}});let re=class extends A{constructor(t){var e,r;super(t),this.openShadow(qe),b.element(this,{shadowChildren:[h.a({attributes:{href:this.store,target:(r=(e=this.store.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank"},children:this.store})]})}};re=Ie([p.define("e-tweaker-link-manager")],re);var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ne(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&ze(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},U=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ge=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ke=f.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:i.aptechkaTheme.fontSizeSmall.var},".text-input":{height:i.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${i.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var}});let Y=class extends A{constructor(t){super(t),Ge(this,P,new d.Store([])),this.openShadow(Ke),b.element(this,{shadowChildren:[h.input({class:"text-input",attributes:{type:"string",value:this.store},events:{change:e=>{this.store.current=e.currentTarget.value}}}),U(this,P)]})}appendContent(t){U(this,P).current=[...U(this,P).current,t]}};P=new WeakMap;Y=He([p.define("e-tweaker-string-manager")],Y);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Be=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},k=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},X=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,E,M,N;let Q=class extends Y{constructor(t){var e,r,n,a,o,s;super(t),z(this,O,void 0),z(this,E,void 0),z(this,M,void 0),z(this,N,_=>{const I=typeof _=="string"?parseFloat(_)||this.min:_,we=Te.clamp(I,k(this,E),k(this,M));return this.toFixed(we)}),X(this,E,((r=(e=this.store.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),X(this,M,((a=(n=this.store.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),X(this,O,((s=(o=this.store.passport)==null?void 0:o.manager)==null?void 0:s.step)||.01)}get min(){return k(this,E)}get max(){return k(this,M)}get step(){return k(this,O)}toFixed(t){var r;const e=((r=k(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.store.addMiddleware(k(this,N))}disconnectedCallback(){this.store.removeMiddleware(k(this,N))}};O=new WeakMap;E=new WeakMap;M=new WeakMap;N=new WeakMap;Q=Be([p.define("e-tweaker-number-manager")],Q);var Ye=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Ye(e,r,a),a};const Xe=f.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:i.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${i.aptechkaTheme.heightInput.var} * 0.7)`,width:i.aptechkaTheme.borderRadius.var,borderRadius:i.aptechkaTheme.borderRadius.var,backgroundColor:i.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:i.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:i.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ae=class extends Q{constructor(t){super(t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",attributes:{type:"range",min:this.min,max:this.max,step:this.step,value:this.store},events:{input:e=>{this.store.current=parseFloat(e.currentTarget.value)}}}))}};ae=Ue([p.define("e-tweaker-range-manager")],ae);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&je(e,r,a),a};const rt=f.createStylesheet({"e-select":{width:"100%","--arrow-color":i.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:i.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:i.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:i.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:i.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let ne=class extends A{constructor(t){var r,n;super(t),this.openShadow(rt);const e=((n=(r=this.store.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];b.element(this,{shadowChildren:h.custom("e-select",{attributes:{value:this.store},events:{change:a=>{this.store.current=a.currentTarget.value}},children:[h.custom("e-select-head",{children:[h.span({attributes:{"data-value-holder":""}})]}),...e.map((a,o)=>h.custom("e-select-option",{children:a,attributes:{default:o===0?!0:null}}))]})})}};ne=tt([p.define("e-tweaker-select-manager")],ne);const at={boolean:ee,color:te,link:re,number:Q,range:ae,select:ne,string:Y};var nt=Object.defineProperty,st=Object.getOwnPropertyDescriptor,it=(t,e,r,n)=>{for(var a=n>1?void 0:n?st(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),y=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),u,R,D,W,H,Z;const ot=f.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.3fr 1fr",alignItems:"center",color:i.aptechkaTheme.colorLight.var,gap:i.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:i.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:i.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:i.aptechkaTheme.colorLight.var,transitionDuration:i.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:i.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let se=class extends p.CustomElement{constructor(t){var r,n,a,o;super(),y(this,u,null),y(this,R,void 0),y(this,D,void 0),y(this,W,!1),y(this,H,()=>{d.activeStores.current.includes(l(this,u))||this.remove()}),y(this,Z,s=>{l(this,W)&&((s.metaKey||s.ctrlKey)&&s.code==="KeyC"?navigator.clipboard.writeText(l(this,u).current):(s.metaKey||s.ctrlKey)&&s.code==="KeyR"&&(l(this,u).reset(),s.preventDefault()))}),$(this,u,t.store),$(this,R,l(this,u).passport.name),$(this,D,l(this,R).split(".").slice(-1).toString()),this.openShadow(ot);const e=((n=(r=l(this,u).passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";b.element(this,{class:{disabled:((o=(a=l(this,u).passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},events:{pointerleave:()=>{$(this,W,!1)},pointerenter:()=>{$(this,W,!0)}},shadowChildren:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,events:{click:()=>{navigator.clipboard.writeText(l(this,u).current)}}}),h.button({class:"head-button",children:de,events:{click:()=>{l(this,u).reset()}}})]})]}),new at[e](l(this,u))]})}get key(){return l(this,R)}get name(){return l(this,D)}get store(){return l(this,u)}connectedCallback(){d.activeStores.subscribe(l(this,H)),addEventListener("keydown",l(this,Z))}disconnectedCallback(){d.activeStores.unsubscribe(l(this,H)),removeEventListener("keydown",l(this,Z))}};u=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;H=new WeakMap;Z=new WeakMap;se=it([p.define("e-tweaker-field")],se);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},j=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,G,v,K,V,ie;const dt=f.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:i.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:i.aptechkaTheme.gapMedium.var,paddingRight:i.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:i.aptechkaTheme.colorDarkAux.var,borderRadius:i.aptechkaTheme.borderRadius.var},".name":{fontSize:i.aptechkaTheme.fontSizeLarge.var,color:i.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:i.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:i.aptechkaTheme.gapLarge.var,display:"grid",gap:i.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:i.aptechkaTheme.colorLight.var,transition:`transform ${i.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let L=class extends ye.AccordionElement{constructor(t){super(),S(this,g,void 0),S(this,G,new d.Store(null)),S(this,v,new d.Store([])),S(this,K,void 0),S(this,V,null),S(this,ie,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,v).current=c(this,v).current.filter(a=>!r.includes(a)),c(this,g)&&!c(this,v).current.length&&!n.length&&this.remove()}),this.openShadow(dt),j(this,g,t.key),j(this,K,new MutationObserver(c(this,ie))),b.element(this,{events:{"e-accordion-item-toggle":e=>{e.stopPropagation(),e.detail.opened?T.openPanel(c(this,g)):T.closePanel(c(this,g))}},shadowChildren:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,g)?h.div({class:"name",children:[c(this,g).split(".").slice(-1).toString()]}):null,c(this,G),b.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,v),ref:e=>j(this,V,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,g)}get head(){return c(this,G)}get content(){return c(this,v)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{T.isPanelOpened(c(this,g))&&this.openAll({skipTransition:!0})},50),c(this,K).observe(c(this,V),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,v).current.find(o=>o.key===n);a instanceof L?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,v).current=[...c(this,v).current,new L({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else c(this,v).current=[...c(this,v).current,new se({store:t.store})]}};g=new WeakMap;G=new WeakMap;v=new WeakMap;K=new WeakMap;V=new WeakMap;ie=new WeakMap;L=lt([p.define("e-tweaker-folder")],L);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ce=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),wt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},J;const ft=f.createStylesheet({":host":{position:"absolute",top:i.aptechkaTheme.tweakerOffset.var,right:i.aptechkaTheme.tweakerOffset.var,width:i.aptechkaTheme.tweakerWidth.var,backgroundColor:i.aptechkaTheme.colorDark.var,borderRadius:i.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:i.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:i.aptechkaTheme.colorLight.var,transitionProperty:"fill"},".tweaker-button:hover":{fill:i.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
1
+ "use strict";var he=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var v=(t,e,r)=>(he(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$=(t,e,r,n)=>(he(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("../browser-CpzFX2xg.cjs"),p=require("../custom-element/index.cjs"),d=require("../Store-D0_rDIsE.cjs"),h=require("../tags-DkAbVUQP.cjs"),m=require("../createStylesheet-C1rimcGc.cjs"),me=require("../file-EevnUtRj.cjs"),be=require("../function-MthRj-GJ.cjs"),ke=require("../Animated-Bf-gPIQM.cjs"),_e=require("../Viewport-COsaberc.cjs"),Se=require("../accordion/index.cjs"),ye=require("../index-vI4hmrI8.cjs"),Te=require("../events-D68xg4dy.cjs"),i=require("../theme/index.cjs"),Ce=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',xe='<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>',$e='<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>';var x,w;class Pe{constructor(){z(this,x,"");z(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){v(this,w).includes(e)||v(this,w).push(e)}closePanel(e){$(this,w,v(this,w).filter(r=>r!==e))}isPanelOpened(e){return v(this,w).includes(e)}save(){const e={openedPanels:v(this,w)};localStorage.setItem(v(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(v(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new Pe;var _;class A extends p.CustomElement{constructor(...r){super();z(this,_,void 0);$(this,_,r)}addStore(r){v(this,_).push(r)}get firstStore(){return v(this,_)[0]}get stores(){return v(this,_)}updateStores(r){v(this,_).forEach(n=>{n.current=r})}}_=new WeakMap;var Oe=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Me=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ee(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Oe(e,r,a),a};const Re=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${i.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${i.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:i.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:i.aptechkaTheme.colorLight.var}});let te=class extends A{constructor(...t){super(...t),this.openShadow(Re),h.element(this,{shadowChildren:[h.input({attributes:{type:"checkbox"},events:{change:e=>{this.updateStores(e.currentTarget.checked)}},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};te=Me([p.define("e-tweaker-boolean-manager")],te);var De=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Le=(t,e,r,n)=>{for(var a=n>1?void 0:n?We(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&De(e,r,a),a};const Fe=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:i.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:i.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:i.aptechkaTheme.borderRadius.var,height:`calc(${i.aptechkaTheme.heightInput.var} * 0.93)`}});let re=class extends A{constructor(...t){super(...t),this.openShadow(Fe),h.element(this,{shadowChildren:[h.input({attributes:{type:"color",value:this.firstStore},events:{input:e=>{this.updateStores(e.currentTarget.value)}}})]})}};re=Le([p.define("e-tweaker-color-manager")],re);var Ae=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,ze=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ie(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Ae(e,r,a),a};const qe=m.createStylesheet({a:{color:"inherit"}});let ae=class extends A{constructor(...t){var e,r;super(...t),this.openShadow(qe),h.element(this,{shadowChildren:[h.a({attributes:{href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank"},children:this.firstStore})]})}};ae=ze([p.define("e-tweaker-link-manager")],ae);var Ne=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ze=(t,e,r,n)=>{for(var a=n>1?void 0:n?He(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Ne(e,r,a),a},Ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},X=(t,e,r)=>(Ge(t,e,"read from private field"),r?r.call(t):e.get(t)),Ke=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},P;const Ve=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:i.aptechkaTheme.fontSizeSmall.var},".text-input":{height:i.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${i.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var}});let B=class extends A{constructor(...t){super(...t),Ke(this,P,new d.Store([])),this.openShadow(Ve),h.element(this,{shadowChildren:[h.input({class:"text-input",attributes:{type:"string",value:this.firstStore},events:{change:e=>{this.updateStores(e.currentTarget.value)}}}),X(this,P)]})}appendContent(t){X(this,P).current=[...X(this,P).current,t]}};P=new WeakMap;B=Ze([p.define("e-tweaker-string-manager")],B);var Je=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Be=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ye(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Je(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},k=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},j=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,E,M,N;let Q=class extends B{constructor(...t){var e,r,n,a,o,s;super(...t),q(this,O,void 0),q(this,E,void 0),q(this,M,void 0),q(this,N,b=>{const I=typeof b=="string"?parseFloat(b)||this.min:b,fe=Ce.clamp(I,k(this,E),k(this,M));return this.toFixed(fe)}),j(this,E,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),j(this,M,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),j(this,O,((s=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:s.step)||.01)}get min(){return k(this,E)}get max(){return k(this,M)}get step(){return k(this,O)}toFixed(t){var r;const e=((r=k(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(k(this,N))}disconnectedCallback(){this.firstStore.removeMiddleware(k(this,N))}};O=new WeakMap;E=new WeakMap;M=new WeakMap;N=new WeakMap;Q=Be([p.define("e-tweaker-number-manager")],Q);var Qe=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Xe=(t,e,r,n)=>{for(var a=n>1?void 0:n?Ue(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&Qe(e,r,a),a};const je=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:i.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${i.aptechkaTheme.heightInput.var} * 0.7)`,width:i.aptechkaTheme.borderRadius.var,borderRadius:i.aptechkaTheme.borderRadius.var,backgroundColor:i.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:i.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:i.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ne=class extends Q{constructor(...t){super(...t),this.addStylesheet(je),this.appendContent(h.input({class:"range-input",attributes:{type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore},events:{input:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}}))}};ne=Xe([p.define("e-tweaker-range-manager")],ne);var et=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,rt=(t,e,r,n)=>{for(var a=n>1?void 0:n?tt(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&et(e,r,a),a};const at=m.createStylesheet({"e-select":{width:"100%","--arrow-color":i.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:i.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:i.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:i.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:i.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let se=class extends A{constructor(...t){var r,n;super(...t),this.openShadow(at);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{shadowChildren:h.custom("e-select",{attributes:{value:this.firstStore},events:{change:a=>{this.updateStores(a.currentTarget.value)}},children:[h.custom("e-select-head",{children:[h.span({attributes:{"data-value-holder":""}})]}),...e.map((a,o)=>h.custom("e-select-option",{children:a,attributes:{default:o===0?!0:null}}))]})})}};se=rt([p.define("e-tweaker-select-manager")],se);const nt={boolean:te,color:re,link:ae,number:Q,range:ne,select:se,string:B};var st=Object.defineProperty,it=Object.getOwnPropertyDescriptor,ot=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&st(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,H,Z;const ht=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.3fr 1fr",alignItems:"center",color:i.aptechkaTheme.colorLight.var,gap:i.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:i.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:i.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:i.aptechkaTheme.colorLight.var,transitionDuration:i.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:i.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let U=class extends p.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,H,()=>{d.activeStores.current.find(s=>l(this,g).includes(s))||this.remove()}),S(this,Z,s=>{l(this,W)&&((s.metaKey||s.ctrlKey)&&s.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(s.metaKey||s.ctrlKey)&&s.code==="KeyR"&&(l(this,g).forEach(b=>{b.reset()}),s.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new nt[e](l(this,g)[0])),this.openShadow(ht),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},events:{pointerleave:()=>{y(this,W,!1)},pointerenter:()=>{y(this,W,!0)}},shadowChildren:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,events:{click:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}}),h.button({class:"head-button",children:de,events:{click:()=>{l(this,g).forEach(s=>{s.reset()})}}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,H)),addEventListener("keydown",l(this,Z)),Te.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,H)),removeEventListener("keydown",l(this,Z))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;H=new WeakMap;Z=new WeakMap;U=ot([p.define("e-tweaker-field")],U);var ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,dt=(t,e,r,n)=>{for(var a=n>1?void 0:n?lt(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&ct(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ee=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,u,K,V,ie;const pt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:i.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:i.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:i.aptechkaTheme.gapMedium.var,paddingRight:i.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:i.aptechkaTheme.colorDarkAux.var,borderRadius:i.aptechkaTheme.borderRadius.var},".name":{fontSize:i.aptechkaTheme.fontSizeLarge.var,color:i.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:i.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:i.aptechkaTheme.gapLarge.var,display:"grid",gap:i.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:i.aptechkaTheme.colorLight.var,transition:`transform ${i.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let F=class extends Se.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,u,new d.Store([])),T(this,K,void 0),T(this,V,null),T(this,ie,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,u).current=c(this,u).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,u).current.length&&!n.length&&this.remove()}),this.openShadow(pt),ee(this,f,t.key),ee(this,K,new MutationObserver(c(this,ie))),h.element(this,{events:{"e-accordion-item-toggle":e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))}},shadowChildren:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(ye.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,u),ref:e=>ee(this,V,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,u)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,K).observe(c(this,V),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,u).current.find(o=>o.key===n);a instanceof F?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,u).current=[...c(this,u).current,new F({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,u).current.find(r=>r.key===t.store.passport.name);e instanceof U?e.addStore(t.store):c(this,u).current=[...c(this,u).current,new U({store:t.store})]}}};f=new WeakMap;G=new WeakMap;u=new WeakMap;K=new WeakMap;V=new WeakMap;ie=new WeakMap;F=dt([p.define("e-tweaker-folder")],F);var ut=Object.defineProperty,vt=Object.getOwnPropertyDescriptor,gt=(t,e,r,n)=>{for(var a=n>1?void 0:n?vt(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&ut(e,r,a),a},ft=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ce=(t,e,r)=>(ft(t,e,"read from private field"),r?r.call(t):e.get(t)),wt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},J;const mt=m.createStylesheet({":host":{position:"absolute",top:i.aptechkaTheme.tweakerOffset.var,right:i.aptechkaTheme.tweakerOffset.var,width:i.aptechkaTheme.tweakerWidth.var,backgroundColor:i.aptechkaTheme.colorDark.var,borderRadius:i.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:i.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:i.aptechkaTheme.colorLight.var,transitionProperty:"fill"},".tweaker-button:hover":{fill:i.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
2
2
  100dvh -
3
3
  (
4
4
  ${i.aptechkaTheme.tweakerOffset.var} * 2 +
@@ -7,4 +7,4 @@
7
7
  )`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${_e.ViewportMediaRules["<=mobile"]}`]:{":host":{position:"absolute",top:"0",right:"0",width:"100%",borderTopLeftRadius:"0",borderTopRightRadius:"0"},":host .body-content":{maxHeight:`calc(
8
8
  100dvh -
9
9
  ${i.aptechkaTheme.tweakerFolderHeight.var}
10
- )`}}});let oe=class extends L{constructor(){super({key:""}),wt(this,J,be.debounce(()=>{d.activeStores.current.forEach(t=>{if(!(t instanceof ke.Animated)){const e=t.passport.name.split(".");this.handleStore({store:t,remainingFolders:e.length>1?e.slice(0,-1):[]})}})},10)),this.addStylesheet(ft),this.head.current=[h.div({class:"tweaker-buttons",events:{click:t=>{t.stopPropagation()}},children:[h.button({class:"tweaker-button",children:de,events:{click:()=>{d.storeRegistry.resetState()}}}),h.button({class:["tweaker-button"],children:[pe],events:{click:()=>{navigator.clipboard.writeText(JSON.stringify(d.storeRegistry.getState()))}}}),h.button({class:"tweaker-button",children:Ce,events:{click:()=>{me.createJSONAndSave(d.storeRegistry.projectName,d.storeRegistry.getState())}}}),h.label({class:"tweaker-button",children:[xe,h.input({attributes:{type:"file"},style:{display:"none"},events:{change:t=>{const e=t.currentTarget;e.onchange=()=>{var n;const r=(n=e.files)==null?void 0:n[0];if(r){const a=new FileReader;a.onload=o=>{var _,I;const s=(I=(_=o.target)==null?void 0:_.result)==null?void 0:I.toString();s&&d.storeRegistry.loadState(s)},a.readAsText(r)}e.onchange=null},e.click()}}})],events:{click:()=>{}}})]})],this.addEventListener("e-accordion-item-toggle",t=>{t.detail.opened?this.style.opacity="1":this.style.opacity="0.1"})}connectedCallback(){super.connectedCallback(),d.activeStores.subscribe(ce(this,J))}disconnectedCallback(){super.disconnectedCallback(),d.activeStores.unsubscribe(ce(this,J))}};J=new WeakMap;oe=vt([p.define("e-tweaker")],oe);var mt=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,kt=(t,e,r,n)=>{for(var a=n>1?void 0:n?bt(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&mt(e,r,a),a},_t=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},le=(t,e,r)=>(_t(t,e,"read from private field"),r?r.call(t):e.get(t)),yt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},B;const St=f.createStylesheet({":host":{fontFamily:"sans-serif",position:"fixed",top:"0",left:"0",zIndex:"1000",display:"block",width:"100%",height:"100%"}});exports.StudioElement=class extends p.CustomElement{constructor(){super(),yt(this,B,()=>{T.save()}),this.openShadow(St),T.load(),b.element(this,{shadowChildren:[new oe]})}connectedCallback(){window.addEventListener("beforeunload",le(this,B))}disconnectedCallback(){window.removeEventListener("beforeunload",le(this,B)),T.save()}};B=new WeakMap;exports.StudioElement=kt([p.define("e-studio")],exports.StudioElement);fe.isBrowser&&document.body.appendChild(new exports.StudioElement);
10
+ )`}}});let oe=class extends F{constructor(){super({key:""}),wt(this,J,be.debounce(()=>{d.activeStores.current.forEach(t=>{if(!(t instanceof ke.Animated)){const e=t.passport.name.split(".");this.handleStore({store:t,remainingFolders:e.length>1?e.slice(0,-1):[]})}})},10)),this.addStylesheet(mt),this.head.current=[h.div({class:"tweaker-buttons",events:{click:t=>{t.stopPropagation()}},children:[h.button({class:"tweaker-button",children:de,events:{click:()=>{d.storeRegistry.resetState()}}}),h.button({class:["tweaker-button"],children:[pe],events:{click:()=>{navigator.clipboard.writeText(JSON.stringify(d.storeRegistry.getState()))}}}),h.button({class:"tweaker-button",children:xe,events:{click:()=>{me.createJSONAndSave(d.storeRegistry.projectName,d.storeRegistry.getState())}}}),h.label({class:"tweaker-button",children:[$e,h.input({attributes:{type:"file"},style:{display:"none"},events:{change:t=>{const e=t.currentTarget;e.onchange=()=>{var n;const r=(n=e.files)==null?void 0:n[0];if(r){const a=new FileReader;a.onload=o=>{var b,I;const s=(I=(b=o.target)==null?void 0:b.result)==null?void 0:I.toString();s&&d.storeRegistry.loadState(s)},a.readAsText(r)}e.onchange=null},e.click()}}})],events:{click:()=>{}}})]})],this.addEventListener("e-accordion-item-toggle",t=>{t.detail.opened?this.style.opacity="1":this.style.opacity="0.1"})}connectedCallback(){super.connectedCallback(),d.activeStores.subscribe(ce(this,J))}disconnectedCallback(){super.disconnectedCallback(),d.activeStores.unsubscribe(ce(this,J))}};J=new WeakMap;oe=gt([p.define("e-tweaker")],oe);var bt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,_t=(t,e,r,n)=>{for(var a=n>1?void 0:n?kt(e,r):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(a=(n?s(e,r,a):s(a))||a);return n&&a&&bt(e,r,a),a},St=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},le=(t,e,r)=>(St(t,e,"read from private field"),r?r.call(t):e.get(t)),yt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Y;const Tt=m.createStylesheet({":host":{fontFamily:"sans-serif"}});exports.StudioElement=class extends p.CustomElement{constructor(){super(),yt(this,Y,()=>{C.save()}),this.openShadow(Tt),C.load(),h.element(this,{shadowChildren:[new oe]})}connectedCallback(){window.addEventListener("beforeunload",le(this,Y))}disconnectedCallback(){window.removeEventListener("beforeunload",le(this,Y)),C.save()}};Y=new WeakMap;exports.StudioElement=_t([p.define("e-studio")],exports.StudioElement);we.isBrowser&&document.body.appendChild(new exports.StudioElement);