@reactive-web-components/rwc 2.63.8 → 2.63.9
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/package.json +5 -5
- package/{reactive-web-component.JxqpxJnO.js → reactive-web-component.CVKZou2I.js} +281 -274
- package/reactive-web-component.Dkdz2Eax.umd.cjs +2 -0
- package/{shared → src/shared}/utils/signal/signal.d.ts +0 -3
- package/reactive-web-component.DaYus6eo.umd.cjs +0 -2
- /package/{main.d.ts → src/main.d.ts} +0 -0
- /package/{shared → src/shared}/constants/constants.d.ts +0 -0
- /package/{shared → src/shared}/index.d.ts +0 -0
- /package/{shared → src/shared}/types/base-element.d.ts +0 -0
- /package/{shared → src/shared}/types/element.d.ts +0 -0
- /package/{shared → src/shared}/types/index.d.ts +0 -0
- /package/{shared → src/shared}/types/list.type.d.ts +0 -0
- /package/{shared → src/shared}/utils/helpers.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-decorators/html-property.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-decorators/index.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/base-element.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/create-component-config.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/custom-element.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/dd-list.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/element-helper.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/element.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/get-list.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-elements/index.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-fabric/custom-fabric.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-fabric/fabric.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-fabric/fn-component.d.ts +0 -0
- /package/{shared → src/shared}/utils/html-fabric/index.d.ts +0 -0
- /package/{shared → src/shared}/utils/index.d.ts +0 -0
- /package/{shared → src/shared}/utils/routing/router.d.ts +0 -0
- /package/{shared → src/shared}/utils/signal/helpers.types.d.ts +0 -0
- /package/{shared → src/shared}/utils/signal/index.d.ts +0 -0
- /package/{shared → src/shared}/utils/signal/signal.type.d.ts +0 -0
- /package/{shared → src/shared}/utils/signal/utils.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/button/button.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/counter.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/test-list/dynamic-items-test.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/test-list/example.list.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/useCustomComponent.d.ts +0 -0
- /package/{test-components → src/test-components}/examples/when.d.ts +0 -0
- /package/{test-components → src/test-components}/tab-bar.d.ts +0 -0
- /package/{test-components → src/test-components}/test-batching.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var lt = Object.defineProperty;
|
|
2
|
+
var at = (e, t, s) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var h = (e, t, s) => at(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
4
|
const F = (e) => e && typeof e == "object" && ("classList" in e || "attributes" in e || "customAttributes" in e || "reactiveClassList" in e || "listeners" in e || "customListeners" in e || "children" in e || "effects" in e || "ref" in e || "style" in e || Object.keys(e).some(
|
|
5
5
|
(t) => t.startsWith(".") || t.startsWith("@") || t.startsWith("$")
|
|
6
|
-
)) && !("hostElement" in e),
|
|
6
|
+
)) && !("hostElement" in e), dt = (e) => e && typeof e == "object" && "hostElement" in e && "append" in e && "set" in e && "addStyle" in e && "setAttribute" in e && "addClass" in e && "addEffect" in e && "addReactiveContent" in e && "setReactiveContent" in e && "clear" in e, G = (e, t, ...s) => {
|
|
7
7
|
t && t.apply(e, s);
|
|
8
8
|
};
|
|
9
9
|
let z = !0;
|
|
@@ -40,36 +40,36 @@ const C = (...e) => {
|
|
|
40
40
|
const c = new RegExp(`\\${i}([^\\s,]+)`, "g");
|
|
41
41
|
r = r.replace(c, "%c$1");
|
|
42
42
|
}), console.log(r, ...o, ...t);
|
|
43
|
-
},
|
|
43
|
+
}, Bt = () => {
|
|
44
44
|
z = !0;
|
|
45
|
-
},
|
|
45
|
+
}, ht = () => {
|
|
46
46
|
z = !1;
|
|
47
47
|
};
|
|
48
|
-
|
|
49
|
-
const
|
|
48
|
+
ht();
|
|
49
|
+
const Vt = (e, t) => {
|
|
50
50
|
e.every(Boolean) && t(e);
|
|
51
|
-
},
|
|
51
|
+
}, ut = (e) => {
|
|
52
52
|
if (e.status === "active") {
|
|
53
|
-
U(e),
|
|
53
|
+
U(e), O.push(e);
|
|
54
54
|
try {
|
|
55
55
|
e();
|
|
56
56
|
} catch (t) {
|
|
57
57
|
console.error("Error in effect:", t);
|
|
58
58
|
} finally {
|
|
59
|
-
|
|
59
|
+
O.pop();
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}, k = /* @__PURE__ */ new Set();
|
|
63
63
|
let K = !1;
|
|
64
|
-
const
|
|
64
|
+
const pt = (e) => {
|
|
65
65
|
e.status === "active" && k.add(e), K || (K = !0, queueMicrotask(() => {
|
|
66
66
|
K = !1, C("pendingEffects.size", k.size);
|
|
67
67
|
const t = Array.from(k);
|
|
68
68
|
k.clear(), t.forEach((s) => {
|
|
69
|
-
|
|
69
|
+
ut(s);
|
|
70
70
|
}), C("after ------ pendingEffects.size", k.size);
|
|
71
71
|
}));
|
|
72
|
-
},
|
|
72
|
+
}, O = [], U = (e) => {
|
|
73
73
|
var t, s, n, o;
|
|
74
74
|
(t = e.children) == null || t.forEach((r) => {
|
|
75
75
|
var i;
|
|
@@ -81,7 +81,7 @@ function j(e, t) {
|
|
|
81
81
|
const n = /* @__PURE__ */ new Set();
|
|
82
82
|
function o() {
|
|
83
83
|
var i;
|
|
84
|
-
const r =
|
|
84
|
+
const r = O[O.length - 1];
|
|
85
85
|
return r && !r.fake && !n.has(r) && r.status === "active" && (n.add(r), (i = r.cleanupSet) == null || i.add(() => n.delete(r))), !(t != null && t.name) && (r != null && r.effectId) && o.setName(r.effectId), e;
|
|
86
86
|
}
|
|
87
87
|
return o.signalId = `${(t == null ? void 0 : t.name) || ""}_${Math.random().toString(36).substring(2, 15)}`, o.setName = function(r) {
|
|
@@ -95,7 +95,7 @@ function j(e, t) {
|
|
|
95
95
|
}, o.peek = function() {
|
|
96
96
|
return Object.freeze(e);
|
|
97
97
|
}, o.initValue = Object.freeze(e), o.forceSet = function(r) {
|
|
98
|
-
e = r, n.forEach((i) =>
|
|
98
|
+
e = r, n.forEach((i) => pt(i));
|
|
99
99
|
}, o.set = function(r, i = s) {
|
|
100
100
|
e !== r && i(e, r) && o.forceSet(r);
|
|
101
101
|
}, o.update = function(r) {
|
|
@@ -108,10 +108,10 @@ function j(e, t) {
|
|
|
108
108
|
const a = o();
|
|
109
109
|
w(
|
|
110
110
|
() => {
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
const f = r(a);
|
|
112
|
+
f instanceof Promise ? f.then((m) => c.set(m)) : g(f) ? w(() => c.set(f()), {
|
|
113
113
|
name: "pipe_effect_inner"
|
|
114
|
-
}) : c.set(
|
|
114
|
+
}) : c.set(f);
|
|
115
115
|
},
|
|
116
116
|
{ name: "pipe_effect" }
|
|
117
117
|
);
|
|
@@ -126,14 +126,14 @@ function w(e, t) {
|
|
|
126
126
|
C("current effect", `%c${s}%c`);
|
|
127
127
|
const n = e;
|
|
128
128
|
n.status = "active", n.children = /* @__PURE__ */ new Set(), n.effectId = s;
|
|
129
|
-
const o =
|
|
129
|
+
const o = O[O.length - 1];
|
|
130
130
|
return o && ((r = o.children) == null || r.add(n), n.parent = new WeakRef(o), n.destroy = () => {
|
|
131
131
|
var i;
|
|
132
132
|
U(n), (i = o.children) == null || i.delete(n), n.destroy = void 0, n.status = "inactive";
|
|
133
|
-
}), n.cleanupSet = /* @__PURE__ */ new Set(),
|
|
133
|
+
}), n.cleanupSet = /* @__PURE__ */ new Set(), O.push(n), n(), O.pop(), n;
|
|
134
134
|
}
|
|
135
135
|
const g = (e) => !!e && ["object", "function"].includes(typeof e) && "set" in e && "update" in e && "forceSet" in e && "signalId" in e;
|
|
136
|
-
function
|
|
136
|
+
function Nt(e, ...t) {
|
|
137
137
|
const s = j("");
|
|
138
138
|
return w(() => {
|
|
139
139
|
const n = t.map(
|
|
@@ -144,21 +144,21 @@ function Bt(e, ...t) {
|
|
|
144
144
|
}), s.set(o.join(""));
|
|
145
145
|
}), s;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Jt(e, t) {
|
|
148
148
|
const s = j(t ?? null), n = (o) => s.set(o);
|
|
149
149
|
return e instanceof Promise ? e.then(n) : typeof e == "function" && w(() => {
|
|
150
150
|
const o = e();
|
|
151
151
|
o instanceof Promise ? o.then(n) : g(o) ? w(() => n(o())) : n(o);
|
|
152
152
|
}), s;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function qt(e, t) {
|
|
155
155
|
let s = e(), n = t();
|
|
156
156
|
w(() => {
|
|
157
157
|
const o = e(), r = t();
|
|
158
158
|
o !== r && (o !== s ? t.set(o) : r !== n && e.set(r)), s = o, n = r;
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function zt(...e) {
|
|
162
162
|
let t = e.map((n) => n());
|
|
163
163
|
const s = j(t);
|
|
164
164
|
return e.forEach((n, o) => {
|
|
@@ -168,35 +168,35 @@ function qt(...e) {
|
|
|
168
168
|
});
|
|
169
169
|
}), s;
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const Dt = (...e) => {
|
|
172
172
|
const t = j([]);
|
|
173
173
|
return w(() => {
|
|
174
174
|
t.set(
|
|
175
175
|
e.map((s) => s())
|
|
176
176
|
);
|
|
177
177
|
}), t;
|
|
178
|
-
},
|
|
178
|
+
}, Gt = (e, t) => {
|
|
179
179
|
let s = !0;
|
|
180
180
|
const n = w(() => {
|
|
181
181
|
var o;
|
|
182
182
|
s && (s = !1, t(e()), (o = n.destroy) == null || o.call(n));
|
|
183
183
|
});
|
|
184
|
-
},
|
|
184
|
+
}, J = "eventProps", q = "EVENT_CONFIG", P = "observedAttributes", Kt = () => (e, t) => {
|
|
185
185
|
Reflect.get(e, P) || Reflect.defineProperty(e, P, {
|
|
186
186
|
value: []
|
|
187
187
|
}), Reflect.get(e, P).push(
|
|
188
188
|
N(t)
|
|
189
189
|
);
|
|
190
|
-
},
|
|
191
|
-
Reflect.get(t,
|
|
190
|
+
}, Ut = (e) => (t, s) => {
|
|
191
|
+
Reflect.get(t, J) || Reflect.defineProperty(t, J, {
|
|
192
192
|
value: []
|
|
193
|
-
}), Reflect.get(t,
|
|
193
|
+
}), Reflect.get(t, q) || Reflect.defineProperty(t, q, {
|
|
194
194
|
value: {}
|
|
195
|
-
}), Reflect.get(t,
|
|
195
|
+
}), Reflect.get(t, q)[s] = {
|
|
196
196
|
bubbles: (e == null ? void 0 : e.bubbles) ?? !1,
|
|
197
197
|
composed: (e == null ? void 0 : e.composed) ?? !1
|
|
198
|
-
}, Reflect.get(t,
|
|
199
|
-
},
|
|
198
|
+
}, Reflect.get(t, J).push(s);
|
|
199
|
+
}, st = (e, t = !1) => (s) => {
|
|
200
200
|
C(
|
|
201
201
|
e,
|
|
202
202
|
"start register static attr",
|
|
@@ -232,8 +232,8 @@ const Jt = (...e) => {
|
|
|
232
232
|
}
|
|
233
233
|
const b = ft(i);
|
|
234
234
|
if (b in this && g(this[b])) {
|
|
235
|
-
const
|
|
236
|
-
|
|
235
|
+
const f = this[b];
|
|
236
|
+
f.setName(i), a === null ? (f.set(f.initValue), this.removeAttribute(i)) : f.set(a);
|
|
237
237
|
}
|
|
238
238
|
G(
|
|
239
239
|
this,
|
|
@@ -247,28 +247,28 @@ const Jt = (...e) => {
|
|
|
247
247
|
const i = () => {
|
|
248
248
|
var a, b;
|
|
249
249
|
C("rwc: connectedCallback"), C("connectedCallback", `%c${e}%c`, this), (a = this.init) == null || a.call(this), this.providers && Object.keys(this.providers).length > 0 && (C("WRAPPER for providers", e), Object.entries(this.providers).forEach(
|
|
250
|
-
([
|
|
251
|
-
C("register provider",
|
|
250
|
+
([f, d]) => {
|
|
251
|
+
C("register provider", f, d()), this.addEventListener(f, (m) => {
|
|
252
252
|
var u;
|
|
253
|
-
C("send provider",
|
|
253
|
+
C("send provider", f, d());
|
|
254
254
|
const p = m;
|
|
255
|
-
((u = p.detail) == null ? void 0 : u.context) ===
|
|
255
|
+
((u = p.detail) == null ? void 0 : u.context) === f && (p.stopPropagation(), p.detail.callback(d));
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
)), this.checkInjects(), (b = s.prototype[
|
|
259
|
-
(
|
|
260
|
-
this[
|
|
261
|
-
const m = s.prototype[
|
|
258
|
+
)), this.checkInjects(), (b = s.prototype[J]) == null || b.forEach(
|
|
259
|
+
(f) => {
|
|
260
|
+
this[f] = (d) => {
|
|
261
|
+
const m = s.prototype[q][f], { bubbles: p, composed: u } = m;
|
|
262
262
|
g(d) ? w(() => {
|
|
263
263
|
V("@oemit reactive value", d()), this.dispatchEvent(
|
|
264
|
-
new CustomEvent(
|
|
264
|
+
new CustomEvent(f, {
|
|
265
265
|
detail: d(),
|
|
266
266
|
bubbles: p,
|
|
267
267
|
composed: u
|
|
268
268
|
})
|
|
269
269
|
);
|
|
270
270
|
}) : (V("@oemit value", d), this.dispatchEvent(
|
|
271
|
-
new CustomEvent(
|
|
271
|
+
new CustomEvent(f, {
|
|
272
272
|
detail: d,
|
|
273
273
|
bubbles: p,
|
|
274
274
|
composed: u
|
|
@@ -283,13 +283,13 @@ const Jt = (...e) => {
|
|
|
283
283
|
d && this.shadow.appendChild(d), G(this, s.prototype.connectedCallback), this.appendSlotContent();
|
|
284
284
|
};
|
|
285
285
|
if (this.rootStyle && !s.styles) {
|
|
286
|
-
const
|
|
286
|
+
const f = (p) => p instanceof Promise || Array.isArray(p) && p.every((u) => u instanceof Promise), d = this.rootStyle, m = (p) => {
|
|
287
287
|
const u = new CSSStyleSheet();
|
|
288
288
|
u.replaceSync(p), this.shadow.adoptedStyleSheets.push(u);
|
|
289
289
|
const y = new CSSStyleSheet();
|
|
290
290
|
y.replaceSync(p.slice(p.indexOf("@property"))), document.adoptedStyleSheets.push(y);
|
|
291
291
|
};
|
|
292
|
-
if (
|
|
292
|
+
if (f(d)) {
|
|
293
293
|
const p = [];
|
|
294
294
|
Array.isArray(d) ? p.push(...d) : p.push(d), Promise.all(p).then((u) => u.forEach((y) => m(y.default))).then(() => c());
|
|
295
295
|
} else {
|
|
@@ -298,22 +298,22 @@ const Jt = (...e) => {
|
|
|
298
298
|
}
|
|
299
299
|
} else
|
|
300
300
|
c();
|
|
301
|
-
this.slotContext && Object.keys(this.slotContext).length > 0 && this.shadow.querySelectorAll("slot").forEach((
|
|
301
|
+
this.slotContext && Object.keys(this.slotContext).length > 0 && this.shadow.querySelectorAll("slot").forEach((f) => {
|
|
302
302
|
C(
|
|
303
303
|
this.slotContext,
|
|
304
|
-
this.slotContext && this.slotContext[
|
|
304
|
+
this.slotContext && this.slotContext[f.name]
|
|
305
305
|
), V(
|
|
306
306
|
"@bslot element",
|
|
307
|
-
|
|
308
|
-
`name:${
|
|
309
|
-
|
|
310
|
-
),
|
|
311
|
-
const m = this.slotContext[
|
|
307
|
+
f,
|
|
308
|
+
`name:${f.name};`,
|
|
309
|
+
f.assignedElements()
|
|
310
|
+
), f.assignedElements().forEach((d) => {
|
|
311
|
+
const m = this.slotContext[f.name];
|
|
312
312
|
this.slotContext && g(m) && (V(
|
|
313
313
|
"@oslot element",
|
|
314
|
-
|
|
315
|
-
`name:${
|
|
316
|
-
|
|
314
|
+
f,
|
|
315
|
+
`name:${f.name};`,
|
|
316
|
+
f.assignedElements()
|
|
317
317
|
), w(() => {
|
|
318
318
|
d.dispatchEvent(
|
|
319
319
|
new CustomEvent("handleSlotContext", {
|
|
@@ -333,27 +333,27 @@ const Jt = (...e) => {
|
|
|
333
333
|
}), this.effectSet.clear(), this.shadow.replaceChildren(), this.replaceChildren(), G(this, s.prototype.disconnectedCallback);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
return
|
|
336
|
+
return h(o, "observedAttributes", s.prototype[P] ?? []), h(o, "renderTagName", e), o.toString = () => e, customElements.get(e) ? console.error(
|
|
337
337
|
`название тега ${e} повторяется, компонент ${s.name} не зарегистрирован`
|
|
338
338
|
) : customElements.define(e, o), s.renderTagName = e, s;
|
|
339
339
|
};
|
|
340
340
|
class _ extends HTMLElement {
|
|
341
341
|
constructor(s = !1) {
|
|
342
342
|
super();
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
343
|
+
h(this, "init");
|
|
344
|
+
h(this, "isSlotLazyLoading", !1);
|
|
345
|
+
h(this, "slotTemplate");
|
|
346
|
+
h(this, "slotContext");
|
|
347
|
+
h(this, "rootStyle");
|
|
348
|
+
h(this, "modelValue");
|
|
349
|
+
h(this, "providers");
|
|
350
|
+
h(this, "effectSet", /* @__PURE__ */ new Set());
|
|
351
|
+
h(this, "appendAllSlotContent");
|
|
352
|
+
h(this, "allSlotContent", []);
|
|
353
|
+
h(this, "slotContent", {});
|
|
354
|
+
h(this, "htmlSlotContent", {});
|
|
355
|
+
h(this, "shadow");
|
|
356
|
+
h(this, "injects", {});
|
|
357
357
|
this.shadow = this.attachShadow({ mode: s ? "closed" : "open" });
|
|
358
358
|
}
|
|
359
359
|
// @ts-expect-error - appendChild is not defined in the HTMLElement interface
|
|
@@ -397,22 +397,22 @@ class _ extends HTMLElement {
|
|
|
397
397
|
this.modelValue = s;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
|
|
401
|
-
const
|
|
400
|
+
h(_, "observedAttributes", []), h(_, "renderTagName", ""), h(_, "styles");
|
|
401
|
+
const Yt = (e) => "render" in e && "setReactiveValue" in e, mt = "handleSlotContext", X = "onConnected", nt = (e) => typeof e == "string" ? e : JSON.stringify(e), Et = (e) => {
|
|
402
402
|
const t = document.createElement("span");
|
|
403
|
-
return t.textContent =
|
|
404
|
-
},
|
|
403
|
+
return t.textContent = nt(e), t;
|
|
404
|
+
}, ot = (e, t) => (e.appendChild(Et(t)), e), Ct = (e, t) => (e.replaceChildren(), ot(e, t)), Q = (e) => {
|
|
405
405
|
const t = document.createElement("span");
|
|
406
406
|
return w(() => {
|
|
407
407
|
const s = e();
|
|
408
|
-
t.textContent =
|
|
408
|
+
t.textContent = nt(s);
|
|
409
409
|
}), t;
|
|
410
410
|
};
|
|
411
|
-
class
|
|
411
|
+
class rt {
|
|
412
412
|
constructor(t) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
h(this, "wrapper");
|
|
414
|
+
h(this, "keyedEffects", /* @__PURE__ */ new Map());
|
|
415
|
+
h(this, "append", (...t) => (t.forEach((s) => {
|
|
416
416
|
var o;
|
|
417
417
|
const n = s.hostElement;
|
|
418
418
|
n && ((o = this.hostElement) == null || o.appendChild(n), X in n && setTimeout(() => {
|
|
@@ -424,7 +424,7 @@ class it {
|
|
|
424
424
|
);
|
|
425
425
|
}));
|
|
426
426
|
}), this));
|
|
427
|
-
|
|
427
|
+
h(this, "set", (...t) => {
|
|
428
428
|
var n;
|
|
429
429
|
this.clear();
|
|
430
430
|
const s = document.createDocumentFragment();
|
|
@@ -433,7 +433,7 @@ class it {
|
|
|
433
433
|
r && s.appendChild(r);
|
|
434
434
|
}), (n = this.hostElement) == null || n.appendChild(s), this;
|
|
435
435
|
});
|
|
436
|
-
|
|
436
|
+
h(this, "removeChild", (...t) => (t.forEach((s) => {
|
|
437
437
|
var n, o;
|
|
438
438
|
if (Array.from(((n = this.hostElement) == null ? void 0 : n.childNodes.values()) || []).some(
|
|
439
439
|
(r) => r === s.hostElement
|
|
@@ -442,15 +442,15 @@ class it {
|
|
|
442
442
|
r && ((o = this.hostElement) == null || o.removeChild(r));
|
|
443
443
|
}
|
|
444
444
|
}), this));
|
|
445
|
-
|
|
445
|
+
h(this, "addHtmlContent", (t) => {
|
|
446
446
|
const s = this.hostElement;
|
|
447
|
-
return s ? (
|
|
447
|
+
return s ? (ot(s, t), this) : this;
|
|
448
448
|
});
|
|
449
|
-
|
|
449
|
+
h(this, "setHtmlContent", (t) => {
|
|
450
450
|
const s = this.hostElement;
|
|
451
|
-
return s ? (
|
|
451
|
+
return s ? (Ct(s, t), this) : this;
|
|
452
452
|
});
|
|
453
|
-
|
|
453
|
+
h(this, "setAttribute", (t, s) => {
|
|
454
454
|
var r;
|
|
455
455
|
C("setAttribute", t, s);
|
|
456
456
|
const n = this.hostElement;
|
|
@@ -471,22 +471,22 @@ class it {
|
|
|
471
471
|
}
|
|
472
472
|
return this;
|
|
473
473
|
});
|
|
474
|
-
|
|
474
|
+
h(this, "setCustomAttribute", (t, s) => {
|
|
475
475
|
var o;
|
|
476
476
|
let n;
|
|
477
477
|
return typeof s != "string" ? n = JSON.stringify(s) : n = s, (o = this.hostElement) == null || o.setAttribute(N(t), n), this;
|
|
478
478
|
});
|
|
479
|
-
|
|
479
|
+
h(this, "setReactiveAttribute", (t, s) => (this.addEffect((n) => {
|
|
480
480
|
C("setReactiveAttribute effect", t, s), n.setAttribute(t, s());
|
|
481
481
|
}, t), this));
|
|
482
|
-
|
|
482
|
+
h(this, "setReactiveCustomAttribute", (t, s) => (this.addEffect((n) => {
|
|
483
483
|
n.setCustomAttribute(t, s());
|
|
484
484
|
}), this));
|
|
485
|
-
|
|
485
|
+
h(this, "removeAttribute", (t) => {
|
|
486
486
|
var s;
|
|
487
487
|
return (s = this.hostElement) == null || s.removeAttribute(N(t)), this;
|
|
488
488
|
});
|
|
489
|
-
|
|
489
|
+
h(this, "addStyle", (t) => {
|
|
490
490
|
const s = this.hostElement;
|
|
491
491
|
return s ? (Object.entries(t).forEach(([n, o]) => {
|
|
492
492
|
const r = n.startsWith("--");
|
|
@@ -499,12 +499,12 @@ class it {
|
|
|
499
499
|
}) : typeof o == "string" && (r ? s.style.setProperty(n, o) : s.style[n] = o);
|
|
500
500
|
}), this) : this;
|
|
501
501
|
});
|
|
502
|
-
|
|
502
|
+
h(this, "onConnected", (t) => this.hostElement ? (Reflect.defineProperty(this.hostElement, X, {
|
|
503
503
|
get() {
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
506
|
}), this) : this);
|
|
507
|
-
|
|
507
|
+
h(this, "addClass", (...t) => (t.forEach((s) => {
|
|
508
508
|
var n;
|
|
509
509
|
typeof s == "string" ? (n = this.hostElement) == null || n.classList.add(
|
|
510
510
|
...s.split(" ").flatMap((o) => o.split(`
|
|
@@ -517,24 +517,24 @@ class it {
|
|
|
517
517
|
});
|
|
518
518
|
})();
|
|
519
519
|
}), this));
|
|
520
|
-
|
|
520
|
+
h(this, "setClass", (...t) => {
|
|
521
521
|
var s, n, o;
|
|
522
522
|
return (n = this.hostElement) == null || n.classList.remove(...((s = this.hostElement) == null ? void 0 : s.classList) || []), (o = this.hostElement) == null || o.classList.add(...t), this;
|
|
523
523
|
});
|
|
524
|
-
|
|
524
|
+
h(this, "addReactiveClass", (t) => (Object.keys(t).forEach((s) => {
|
|
525
525
|
this.addEffect((n) => {
|
|
526
526
|
t[s]() ? n.addClass(s) : n.removeClass(s);
|
|
527
527
|
});
|
|
528
528
|
}), this));
|
|
529
|
-
|
|
529
|
+
h(this, "removeClass", (...t) => {
|
|
530
530
|
var s;
|
|
531
531
|
return (s = this.hostElement) == null || s.classList.remove(...t), this;
|
|
532
532
|
});
|
|
533
|
-
|
|
533
|
+
h(this, "replaceClass", (t, s) => {
|
|
534
534
|
var n;
|
|
535
535
|
return (n = this.hostElement) == null || n.classList.replace(t, s), this;
|
|
536
536
|
});
|
|
537
|
-
|
|
537
|
+
h(this, "addEffect", (t, s) => {
|
|
538
538
|
var r, i;
|
|
539
539
|
const n = this.hostElement;
|
|
540
540
|
if (!n) return this;
|
|
@@ -545,15 +545,15 @@ class it {
|
|
|
545
545
|
}
|
|
546
546
|
return (i = n.effectSet) == null || i.add(new WeakRef(o)), o.component = this.wrapper, w(o, { name: (s == null ? void 0 : s.toString()) || n.tagName }), this;
|
|
547
547
|
});
|
|
548
|
-
|
|
548
|
+
h(this, "addReactiveContent", (t) => {
|
|
549
549
|
var s;
|
|
550
550
|
return (s = this.hostElement) == null || s.appendChild(Q(t)), this;
|
|
551
551
|
});
|
|
552
|
-
|
|
552
|
+
h(this, "setReactiveContent", (t) => {
|
|
553
553
|
var s;
|
|
554
554
|
return this.clear(), (s = this.hostElement) == null || s.appendChild(Q(t)), this;
|
|
555
555
|
});
|
|
556
|
-
|
|
556
|
+
h(this, "clear", () => {
|
|
557
557
|
var t;
|
|
558
558
|
return (t = this.hostElement) == null || t.replaceChildren(), this;
|
|
559
559
|
});
|
|
@@ -573,11 +573,11 @@ class it {
|
|
|
573
573
|
), this;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class bt extends rt {
|
|
577
577
|
constructor() {
|
|
578
578
|
super(...arguments);
|
|
579
|
-
|
|
580
|
-
|
|
579
|
+
h(this, "setReactiveValue", (s) => (this.hostElement instanceof _ && this.hostElement.setReactiveValue(s), this));
|
|
580
|
+
h(this, "setSlotTemplate", (s) => {
|
|
581
581
|
var o;
|
|
582
582
|
const n = (o = this.hostElement) == null ? void 0 : o.slotTemplate;
|
|
583
583
|
return n && Object.entries(s).forEach(([r, i]) => {
|
|
@@ -586,10 +586,10 @@ class Ct extends it {
|
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
const
|
|
590
|
-
},
|
|
589
|
+
const Zt = () => () => {
|
|
590
|
+
}, St = (e) => new bt(new WeakRef(e)), yt = (e) => new rt(new WeakRef(e)), wt = (e, ...t) => ({
|
|
591
591
|
classList: [...e.map((s) => s.trim()).filter(Boolean), ...t]
|
|
592
|
-
}),
|
|
592
|
+
}), Xt = (e, ...t) => wt(e, ...t), it = (e, t) => {
|
|
593
593
|
var o;
|
|
594
594
|
if (!t || !e.deref()) return;
|
|
595
595
|
const s = Object.keys(t || {}).filter(
|
|
@@ -606,19 +606,19 @@ const Ut = () => () => {
|
|
|
606
606
|
});
|
|
607
607
|
const n = e.deref();
|
|
608
608
|
if (n)
|
|
609
|
-
return
|
|
609
|
+
return gt(n, t.classList), It(n, t.style), Ot(n, t.attributes), Lt(n, t.reactiveClassList), Rt(n, t.customAttributes), At(n, t.children), vt(n, t.effects), tt(n, t.listeners), tt(n, t.customListeners), (o = t.ref) == null || o.set(n), n;
|
|
610
610
|
}, tt = (e, t) => {
|
|
611
611
|
t && Object.entries(t).forEach(([s, n]) => {
|
|
612
612
|
typeof n == "function" && e.addEventlistener(s, n);
|
|
613
613
|
});
|
|
614
|
-
},
|
|
614
|
+
}, vt = (e, t) => t == null ? void 0 : t.forEach((s) => e.addEffect(s)), At = (e, t) => D(new WeakRef(e), ...t || []) ?? e, Rt = (e, t) => {
|
|
615
615
|
const s = t;
|
|
616
616
|
s && Object.keys(s).forEach((n) => {
|
|
617
617
|
g(s[n]) ? e.setReactiveCustomAttribute(n, s[n]) : typeof s[n] == "function" ? e.addEffect(() => {
|
|
618
618
|
e.setCustomAttribute(n, s[n]());
|
|
619
619
|
}) : e.setCustomAttribute(n, s[n]);
|
|
620
620
|
});
|
|
621
|
-
},
|
|
621
|
+
}, gt = (e, t) => e.addClass(...t || []), Lt = (e, t) => e.addReactiveClass(t || {}), It = (e, t) => e.addStyle(t || {}), Ot = (e, t) => {
|
|
622
622
|
const s = t, n = (o, r) => {
|
|
623
623
|
r !== void 0 && (C("addAttribute", o, r), g(r) ? e.setReactiveAttribute(o, r) : typeof r == "function" ? e.addEffect(() => {
|
|
624
624
|
e.setAttribute(o, r());
|
|
@@ -633,27 +633,27 @@ const Ut = () => () => {
|
|
|
633
633
|
return t.forEach((n) => {
|
|
634
634
|
typeof n == "string" ? n.trim().length > 0 && s.addHtmlContent(n) : g(n) ? s.addReactiveContent(n) : s.append(n);
|
|
635
635
|
}), s;
|
|
636
|
-
},
|
|
637
|
-
const s = document.createElement(e), n =
|
|
638
|
-
return
|
|
636
|
+
}, x = (e, t) => {
|
|
637
|
+
const s = document.createElement(e), n = yt(s);
|
|
638
|
+
return it(new WeakRef(n), t) ?? n;
|
|
639
639
|
}, Y = (e, t) => {
|
|
640
|
-
const [s, ...n] = e.split(" ").map((r) => r.trim()), o =
|
|
640
|
+
const [s, ...n] = e.split(" ").map((r) => r.trim()), o = x(s, t);
|
|
641
641
|
return n.length > 0 && o.addClass(...n), (...r) => D(
|
|
642
642
|
new WeakRef(o),
|
|
643
643
|
...r.filter(Boolean).flat().flatMap(
|
|
644
|
-
(i) => typeof i == "function" && !g(i) ?
|
|
644
|
+
(i) => typeof i == "function" && !g(i) ? M(() => i(o)) : i
|
|
645
645
|
)
|
|
646
646
|
) ?? o;
|
|
647
|
-
},
|
|
647
|
+
}, M = (e) => {
|
|
648
648
|
const t = `getSignalContent_${Math.random().toString(36).substring(2, 15)}`;
|
|
649
|
-
return
|
|
649
|
+
return x("div").addStyle({ display: "contents" }).addEffect((s) => {
|
|
650
650
|
s.clear(), D(new WeakRef(s), ...[e()].flat());
|
|
651
651
|
}, t);
|
|
652
|
-
},
|
|
653
|
-
const n =
|
|
652
|
+
}, Qt = (e, t, s) => {
|
|
653
|
+
const n = x("div").addStyle({ display: "contents" }), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
654
654
|
let a = [];
|
|
655
655
|
const b = /* @__PURE__ */ new Set();
|
|
656
|
-
let
|
|
656
|
+
let f = e.peek();
|
|
657
657
|
const d = (u) => {
|
|
658
658
|
b.delete(u), o.delete(u), r.delete(u), i.delete(u), c.delete(u);
|
|
659
659
|
}, m = (u) => {
|
|
@@ -662,9 +662,9 @@ const Ut = () => () => {
|
|
|
662
662
|
return c.set(u, y), y;
|
|
663
663
|
}
|
|
664
664
|
return c.get(u);
|
|
665
|
-
}, p = (u, y,
|
|
665
|
+
}, p = (u, y, W) => Array.from(W.children).indexOf(u) !== y;
|
|
666
666
|
return w(() => {
|
|
667
|
-
const u = e(), y = u.map(t).map((E) => typeof E == "string" ? E : E.toString()),
|
|
667
|
+
const u = e(), y = u.map(t).map((E) => typeof E == "string" ? E : E.toString()), W = new Set(y);
|
|
668
668
|
c.clear(), y.forEach((E, S) => {
|
|
669
669
|
c.set(E, S);
|
|
670
670
|
}), a = y;
|
|
@@ -678,13 +678,13 @@ const Ut = () => () => {
|
|
|
678
678
|
const H = [];
|
|
679
679
|
Array.from(L.children).forEach((E) => {
|
|
680
680
|
const S = E.dataset.key;
|
|
681
|
-
S && !
|
|
681
|
+
S && !W.has(S) && H.push(E);
|
|
682
682
|
}), H.forEach((E) => {
|
|
683
683
|
const S = E.dataset.key;
|
|
684
684
|
C("remove element", S, E), E.remove(), d(S);
|
|
685
685
|
}), y.forEach((E, S) => {
|
|
686
686
|
var v;
|
|
687
|
-
const A = u[S], T =
|
|
687
|
+
const A = u[S], T = f[S];
|
|
688
688
|
if (!o.has(E))
|
|
689
689
|
C("create new element", E, A), o.set(
|
|
690
690
|
E,
|
|
@@ -700,7 +700,7 @@ const Ut = () => () => {
|
|
|
700
700
|
() => s(A, S, u).setCustomAttribute("data-key", E)
|
|
701
701
|
), R && R.parentNode && C("mark element for update", E);
|
|
702
702
|
}
|
|
703
|
-
}),
|
|
703
|
+
}), f = [...u.map((E) => ({ ...E }))];
|
|
704
704
|
const B = () => {
|
|
705
705
|
o.forEach((E, S) => {
|
|
706
706
|
C("key from setTimeout foreach currItemSignalMap", S), b.has(S) || (b.add(S), w(() => {
|
|
@@ -728,15 +728,15 @@ const Ut = () => () => {
|
|
|
728
728
|
};
|
|
729
729
|
Promise.resolve().then(() => B());
|
|
730
730
|
}), n;
|
|
731
|
-
},
|
|
732
|
-
let t = [
|
|
731
|
+
}, te = (e) => {
|
|
732
|
+
let t = [x("div")], s = !1;
|
|
733
733
|
return w(() => {
|
|
734
734
|
var r, i;
|
|
735
735
|
const n = e();
|
|
736
736
|
s = Array.isArray(n);
|
|
737
737
|
const o = [];
|
|
738
738
|
o.push(...[n].flat()), o.length === 0 && o.push(
|
|
739
|
-
|
|
739
|
+
x("div").addStyle({ display: "none" }).setAttribute("id", "empty_template")
|
|
740
740
|
);
|
|
741
741
|
try {
|
|
742
742
|
C(
|
|
@@ -759,7 +759,7 @@ const Ut = () => () => {
|
|
|
759
759
|
console.error(c);
|
|
760
760
|
}
|
|
761
761
|
}), s ? t : t[0];
|
|
762
|
-
},
|
|
762
|
+
}, ee = (e) => mt in e, se = (e) => {
|
|
763
763
|
const t = Y("div")().addStyle({ display: "contents" }), s = (n) => {
|
|
764
764
|
const o = t.hostElement;
|
|
765
765
|
return o && (o.innerHTML = n), t;
|
|
@@ -767,14 +767,14 @@ const Ut = () => () => {
|
|
|
767
767
|
return typeof e == "string" ? s(e) : t.addEffect(() => {
|
|
768
768
|
s(e());
|
|
769
769
|
}), t;
|
|
770
|
-
},
|
|
770
|
+
}, ct = (e, t, s) => e ? M(t) : s ? M(s) : Y("div")().setAttribute("id", "empty_div_renderIf").addStyle({ display: "none" }), Mt = (e, t, s) => M(() => ct(!!e(), t, s)), ne = (e, t, s) => typeof e == "boolean" ? ct(e, t, s) : Mt(e, t, s), et = (e, t) => M(t).addEffect((s, n) => {
|
|
771
771
|
if (typeof e == "boolean")
|
|
772
772
|
n.style.display = e ? "block" : "none";
|
|
773
773
|
else {
|
|
774
774
|
const o = e() ? "block" : "none";
|
|
775
775
|
n.style.display = o;
|
|
776
776
|
}
|
|
777
|
-
}),
|
|
777
|
+
}), oe = (e, t, s) => {
|
|
778
778
|
const n = [
|
|
779
779
|
et(e, t)
|
|
780
780
|
].flat();
|
|
@@ -785,23 +785,23 @@ const Ut = () => () => {
|
|
|
785
785
|
s
|
|
786
786
|
)
|
|
787
787
|
].flat()
|
|
788
|
-
),
|
|
789
|
-
},
|
|
788
|
+
), M(() => n);
|
|
789
|
+
}, jt = (e, t) => {
|
|
790
790
|
C("createCustomElement", e);
|
|
791
|
-
const s = document.createElement(e), n =
|
|
791
|
+
const s = document.createElement(e), n = St(s);
|
|
792
792
|
return s.init = () => {
|
|
793
|
-
|
|
793
|
+
it(new WeakRef(n), t);
|
|
794
794
|
}, n;
|
|
795
|
-
},
|
|
796
|
-
const s = e.split(" ").slice(1).map((o) => o.trim()), n =
|
|
795
|
+
}, $t = (e, t) => {
|
|
796
|
+
const s = e.split(" ").slice(1).map((o) => o.trim()), n = jt(e.split(" ")[0], t);
|
|
797
797
|
return Array.isArray(s) && s.length > 0 && n.addClass(...s), (...o) => {
|
|
798
798
|
const r = o.filter(Boolean).flat().flatMap(
|
|
799
|
-
(c) => typeof c == "function" && !g(c) ?
|
|
799
|
+
(c) => typeof c == "function" && !g(c) ? M(() => c(n)) : c
|
|
800
800
|
), i = n.hostElement;
|
|
801
|
-
return i && (i.allSlotContent = r, i.slotContent = r.filter(
|
|
801
|
+
return i && (i.allSlotContent = r, i.slotContent = r.filter(dt).reduce(
|
|
802
802
|
(c, a) => {
|
|
803
|
-
var
|
|
804
|
-
const b = ((
|
|
803
|
+
var f;
|
|
804
|
+
const b = ((f = a.hostElement) == null ? void 0 : f.getAttribute("slot")) || "default";
|
|
805
805
|
return c[b] || (c[b] = []), c[b].push(a), c;
|
|
806
806
|
},
|
|
807
807
|
{}
|
|
@@ -809,25 +809,25 @@ const Ut = () => () => {
|
|
|
809
809
|
D(new WeakRef(n), ...r);
|
|
810
810
|
}), n;
|
|
811
811
|
};
|
|
812
|
-
},
|
|
812
|
+
}, Tt = (e, t, s) => $t(
|
|
813
813
|
`${e.renderTagName}${t && typeof t == "string" ? " " + t : ""}`,
|
|
814
814
|
F(t) ? t : t && typeof t == "string" ? s : void 0
|
|
815
|
-
),
|
|
815
|
+
), re = () => {
|
|
816
816
|
const e = () => {
|
|
817
817
|
};
|
|
818
818
|
return e.oldValue = null, e;
|
|
819
|
-
},
|
|
820
|
-
const n = t ?
|
|
819
|
+
}, ie = () => ({}), _t = (e, t, s) => {
|
|
820
|
+
const n = t ? st(t, s)(e) : e;
|
|
821
821
|
return (o, ...r) => {
|
|
822
822
|
const i = [...r];
|
|
823
|
-
return o && !F(o) && i.unshift(o),
|
|
823
|
+
return o && !F(o) && i.unshift(o), Tt(n, F(o) ? o : {})(...i);
|
|
824
824
|
};
|
|
825
|
-
},
|
|
826
|
-
|
|
825
|
+
}, ce = (e) => [
|
|
826
|
+
_t(e),
|
|
827
827
|
(t, s) => {
|
|
828
|
-
|
|
828
|
+
st(t, s)(e);
|
|
829
829
|
}
|
|
830
|
-
], l = {},
|
|
830
|
+
], l = {}, xt = [
|
|
831
831
|
"div",
|
|
832
832
|
"span",
|
|
833
833
|
"section",
|
|
@@ -889,21 +889,21 @@ const Ut = () => () => {
|
|
|
889
889
|
"canvas",
|
|
890
890
|
"slot"
|
|
891
891
|
];
|
|
892
|
-
|
|
892
|
+
xt.forEach((e) => {
|
|
893
893
|
l[e] = (t, ...s) => {
|
|
894
894
|
let n = [...s];
|
|
895
895
|
return t && !F(t) && (n = [t].concat(n)), Y(e, F(t) ? t : {})(...n);
|
|
896
896
|
};
|
|
897
897
|
});
|
|
898
|
-
const Wt = l.div,
|
|
899
|
-
function
|
|
898
|
+
const Wt = l.div, le = l.span, ae = l.section, de = l.input, fe = l.button, he = l.table, ue = l.tr, pe = l.td, me = l.th, Ee = l.ul, Ce = l.li, be = l.ol, Se = l.form, ye = l.label, we = l.select, ve = l.option, Ae = l.textarea, Re = l.img, ge = l.a, Le = l.p, Ie = l.h1, Oe = l.h2, Me = l.h3, je = l.h4, $e = l.h5, Te = l.h6, _e = l.br, xe = l.hr, We = l.pre, He = l.code, ke = l.nav, Pe = l.header, Fe = l.footer, Be = l.main, Ve = l.aside, Ne = l.article, Je = l.figure, qe = l.figcaption, ze = l.blockquote, De = l.cite, Ge = l.small, Ke = l.strong, Ue = l.em, Ye = l.b, Ze = l.i, Xe = l.u, Qe = l.s, ts = l.sub, es = l.sup, ss = l.mark, ns = l.del, os = l.ins, rs = l.details, is = l.summary, cs = l.progress, ls = l.meter, as = l.audio, ds = l.video, fs = l.canvas, hs = l.slot, us = (e) => (t) => e(t).addClass(...t.classList ?? []).addReactiveClass(t.reactiveClassList ?? {});
|
|
899
|
+
function Ht(e, t) {
|
|
900
900
|
let s = 0;
|
|
901
901
|
return (...n) => {
|
|
902
902
|
const o = Date.now();
|
|
903
903
|
o - s >= t && (e(...n), s = o);
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
|
-
const
|
|
906
|
+
const ps = (e, t) => M(() => {
|
|
907
907
|
const s = e();
|
|
908
908
|
let n = null;
|
|
909
909
|
return s.map(
|
|
@@ -921,11 +921,11 @@ const fs = (e, t) => O(() => {
|
|
|
921
921
|
"@dragover": (i) => {
|
|
922
922
|
i.preventDefault();
|
|
923
923
|
},
|
|
924
|
-
"@dragenter":
|
|
925
|
-
var b,
|
|
924
|
+
"@dragenter": Ht((i, c, a) => {
|
|
925
|
+
var b, f, d;
|
|
926
926
|
if (i.preventDefault(), n) {
|
|
927
927
|
let m = n, p = a;
|
|
928
|
-
const u = ((b = n.getClientRects().item(0)) == null ? void 0 : b.y) ?? 0, y = ((
|
|
928
|
+
const u = ((b = n.getClientRects().item(0)) == null ? void 0 : b.y) ?? 0, y = ((f = a.getClientRects().item(0)) == null ? void 0 : f.y) ?? 0;
|
|
929
929
|
u < y && ([m, p] = [a, n]), (d = a.parentElement) == null || d.insertBefore(m, p);
|
|
930
930
|
}
|
|
931
931
|
}, 200)
|
|
@@ -933,9 +933,9 @@ const fs = (e, t) => O(() => {
|
|
|
933
933
|
t(o, r, [...e.peek()])
|
|
934
934
|
)
|
|
935
935
|
);
|
|
936
|
-
}),
|
|
936
|
+
}), ms = (e, t, s) => {
|
|
937
937
|
let n = [], o = [];
|
|
938
|
-
const r =
|
|
938
|
+
const r = x("div").addStyle({ display: "contents" }), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
939
939
|
return w(() => {
|
|
940
940
|
const a = e(), b = a.map(t);
|
|
941
941
|
o.filter((d) => !b.includes(d)).forEach((d) => {
|
|
@@ -971,151 +971,158 @@ const fs = (e, t) => O(() => {
|
|
|
971
971
|
), queueMicrotask(() => {
|
|
972
972
|
w(() => {
|
|
973
973
|
var H, B, E;
|
|
974
|
-
const { templateFunc: u, index: y } = ((H = c.get(d)) == null ? void 0 : H()) ?? {},
|
|
974
|
+
const { templateFunc: u, index: y } = ((H = c.get(d)) == null ? void 0 : H()) ?? {}, W = (B = r.hostElement) == null ? void 0 : B.querySelector(
|
|
975
975
|
`[data-key="${d}"]`
|
|
976
976
|
), L = (u == null ? void 0 : u().setCustomAttribute("data-key", d).hostElement) ?? document.createElement("div");
|
|
977
|
-
|
|
978
|
-
S instanceof HTMLElement && S.getAttribute("data-key") === d && (y === A ? (
|
|
977
|
+
W ? (E = r.hostElement) == null || E.childNodes.forEach((S, A) => {
|
|
978
|
+
S instanceof HTMLElement && S.getAttribute("data-key") === d && (y === A ? (f(
|
|
979
979
|
y ?? 0,
|
|
980
980
|
r.hostElement,
|
|
981
981
|
L
|
|
982
|
-
), S.remove()) :
|
|
982
|
+
), S.remove()) : f(
|
|
983
983
|
y ?? 0,
|
|
984
984
|
r.hostElement,
|
|
985
985
|
L
|
|
986
986
|
));
|
|
987
|
-
}) :
|
|
987
|
+
}) : f(y ?? 0, r.hostElement, L);
|
|
988
988
|
});
|
|
989
989
|
});
|
|
990
990
|
});
|
|
991
|
-
const
|
|
991
|
+
const f = (d, m, p) => {
|
|
992
992
|
p && m && (d < m.children.length ? m.insertBefore(p, m.children[d]) : m.appendChild(p));
|
|
993
993
|
};
|
|
994
994
|
o = b, n = [...a];
|
|
995
995
|
}), r;
|
|
996
|
+
}, kt = "2.63.9", Pt = {
|
|
997
|
+
version: kt
|
|
996
998
|
};
|
|
999
|
+
console.log(
|
|
1000
|
+
"%cRWC v%s",
|
|
1001
|
+
"color: #fff; background:#4b7df5; padding:2px 6px; border-radius:4px;",
|
|
1002
|
+
Pt.version
|
|
1003
|
+
);
|
|
997
1004
|
export {
|
|
998
1005
|
_ as BaseElement,
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1006
|
+
ge as a,
|
|
1007
|
+
Ot as addAttributeList,
|
|
1008
|
+
gt as addClassList,
|
|
1009
|
+
Rt as addCustomAttributes,
|
|
1010
|
+
Lt as addReactiveClassList,
|
|
1011
|
+
It as addStyleList,
|
|
1005
1012
|
D as appendContentItem,
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1013
|
+
Ne as article,
|
|
1014
|
+
Ve as aside,
|
|
1015
|
+
as as audio,
|
|
1016
|
+
Ye as b,
|
|
1017
|
+
qt as bindReactiveSignals,
|
|
1018
|
+
ze as blockquote,
|
|
1019
|
+
_e as br,
|
|
1020
|
+
fe as button,
|
|
1014
1021
|
N as camelToKebab,
|
|
1015
|
-
|
|
1022
|
+
fs as canvas,
|
|
1016
1023
|
G as checkCall,
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1024
|
+
Vt as checkRef,
|
|
1025
|
+
De as cite,
|
|
1026
|
+
wt as classList,
|
|
1027
|
+
Xt as cls,
|
|
1028
|
+
He as code,
|
|
1022
1029
|
V as colorLog,
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
+
Dt as combineLatest,
|
|
1031
|
+
st as component,
|
|
1032
|
+
ce as configCustomComponent,
|
|
1033
|
+
us as createComponent,
|
|
1034
|
+
Tt as createCustom,
|
|
1035
|
+
$t as createCustomEl,
|
|
1036
|
+
jt as createCustomElement,
|
|
1030
1037
|
Y as createEl,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1038
|
+
x as createElement,
|
|
1039
|
+
Jt as createSignal,
|
|
1040
|
+
St as customElementHelpers,
|
|
1041
|
+
ps as ddList,
|
|
1042
|
+
ie as defineSlotTemplate,
|
|
1043
|
+
ns as del,
|
|
1044
|
+
rs as details,
|
|
1045
|
+
ht as disableLogs,
|
|
1039
1046
|
Wt as div,
|
|
1040
1047
|
w as effect,
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1048
|
+
yt as elementHelpers,
|
|
1049
|
+
Ue as em,
|
|
1050
|
+
Bt as enableLogs,
|
|
1051
|
+
Ut as event,
|
|
1052
|
+
Zt as eventEmitter,
|
|
1053
|
+
qe as figcaption,
|
|
1054
|
+
Je as figure,
|
|
1055
|
+
Gt as firstUpdate,
|
|
1056
|
+
Fe as footer,
|
|
1057
|
+
zt as forkJoin,
|
|
1058
|
+
Se as form,
|
|
1059
|
+
ms as getList,
|
|
1060
|
+
M as getSignalContent,
|
|
1061
|
+
Ie as h1,
|
|
1062
|
+
Oe as h2,
|
|
1063
|
+
Me as h3,
|
|
1064
|
+
je as h4,
|
|
1065
|
+
$e as h5,
|
|
1066
|
+
Te as h6,
|
|
1067
|
+
Pe as header,
|
|
1068
|
+
xe as hr,
|
|
1069
|
+
Ze as i,
|
|
1070
|
+
Re as img,
|
|
1071
|
+
it as initComponent,
|
|
1072
|
+
de as input,
|
|
1073
|
+
os as ins,
|
|
1074
|
+
Yt as isBaseElement,
|
|
1075
|
+
dt as isComponentConfig,
|
|
1069
1076
|
F as isComponentInitConfig,
|
|
1070
1077
|
g as isReactiveSignal,
|
|
1071
|
-
|
|
1078
|
+
ee as isSlotTemplate,
|
|
1072
1079
|
ft as kebabToCamel,
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1080
|
+
ye as label,
|
|
1081
|
+
Ce as li,
|
|
1082
|
+
Be as main,
|
|
1083
|
+
ss as mark,
|
|
1084
|
+
ls as meter,
|
|
1085
|
+
ke as nav,
|
|
1086
|
+
re as newEventEmitter,
|
|
1087
|
+
be as ol,
|
|
1088
|
+
Qt as oldGetList,
|
|
1089
|
+
ve as option,
|
|
1090
|
+
Le as p,
|
|
1091
|
+
We as pre,
|
|
1092
|
+
cs as progress,
|
|
1086
1093
|
C as projectLog,
|
|
1087
|
-
|
|
1094
|
+
Kt as property,
|
|
1088
1095
|
U as removeEffect,
|
|
1089
|
-
|
|
1090
|
-
|
|
1096
|
+
ct as renderIf,
|
|
1097
|
+
Nt as rs,
|
|
1091
1098
|
Mt as rxRenderIf,
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1099
|
+
Qe as s,
|
|
1100
|
+
ae as section,
|
|
1101
|
+
we as select,
|
|
1102
|
+
At as setChildren,
|
|
1103
|
+
vt as setEffects,
|
|
1097
1104
|
tt as setListeners,
|
|
1098
|
-
|
|
1099
|
-
|
|
1105
|
+
pt as sheduleEffect,
|
|
1106
|
+
oe as show,
|
|
1100
1107
|
et as showIf,
|
|
1101
1108
|
j as signal,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1109
|
+
te as signalComponent,
|
|
1110
|
+
hs as slot,
|
|
1111
|
+
Ge as small,
|
|
1112
|
+
le as span,
|
|
1113
|
+
Ke as strong,
|
|
1114
|
+
ts as sub,
|
|
1115
|
+
is as summary,
|
|
1116
|
+
es as sup,
|
|
1117
|
+
he as table,
|
|
1118
|
+
pe as td,
|
|
1119
|
+
Ae as textarea,
|
|
1120
|
+
me as th,
|
|
1121
|
+
ue as tr,
|
|
1122
|
+
Xe as u,
|
|
1123
|
+
Ee as ul,
|
|
1124
|
+
se as unsafeHtml,
|
|
1125
|
+
_t as useCustomComponent,
|
|
1126
|
+
ds as video,
|
|
1127
|
+
ne as when
|
|
1121
1128
|
};
|