aptechka 0.1.3 → 0.1.6

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 (210) hide show
  1. package/lib/Animated-CJcYqJzq.js +130 -0
  2. package/lib/Animated-DyZuTEQE.cjs +1 -0
  3. package/lib/Damped-AHRBHNEQ.cjs +1 -0
  4. package/lib/Damped-Csj-9_gH.js +36 -0
  5. package/lib/Derived-Bc88XJ8J.js +27 -0
  6. package/lib/Derived-SjPdLJiZ.cjs +1 -0
  7. package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
  8. package/lib/ElementConstructor-CoKM2CTK.js +228 -0
  9. package/lib/{SourceManager-vXInLlh_.js → SourceManager-BoP9RAJr.js} +26 -26
  10. package/lib/SourceManager-CI6NfLzW.cjs +1 -0
  11. package/lib/Store-D0_rDIsE.cjs +1 -0
  12. package/lib/Store-JOKrNVEr.js +152 -0
  13. package/lib/Viewport-COsaberc.cjs +1 -0
  14. package/lib/Viewport-CXY5xcGJ.js +129 -0
  15. package/lib/WheelControls-CX9WUbBC.js +83 -0
  16. package/lib/WheelControls-CfDeGCOU.cjs +1 -0
  17. package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
  18. package/lib/abstract-elements/index.cjs +1 -0
  19. package/lib/abstract-elements/index.d.ts +1 -0
  20. package/lib/abstract-elements/index.js +27 -0
  21. package/lib/accordion/AccordionElement.d.ts +24 -1
  22. package/lib/accordion/index.cjs +1 -0
  23. package/lib/accordion/index.js +166 -0
  24. package/lib/animation/Animated.d.ts +9 -12
  25. package/lib/animation/Tweened.d.ts +1 -1
  26. package/lib/animation/index.cjs +1 -1
  27. package/lib/animation/index.d.ts +1 -1
  28. package/lib/animation/index.js +11 -17
  29. package/lib/attribute/index.cjs +1 -1
  30. package/lib/attribute/index.d.ts +8 -4
  31. package/lib/attribute/index.js +44 -35
  32. package/lib/canvas/index.cjs +1 -0
  33. package/lib/{canvas-2d → canvas}/index.d.ts +4 -3
  34. package/lib/canvas/index.js +97 -0
  35. package/lib/connector/index.cjs +1 -0
  36. package/lib/connector/index.d.ts +15 -0
  37. package/lib/connector/index.js +54 -0
  38. package/lib/controls/WheelControls.d.ts +3 -2
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +23 -27
  41. package/lib/createStylesheet-BON7aJYs.js +10 -0
  42. package/lib/createStylesheet-uicRVW05.cjs +1 -0
  43. package/lib/createTheme-BMH9cRrS.js +15 -0
  44. package/lib/createTheme-COo8IzPG.cjs +1 -0
  45. package/lib/custom-element/index.cjs +1 -1
  46. package/lib/custom-element/index.d.ts +3 -1
  47. package/lib/custom-element/index.js +19 -9
  48. package/lib/device/Viewport.d.ts +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +5 -121
  51. package/lib/element-constructor/ElementConstructor.d.ts +15 -17
  52. package/lib/element-constructor/createStylesheet.d.ts +2 -0
  53. package/lib/element-constructor/createTheme.d.ts +12 -0
  54. package/lib/element-constructor/htmlTags.d.ts +115 -113
  55. package/lib/element-constructor/index.cjs +1 -1
  56. package/lib/element-constructor/index.d.ts +2 -1
  57. package/lib/element-constructor/index.js +387 -1136
  58. package/lib/element-constructor/svgTags.d.ts +63 -63
  59. package/lib/element-resizer/index.cjs +1 -0
  60. package/lib/element-resizer/index.d.ts +9 -0
  61. package/lib/element-resizer/index.js +64 -0
  62. package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
  63. package/lib/en3/index.cjs +7 -7
  64. package/lib/en3/index.js +252 -242
  65. package/lib/en3/objects/En3Clip.d.ts +2 -2
  66. package/lib/events-CoqmkUxo.js +11 -0
  67. package/lib/events-D68xg4dy.cjs +1 -0
  68. package/lib/file-EevnUtRj.cjs +1 -0
  69. package/lib/file-lxi_oXJf.js +13 -0
  70. package/lib/htmlTags-BCNUG7oK.js +683 -0
  71. package/lib/htmlTags-BSQys9wH.cjs +1 -0
  72. package/lib/image/index.cjs +1 -1
  73. package/lib/image/index.js +13 -20
  74. package/lib/index-DgtdcBEI.js +310 -0
  75. package/lib/index-i_Ki9M-w.cjs +9 -0
  76. package/lib/intersector/index.cjs +1 -1
  77. package/lib/intersector/index.d.ts +2 -1
  78. package/lib/intersector/index.js +33 -22
  79. package/lib/jsx/ComponentElement.d.ts +17 -0
  80. package/lib/jsx/h.d.ts +8 -0
  81. package/lib/jsx/hooks.d.ts +25 -0
  82. package/lib/jsx/index.cjs +1 -0
  83. package/lib/jsx/index.d.ts +4 -0
  84. package/lib/jsx/index.js +116 -0
  85. package/lib/jsx/render.d.ts +2 -0
  86. package/lib/jsx/type.d.ts +186 -0
  87. package/lib/ladder/index.cjs +1 -1
  88. package/lib/ladder/index.js +3 -4
  89. package/lib/layout-box/index.cjs +1 -1
  90. package/lib/layout-box/index.d.ts +1 -0
  91. package/lib/layout-box/index.js +113 -99
  92. package/lib/loading/index.cjs +1 -1
  93. package/lib/loading/index.js +1 -1
  94. package/lib/media/index.cjs +1 -1
  95. package/lib/media/index.js +17 -20
  96. package/lib/modal/ModalElement.d.ts +12 -0
  97. package/lib/modal/index.cjs +1 -0
  98. package/lib/modal/index.d.ts +1 -0
  99. package/lib/modal/index.js +144 -0
  100. package/lib/morph/index.cjs +1 -1
  101. package/lib/morph/index.js +1 -1
  102. package/lib/number-Bo5RdrA1.js +23 -0
  103. package/lib/number-yVpzMdbQ.cjs +1 -0
  104. package/lib/popover/PopoverButtonElement.d.ts +14 -0
  105. package/lib/popover/PopoverElement.d.ts +19 -0
  106. package/lib/popover/index.cjs +1 -0
  107. package/lib/popover/index.d.ts +2 -0
  108. package/lib/popover/index.js +122 -0
  109. package/lib/router/index.cjs +1 -1
  110. package/lib/router/index.js +2 -2
  111. package/lib/scroll/ScrollElement.d.ts +5 -3
  112. package/lib/scroll/index.cjs +1 -71
  113. package/lib/scroll/index.js +349 -314
  114. package/lib/scroll-entries/index.cjs +1 -1
  115. package/lib/scroll-entries/index.d.ts +1 -1
  116. package/lib/scroll-entries/index.js +4 -2
  117. package/lib/select/SelectElement.d.ts +25 -0
  118. package/lib/select/SelectHeadElement.d.ts +12 -0
  119. package/lib/select/SelectOptionElement.d.ts +13 -0
  120. package/lib/select/SelectUserElement.d.ts +7 -0
  121. package/lib/select/index.cjs +1 -0
  122. package/lib/select/index.d.ts +4 -0
  123. package/lib/select/index.js +7 -0
  124. package/lib/source/SourceClass.d.ts +1 -1
  125. package/lib/source/index.cjs +2 -2
  126. package/lib/source/index.js +13 -18
  127. package/lib/store/CumulativeResource.d.ts +2 -2
  128. package/lib/store/Resource.d.ts +1 -1
  129. package/lib/store/Store.d.ts +55 -9
  130. package/lib/store/StoreRegistry.d.ts +2 -2
  131. package/lib/store/index.cjs +1 -1
  132. package/lib/store/index.d.ts +2 -1
  133. package/lib/store/index.js +105 -66
  134. package/lib/string-BrDhnNUL.js +39 -0
  135. package/lib/string-DzUwFYSS.cjs +1 -0
  136. package/lib/studio/StudioElement.d.ts +3 -0
  137. package/lib/studio/index.cjs +10 -0
  138. package/lib/studio/index.js +1004 -0
  139. package/lib/studio/studioStorage.d.ts +14 -0
  140. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
  141. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
  142. package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
  143. package/lib/studio/tweaker/TweakerFieldElement.d.ts +21 -0
  144. package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
  145. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
  146. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
  147. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
  148. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
  149. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +10 -0
  150. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
  151. package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
  152. package/lib/style-At6aDoqG.cjs +1 -0
  153. package/lib/style-j2TwriJ_.js +10 -0
  154. package/lib/theme/index.cjs +1 -0
  155. package/lib/theme/index.d.ts +90 -0
  156. package/lib/theme/index.js +34 -0
  157. package/lib/ticker/index.cjs +1 -1
  158. package/lib/ticker/index.js +1 -1
  159. package/lib/utils/events.d.ts +6 -0
  160. package/lib/utils/index.cjs +1 -1
  161. package/lib/utils/index.d.ts +8 -7
  162. package/lib/utils/index.js +95 -105
  163. package/lib/utils/number.d.ts +2 -3
  164. package/lib/utils/string.d.ts +1 -0
  165. package/lib/utils/style.d.ts +2 -0
  166. package/lib/utils/ts-utility.d.ts +2 -0
  167. package/lib/video/index.cjs +1 -1
  168. package/lib/video/index.js +13 -20
  169. package/lib/window-resizer/index.cjs +1 -0
  170. package/lib/window-resizer/index.d.ts +9 -0
  171. package/lib/window-resizer/index.js +46 -0
  172. package/package.json +91 -28
  173. package/lib/Damped-DdPj4Sho.cjs +0 -1
  174. package/lib/Damped-H3PuZwKV.js +0 -152
  175. package/lib/SourceManager-tmQlXkSD.cjs +0 -1
  176. package/lib/Store-qq7IjRLE.js +0 -136
  177. package/lib/Store-txkR3wXU.cjs +0 -1
  178. package/lib/WheelControls-9ZQKSYYq.js +0 -83
  179. package/lib/WheelControls-TYhGU6oA.cjs +0 -1
  180. package/lib/canvas-2d/index.cjs +0 -5
  181. package/lib/canvas-2d/index.js +0 -90
  182. package/lib/element-constructor/specialObjects.d.ts +0 -2
  183. package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
  184. package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
  185. package/lib/measurer/Meaurer.d.ts +0 -8
  186. package/lib/measurer/index.cjs +0 -1
  187. package/lib/measurer/index.d.ts +0 -3
  188. package/lib/measurer/index.js +0 -48
  189. package/lib/number-2bR0KBcX.cjs +0 -1
  190. package/lib/number-bCHB2GAD.js +0 -31
  191. package/lib/resizer/index.cjs +0 -1
  192. package/lib/resizer/index.d.ts +0 -10
  193. package/lib/resizer/index.js +0 -45
  194. package/lib/string-GmxZA5Nq.js +0 -31
  195. package/lib/string-WmNOGq16.cjs +0 -1
  196. package/lib/utils/dev.d.ts +0 -3
  197. /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
  198. /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
  199. /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
  200. /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
  201. /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
  202. /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
  203. /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
  204. /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
  205. /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
  206. /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
  207. /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
  208. /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
  209. /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
  210. /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
