aptechka 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/lib/abstract-elements/index.cjs +1 -1
  2. package/lib/abstract-elements/index.js +1 -1
  3. package/lib/canvas/index.cjs +1 -1
  4. package/lib/canvas/index.d.ts +6 -5
  5. package/lib/canvas/index.js +47 -43
  6. package/lib/component/Component.d.ts +9 -12
  7. package/lib/component/index.cjs +1 -1
  8. package/lib/component/index.js +137 -141
  9. package/lib/{createStylesheet-BoJwXvjE.cjs → createStylesheet-DTOK6fTn.cjs} +1 -1
  10. package/lib/{createStylesheet-DSgkNlUZ.js → createStylesheet-Zqf3lXhM.js} +1 -1
  11. package/lib/{createTheme-COo8IzPG.cjs → createTheme-B_W5dUY9.cjs} +1 -1
  12. package/lib/{createTheme-BMH9cRrS.js → createTheme-D0IoYkYN.js} +1 -1
  13. package/lib/element-constructor/index.cjs +1 -1
  14. package/lib/element-constructor/index.js +3 -3
  15. package/lib/{index-Cv4y7_7y.cjs → index-3G1lTMEf.cjs} +1 -1
  16. package/lib/{index-228VqUsZ.js → index-BWTXnG5n.js} +2 -2
  17. package/lib/modal/index.cjs +1 -1
  18. package/lib/modal/index.js +2 -2
  19. package/lib/scroll/index.cjs +1 -1
  20. package/lib/scroll/index.js +2 -2
  21. package/lib/select/index.cjs +1 -1
  22. package/lib/select/index.js +1 -1
  23. package/lib/string-3lAkpJJP.js +51 -0
  24. package/lib/string-vBu90jhV.cjs +1 -0
  25. package/lib/studio/index.cjs +1 -1
  26. package/lib/studio/index.js +3 -3
  27. package/lib/tags-75InVOh4.cjs +1 -0
  28. package/lib/{tags-kZqsS_nJ.js → tags-DgRVzazL.js} +141 -139
  29. package/lib/theme/index.cjs +1 -1
  30. package/lib/theme/index.js +2 -2
  31. package/lib/utils/cssom.d.ts +5 -0
  32. package/lib/utils/index.cjs +1 -1
  33. package/lib/utils/index.d.ts +2 -1
  34. package/lib/utils/index.js +100 -87
  35. package/lib/utils/string.d.ts +1 -0
  36. package/package.json +1 -1
  37. package/lib/string-BrDhnNUL.js +0 -39
  38. package/lib/string-DzUwFYSS.cjs +0 -1
  39. package/lib/tags-920hsh9U.cjs +0 -1
@@ -1,138 +1,151 @@
1
- import { a as I, p as E } from "../attributes-69we3byR.js";
2
- import { i as S } from "../browser-0zX67oeU.js";
3
- import { f as P, a as R, g as T } from "../dom-BY7JhTx5.js";
4
- import { c as v, n as B, f as A, p as N, b as j, i as M, m as z, e as U, g as q, j as J, d as K, o as V, a as F, h as G, k as W, l as X } from "../easings-BKi40vHz.js";
1
+ import { a as S, p as I } from "../attributes-69we3byR.js";
2
+ import { i as Q } from "../browser-0zX67oeU.js";
3
+ import { f as D, a as T, g as P } from "../dom-BY7JhTx5.js";
4
+ import { c as k, n as B, f as M, p as N, b as j, i as z, m as U, e as V, g as q, j as J, d as K, o as $, a as F, h as G, k as W, l as X } from "../easings-BKi40vHz.js";
5
5
  import { d as Z } from "../events-_C2CztxR.js";
