aptechka 0.82.4 → 0.82.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.
- package/lib/{Animation-DxtCzFP3.js → Animation-BzTjZIE-.js} +2 -2
- package/lib/{Animation-jmvFcNfM.cjs → Animation-C39Ah-LM.cjs} +1 -1
- package/lib/{Composed-DtS09lSU.js → Composed-C-mnUGX6.js} +2 -2
- package/lib/{Composed-CSeUTRCg.cjs → Composed-RFcm2x5c.cjs} +1 -1
- package/lib/{Damped-DMnIOXpC.js → Damped-CRusiRIV.js} +2 -2
- package/lib/{Damped-77Urmi3q.cjs → Damped-Prr0iKu1.cjs} +1 -1
- package/lib/{DerivedArray-B8A0-8uT.cjs → DerivedArray-DdCR-Oy7.cjs} +1 -1
- package/lib/{DerivedArray-DG9iR0mf.js → DerivedArray-opbeygTL.js} +1 -1
- package/lib/{DragControls-BlL26P1V.cjs → DragControls-8rNZwQrs.cjs} +1 -1
- package/lib/{DragControls-DCC8iEOR.js → DragControls-DBNdMBA4.js} +4 -4
- package/lib/{LocalLinks-Bua7BGRF.cjs → LocalLinks-Baf0xWZ3.cjs} +1 -1
- package/lib/{LocalLinks-TQkTpAMx.js → LocalLinks-Z9pxKguG.js} +2 -2
- package/lib/{PageAnnouncerElement-sfh0_4vl.js → PageAnnouncerElement-0LxZjtVH.js} +1 -1
- package/lib/{PageAnnouncerElement-C4k2kDJ5.cjs → PageAnnouncerElement-AQ0Ja6HM.cjs} +1 -1
- package/lib/{PageScroll-cQ3B5-6N.js → PageScroll-0LxFblry.js} +1 -1
- package/lib/{PageScroll-C7QBpx0G.cjs → PageScroll-BXJUQwG7.cjs} +1 -1
- package/lib/{SourceElement-TzgPNQOd.cjs → SourceElement-BHqPFbna.cjs} +1 -1
- package/lib/{SourceElement-BQ7g2KWK.js → SourceElement-DjbHjynf.js} +2 -2
- package/lib/{Store-1JrMCgdX.cjs → Store-Blf4msDz.cjs} +1 -1
- package/lib/{Store-CgQ3ReoB.js → Store-ZThXYBQd.js} +1 -1
- package/lib/{Tweened-lT68VACv.js → Tweened-Bw1Cn1PJ.js} +2 -2
- package/lib/{Tweened-CXQrFQth.cjs → Tweened-DWtk9E-O.cjs} +1 -1
- package/lib/{Viewport-Cx50Hufs.cjs → Viewport-BxCr0GlB.cjs} +1 -1
- package/lib/{Viewport-DGnJ31b4.js → Viewport-Dt-d9DPi.js} +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/dom-BETkVSSZ.js +82 -0
- package/lib/dom-CBLlqORw.cjs +1 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-CKTweR3M.cjs → index-OE2INULi.cjs} +1 -1
- package/lib/{index-LReFyN6i.js → index-e9eDuagL.js} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.js +6 -6
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +1 -1
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +293 -300
- package/lib/{morph-BQErz7qP.js → morph-D_ybmXWR.js} +8 -8
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +1 -1
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +1 -1
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/render-1u700s93.js +212 -0
- package/lib/render-BIOfUddT.cjs +1 -0
- package/lib/router/Route.d.ts +9 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +154 -139
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -8
- package/lib/{scroll-DxcPU0vk.cjs → scroll-BA2WnUrb.cjs} +1 -1
- package/lib/{scroll-jcbHDexr.js → scroll-DY5senkF.js} +2 -2
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +1 -1
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +5 -5
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +3 -3
- package/lib/{stylesheet-BcwbfhBp.cjs → stylesheet-5_o7PFzM.cjs} +1 -1
- package/lib/{stylesheet-DbHOxtjw.js → stylesheet-DdBzowZY.js} +1 -1
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/utils/dom.d.ts +3 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +129 -126
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +1 -1
- package/lib/dom-BIeVMHfK.js +0 -57
- package/lib/dom-hTEdqeoj.cjs +0 -1
- package/lib/render-B3Hf-O7M.js +0 -205
- package/lib/render-BWjKu0M_.cjs +0 -1
package/lib/render-B3Hf-O7M.js
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
var O = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
-
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var _ = Object.getOwnPropertySymbols;
|
|
4
|
-
var B = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var L = (r) => {
|
|
6
|
-
throw TypeError(r);
|
|
7
|
-
};
|
|
8
|
-
var w = (r, s, t) => s in r ? O(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t, y = (r, s) => {
|
|
9
|
-
for (var t in s || (s = {}))
|
|
10
|
-
B.call(s, t) && w(r, t, s[t]);
|
|
11
|
-
if (_)
|
|
12
|
-
for (var t of _(s))
|
|
13
|
-
H.call(s, t) && w(r, t, s[t]);
|
|
14
|
-
return r;
|
|
15
|
-
}, N = (r, s) => R(r, q(s));
|
|
16
|
-
var D = (r, s, t) => s.has(r) || L("Cannot " + t);
|
|
17
|
-
var u = (r, s, t) => (D(r, s, "read from private field"), t ? t.call(r) : s.get(r)), m = (r, s, t) => s.has(r) ? L("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), C = (r, s, t, o) => (D(r, s, "write to private field"), o ? o.call(r, t) : s.set(r, t), t);
|
|
18
|
-
import { S as l } from "./Store-CgQ3ReoB.js";
|
|
19
|
-
import { c as K } from "./string-BlMQbe8b.js";
|
|
20
|
-
import "construct-style-sheets-polyfill";
|
|
21
|
-
import "./index-LReFyN6i.js";
|
|
22
|
-
import { connector as M } from "./connector/index.js";
|
|
23
|
-
import { a as P } from "./DerivedArray-DG9iR0mf.js";
|
|
24
|
-
const J = { current: null };
|
|
25
|
-
var b, p;
|
|
26
|
-
class X extends HTMLElement {
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
m(this, b, []);
|
|
30
|
-
m(this, p, []);
|
|
31
|
-
J.current = this;
|
|
32
|
-
}
|
|
33
|
-
addConnectCallback(t) {
|
|
34
|
-
u(this, b).push(t);
|
|
35
|
-
}
|
|
36
|
-
addDisconnectCallback(t) {
|
|
37
|
-
u(this, p).push(t);
|
|
38
|
-
}
|
|
39
|
-
connectedCallback() {
|
|
40
|
-
u(this, b).forEach((t) => {
|
|
41
|
-
const o = t(this);
|
|
42
|
-
o && u(this, p).push(o);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
disconnectedCallback() {
|
|
46
|
-
u(this, p).forEach((t) => {
|
|
47
|
-
t(this);
|
|
48
|
-
}), C(this, b, []), C(this, p, []);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
b = new WeakMap(), p = new WeakMap();
|
|
52
|
-
function E(r, s, t) {
|
|
53
|
-
const o = s.subscribe((c) => {
|
|
54
|
-
t(c);
|
|
55
|
-
});
|
|
56
|
-
M.subscribe(r, {
|
|
57
|
-
disconnectCallback: () => {
|
|
58
|
-
o();
|
|
59
|
-
},
|
|
60
|
-
maxWaitSec: 20,
|
|
61
|
-
unsubscribeAfterDisconnect: !0
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function W(r, s) {
|
|
65
|
-
s && (s instanceof l ? E(r, s, (t) => {
|
|
66
|
-
t.previous && r.classList.remove(t.previous.toString()), t.current && r.classList.add(t.current.toString());
|
|
67
|
-
}) : typeof s == "object" && !Array.isArray(s) ? Object.entries(s).forEach(([t, o]) => {
|
|
68
|
-
o instanceof l ? E(r, o, (c) => {
|
|
69
|
-
r.classList.toggle(t, !!c.current);
|
|
70
|
-
}) : o && r.classList.add(t);
|
|
71
|
-
}) : Array.isArray(s) ? s.forEach((t) => {
|
|
72
|
-
typeof t == "string" ? r.classList.add(t) : W(r, t);
|
|
73
|
-
}) : s.toString().split(" ").map((t) => r.classList.add(t.trim())));
|
|
74
|
-
}
|
|
75
|
-
function $(r, s) {
|
|
76
|
-
s && (typeof s == "object" ? Object.entries(s).forEach(([t, o]) => {
|
|
77
|
-
o instanceof l ? E(r, o, (c) => {
|
|
78
|
-
var n;
|
|
79
|
-
r.style[t] = (n = c.current) == null ? void 0 : n.toString();
|
|
80
|
-
}) : (typeof o == "number" || typeof o == "string" || typeof o == "boolean") && (r.style[t] = o.toString());
|
|
81
|
-
}) : typeof s == "string" && (r.style = s));
|
|
82
|
-
}
|
|
83
|
-
function A(r, s, t) {
|
|
84
|
-
s === "ref" && t ? Array.isArray(t) ? t.forEach((o) => {
|
|
85
|
-
typeof o == "object" && "value" in o && (o.value = r);
|
|
86
|
-
}) : typeof t == "object" && "value" in t && (t.value = r) : s === "className" || s === "class" ? W(r, t) : s === "style" ? $(r, t) : typeof t == "number" ? s === "tabIndex" ? r.setAttribute("tabindex", t.toString()) : A(r, s, t.toString()) : typeof t == "string" ? s === "htmlFor" ? r.setAttribute("for", t) : r.setAttribute(s, t) : typeof t == "boolean" ? t ? r.setAttribute(s, "") : r.removeAttribute(s) : t instanceof l && E(r, t, (o) => {
|
|
87
|
-
s in r ? r[s] = o.current : A(r, s, o.current);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function z(r, s) {
|
|
91
|
-
for (const [t, o] of Object.entries(s != null ? s : {}))
|
|
92
|
-
typeof o == "function" && t.startsWith("on") ? r.addEventListener(
|
|
93
|
-
t.replace("on", "").toLowerCase(),
|
|
94
|
-
o
|
|
95
|
-
) : A(r, t, o);
|
|
96
|
-
}
|
|
97
|
-
function I(r) {
|
|
98
|
-
const s = [];
|
|
99
|
-
return r.forEach((t) => {
|
|
100
|
-
t != null && (typeof t == "number" ? s.push(t.toString()) : Array.isArray(t) ? t.forEach((o) => {
|
|
101
|
-
s.push(...I(o));
|
|
102
|
-
}) : s.push(t));
|
|
103
|
-
}), s;
|
|
104
|
-
}
|
|
105
|
-
function Q(r, s) {
|
|
106
|
-
const t = [...r.childNodes].filter((e) => e.__storeId === s.id), o = s.current, c = Array.isArray(o) ? o : [o], n = [];
|
|
107
|
-
if (c.forEach((e) => {
|
|
108
|
-
let i = null;
|
|
109
|
-
typeof e == "boolean" || typeof e == "number" || typeof e == "string" ? i = document.createTextNode(e.toString()) : e instanceof Node && (i = e), i && (i.__storeId = s.id, n.push(i));
|
|
110
|
-
}), s instanceof P) {
|
|
111
|
-
const e = [];
|
|
112
|
-
n.forEach((i, f) => {
|
|
113
|
-
const a = t.find(
|
|
114
|
-
(h) => h.__key === i.__key
|
|
115
|
-
);
|
|
116
|
-
a ? a.isEqualNode(i) ? e.push(a) : (a.replaceWith(i), e.push(i)) : (e.push(i), r.appendChild(i));
|
|
117
|
-
}), t.forEach((i) => {
|
|
118
|
-
e.includes(i) || i.remove();
|
|
119
|
-
});
|
|
120
|
-
} else
|
|
121
|
-
n.forEach((e, i) => {
|
|
122
|
-
var a;
|
|
123
|
-
const f = t[i];
|
|
124
|
-
if (f)
|
|
125
|
-
f.isEqualNode(e) || (f.replaceWith(e), t[i] = e);
|
|
126
|
-
else {
|
|
127
|
-
const h = t[t.length - 1];
|
|
128
|
-
h ? (a = h.parentNode) == null || a.insertBefore(
|
|
129
|
-
e,
|
|
130
|
-
h.nextSibling
|
|
131
|
-
) : r.appendChild(e);
|
|
132
|
-
}
|
|
133
|
-
}), t.slice(n.length).forEach((e) => {
|
|
134
|
-
e.remove();
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
class g {
|
|
138
|
-
constructor(s, t, o) {
|
|
139
|
-
this.tag = s, this.attributes = t, this.children = o;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
class S {
|
|
143
|
-
constructor(s, t, o) {
|
|
144
|
-
this.tag = s, this.attributes = t, this.children = o;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
function d(r, s, t, o = !1) {
|
|
148
|
-
const c = I(t);
|
|
149
|
-
z(r, s), c.forEach((n) => {
|
|
150
|
-
if (n instanceof l)
|
|
151
|
-
E(r, n, () => {
|
|
152
|
-
Q(r, n);
|
|
153
|
-
});
|
|
154
|
-
else if (n instanceof g)
|
|
155
|
-
n.tag === "shadow" && r.shadowRoot ? d(
|
|
156
|
-
r.shadowRoot,
|
|
157
|
-
n.attributes,
|
|
158
|
-
n.children
|
|
159
|
-
) : d(r, n.attributes, n.children);
|
|
160
|
-
else if (n instanceof S) {
|
|
161
|
-
let e = null;
|
|
162
|
-
n.tag === "svg" ? (e = document.createElementNS(
|
|
163
|
-
"http://www.w3.org/2000/svg",
|
|
164
|
-
"svg"
|
|
165
|
-
), d(e, n.attributes, n.children, !0)) : e = o ? document.createElementNS("http://www.w3.org/2000/svg", n.tag) : document.createElement(n.tag), d(e, n.attributes, n.children, o), r.append(e);
|
|
166
|
-
} else
|
|
167
|
-
r.append(n);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
function U(r, s, ...t) {
|
|
171
|
-
var o;
|
|
172
|
-
if (typeof r == "string")
|
|
173
|
-
return r === "component" ? new g(r, s, t) : r === "shadow" ? new g(r, s, t) : new S(r, s, t);
|
|
174
|
-
{
|
|
175
|
-
if (r === F)
|
|
176
|
-
return F(t);
|
|
177
|
-
if (r.template)
|
|
178
|
-
return r(y({}, s));
|
|
179
|
-
const c = `e-${K(r.name)}`;
|
|
180
|
-
let n = customElements.get(c);
|
|
181
|
-
n || (n = (o = class extends X {
|
|
182
|
-
constructor() {
|
|
183
|
-
super();
|
|
184
|
-
}
|
|
185
|
-
}, o.formAssociated = r.formAssociated, o), customElements.define(c, n));
|
|
186
|
-
const e = new n(), i = N(y({}, s), {
|
|
187
|
-
children: t
|
|
188
|
-
}), f = r(i);
|
|
189
|
-
return __JSX_HMR_DEV__ && (e.__props__ = i), (f instanceof g || f instanceof S) && (f != null && f.children || f.attributes) && d(e, f.attributes, f.children), e;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function F(r) {
|
|
193
|
-
const s = document.createDocumentFragment();
|
|
194
|
-
return d(s, void 0, r), s;
|
|
195
|
-
}
|
|
196
|
-
function T(r, s, t) {
|
|
197
|
-
const o = /* @__PURE__ */ U(s, y({}, t));
|
|
198
|
-
return r.append(o), o;
|
|
199
|
-
}
|
|
200
|
-
export {
|
|
201
|
-
F,
|
|
202
|
-
J as a,
|
|
203
|
-
U as h,
|
|
204
|
-
T as r
|
|
205
|
-
};
|
package/lib/render-BWjKu0M_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,B=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var q=r=>{throw TypeError(r)};var L=(r,e,t)=>e in r?R(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,y=(r,e)=>{for(var t in e||(e={}))K.call(e,t)&&L(r,t,e[t]);if(w)for(var t of w(e))M.call(e,t)&&L(r,t,e[t]);return r},N=(r,e)=>B(r,H(e));var D=(r,e,t)=>e.has(r)||q("Cannot "+t);var p=(r,e,t)=>(D(r,e,"read from private field"),t?t.call(r):e.get(r)),S=(r,e,t)=>e.has(r)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,s)=>(D(r,e,"write to private field"),s?s.call(r,t):e.set(r,t),t);const l=require("./Store-1JrMCgdX.cjs"),P=require("./string-DUXXtU8v.cjs");require("construct-style-sheets-polyfill");require("./index-CKTweR3M.cjs");const J=require("./connector/index.cjs"),X=require("./DerivedArray-B8A0-8uT.cjs"),F={current:null};var b,u;class $ extends HTMLElement{constructor(){super();S(this,b,[]);S(this,u,[]);F.current=this}addConnectCallback(t){p(this,b).push(t)}addDisconnectCallback(t){p(this,u).push(t)}connectedCallback(){p(this,b).forEach(t=>{const s=t(this);s&&p(this,u).push(s)})}disconnectedCallback(){p(this,u).forEach(t=>{t(this)}),C(this,b,[]),C(this,u,[])}}b=new WeakMap,u=new WeakMap;function g(r,e,t){const s=e.subscribe(f=>{t(f)});J.connector.subscribe(r,{disconnectCallback:()=>{s()},maxWaitSec:20,unsubscribeAfterDisconnect:!0})}function W(r,e){e&&(e instanceof l.Store?g(r,e,t=>{t.previous&&r.classList.remove(t.previous.toString()),t.current&&r.classList.add(t.current.toString())}):typeof e=="object"&&!Array.isArray(e)?Object.entries(e).forEach(([t,s])=>{s instanceof l.Store?g(r,s,f=>{r.classList.toggle(t,!!f.current)}):s&&r.classList.add(t)}):Array.isArray(e)?e.forEach(t=>{typeof t=="string"?r.classList.add(t):W(r,t)}):e.toString().split(" ").map(t=>r.classList.add(t.trim())))}function z(r,e){e&&(typeof e=="object"?Object.entries(e).forEach(([t,s])=>{s instanceof l.Store?g(r,s,f=>{var o;r.style[t]=(o=f.current)==null?void 0:o.toString()}):(typeof s=="number"||typeof s=="string"||typeof s=="boolean")&&(r.style[t]=s.toString())}):typeof e=="string"&&(r.style=e))}function A(r,e,t){e==="ref"&&t?Array.isArray(t)?t.forEach(s=>{typeof s=="object"&&"value"in s&&(s.value=r)}):typeof t=="object"&&"value"in t&&(t.value=r):e==="className"||e==="class"?W(r,t):e==="style"?z(r,t):typeof t=="number"?e==="tabIndex"?r.setAttribute("tabindex",t.toString()):A(r,e,t.toString()):typeof t=="string"?e==="htmlFor"?r.setAttribute("for",t):r.setAttribute(e,t):typeof t=="boolean"?t?r.setAttribute(e,""):r.removeAttribute(e):t instanceof l.Store&&g(r,t,s=>{e in r?r[e]=s.current:A(r,e,s.current)})}function Q(r,e){for(const[t,s]of Object.entries(e!=null?e:{}))typeof s=="function"&&t.startsWith("on")?r.addEventListener(t.replace("on","").toLowerCase(),s):A(r,t,s)}function I(r){const e=[];return r.forEach(t=>{t!=null&&(typeof t=="number"?e.push(t.toString()):Array.isArray(t)?t.forEach(s=>{e.push(...I(s))}):e.push(t))}),e}function U(r,e){const t=[...r.childNodes].filter(n=>n.__storeId===e.id),s=e.current,f=Array.isArray(s)?s:[s],o=[];if(f.forEach(n=>{let i=null;typeof n=="boolean"||typeof n=="number"||typeof n=="string"?i=document.createTextNode(n.toString()):n instanceof Node&&(i=n),i&&(i.__storeId=e.id,o.push(i))}),e instanceof X.DerivedKeyedArray){const n=[];o.forEach((i,c)=>{const a=t.find(h=>h.__key===i.__key);a?a.isEqualNode(i)?n.push(a):(a.replaceWith(i),n.push(i)):(n.push(i),r.appendChild(i))}),t.forEach(i=>{n.includes(i)||i.remove()})}else o.forEach((n,i)=>{var a;const c=t[i];if(c)c.isEqualNode(n)||(c.replaceWith(n),t[i]=n);else{const h=t[t.length-1];h?(a=h.parentNode)==null||a.insertBefore(n,h.nextSibling):r.appendChild(n)}}),t.slice(o.length).forEach(n=>{n.remove()})}class E{constructor(e,t,s){this.tag=e,this.attributes=t,this.children=s}}class _{constructor(e,t,s){this.tag=e,this.attributes=t,this.children=s}}function d(r,e,t,s=!1){const f=I(t);Q(r,e),f.forEach(o=>{if(o instanceof l.Store)g(r,o,()=>{U(r,o)});else if(o instanceof E)o.tag==="shadow"&&r.shadowRoot?d(r.shadowRoot,o.attributes,o.children):d(r,o.attributes,o.children);else if(o instanceof _){let n=null;o.tag==="svg"?(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),d(n,o.attributes,o.children,!0)):n=s?document.createElementNS("http://www.w3.org/2000/svg",o.tag):document.createElement(o.tag),d(n,o.attributes,o.children,s),r.append(n)}else r.append(o)})}function O(r,e,...t){var s;if(typeof r=="string")return r==="component"?new E(r,e,t):r==="shadow"?new E(r,e,t):new _(r,e,t);{if(r===m)return m(t);if(r.template)return r(y({},e));const f=`e-${P.camelToKebab(r.name)}`;let o=customElements.get(f);o||(o=(s=class extends ${constructor(){super()}},s.formAssociated=r.formAssociated,s),customElements.define(f,o));const n=new o,i=N(y({},e),{children:t}),c=r(i);return __JSX_HMR_DEV__&&(n.__props__=i),(c instanceof E||c instanceof _)&&(c!=null&&c.children||c.attributes)&&d(n,c.attributes,c.children),n}}function m(r){const e=document.createDocumentFragment();return d(e,void 0,r),e}function V(r,e,t){const s=O(e,y({},t));return r.append(s),s}exports.Fragment=m;exports.activeComponent=F;exports.h=O;exports.render=V;
|