@@ -0,0 +1,130 @@
1
+ var j = Object.defineProperty, q = Object.defineProperties;
2
+ var z = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var B = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
+ var $ = (s, r, e) => r in s ? j(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e, k = (s, r) => {
6
+ for (var e in r || (r = {}))
7
+ B.call(r, e) && $(s, e, r[e]);
8
+ if (R)
9
+ for (var e of R(r))
10
+ D.call(r, e) && $(s, e, r[e]);
11
+ return s;
12
+ }, v = (s, r) => q(s, z(r));
13
+ var C = (s, r, e) => {
14
+ if (!r.has(s))
15
+ throw TypeError("Cannot " + e);
16
+ };
17
+ var t = (s, r, e) => (C(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
18
+ if (r.has(s))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ r instanceof WeakSet ? r.add(s) : r.set(s, e);
21
+ }, a = (s, r, e, u) => (C(s, r, "write to private field"), u ? u.call(s, e) : r.set(s, e), e);
22
+ import { S as m } from "./Store-JOKrNVEr.js";
23
+ import { c as E } from "./math-BOBiC4TN.js";
24
+ import { p as G } from "./number-Bo5RdrA1.js";
25
+ import { ticker as N } from "./ticker/index.js";
26
+ var g, x, F, h, n, c, b, f, A, l, P, S, w;
27
+ class Q extends m {
28
+ constructor(e) {
29
+ super((e == null ? void 0 : e.default) || 0, e);
30
+ i(this, g, void 0);
31
+ i(this, x, void 0);
32
+ i(this, F, void 0);
33
+ i(this, h, void 0);
34
+ i(this, n, void 0);
35
+ i(this, c, void 0);
36
+ i(this, b, new m(null));
37
+ i(this, f, new m(!1));
38
+ i(this, A, 0);
39
+ i(this, l, 0);
40
+ i(this, P, (e) => {
41
+ this.set(e.current);
42
+ });
43
+ i(this, S, (e) => {
44
+ const u = this.current;
45
+ this.handleAnimationFrame(e);
46
+ const d = Math.abs(u - this.target);
47
+ a(this, l, d / e.elapsed);
48
+ });
49
+ i(this, w, () => {
50
+ this.set(t(this, h)), this.current = t(this, h);
51
+ });
52
+ a(this, x, e == null ? void 0 : e.order), a(this, g, e == null ? void 0 : e.maxFPS), a(this, F, e == null ? void 0 : e.culling), a(this, h, this.current);
53
+ let u, d;
54
+ e != null && e.passport && (u = {
55
+ name: `${e.passport.name + "-min"}`
56
+ }, d = {
57
+ name: `${e.passport.name + "-max"}`
58
+ }), a(this, n, (e == null ? void 0 : e.min) instanceof m ? e.min : new m(0, { passport: u })), a(this, c, (e == null ? void 0 : e.max) instanceof m ? e.max : new m(0, { passport: d })), t(this, n).subscribe(t(this, w)), t(this, c).subscribe(t(this, w)), t(this, b).subscribe((L) => {
59
+ var y, M;
60
+ (y = L.previous) == null || y.unsubscribe(t(this, P)), (M = L.current) == null || M.subscribe(t(this, P));
61
+ });
62
+ }
63
+ get target() {
64
+ return t(this, h);
65
+ }
66
+ get isRunning() {
67
+ return t(this, f);
68
+ }
69
+ get direction() {
70
+ return t(this, A);
71
+ }
72
+ get maxFPS() {
73
+ return t(this, g);
74
+ }
75
+ get speed() {
76
+ return t(this, l);
77
+ }
78
+ get min() {
79
+ return t(this, n);
80
+ }
81
+ get max() {
82
+ return t(this, c);
83
+ }
84
+ get delta() {
85
+ return t(this, c).current - t(this, n).current;
86
+ }
87
+ get progress() {
88
+ return this.delta ? G((this.current - this.min.current) / this.delta, 6) : 0;
89
+ }
90
+ get entry() {
91
+ return v(k({}, super.entry), {
92
+ min: t(this, n).current,
93
+ max: t(this, c).current,
94
+ delta: this.delta,
95
+ direction: this.direction,
96
+ progress: this.progress,
97
+ speed: this.speed
98
+ });
99
+ }
100
+ get updater() {
101
+ return t(this, b);
102
+ }
103
+ set(e, u = !1) {
104
+ const d = t(this, h);
105
+ a(this, h, E(e, t(this, n).current, t(this, c).current)), u && (this.current = t(this, h)), t(this, h) !== d && (a(this, l, 0), a(this, A, Math.sign(e - t(this, h)) || 1), this.update());
106
+ }
107
+ shift(e, u = !1) {
108
+ this.set(t(this, h) + e, u);
109
+ }
110
+ close() {
111
+ super.close(), this.unlistenAnimationFrame(), t(this, b).current = null;
112
+ }
113
+ reset() {
114
+ this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
115
+ }
116
+ listenAnimationFrame() {
117
+ t(this, f).current = !0, N.subscribe(t(this, S), {
118
+ maxFPS: t(this, g),
119
+ order: t(this, x),
120
+ culling: t(this, F)
121
+ });
122
+ }
123
+ unlistenAnimationFrame() {
124
+ a(this, l, 0), t(this, f).current = !1, N.unsubscribe(t(this, S));
125
+ }
126
+ }
127
+ g = new WeakMap(), x = new WeakMap(), F = new WeakMap(), h = new WeakMap(), n = new WeakMap(), c = new WeakMap(), b = new WeakMap(), f = new WeakMap(), A = new WeakMap(), l = new WeakMap(), P = new WeakMap(), S = new WeakMap(), w = new WeakMap();
128
+ export {
129
+ Q as A
130
+ };
@@ -0,0 +1 @@
1
+ "use strict";var N=Object.defineProperty,_=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var M=(s,r,e)=>r in s?N(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,R=(s,r)=>{for(var e in r||(r={}))z.call(r,e)&&M(s,e,r[e]);if(y)for(var e of y(r))B.call(r,e)&&M(s,e,r[e]);return s},$=(s,r)=>_(s,j(r));var v=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(v(s,r,"read from private field"),e?e.call(s):r.get(s)),i=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},n=(s,r,e,u)=>(v(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);const m=require("./Store-D0_rDIsE.cjs"),D=require("./math-GDWEqu7y.cjs"),E=require("./number-yVpzMdbQ.cjs"),C=require("./ticker/index.cjs");var g,S,f,h,a,c,b,x,F,l,A,P,q;class G extends m.Store{constructor(e){super((e==null?void 0:e.default)||0,e);i(this,g,void 0);i(this,S,void 0);i(this,f,void 0);i(this,h,void 0);i(this,a,void 0);i(this,c,void 0);i(this,b,new m.Store(null));i(this,x,new m.Store(!1));i(this,F,0);i(this,l,0);i(this,A,e=>{this.set(e.current)});i(this,P,e=>{const u=this.current;this.handleAnimationFrame(e);const d=Math.abs(u-this.target);n(this,l,d/e.elapsed)});i(this,q,()=>{this.set(t(this,h)),this.current=t(this,h)});n(this,S,e==null?void 0:e.order),n(this,g,e==null?void 0:e.maxFPS),n(this,f,e==null?void 0:e.culling),n(this,h,this.current);let u,d;e!=null&&e.passport&&(u={name:`${e.passport.name+"-min"}`},d={name:`${e.passport.name+"-max"}`}),n(this,a,(e==null?void 0:e.min)instanceof m.Store?e.min:new m.Store(0,{passport:u})),n(this,c,(e==null?void 0:e.max)instanceof m.Store?e.max:new m.Store(0,{passport:d})),t(this,a).subscribe(t(this,q)),t(this,c).subscribe(t(this,q)),t(this,b).subscribe(w=>{var k,L;(k=w.previous)==null||k.unsubscribe(t(this,A)),(L=w.current)==null||L.subscribe(t(this,A))})}get target(){return t(this,h)}get isRunning(){return t(this,x)}get direction(){return t(this,F)}get maxFPS(){return t(this,g)}get speed(){return t(this,l)}get min(){return t(this,a)}get max(){return t(this,c)}get delta(){return t(this,c).current-t(this,a).current}get progress(){return this.delta?E.preciseNumber((this.current-this.min.current)/this.delta,6):0}get entry(){return $(R({},super.entry),{min:t(this,a).current,max:t(this,c).current,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get updater(){return t(this,b)}set(e,u=!1){const d=t(this,h);n(this,h,D.clamp(e,t(this,a).current,t(this,c).current)),u&&(this.current=t(this,h)),t(this,h)!==d&&(n(this,l,0),n(this,F,Math.sign(e-t(this,h))||1),this.update())}shift(e,u=!1){this.set(t(this,h)+e,u)}close(){super.close(),this.unlistenAnimationFrame(),t(this,b).current=null}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,x).current=!0,C.ticker.subscribe(t(this,P),{maxFPS:t(this,g),order:t(this,S),culling:t(this,f)})}unlistenAnimationFrame(){n(this,l,0),t(this,x).current=!1,C.ticker.unsubscribe(t(this,P))}}g=new WeakMap,S=new WeakMap,f=new WeakMap,h=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,x=new WeakMap,F=new WeakMap,l=new WeakMap,A=new WeakMap,P=new WeakMap,q=new WeakMap;exports.Animated=G;
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-DyZuTEQE.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
@@ -0,0 +1,36 @@
1
+ var c = Object.defineProperty, g = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
+ var n = Object.getOwnPropertySymbols;
4
+ var l = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
+ var r = (a, t, e) => t in a ? c(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, h = (a, t) => {
6
+ for (var e in t || (t = {}))
7
+ l.call(t, e) && r(a, e, t[e]);
8
+ if (n)
9
+ for (var e of n(t))
10
+ A.call(t, e) && r(a, e, t[e]);
11
+ return a;
12
+ }, s = (a, t) => g(a, f(t));
13
+ var d = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
14
+ import { d as x } from "./math-BOBiC4TN.js";
15
+ import { p as u } from "./number-Bo5RdrA1.js";
16
+ import { A as F } from "./Animated-CJcYqJzq.js";
17
+ class p extends F {
18
+ constructor(e) {
19
+ var i, m;
20
+ super(s(h({}, e), {
21
+ min: (i = e == null ? void 0 : e.min) != null ? i : -1 / 0,
22
+ max: (m = e == null ? void 0 : e.max) != null ? m : 1 / 0
23
+ }));
24
+ d(this, "damping");
25
+ this.damping = (e == null ? void 0 : e.damping) || 0;
26
+ }
27
+ update() {
28
+ this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
29
+ }
30
+ handleAnimationFrame(e) {
31
+ u(this.current, 4) === u(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = x(this.current, this.target, this.damping, e.elapsed);
32
+ }
33
+ }
34
+ export {
35
+ p as D
36
+ };
@@ -0,0 +1,27 @@
1
+ var u = (s, r, e) => {
2
+ if (!r.has(s))
3
+ throw TypeError("Cannot " + e);
4
+ };
5
+ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(s)), i = (s, r, e) => {
6
+ if (r.has(s))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
+ }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
+ import { S as p } from "./Store-JOKrNVEr.js";
11
+ var t;
12
+ class d extends p {
13
+ constructor(e, c, l) {
14
+ super(null, l);
15
+ i(this, t, void 0);
16
+ n(this, t, e.subscribe((b) => {
17
+ this.current = c(b.current);
18
+ }));
19
+ }
20
+ close() {
21
+ super.close(), o(this, t).call(this);
22
+ }
23
+ }
24
+ t = new WeakMap();
25
+ export {
26
+ d as D
27
+ };
@@ -0,0 +1 @@
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-D0_rDIsE.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -0,0 +1 @@
1
+ "use strict";var rt=Object.defineProperty;var ot=(o,e,t)=>e in o?rt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Y=(o,e,t)=>(ot(o,typeof e!="symbol"?e+"":e,t),t),V=(o,e,t)=>{if(!e.has(o))throw TypeError("Cannot "+t)};var c=(o,e,t)=>(V(o,e,"read from private field"),t?t.call(o):e.get(o)),f=(o,e,t)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,t)},y=(o,e,t,s)=>(V(o,e,"write to private field"),s?s.call(o,t):e.set(o,t),t);var r=(o,e,t)=>(V(o,e,"access private method"),t);const h=require("./Store-D0_rDIsE.cjs"),ft=require("./browser-CpzFX2xg.cjs"),z=require("./string-DzUwFYSS.cjs");var u,a,w,D,p,I,T,Q,d,v,m,F,A,X,x,Z,k,_,q,O,g,K,b,R,H,j,P,tt,C,W,N,G,$,et,B,st,J,it,L,U,M,nt;const E=class E{constructor(...e){f(this,w);f(this,p);f(this,T);f(this,d);f(this,m);f(this,A);f(this,x);f(this,k);f(this,q);f(this,g);f(this,b);f(this,H);f(this,P);f(this,C);f(this,N);f(this,$);f(this,B);f(this,J);f(this,L);f(this,M);f(this,u,[]);f(this,a,[]);Y(this,"destroy",()=>{c(this,a).forEach(e=>{e()}),y(this,a,[])});const t=e[0],s=e[1];if(ft.isBrowser)if(typeof t=="string"){const i=document.createElement("div");i.innerHTML=t;const n=i.firstElementChild;y(this,u,[n]),r(this,d,v).call(this,n,s)}else t instanceof Node?(y(this,u,[t]),r(this,d,v).call(this,t,s)):y(this,u,r(this,w,D).call(this,t))}get unsubscribeCallbacks(){return c(this,a)}get rootElements(){return c(this,u)}};u=new WeakMap,a=new WeakMap,w=new WeakSet,D=function(e){const t=[];for(const s in e){const i=s,n=e[i],l=r(this,p,I).call(this,i,n==null?void 0:n.svg);n&&r(this,d,v).call(this,l,n),t.push(l)}return t},p=new WeakSet,I=function(e,t=!1){let s=null;return e.includes("-")?s=new(customElements.get(e)):t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e),s},T=new WeakSet,Q=function(e){return e instanceof HTMLElement||e instanceof SVGElement},d=new WeakSet,v=function(e,t){const s=r(this,T,Q).call(this,e);for(const i in t){const n=i;n==="class"&&s?r(this,m,F).call(this,e,t[n]):n==="style"&&s?r(this,k,_).call(this,e,t[n]):n==="events"&&s?r(this,H,j).call(this,e,t[n]):n==="attributes"&&s?r(this,P,tt).call(this,e,t[n]):n==="children"?r(this,N,G).call(this,e,t[n]):n==="shadowChildren"?r(this,N,G).call(this,e instanceof Element&&e.shadowRoot||e,t[n]):n==="parent"&&r(this,M,nt).call(this,e,t[n])}t!=null&&t.ref&&(typeof(t==null?void 0:t.ref)=="function"?t.ref(e):t.ref.current=e)},m=new WeakSet,F=function(e,t){if(t){if(typeof t=="string")e.classList.add(t);else if(Array.isArray(t))t.forEach(s=>{r(this,m,F).call(this,e,s)});else if(typeof t=="object")if(t instanceof h.Store)r(this,A,X).call(this,e,t);else for(const s in t){const i=t[s];i instanceof h.Store?r(this,x,Z).call(this,e,s,i):i?e.classList.add(s):e.classList.remove(s)}}else return},A=new WeakSet,X=function(e,t){c(this,a).push(t.subscribe(({current:s,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e.classList.remove(n)}),s&&[s].flat().forEach(n=>{n&&e.classList.add(n)})}))},x=new WeakSet,Z=function(e,t,s){c(this,a).push(s.subscribe(({current:i})=>{i?e.classList.add(t):e.classList.remove(t)}))},k=new WeakSet,_=function(e,t){if(!t)return;e.tagName==="style"||e.tagName==="STYLE"?r(this,g,K).call(this,e,t):r(this,q,O).call(this,e,t)},q=new WeakSet,O=function(e,t){for(const s in t){const i=s,n=t[i];n instanceof h.Store?c(this,a).push(n.subscribe(({current:l})=>{r(this,b,R).call(this,e,i,l)})):r(this,b,R).call(this,e,i,n)}},g=new WeakSet,K=function(e,t){for(const s in t){const i=t[s];if(typeof i=="object"&&!(i instanceof h.Store))e.appendChild(new Text(`${s} {`)),r(this,g,K).call(this,e,i),e.appendChild(new Text("}"));else if(i instanceof h.Store){const n=new Text;c(this,a).push(i.subscribe(l=>{l.current?n.nodeValue=`${z.camelToKebab(s)}: ${l.current};`:n.nodeValue=""})),e.appendChild(n)}else e.appendChild(new Text(`${z.camelToKebab(s)}: ${i};`))}},b=new WeakSet,R=function(e,t,s){t.includes("--")?s?e.style.setProperty(t,s):e.style.removeProperty(t):s?e.style[t]=s:e.style[t]=""},H=new WeakSet,j=function(e,t){if(t)for(const s in t){const i=s,n=t[i];typeof n=="object"?e.addEventListener(i,n.callback,n.options):typeof n=="function"&&e.addEventListener(i,n)}},P=new WeakSet,tt=function(e,t){for(const s in t){const i=t[s];i instanceof h.Store?c(this,a).push(i.subscribe(({current:n})=>{r(this,C,W).call(this,e,s,n)})):r(this,C,W).call(this,e,s,i)}},C=new WeakSet,W=function(e,t,s){var i,n;t in e&&!((n=(i=e.constructor)==null?void 0:i.observedAttributes)!=null&&n.includes(t))?s!=null&&(e[t]=s.toString()):s!=null&&e.setAttribute(t,s.toString())},N=new WeakSet,G=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof h.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),c(this,a).push(s.subscribe(({current:n})=>{r(this,B,st).call(this,i,r(this,$,et).call(this,n),Array.from(i.childNodes))}))}else if(s instanceof E)c(this,a).push(s.destroy),s.rootElements.forEach(i=>{e.appendChild(i)});else{const i=r(this,L,U).call(this,s);i instanceof Node&&e.appendChild(i)}}))},$=new WeakSet,et=function(e){return[e].flat().map(s=>s instanceof E?s.rootElements:r(this,L,U).call(this,s)).flat().filter(Boolean)},B=new WeakSet,st=function(e,t,s){s.forEach((i,n)=>{if(n<t.length){const l=t[n];r(this,J,it).call(this,i,l)||e.replaceChild(l,i)}else e.removeChild(i)});for(let i=s.length;i<t.length;i++)e.appendChild(t[i])},J=new WeakSet,it=function(e,t){return t?t instanceof Node?e.isEqualNode(t):e.textContent===t.toString():!1},L=new WeakSet,U=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return new Text(t)}else return},M=new WeakSet,nt=function(e,t){if(!t)return;(t instanceof E?t.rootElements[0]:t).appendChild(e)};let S=E;function at(...o){return new S(...o)}function ct(...o){return()=>new S(...o)}exports.ElementConstructor=S;exports.element=at;exports.elementFactory=ct;
@@ -0,0 +1,228 @@
1
+ var rt = Object.defineProperty;
2
+ var ft = (f, s, t) => s in f ? rt(f, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[s] = t;
3
+ var Y = (f, s, t) => (ft(f, typeof s != "symbol" ? s + "" : s, t), t), q = (f, s, t) => {
4
+ if (!s.has(f))
5
+ throw TypeError("Cannot " + t);
6
+ };
7
+ var c = (f, s, t) => (q(f, s, "read from private field"), t ? t.call(f) : s.get(f)), o = (f, s, t) => {
8
+ if (s.has(f))
9
+ throw TypeError("Cannot add the same private member more than once");
10
+ s instanceof WeakSet ? s.add(f) : s.set(f, t);
11
+ }, y = (f, s, t, e) => (q(f, s, "write to private field"), e ? e.call(f, t) : s.set(f, t), t);
12
+ var r = (f, s, t) => (q(f, s, "access private method"), t);
13
+ import { S as h } from "./Store-JOKrNVEr.js";
14
+ import { i as ot } from "./browser-0zX67oeU.js";
15
+ import { c as z } from "./string-BrDhnNUL.js";
16
+ var u, a, v, D, w, I, A, Q, d, C, m, R, T, X, x, Z, k, _, H, O, S, W, g, F, P, j, $, tt, b, G, p, K, B, st, J, et, M, it, N, U, V, nt;
17
+ const E = class E {
18
+ constructor(...s) {
19
+ o(this, v);
20
+ o(this, w);
21
+ o(this, A);
22
+ o(this, d);
23
+ o(this, m);
24
+ o(this, T);
25
+ o(this, x);
26
+ o(this, k);
27
+ o(this, H);
28
+ o(this, S);
29
+ o(this, g);
30
+ o(this, P);
31
+ o(this, $);
32
+ o(this, b);
33
+ o(this, p);
34
+ o(this, B);
35
+ o(this, J);
36
+ o(this, M);
37
+ o(this, N);
38
+ o(this, V);
39
+ o(this, u, []);
40
+ o(this, a, []);
41
+ Y(this, "destroy", () => {
42
+ c(this, a).forEach((s) => {
43
+ s();
44
+ }), y(this, a, []);
45
+ });
46
+ const t = s[0], e = s[1];
47
+ if (ot)
48
+ if (typeof t == "string") {
49
+ const i = document.createElement("div");
50
+ i.innerHTML = t;
51
+ const n = i.firstElementChild;
52
+ y(this, u, [n]), r(this, d, C).call(this, n, e);
53
+ } else
54
+ t instanceof Node ? (y(this, u, [t]), r(this, d, C).call(this, t, e)) : y(this, u, r(this, v, D).call(this, t));
55
+ }
56
+ get unsubscribeCallbacks() {
57
+ return c(this, a);
58
+ }
59
+ get rootElements() {
60
+ return c(this, u);
61
+ }
62
+ };
63
+ u = new WeakMap(), a = new WeakMap(), v = new WeakSet(), D = function(s) {
64
+ const t = [];
65
+ for (const e in s) {
66
+ const i = e, n = s[i], l = r(this, w, I).call(this, i, n == null ? void 0 : n.svg);
67
+ n && r(this, d, C).call(this, l, n), t.push(l);
68
+ }
69
+ return t;
70
+ }, w = new WeakSet(), I = function(s, t = !1) {
71
+ let e = null;
72
+ return s.includes("-") ? e = new (customElements.get(s))() : t ? e = document.createElementNS("http://www.w3.org/2000/svg", s) : e = document.createElement(s), e;
73
+ }, A = new WeakSet(), Q = function(s) {
74
+ return s instanceof HTMLElement || s instanceof SVGElement;
75
+ }, d = new WeakSet(), C = function(s, t) {
76
+ const e = r(this, A, Q).call(this, s);
77
+ for (const i in t) {
78
+ const n = i;
79
+ n === "class" && e ? r(this, m, R).call(this, s, t[n]) : n === "style" && e ? r(this, k, _).call(this, s, t[n]) : n === "events" && e ? r(this, P, j).call(this, s, t[n]) : n === "attributes" && e ? r(this, $, tt).call(this, s, t[n]) : n === "children" ? r(this, p, K).call(this, s, t[n]) : n === "shadowChildren" ? r(this, p, K).call(this, s instanceof Element && s.shadowRoot || s, t[n]) : n === "parent" && r(this, V, nt).call(this, s, t[n]);
80
+ }
81
+ t != null && t.ref && (typeof (t == null ? void 0 : t.ref) == "function" ? t.ref(s) : t.ref.current = s);
82
+ }, m = new WeakSet(), R = function(s, t) {
83
+ if (t) {
84
+ if (typeof t == "string")
85
+ s.classList.add(t);
86
+ else if (Array.isArray(t))
87
+ t.forEach((e) => {
88
+ r(this, m, R).call(this, s, e);
89
+ });
90
+ else if (typeof t == "object")
91
+ if (t instanceof h)
92
+ r(this, T, X).call(this, s, t);
93
+ else
94
+ for (const e in t) {
95
+ const i = t[e];
96
+ i instanceof h ? r(this, x, Z).call(this, s, e, i) : i ? s.classList.add(e) : s.classList.remove(e);
97
+ }
98
+ } else
99
+ return;
100
+ }, T = new WeakSet(), X = function(s, t) {
101
+ c(this, a).push(
102
+ t.subscribe(({ current: e, previous: i }) => {
103
+ i && [i].flat().forEach((n) => {
104
+ n && s.classList.remove(n);
105
+ }), e && [e].flat().forEach((n) => {
106
+ n && s.classList.add(n);
107
+ });
108
+ })
109
+ );
110
+ }, x = new WeakSet(), Z = function(s, t, e) {
111
+ c(this, a).push(
112
+ e.subscribe(({ current: i }) => {
113
+ i ? s.classList.add(t) : s.classList.remove(t);
114
+ })
115
+ );
116
+ }, k = new WeakSet(), _ = function(s, t) {
117
+ if (!t)
118
+ return;
119
+ s.tagName === "style" || s.tagName === "STYLE" ? r(this, S, W).call(this, s, t) : r(this, H, O).call(this, s, t);
120
+ }, H = new WeakSet(), O = function(s, t) {
121
+ for (const e in t) {
122
+ const i = e, n = t[i];
123
+ n instanceof h ? c(this, a).push(
124
+ n.subscribe(({ current: l }) => {
125
+ r(this, g, F).call(this, s, i, l);
126
+ })
127
+ ) : r(this, g, F).call(this, s, i, n);
128
+ }
129
+ }, S = new WeakSet(), W = function(s, t) {
130
+ for (const e in t) {
131
+ const i = t[e];
132
+ if (typeof i == "object" && !(i instanceof h))
133
+ s.appendChild(new Text(`${e} {`)), r(this, S, W).call(this, s, i), s.appendChild(new Text("}"));
134
+ else if (i instanceof h) {
135
+ const n = new Text();
136
+ c(this, a).push(
137
+ i.subscribe((l) => {
138
+ l.current ? n.nodeValue = `${z(e)}: ${l.current};` : n.nodeValue = "";
139
+ })
140
+ ), s.appendChild(n);
141
+ } else
142
+ s.appendChild(new Text(`${z(e)}: ${i};`));
143
+ }
144
+ }, g = new WeakSet(), F = function(s, t, e) {
145
+ t.includes("--") ? e ? s.style.setProperty(t, e) : s.style.removeProperty(t) : e ? s.style[t] = e : s.style[t] = "";
146
+ }, P = new WeakSet(), j = function(s, t) {
147
+ if (t)
148
+ for (const e in t) {
149
+ const i = e, n = t[i];
150
+ typeof n == "object" ? s.addEventListener(
151
+ i,
152
+ n.callback,
153
+ n.options
154
+ ) : typeof n == "function" && s.addEventListener(i, n);
155
+ }
156
+ }, $ = new WeakSet(), tt = function(s, t) {
157
+ for (const e in t) {
158
+ const i = t[e];
159
+ i instanceof h ? c(this, a).push(
160
+ i.subscribe(({ current: n }) => {
161
+ r(this, b, G).call(this, s, e, n);
162
+ })
163
+ ) : r(this, b, G).call(this, s, e, i);
164
+ }
165
+ }, b = new WeakSet(), G = function(s, t, e) {
166
+ var i, n;
167
+ t in s && !((n = (i = s.constructor) == null ? void 0 : i.observedAttributes) != null && n.includes(t)) ? e != null && (s[t] = e.toString()) : e != null && s.setAttribute(t, e.toString());
168
+ }, p = new WeakSet(), K = function(s, t) {
169
+ t && (t = [t].flat(), t.forEach((e) => {
170
+ if (e instanceof h) {
171
+ const i = document.createElement("div");
172
+ i.style.display = "contents", s.appendChild(i), c(this, a).push(
173
+ e.subscribe(({ current: n }) => {
174
+ r(this, J, et).call(this, i, r(this, B, st).call(this, n), Array.from(i.childNodes));
175
+ })
176
+ );
177
+ } else if (e instanceof E)
178
+ c(this, a).push(e.destroy), e.rootElements.forEach((i) => {
179
+ s.appendChild(i);
180
+ });
181
+ else {
182
+ const i = r(this, N, U).call(this, e);
183
+ i instanceof Node && s.appendChild(i);
184
+ }
185
+ }));
186
+ }, B = new WeakSet(), st = function(s) {
187
+ return [s].flat().map((e) => e instanceof E ? e.rootElements : r(this, N, U).call(this, e)).flat().filter(Boolean);
188
+ }, J = new WeakSet(), et = function(s, t, e) {
189
+ e.forEach((i, n) => {
190
+ if (n < t.length) {
191
+ const l = t[n];
192
+ r(this, M, it).call(this, i, l) || s.replaceChild(l, i);
193
+ } else
194
+ s.removeChild(i);
195
+ });
196
+ for (let i = e.length; i < t.length; i++)
197
+ s.appendChild(t[i]);
198
+ }, M = new WeakSet(), it = function(s, t) {
199
+ return t ? t instanceof Node ? s.isEqualNode(t) : s.textContent === t.toString() : !1;
200
+ }, N = new WeakSet(), U = function(s) {
201
+ if (s instanceof Node)
202
+ return s;
203
+ if (s != null) {
204
+ const t = String(s);
205
+ if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
206
+ const e = document.createElement("div");
207
+ return e.innerHTML = t, e.firstElementChild;
208
+ } else
209
+ return new Text(t);
210
+ } else
211
+ return;
212
+ }, V = new WeakSet(), nt = function(s, t) {
213
+ if (!t)
214
+ return;
215
+ (t instanceof E ? t.rootElements[0] : t).appendChild(s);
216
+ };
217
+ let L = E;
218
+ function ut(...f) {
219
+ return new L(...f);
220
+ }
221
+ function dt(...f) {
222
+ return () => new L(...f);
223
+ }
224
+ export {
225
+ L as E,
226
+ dt as a,
227
+ ut as e
228
+ };
@@ -1,34 +1,34 @@
1
- var R = (r, s, t) => {
1
+ var M = (r, s, t) => {
2
2
  if (!s.has(r))
3
3
  throw TypeError("Cannot " + t);
4
4
  };
5
- var n = (r, s, t) => (R(r, s, "read from private field"), t ? t.call(r) : s.get(r)), a = (r, s, t) => {
5
+ var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(r)), a = (r, s, t) => {
6
6
  if (s.has(r))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(r) : s.set(r, t);
9
- }, h = (r, s, t, i) => (R(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
9
+ }, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
10
10
  import { RESIZE_ORDER as I } from "./order/index.js";
11
- import { resizer as b } from "./resizer/index.js";
12
- import { S } from "./Store-qq7IjRLE.js";
13
- var l, g, q, d, o, p, E;
11
+ import { windowResizer as b } from "./window-resizer/index.js";
12
+ import { S } from "./Store-JOKrNVEr.js";
13
+ var l, g, q, x, o, p, w;
14
14
  class k {
15
15
  constructor(s) {
16
16
  a(this, l, void 0);
17
17
  a(this, g, void 0);
18
18
  a(this, q, void 0);
19
- a(this, d, void 0);
19
+ a(this, x, void 0);
20
20
  a(this, o, void 0);
21
21
  a(this, p, void 0);
22
- a(this, E, void 0);
22
+ a(this, w, void 0);
23
23
  h(this, l, s);
24
24
  const t = s.indexOf("?");
25
25
  t >= 0 && (s = s.slice(0, t));
26
26
  const i = s.split(".");
27
27
  h(this, g, i[0]);
28
- const x = /\d+x/g, c = i.find((y) => y.match(x));
28
+ const d = /\d+x/g, c = i.find((y) => y.match(d));
29
29
  h(this, q, c ? parseInt(c) : 1);
30
- const f = /\d+max/g, M = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(M));
31
- e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this, d, `(max-width: ${n(this, o)}px)`)) : m ? (h(this, o, parseInt(m)), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")) : (h(this, o, 0), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")), h(this, E, "." + i[i.length - 1]);
30
+ const f = /\d+max/g, R = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(R));
31
+ e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this, x, `(max-width: ${n(this, o)}px)`)) : m ? (h(this, o, parseInt(m)), h(this, x, `(min-width: ${n(this, o)}px)`), h(this, p, "min")) : (h(this, o, 0), h(this, x, `(min-width: ${n(this, o)}px)`), h(this, p, "min")), h(this, w, "." + i[i.length - 1]);
32
32
  }