6
- import { c as $ } from "../file-lxi_oXJf.js";
7
- import { d as L, t as ee } from "../function-C10DGppn.js";
8
- import { g as te, a as se, b as ne } from "../layout-HoBT_Da2.js";
9
- import { e as ie, f as ue, c as re, d as le, l as de, m as me, r as ce, b as pe, a as xe, s as fe } from "../math-BOBiC4TN.js";
10
- import { p as ge, r as be } from "../number-Bo5RdrA1.js";
11
- import { c as ye, d as Ce, i as Oe, b as Ie, a as Ee, m as Qe, o as Se, p as De } from "../object-DIPjdukP.js";
12
- import { c as Re, a as Te, g as ke, k as ve, s as Be, t as Ae } from "../string-BrDhnNUL.js";
13
- import { g as je, a as Me } from "../style-j2TwriJ_.js";
14
- function d(a, e, ...t) {
15
- return [...a.slice(0, e), ...t, ...a.slice(e)];
6
+ import { c as H } from "../file-lxi_oXJf.js";
7
+ import { d as ee, t as te } from "../function-C10DGppn.js";
8
+ import { g as se, a as ne, b as oe } from "../layout-HoBT_Da2.js";
9
+ import { e as re, f as ue, c as le, d as ce, l as de, m as me, r as pe, b as fe, a as xe, s as he } from "../math-BOBiC4TN.js";
10
+ import { p as be, r as ye } from "../number-Bo5RdrA1.js";
11
+ import { c as Ce, d as Oe, i as Ee, b as Se, a as Ie, m as Re, o as Qe, p as ve } from "../object-DIPjdukP.js";
12
+ import { c as Te, a as Pe, g as Ae, k as ke, s as Be, t as Me, u as Ne } from "../string-3lAkpJJP.js";
13
+ import { g as ze, a as Ue } from "../style-j2TwriJ_.js";
14
+ function c(t, e, ...a) {
15
+ return [...t.slice(0, e), ...a, ...t.slice(e)];
16
16
  }
17
- function m(a, e) {
18
- const t = a.measureText(e), s = t.actualBoundingBoxAscent + t.actualBoundingBoxDescent, n = t.width;
17
+ function d(t, e) {
18
+ const a = t.measureText(e), s = a.actualBoundingBoxAscent + a.actualBoundingBoxDescent, n = a.width;
19
19
  return {
20
20
  height: s,
21
21
  width: n
22
22
  };
23
23
  }
24
- function c(a) {
25
- return Math.floor(a) + 0.5;
24
+ function m(t) {
25
+ return Math.floor(t) + 0.5;
26
26
  }
27
- function p(a, e, t, s, n, o) {
28
- let r = a / e, l = t / s, i = 0, u = 0;
29
- return n = typeof n == "undefined" ? 0.5 : n, o = typeof o == "undefined" ? 0.5 : o, r > l ? (i = s, u = s * r) : (u = t, i = t / r), [
30
- (t - u) * n,
27
+ function p(t, e, a, s, n, o) {
28
+ let u = t / e, l = a / s, i = 0, r = 0;
29
+ return n = typeof n == "undefined" ? 0.5 : n, o = typeof o == "undefined" ? 0.5 : o, u > l ? (i = s, r = s * u) : (r = a, i = a / u), [
30
+ (a - r) * n,
31
31
  (s - i) * o,
32
- u,
32
+ r,
33
33
  i
34
34
  ];
35
35
  }
36
- function x(a, e) {
37
- return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
36
+ function f(t, e) {
37
+ return t.x < e.x + e.width && t.x > e.x && t.y < e.y + e.height && t.y > e.y;
38
38
  }
39
- function f(a, e) {
40
- return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
39
+ function x(t, e) {
40
+ return Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2) < e.radius;
41
41
  }
42
- function h(a, e, t = !1) {
43
- let s = a.x - e.width / 2, n = e.height / 2 - a.y;
44
- return t && (s = s / (e.width / 2), n = n / (e.height / 2)), { x: s, y: n };
42
+ function h(t, e, a = !1) {
43
+ let s = t.x - e.width / 2, n = e.height / 2 - t.y;
44
+ return a && (s = s / (e.width / 2), n = n / (e.height / 2)), { x: s, y: n };
45
45
  }
46
- function g(a, e) {
47
- const t = a.x / e.x, s = a.y / e.y;
48
- return { x: t, y: s };
46
+ function g(t, e) {
47
+ const a = t.x / e.x, s = t.y / e.y;
48
+ return { x: a, y: s };
49
49
  }
50
- function b(a, e) {
50
+ function b(t, e) {
51
51
  return e = e || {
52
52
  x: 0,
53
53
  y: 0,
54
54
  width: document.documentElement.offsetWidth,
55
55
  height: innerHeight
56
56
  }, {
57
- x: (a.x - e.x) / e.width * e.width,
58
- y: (a.y - e.y) / e.height * e.height
57
+ x: (t.x - e.x) / e.width * e.width,
58
+ y: (t.y - e.y) / e.height * e.height
59
59
  };
60
60
  }
61
- function w(a) {
62
- const e = window.atob(a);
61
+ function y(...t) {
62
+ const e = {};
63
+ return Array.from(document.styleSheets).forEach((a) => {
64
+ Array.from(a.cssRules).forEach((s) => {
65
+ s instanceof CSSStyleRule && s.selectorText === ":root" && t.forEach((n) => {
66
+ const o = s.styleMap.get(n);
67
+ o ? e[n] = o.toString() : console.warn(`variable named ${n} not found`);
68
+ });
69
+ });
70
+ }), e;
71
+ }
72
+ function w(t) {
73
+ const e = window.atob(t);
63
74
  return decodeURIComponent(window.escape(e));
64
75
  }
65
- function y(a) {
66
- const e = window.unescape(encodeURIComponent(a));
76
+ function C(t) {
77
+ const e = window.unescape(encodeURIComponent(t));
67
78
  return window.btoa(e);
68
79
  }
69
80
  export {
70
- ie as calculateDistance,
81
+ re as calculateDistance,
71
82
  ue as calculateDistanceWithRadius,
72
- Re as camelToKebab,
73
- Te as capitalize,
74
- re as clamp,
75
- ye as cloneDeep,
76
- Ce as compareObjects,
83
+ Te as camelToKebab,
84
+ Pe as capitalize,
85
+ le as clamp,
86
+ Ce as cloneDeep,
87
+ Oe as compareObjects,
77
88
  p as cover,
78
- $ as createJSONAndSave,
79
- le as damp,
80
- L as debounce,
81
- y as decode,
89
+ H as createJSONAndSave,
90
+ ce as damp,
91
+ ee as debounce,
92
+ C as decode,
82
93
  Z as dispatchSizeChangeEvent,
83
- f as dotCircleCollision,
84
- x as dotRectCollision,
85
- v as easeInCubic,
94
+ x as dotCircleCollision,
95
+ f as dotRectCollision,
96
+ k as easeInCubic,
86
97
  B as easeInExpo,
87
- A as easeInOutCubic,
98
+ M as easeInOutCubic,
88
99
  N as easeInOutExpo,
89
100
  j as easeInOutQuad,
90
- M as easeInOutQuart,
91
- z as easeInOutQuint,
92
- U as easeInQuad,
101
+ z as easeInOutQuart,
102
+ U as easeInOutQuint,
103
+ V as easeInQuad,
93
104
  q as easeInQuart,
94
105
  J as easeInQuint,
95
106
  K as easeOutCubic,
96
- V as easeOutExpo,
107
+ $ as easeOutExpo,
97
108
  F as easeOutQuad,
98
109
  G as easeOutQuart,
99
110
  W as easeOutQuint,
100
111
  w as encode,
101
- P as findParentElement,
102
- R as findScrollParentElement,
103
- c as fixPosition,
104
- ke as generateId,
105
- te as getCumulativeOffsetLeft,
106
- se as getCumulativeOffsetTop,
107
- ne as getCumulativePosition,
108
- T as getElement,
109
- je as getElementTransitionDurationMS,
110
- Me as getElementTransitionDurationS,
112
+ D as findParentElement,
113
+ T as findScrollParentElement,
114
+ m as fixPosition,
115
+ Ae as generateId,
116
+ se as getCumulativeOffsetLeft,
117
+ ne as getCumulativeOffsetTop,
118
+ oe as getCumulativePosition,
119
+ P as getElement,
120
+ ze as getElementTransitionDurationMS,
121
+ Ue as getElementTransitionDurationS,
111
122
  b as getPointerPosition,
112
- d as insert,
113
- S as isBrowser,
114
- Oe as isESClass,
115
- Ie as isNullish,
116
- Ee as isObject,
117
- ve as kebabToCamel,
123
+ y as getRootVariables,
124
+ c as insert,
125
+ Q as isBrowser,
126
+ Ee as isESClass,
127
+ Se as isNullish,
128
+ Ie as isObject,
129
+ ke as kebabToCamel,
118
130
  de as lerp,
119
131
  X as linear,
120
132
  me as mapRange,
121
- m as measureText,
122
- Qe as mergeDeep,
133
+ d as measureText,
134
+ Re as mergeDeep,
123
135
  g as normalize,
124
- Se as omit,
125
- I as parseAttribute,
126
- E as parseAttributeValue,
127
- De as pick,
128
- ge as preciseNumber,
129
- ce as round,
130
- be as roundNumberTo,
136
+ Qe as omit,
137
+ S as parseAttribute,
138
+ I as parseAttributeValue,
139
+ ve as pick,
140
+ be as preciseNumber,
141
+ pe as round,
142
+ ye as roundNumberTo,
131
143
  h as screenToCartesian,
132
- pe as smootherstep,
144
+ fe as smootherstep,
133
145
  xe as smoothstep,
134
146
  Be as snakeToDotted,
135
- fe as step,
136
- ee as throttle,
137
- Ae as toPascalCase
147
+ he as step,
148
+ te as throttle,
149
+ Me as toPascalCase,
150
+ Ne as uncapitalize
138
151
  };
@@ -3,4 +3,5 @@ export declare function camelToKebab(camelCaseString: string): string;
3
3
  export declare function snakeToDotted(snake: string): string;
4
4
  export declare function toPascalCase(str: string): string;
5
5
  export declare function capitalize(string: string, everyWord?: boolean): string;
6
+ export declare function uncapitalize(string: string, everyWord?: boolean): string;
6
7
  export declare function generateId(length: number, characters?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -1,39 +0,0 @@
1
- function i(e, n = !1) {
2
- let a = "";
3
- return e.split("-").forEach((t, s) => {
4
- if (s === 0 && !n)
5
- a += t;
6
- else {
7
- const r = t[0], o = t.slice(1), c = r.toUpperCase() + o;
8
- a += c;
9
- }
10
- }), a;
11
- }
12
- function l(e) {
13
- return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
14
- }
15
- function p(e) {
16
- return e.split("_").join(".");
17
- }
18
- function u(e) {
19
- return /^[a-z\d]+$/i.test(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e.replace(/([a-z\d])([a-z\d]*)/gi, (n, a, t) => a.toUpperCase() + t.toLowerCase()).replace(/[^a-z\d]/gi, "");
20
- }
21
- function f(e, n = !1) {
22
- const a = (t) => t.slice(0, 1).toUpperCase() + t.slice(1);
23
- return n ? e.split(" ").map((t) => a(t)).join(" ") : a(e);
24
- }
25
- function d(e, n = "abcdefghijklmnopqrstuvwxyz0123456789") {
26
- const a = n.length, t = crypto.getRandomValues(new Uint8Array(e));
27
- let s = "";
28
- for (let r = 0; r < e; r++)
29
- s += n.charAt(t[r] % a);
30
- return s;
31
- }
32
- export {
33
- f as a,
34
- l as c,
35
- d as g,
36
- i as k,
37
- p as s,
38
- u as t
39
- };
@@ -1 +0,0 @@
1
- "use strict";function i(e,n=!1){let a="";return e.split("-").forEach((t,r)=>{if(r===0&&!n)a+=t;else{const o=t[0],c=t.slice(1),s=o.toUpperCase()+c;a+=s}}),a}function l(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function p(e){return e.split("_").join(".")}function u(e){return/^[a-z\d]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1):e.replace(/([a-z\d])([a-z\d]*)/gi,(n,a,t)=>a.toUpperCase()+t.toLowerCase()).replace(/[^a-z\d]/gi,"")}function f(e,n=!1){const a=t=>t.slice(0,1).toUpperCase()+t.slice(1);return n?e.split(" ").map(t=>a(t)).join(" "):a(e)}function d(e,n="abcdefghijklmnopqrstuvwxyz0123456789"){const a=n.length,t=crypto.getRandomValues(new Uint8Array(e));let r="";for(let o=0;o<e;o++)r+=n.charAt(t[o]%a);return r}exports.camelToKebab=l;exports.capitalize=f;exports.generateId=d;exports.kebabToCamel=i;exports.snakeToDotted=p;exports.toPascalCase=u;
@@ -1 +0,0 @@
1
- "use strict";var le=Object.defineProperty,de=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var X=(e,n,r)=>n in e?le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,$=(e,n)=>{for(var r in n||(n={}))we.call(n,r)&&X(e,r,n[r]);if(Q)for(var r of Q(n))me.call(n,r)&&X(e,r,n[r]);return e},Z=(e,n)=>de(e,he(n));var R=(e,n,r)=>{if(!n.has(e))throw TypeError("Cannot "+r)};var s=(e,n,r)=>(R(e,n,"read from private field"),r?r.call(e):n.get(e)),f=(e,n,r)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,r)},_=(e,n,r,i)=>(R(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r);var c=(e,n,r)=>(R(e,n,"access private method"),r);const m=require("./Store-D0_rDIsE.cjs"),pe=require("./browser-CpzFX2xg.cjs"),O=require("./string-DzUwFYSS.cjs"),ge=require("./connector/index.cjs"),be=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var a,w,d,T,j,C,ee,N,ne,g,W,x,te,q,re,A,ie,M,oe,b,J,y,z,D,se,F,ue,S,K,p,k,E,Y,H,ce,P,fe,v,I,L,U,B,G;const V=class V{constructor(...n){f(this,T);f(this,C);f(this,N);f(this,g);f(this,x);f(this,q);f(this,A);f(this,M);f(this,b);f(this,y);f(this,D);f(this,F);f(this,S);f(this,p);f(this,E);f(this,H);f(this,P);f(this,v);f(this,L);f(this,a,void 0);f(this,w,new Set);f(this,d,new Set);f(this,B,()=>{s(this,w).forEach(n=>{n()}),s(this,w).clear()});f(this,G,n=>{s(this,d).forEach(r=>{r(n)}),s(this,d).clear()});const r=n[0],i=n[1];_(this,a,c(this,T,j).call(this,r,i==null?void 0:i.forceSvg)),c(this,N,ne).call(this,i)}get node(){return s(this,a)}};a=new WeakMap,w=new WeakMap,d=new WeakMap,T=new WeakSet,j=function(n,r){let i=null;if(n instanceof Node)i=n;else if(typeof n=="string")if(!n.includes("<")&&n.includes("-"))i=new(customElements.get(n));else if(n.includes("<")){const o=document.createElement("div");o.innerHTML=n,i=o.firstElementChild}else be.has(n)||r?i=document.createElementNS("http://www.w3.org/2000/svg",n):i=document.createElement(n);else i=document.createElement("div");return i},C=new WeakSet,ee=function(n){return n instanceof HTMLElement||n instanceof SVGElement},N=new WeakSet,ne=function(n){if(!n)return;const r=c(this,C,ee).call(this,s(this,a)),i=n.ref;delete n.ref,n!=null&&n.onConnect&&(s(this,w).add(n.onConnect),delete n.onConnect),n!=null&&n.onDisconnect&&(s(this,d).add(n.onDisconnect),delete n.onDisconnect);let o,u;for(const l in n){const h=n[l];l==="class"&&r?c(this,g,W).call(this,h):l==="style"&&r?c(this,A,ie).call(this,h):l==="lightChildren"?c(this,p,k).call(this,s(this,a),h):l==="children"?c(this,p,k).call(this,s(this,a)instanceof Element?s(this,a).shadowRoot||s(this,a):s(this,a),h):l.startsWith("on")?(u||(u={}),u[l]=h):(o||(o={}),o[l]=h)}if(c(this,F,ue).call(this,o),c(this,D,se).call(this,u),i&&(typeof i=="function"?i(s(this,a)):i.current=s(this,a)),pe.isBrowser&&(s(this,d).size||s(this,w).size)){const l=s(this,a)instanceof DocumentFragment?s(this,a).firstChild:s(this,a);ge.connector.subscribe(l,{connectCallback:s(this,B),disconnectCallback:s(this,G),unsubscribeAfterDisconnect:!0,maxWaitSec:20})}},g=new WeakSet,W=function(n){const r=s(this,a);if(n){if(typeof n=="string")r.classList.add(n);else if(Array.isArray(n))n.forEach(i=>{c(this,g,W).call(this,i)});else if(typeof n=="object")if(n instanceof m.Store)c(this,x,te).call(this,n);else for(const i in n){const o=n[i];o instanceof m.Store?c(this,q,re).call(this,i,o):o?r.classList.add(i):r.classList.remove(i)}}else return},x=new WeakSet,te=function(n){const r=s(this,a);s(this,d).add(n.subscribe(({current:i,previous:o})=>{o&&[o].flat().forEach(u=>{u&&r.classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&r.classList.add(u)})}))},q=new WeakSet,re=function(n,r){const i=s(this,a);s(this,d).add(r.subscribe(({current:o})=>{o?i.classList.add(n):i.classList.remove(n)}))},A=new WeakSet,ie=function(n){if(!n)return;const r=s(this,a);r.tagName==="style"||r.tagName==="STYLE"?c(this,b,J).call(this,n):c(this,M,oe).call(this,n)},M=new WeakSet,oe=function(n){for(const r in n){const i=r,o=n[i];o instanceof m.Store?s(this,d).add(o.subscribe(({current:u})=>{c(this,y,z).call(this,i,u)})):c(this,y,z).call(this,i,o)}},b=new WeakSet,J=function(n){const r=s(this,a);for(const i in n){const o=n[i];if(typeof o=="object"&&!(o instanceof m.Store))r.appendChild(new Text(`${i} {`)),c(this,b,J).call(this,o),r.appendChild(new Text("}"));else if(o instanceof m.Store){const u=new Text;s(this,d).add(o.subscribe(l=>{l.current?u.nodeValue=`${O.camelToKebab(i)}: ${l.current};`:u.nodeValue=""})),r.appendChild(u)}else r.appendChild(new Text(`${O.camelToKebab(i)}: ${o};`))}},y=new WeakSet,z=function(n,r){const i=s(this,a);n.includes("--")?r?i.style.setProperty(n,r):i.style.removeProperty(n):r?i.style[n]=r:i.style[n]=""},D=new WeakSet,se=function(n){if(!n)return;const r=s(this,a);for(const i in n){const o=i,u=o.split("on").slice(1).map((h,ae)=>ae===0?h.toLocaleLowerCase():h).join("on"),l=n[o];typeof l=="object"?r.addEventListener(u,l.callback,l.options):typeof l=="function"&&r.addEventListener(u,l)}},F=new WeakSet,ue=function(n){for(const r in n){const i=n[r];i instanceof m.Store?s(this,d).add(i.subscribe(({current:o})=>{c(this,S,K).call(this,r,o)})):c(this,S,K).call(this,r,i)}},S=new WeakSet,K=function(n,r){var o,u;const i=s(this,a);n in i&&!((u=(o=i.constructor)==null?void 0:o.observedAttributes)!=null&&u.includes(n))?r!=null&&(i[n]=r.toString()):r!=null&&i.setAttribute(n,r.toString())},p=new WeakSet,k=function(n,r){r&&(r=[r].flat(),r.forEach(i=>{if(i instanceof m.Store){const o=document.createElement("div");o.style.display="contents",n.appendChild(o),s(this,d).add(i.subscribe(({current:u})=>{c(this,P,fe).call(this,o,c(this,H,ce).call(this,u),Array.from(o.childNodes))}))}else if(i instanceof V)c(this,E,Y).call(this,n,i.node);else if(i instanceof Function)c(this,p,k).call(this,n,i());else{const o=c(this,L,U).call(this,i);o instanceof Node&&c(this,E,Y).call(this,n,o)}}))},E=new WeakSet,Y=function(n,r){!(n instanceof ShadowRoot)&&r instanceof HTMLElement&&r.tagName==="STYLE"?(s(this,w).add(()=>{[...document.head.querySelectorAll("style")].find(o=>o.outerHTML===r.outerHTML)||document.head.appendChild(r)}),s(this,d).add(()=>{r.remove()})):n.appendChild(r)},H=new WeakSet,ce=function(n){return[n].flat().map(i=>i instanceof V?i.node:c(this,L,U).call(this,i)).flat().filter(Boolean)},P=new WeakSet,fe=function(n,r,i){i.length>r.length&&i.forEach(o=>{r.find(u=>c(this,v,I).call(this,o,u))||(n.removeChild(o),i=i.filter(u=>u!==o))}),i.forEach((o,u)=>{if(u<r.length){const l=r[u];c(this,v,I).call(this,o,l)||n.replaceChild(l,o)}else n.removeChild(o)});for(let o=i.length;o<r.length;o++)n.appendChild(r[o])},v=new WeakSet,I=function(n,r){return r?r instanceof Node?n.isEqualNode(r):n.textContent===r.toString():!1},L=new WeakSet,U=function(n){if(n instanceof Node)return n;if(n!=null){const r=String(n);if(r.trim().startsWith("<")&&r.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=r,i.firstElementChild}else return new Text(r)}else return},B=new WeakMap,G=new WeakMap;let t=V;function ye(...e){return new t(...e)}function Se(e){return new t("a",e)}function Ee(e){return new t("abbr",e)}function ve(e){return new t("address",e)}function Le(e){return new t("area",e)}function ke(e){return new t("article",e)}function Te(e){return new t("aside",e)}function Ce(e){return new t("audio",e)}function Ne(e){return new t("b",e)}function xe(e){return new t("base",e)}function qe(e){return new t("bdi",e)}function Ae(e){return new t("bdo",e)}function Me(e){return new t("blockquote",e)}function De(e){return new t("body",e)}function Fe(e){return new t("br",e)}function He(e){return new t("button",e)}function Pe(e){return new t("canvas",e)}function Be(e){return new t("caption",e)}function Ge(e){return new t("cite",e)}function Ve(e){return new t("code",e)}function $e(e){return new t("col",e)}function Re(e){return new t("colgroup",e)}function We(e){return new t("data",e)}function Je(e){return new t("datalist",e)}function ze(e){return new t("dd",e)}function Ke(e){return new t("del",e)}function Ye(e){return new t("details",e)}function Ie(e){return new t("dfn",e)}function Ue(e){return new t("dialog",e)}function Qe(e){return new t("div",e)}function Xe(e){return new t("dl",e)}function Ze(e){return new t("dt",e)}function _e(e){return new t("em",e)}function Oe(e){return new t("embed",e)}function je(e){return new t("fieldset",e)}function en(e){return new t("figcaption",e)}function nn(e){return new t("figure",e)}function tn(e){return new t("footer",e)}function rn(e){return new t("form",e)}function on(e){return new t("h1",e)}function sn(e){return new t("h2",e)}function un(e){return new t("h3",e)}function cn(e){return new t("h4",e)}function fn(e){return new t("h5",e)}function an(e){return new t("h6",e)}function ln(e){return new t("head",e)}function dn(e){return new t("header",e)}function hn(e){return new t("hgroup",e)}function wn(e){return new t("hr",e)}function mn(e){return new t("html",e)}function pn(e){return new t("i",e)}function gn(e){return new t("iframe",e)}function bn(e){return new t("img",e)}function yn(e){return new t("input",e)}function Sn(e){return new t("ins",e)}function En(e){return new t("kbd",e)}function vn(e){return new t("label",e)}function Ln(e){return new t("legend",e)}function kn(e){return new t("li",e)}function Tn(e){return new t("link",e)}function Cn(e){return new t("main",e)}function Nn(e){return new t("map",e)}function xn(e){return new t("mark",e)}function qn(e){return new t("menu",e)}function An(e){return new t("meta",e)}function Mn(e){return new t("meter",e)}function Dn(e){return new t("nav",e)}function Fn(e){return new t("noscript",e)}function Hn(e){return new t("object",e)}function Pn(e){return new t("ol",e)}function Bn(e){return new t("optgroup",e)}function Gn(e){return new t("option",e)}function Vn(e){return new t("output",e)}function $n(e){return new t("p",e)}function Rn(e){return new t("picture",e)}function Wn(e){return new t("pre",e)}function Jn(e){return new t("progress",e)}function zn(e){return new t("q",e)}function Kn(e){return new t("rp",e)}function Yn(e){return new t("rt",e)}function In(e){return new t("ruby",e)}function Un(e){return new t("s",e)}function Qn(e){return new t("samp",e)}function Xn(e){return new t("script",e)}function Zn(e){return new t("search",e)}function _n(e){return new t("section",e)}function On(e){return new t("select",e)}function jn(e){return new t("slot",e)}function et(e){return new t("small",e)}function nt(e){return new t("source",e)}function tt(e){return new t("span",e)}function rt(e){return new t("strong",e)}function it(e){return new t("style",{style:e})}function ot(e){return new t("sub",e)}function st(e){return new t("summary",e)}function ut(e){return new t("sup",e)}function ct(e){return new t("table",e)}function ft(e){return new t("tbody",e)}function at(e){return new t("td",e)}function lt(e){return new t("template",e)}function dt(e){return new t("textarea",e)}function ht(e){return new t("tfoot",e)}function wt(e){return new t("th",e)}function mt(e){return new t("thead",e)}function pt(e){return new t("time",e)}function gt(e){return new t("title",e)}function bt(e){return new t("tr",e)}function yt(e){return new t("track",e)}function St(e){return new t("u",e)}function Et(e){return new t("ul",e)}function vt(e){return new t("var",e)}function Lt(e){return new t("video",e)}function kt(e){return new t("wbr",e)}function Tt(e){return new t(document.createDocumentFragment(),e)}function Ct(e){return new t(document.createTextNode(""),e)}function Nt(e){return new t("div",Z($({},e),{style:$({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=t;exports.a=Se;exports.abbr=Ee;exports.address=ve;exports.area=Le;exports.article=ke;exports.aside=Te;exports.audio=Ce;exports.b=Ne;exports.base=xe;exports.bdi=qe;exports.bdo=Ae;exports.blockquote=Me;exports.body=De;exports.br=Fe;exports.button=He;exports.canvas=Pe;exports.caption=Be;exports.cite=Ge;exports.code=Ve;exports.col=$e;exports.colgroup=Re;exports.contents=Nt;exports.data=We;exports.datalist=Je;exports.dd=ze;exports.del=Ke;exports.details=Ye;exports.dfn=Ie;exports.dialog=Ue;exports.div=Qe;exports.dl=Xe;exports.dt=Ze;exports.element=ye;exports.em=_e;exports.embed=Oe;exports.empty=Ct;exports.fieldset=je;exports.figcaption=en;exports.figure=nn;exports.footer=tn;exports.form=rn;exports.fragment=Tt;exports.h1=on;exports.h2=sn;exports.h3=un;exports.h4=cn;exports.h5=fn;exports.h6=an;exports.head=ln;exports.header=dn;exports.hgroup=hn;exports.hr=wn;exports.html=mn;exports.htmlVar=vt;exports.i=pn;exports.iframe=gn;exports.img=bn;exports.input=yn;exports.ins=Sn;exports.kbd=En;exports.label=vn;exports.legend=Ln;exports.li=kn;exports.link=Tn;exports.main=Cn;exports.map=Nn;exports.mark=xn;exports.menu=qn;exports.meta=An;exports.meter=Mn;exports.nav=Dn;exports.noscript=Fn;exports.object=Hn;exports.ol=Pn;exports.optgroup=Bn;exports.option=Gn;exports.output=Vn;exports.p=$n;exports.picture=Rn;exports.pre=Wn;exports.progress=Jn;exports.q=zn;exports.rp=Kn;exports.rt=Yn;exports.ruby=In;exports.s=Un;exports.samp=Qn;exports.script=Xn;exports.search=Zn;exports.section=_n;exports.select=On;exports.slot=jn;exports.small=et;exports.source=nt;exports.span=tt;exports.strong=rt;exports.style=it;exports.sub=ot;exports.summary=st;exports.sup=ut;exports.table=ct;exports.tbody=ft;exports.td=at;exports.template=lt;exports.textarea=dt;exports.tfoot=ht;exports.th=wt;exports.thead=mt;exports.time=pt;exports.title=gt;exports.tr=bt;exports.track=yt;exports.u=St;exports.ul=Et;exports.video=Lt;exports.wbr=kt;