33
33
  get url() {
34
34
  return n(this, l);
@@ -40,10 +40,10 @@ class k {
40
40
  return n(this, q);
41
41
  }
42
42
  get query() {
43
- return n(this, d);
43
+ return n(this, x);
44
44
  }
45
45
  get extension() {
46
- return n(this, E);
46
+ return n(this, w);
47
47
  }
48
48
  get queryType() {
49
49
  return n(this, p);
@@ -52,7 +52,7 @@ class k {
52
52
  return n(this, o);
53
53
  }
54
54
  }
55
- l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), d = new WeakMap(), o = new WeakMap(), p = new WeakMap(), E = new WeakMap();
55
+ l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), x = new WeakMap(), o = new WeakMap(), p = new WeakMap(), w = new WeakMap();
56
56
  var u;
57
57
  class B {
58
58
  constructor(s) {
@@ -63,8 +63,8 @@ class B {
63
63
  const m = new k(e);
64
64
  i.push([m.query, m]);
65
65
  });
66
- const x = i.filter((e) => e[1].queryType === "max").sort((e, m) => m[1].queryPx - e[1].queryPx), c = i.filter((e) => e[1].queryType === "min" && e[1].queryPx !== 0).sort((e, m) => e[1].queryPx - m[1].queryPx), f = i.filter((e) => e[0] === "(min-width: 0px)");
67
- (f ? [...f, ...x, ...c] : [...x, ...c]).forEach((e) => {
66
+ const d = i.filter((e) => e[1].queryType === "max").sort((e, m) => m[1].queryPx - e[1].queryPx), c = i.filter((e) => e[1].queryType === "min" && e[1].queryPx !== 0).sort((e, m) => e[1].queryPx - m[1].queryPx), f = i.filter((e) => e[0] === "(min-width: 0px)");
67
+ (f ? [...f, ...d, ...c] : [...d, ...c]).forEach((e) => {
68
68
  n(this, u).has(e[0]) || n(this, u).set(e[0], []), n(this, u).get(e[0]).push(e[1]);
69
69
  });
70
70
  }
@@ -73,34 +73,34 @@ class B {
73
73
  }
74
74
  }
75
75
  u = new WeakMap();
76
- var P, w;
76
+ var E, P;
77
77
  class A extends S {
78
78
  constructor(t) {
79
79
  super(void 0);
80
- a(this, P, void 0);
81
- a(this, w, () => {
80
+ a(this, E, void 0);
81
+ a(this, P, () => {
82
82
  let t;
83
- n(this, P).mediaBuckets.forEach((c, f) => {
83
+ n(this, E).mediaBuckets.forEach((c, f) => {
84
84
  matchMedia(f).matches && (t = c);
85
85
  });
86
- let i, x = 0;
86
+ let i, d = 0;
87
87
  t == null || t.forEach((c) => {
88
- c.density > x && c.density <= Math.max(devicePixelRatio, 1) && (x = c.density, i = c);
88
+ c.density > d && c.density <= Math.max(devicePixelRatio, 1) && (d = c.density, i = c);
89
89
  }), t != null && t.length && !i && (i = t[0]), this.current = i;
90
90
  });
91
- h(this, P, new B(t.srcset));
91
+ h(this, E, new B(t.srcset));
92
92
  }
93
93
  close() {
94
94
  super.close(), this.disconnect();
95
95
  }
96
96
  connect() {
97
- b.subscribe(n(this, w), I.SOURCE_MANAGER);
97
+ b.subscribe(n(this, P), I.SOURCE_MANAGER);
98
98
  }
99
99
  disconnect() {
100
- b.unsubscribe(n(this, w));
100
+ b.unsubscribe(n(this, P));
101
101
  }
102
102
  }
103
- P = new WeakMap(), w = new WeakMap();
103
+ E = new WeakMap(), P = new WeakMap();
104
104
  export {
105
105
  A as S,
106
106
  k as a,
@@ -0,0 +1 @@
1
+ "use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-D0_rDIsE.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -0,0 +1 @@
1
+ "use strict";var v=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(v(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(v(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(v(s,t,"access private method"),e);const A=require("./browser-CpzFX2xg.cjs");var l,o,S;class M{constructor(){a(this,l,null);a(this,o,"");a(this,S,"");A.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var h,w;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const N=(w=r(this,l))==null?void 0:w.stores.find(z=>z.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new M;var d,m,g,f,y,n,b,c,p,q;class j{constructor(t,e){a(this,p);a(this,d,void 0);a(this,m,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);i(this,d,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((h,w)=>h===w)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&E.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,y).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),R(this,p,q).call(this)}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return r(this,d)&&!r(this,n).size&&C(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,d)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,d)&&k(this)}}d=new WeakMap,m=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,p=new WeakSet,q=function(){for(const t of r(this,n))t(this.entry)};const u=new j([]);function C(s){u.current.includes(s)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=u;exports.storeRegistry=E;