@jasonshimmy/custom-elements-runtime 2.2.9 → 2.3.0
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/dist/custom-elements-runtime.cjs.js +2 -2
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +250 -248
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.cjs.js +1 -1
- package/dist/custom-elements-runtime.event-bus.es.js +1 -1
- package/dist/custom-elements-runtime.router.cjs.js +1 -1
- package/dist/custom-elements-runtime.router.es.js +2 -2
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/logger-BuUYv7C_.js +44 -0
- package/dist/logger-BuUYv7C_.js.map +1 -0
- package/dist/logger-DiXdWaF-.cjs +2 -0
- package/dist/logger-DiXdWaF-.cjs.map +1 -0
- package/dist/namespace-helpers-BsKQl3aH.cjs +5 -0
- package/dist/namespace-helpers-BsKQl3aH.cjs.map +1 -0
- package/dist/namespace-helpers-Dw1mgQab.js +692 -0
- package/dist/namespace-helpers-Dw1mgQab.js.map +1 -0
- package/dist/runtime/logger.d.ts +6 -0
- package/dist/runtime/reactive.d.ts +10 -2
- package/package.json +1 -1
- package/dist/logger-BpibrmKL.js +0 -25
- package/dist/logger-BpibrmKL.js.map +0 -1
- package/dist/logger-CqdBMdui.cjs +0 -2
- package/dist/logger-CqdBMdui.cjs.map +0 -1
- package/dist/namespace-helpers-DwMMXN9Q.cjs +0 -5
- package/dist/namespace-helpers-DwMMXN9Q.cjs.map +0 -1
- package/dist/namespace-helpers-Vwt2Fzds.js +0 -651
- package/dist/namespace-helpers-Vwt2Fzds.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { g as U, t as J, i as
|
|
2
|
-
import { c as En, r as
|
|
3
|
-
import { d as W, a as Q } from "./logger-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { g as U, t as J, i as j, s as Re, a as H, b as F, d as D, f as q, T as gt, h as Ze, S as bt, j as at, k as Xe, l as Ce, m as Qe, n as Et } from "./namespace-helpers-Dw1mgQab.js";
|
|
2
|
+
import { c as En, r as vn, u as Sn, w as _n } from "./namespace-helpers-Dw1mgQab.js";
|
|
3
|
+
import { d as W, a as Q } from "./logger-BuUYv7C_.js";
|
|
4
|
+
import { s as kn } from "./logger-BuUYv7C_.js";
|
|
5
|
+
import { j as vt, g as St, a as $e, b as pe, m as ke, s as _t, c as et } from "./transitions-CZ21fzhh.js";
|
|
6
|
+
import { d as wn } from "./transitions-CZ21fzhh.js";
|
|
6
7
|
function Ct(e, n, t) {
|
|
7
8
|
if (t)
|
|
8
9
|
for (const [s, r] of Object.entries(t)) {
|
|
@@ -26,8 +27,8 @@ function kt(e, n, t, s) {
|
|
|
26
27
|
if (typeof i != typeof c || typeof i != "object" || i === null || c === null) return !1;
|
|
27
28
|
if (Array.isArray(i) && Array.isArray(c))
|
|
28
29
|
return i.length !== c.length ? !1 : i.every((m, C) => r(m, c[C]));
|
|
29
|
-
const f = i, u = c,
|
|
30
|
-
return
|
|
30
|
+
const f = i, u = c, v = Object.keys(f || {}), b = Object.keys(u || {});
|
|
31
|
+
return v.length !== b.length ? !1 : v.every((m) => r(f[m], u[m]));
|
|
31
32
|
}, o = n.get(t);
|
|
32
33
|
if (o && !r(s, o.oldValue))
|
|
33
34
|
try {
|
|
@@ -96,9 +97,9 @@ function wt(e, n, t) {
|
|
|
96
97
|
const f = J(o), u = e.getAttribute(f);
|
|
97
98
|
if (u !== null)
|
|
98
99
|
return u;
|
|
99
|
-
const
|
|
100
|
+
const v = e[o];
|
|
100
101
|
let b;
|
|
101
|
-
return
|
|
102
|
+
return j(v) || v && typeof v == "object" && "value" in v && !(v instanceof Node) ? b = v.value : b = v, b;
|
|
102
103
|
} catch {
|
|
103
104
|
return e[o];
|
|
104
105
|
}
|
|
@@ -253,11 +254,11 @@ class Ot {
|
|
|
253
254
|
}
|
|
254
255
|
const f = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
|
|
255
256
|
let u;
|
|
256
|
-
const
|
|
257
|
+
const v = /* @__PURE__ */ new Set();
|
|
257
258
|
for (; (u = f.exec(s)) !== null; ) {
|
|
258
259
|
const b = u[1];
|
|
259
|
-
if (["true", "false", "null", "undefined"].includes(b) || /^[0-9]+$/.test(b) || b === "ctx" ||
|
|
260
|
-
|
|
260
|
+
if (["true", "false", "null", "undefined"].includes(b) || /^[0-9]+$/.test(b) || b === "ctx" || v.has(b)) continue;
|
|
261
|
+
v.add(b);
|
|
261
262
|
const m = U(t, b);
|
|
262
263
|
if (m === void 0) return;
|
|
263
264
|
const C = JSON.stringify(m), w = r.push(C) - 1;
|
|
@@ -323,7 +324,7 @@ class Ot {
|
|
|
323
324
|
function u(d, k) {
|
|
324
325
|
return c(d) - c(k);
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function v(d, k) {
|
|
327
328
|
return c(d) * c(k);
|
|
328
329
|
}
|
|
329
330
|
function b(d, k) {
|
|
@@ -383,17 +384,17 @@ class Ot {
|
|
|
383
384
|
return d;
|
|
384
385
|
}
|
|
385
386
|
function a() {
|
|
386
|
-
let d =
|
|
387
|
+
let d = S();
|
|
387
388
|
for (; ; ) {
|
|
388
389
|
const k = r();
|
|
389
390
|
if (!k || k.value !== "&&") break;
|
|
390
391
|
o("OP");
|
|
391
|
-
const l =
|
|
392
|
+
const l = S();
|
|
392
393
|
d = d && l;
|
|
393
394
|
}
|
|
394
395
|
return d;
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function S() {
|
|
397
398
|
let d = h();
|
|
398
399
|
for (; ; ) {
|
|
399
400
|
const k = r();
|
|
@@ -458,7 +459,7 @@ class Ot {
|
|
|
458
459
|
const l = o("OP").value, g = _();
|
|
459
460
|
switch (l) {
|
|
460
461
|
case "*":
|
|
461
|
-
d =
|
|
462
|
+
d = v(d, g);
|
|
462
463
|
break;
|
|
463
464
|
case "/":
|
|
464
465
|
d = b(d, g);
|
|
@@ -674,7 +675,7 @@ function nt(e, n, t, s) {
|
|
|
674
675
|
});
|
|
675
676
|
}
|
|
676
677
|
}
|
|
677
|
-
function
|
|
678
|
+
function Mt(e, n, t, s) {
|
|
678
679
|
if (e) {
|
|
679
680
|
const r = n.value;
|
|
680
681
|
return s && typeof r == "object" && r !== null ? r[s] : r;
|
|
@@ -699,7 +700,7 @@ function de(e, n) {
|
|
|
699
700
|
t.length > 0 && e.classList.remove(...t);
|
|
700
701
|
}
|
|
701
702
|
let We = !1;
|
|
702
|
-
async function
|
|
703
|
+
async function jt(e, n, t = 10) {
|
|
703
704
|
if (!We) {
|
|
704
705
|
if (!e.isConnected) {
|
|
705
706
|
Q("⚠️ Element not connected to DOM, skipping style wait");
|
|
@@ -780,7 +781,7 @@ async function Ae(e, n) {
|
|
|
780
781
|
await new Promise(
|
|
781
782
|
(w) => requestAnimationFrame(() => w(void 0))
|
|
782
783
|
), e.offsetHeight;
|
|
783
|
-
const
|
|
784
|
+
const v = window.getComputedStyle(e), b = v.transform, m = v.opacity;
|
|
784
785
|
de(e, i), b && b !== "none" && (e.style.transform = b), m && m !== "" && (e.style.opacity = m), e.offsetHeight, await new Promise(
|
|
785
786
|
(w) => requestAnimationFrame(() => w(void 0))
|
|
786
787
|
), e.style.transform = "", e.style.opacity = "", ye(e, f), e.offsetHeight, await new Promise(
|
|
@@ -834,9 +835,9 @@ async function ze(e, n) {
|
|
|
834
835
|
}
|
|
835
836
|
await new Promise(
|
|
836
837
|
(b) => requestAnimationFrame(() => b(void 0))
|
|
837
|
-
), await
|
|
838
|
-
let
|
|
839
|
-
if (typeof o == "number" ?
|
|
838
|
+
), await jt(e, [...i, ...c]), de(e, i), ye(e, f);
|
|
839
|
+
let v;
|
|
840
|
+
if (typeof o == "number" ? v = o : o && typeof o == "object" && "leave" in o && (v = o.leave), await lt(e, v), de(e, c), de(e, f), de(e, i), s?.onAfterLeave)
|
|
840
841
|
try {
|
|
841
842
|
s.onAfterLeave(e);
|
|
842
843
|
} catch (b) {
|
|
@@ -901,7 +902,7 @@ function me(e) {
|
|
|
901
902
|
}
|
|
902
903
|
function Fe(e) {
|
|
903
904
|
try {
|
|
904
|
-
if (
|
|
905
|
+
if (j(e)) return e.value;
|
|
905
906
|
} catch {
|
|
906
907
|
}
|
|
907
908
|
try {
|
|
@@ -920,7 +921,7 @@ function X(e) {
|
|
|
920
921
|
return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement;
|
|
921
922
|
}
|
|
922
923
|
function ge(e) {
|
|
923
|
-
return e === "" ? !0 : typeof e == "string" ? e === "false" ? !1 : e === "true" ? !0 : e !== "" : e && typeof e == "object" ?
|
|
924
|
+
return e === "" ? !0 : typeof e == "string" ? e === "false" ? !1 : e === "true" ? !0 : e !== "" : e && typeof e == "object" ? j(e) || "value" in e ? !!e.value : !1 : !!e;
|
|
924
925
|
}
|
|
925
926
|
function ue(e, n) {
|
|
926
927
|
if (!n || !(e instanceof Element)) return;
|
|
@@ -936,7 +937,7 @@ function we(e, n, t) {
|
|
|
936
937
|
const s = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), r = e.props?.ref ?? (e.props?.props && e.props.props.ref);
|
|
937
938
|
if (s)
|
|
938
939
|
try {
|
|
939
|
-
if (
|
|
940
|
+
if (j(s) || typeof s == "object" && "value" in s)
|
|
940
941
|
s.value = n;
|
|
941
942
|
else if (typeof s == "function")
|
|
942
943
|
s(n);
|
|
@@ -957,8 +958,8 @@ function we(e, n, t) {
|
|
|
957
958
|
}
|
|
958
959
|
function It(e, n, t, s, r, o, i, c) {
|
|
959
960
|
if (!o) return;
|
|
960
|
-
const f = n.includes("lazy"), u = n.includes("trim"),
|
|
961
|
-
if (
|
|
961
|
+
const f = n.includes("lazy"), u = n.includes("trim"), v = n.includes("number"), b = () => {
|
|
962
|
+
if (j(e)) {
|
|
962
963
|
const p = e.value;
|
|
963
964
|
return c && i && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement) && typeof p == "object" && p !== null ? p[c] : p;
|
|
964
965
|
}
|
|
@@ -990,14 +991,14 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
990
991
|
} else
|
|
991
992
|
t[a] = m;
|
|
992
993
|
else {
|
|
993
|
-
!w &&
|
|
994
|
+
!w && j(e) ? t[a] = e : t[a] = m;
|
|
994
995
|
try {
|
|
995
996
|
const y = J(a);
|
|
996
997
|
s && (s[y] = m);
|
|
997
998
|
} catch {
|
|
998
999
|
}
|
|
999
1000
|
}
|
|
1000
|
-
const
|
|
1001
|
+
const S = f || C === "checkbox" || C === "radio" || C === "select" ? "change" : "input", h = (y) => {
|
|
1001
1002
|
if (y.isComposing || r._isComposing)
|
|
1002
1003
|
return;
|
|
1003
1004
|
const p = globalThis.process, _ = !!p && p.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
|
|
@@ -1028,7 +1029,7 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1028
1029
|
T = Array.from(E.selectedOptions).map(
|
|
1029
1030
|
(l) => l.value
|
|
1030
1031
|
);
|
|
1031
|
-
else if (u && typeof T == "string" && (T = T.trim()),
|
|
1032
|
+
else if (u && typeof T == "string" && (T = T.trim()), v) {
|
|
1032
1033
|
const l = Number(T);
|
|
1033
1034
|
isNaN(l) || (T = l);
|
|
1034
1035
|
}
|
|
@@ -1036,7 +1037,7 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1036
1037
|
if (He(T, d)) {
|
|
1037
1038
|
E._modelUpdating = !0;
|
|
1038
1039
|
try {
|
|
1039
|
-
tt(
|
|
1040
|
+
tt(j(e), e, T, o, c), xe(o, j(e), e, T), E && Pt(E, a, T);
|
|
1040
1041
|
} finally {
|
|
1041
1042
|
setTimeout(
|
|
1042
1043
|
() => E._modelUpdating = !1,
|
|
@@ -1046,11 +1047,11 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
};
|
|
1048
1049
|
if (w) {
|
|
1049
|
-
if (r[
|
|
1050
|
-
const y = r[
|
|
1051
|
-
i && te.removeListener(i,
|
|
1050
|
+
if (r[S]) {
|
|
1051
|
+
const y = r[S];
|
|
1052
|
+
i && te.removeListener(i, S, y);
|
|
1052
1053
|
}
|
|
1053
|
-
r[
|
|
1054
|
+
r[S] = h;
|
|
1054
1055
|
} else {
|
|
1055
1056
|
const y = `update:${J(a)}`, p = `update:${a}`;
|
|
1056
1057
|
if (r[y]) {
|
|
@@ -1073,23 +1074,23 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1073
1074
|
T = void 0;
|
|
1074
1075
|
}
|
|
1075
1076
|
}
|
|
1076
|
-
const d =
|
|
1077
|
-
|
|
1077
|
+
const d = Mt(
|
|
1078
|
+
j(e),
|
|
1078
1079
|
e,
|
|
1079
1080
|
o,
|
|
1080
1081
|
c
|
|
1081
1082
|
);
|
|
1082
1083
|
if (He(T, d)) {
|
|
1083
|
-
tt(
|
|
1084
|
+
tt(j(e), e, T, o, c), xe(o, j(e), e, T);
|
|
1084
1085
|
const l = _.target;
|
|
1085
1086
|
l && nt(
|
|
1086
1087
|
l,
|
|
1087
1088
|
a,
|
|
1088
|
-
|
|
1089
|
-
|
|
1089
|
+
j(e) ? e : T,
|
|
1090
|
+
j(e)
|
|
1090
1091
|
);
|
|
1091
1092
|
}
|
|
1092
|
-
},
|
|
1093
|
+
}, j(e) && typeof e.value == "object" && e.value !== null) {
|
|
1093
1094
|
let _ = [];
|
|
1094
1095
|
try {
|
|
1095
1096
|
_ = Reflect.ownKeys(e.value);
|
|
@@ -1102,12 +1103,12 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1102
1103
|
for (const T of E) {
|
|
1103
1104
|
const d = String(T), k = `update:${J(d)}`, l = `update:${d}`;
|
|
1104
1105
|
r[k] || (r[k] = (g) => {
|
|
1105
|
-
const A = g.detail !== void 0 ? g.detail : g.target?.value, N =
|
|
1106
|
+
const A = g.detail !== void 0 ? g.detail : g.target?.value, N = j(e) ? e.value[d] : U(
|
|
1106
1107
|
o?._state || o,
|
|
1107
1108
|
e
|
|
1108
1109
|
);
|
|
1109
1110
|
if (!He(A, N)) return;
|
|
1110
|
-
if (
|
|
1111
|
+
if (j(e)) {
|
|
1111
1112
|
const R = {
|
|
1112
1113
|
...e.value
|
|
1113
1114
|
};
|
|
@@ -1118,13 +1119,13 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1118
1119
|
e,
|
|
1119
1120
|
A
|
|
1120
1121
|
);
|
|
1121
|
-
xe(o,
|
|
1122
|
-
const
|
|
1123
|
-
|
|
1124
|
-
|
|
1122
|
+
xe(o, j(e), e, A);
|
|
1123
|
+
const M = g.currentTarget || i || g.target;
|
|
1124
|
+
M && nt(
|
|
1125
|
+
M,
|
|
1125
1126
|
a,
|
|
1126
|
-
|
|
1127
|
-
|
|
1127
|
+
j(e) ? e : A,
|
|
1128
|
+
j(e)
|
|
1128
1129
|
);
|
|
1129
1130
|
}, r[l] = r[k]);
|
|
1130
1131
|
}
|
|
@@ -1137,14 +1138,14 @@ function It(e, n, t, s, r, o, i, c) {
|
|
|
1137
1138
|
p && setTimeout(() => {
|
|
1138
1139
|
const _ = p.value, E = o?._state || o, T = U(E, e);
|
|
1139
1140
|
let d = _;
|
|
1140
|
-
if (u && (d = d.trim()),
|
|
1141
|
+
if (u && (d = d.trim()), v) {
|
|
1141
1142
|
const l = Number(d);
|
|
1142
1143
|
isNaN(l) || (d = l);
|
|
1143
1144
|
}
|
|
1144
1145
|
if (He(d, T)) {
|
|
1145
1146
|
p._modelUpdating = !0;
|
|
1146
1147
|
try {
|
|
1147
|
-
Re(E, e, d), xe(o,
|
|
1148
|
+
Re(E, e, d), xe(o, j(e), e, d);
|
|
1148
1149
|
} finally {
|
|
1149
1150
|
setTimeout(
|
|
1150
1151
|
() => p._modelUpdating = !1,
|
|
@@ -1168,7 +1169,7 @@ function Rt(e, n, t, s, r) {
|
|
|
1168
1169
|
const c = i && typeof i == "object" && "value" in i;
|
|
1169
1170
|
(() => {
|
|
1170
1171
|
try {
|
|
1171
|
-
return
|
|
1172
|
+
return j(i);
|
|
1172
1173
|
} catch {
|
|
1173
1174
|
return !1;
|
|
1174
1175
|
}
|
|
@@ -1187,7 +1188,7 @@ function Rt(e, n, t, s, r) {
|
|
|
1187
1188
|
const f = c && typeof c == "object" && "value" in c;
|
|
1188
1189
|
(() => {
|
|
1189
1190
|
try {
|
|
1190
|
-
return
|
|
1191
|
+
return j(c);
|
|
1191
1192
|
} catch {
|
|
1192
1193
|
return !1;
|
|
1193
1194
|
}
|
|
@@ -1245,7 +1246,7 @@ function Dt(e, n, t, s) {
|
|
|
1245
1246
|
r = e;
|
|
1246
1247
|
try {
|
|
1247
1248
|
if (r && typeof r == "object") {
|
|
1248
|
-
if (
|
|
1249
|
+
if (j(r))
|
|
1249
1250
|
r = r.value;
|
|
1250
1251
|
else if ("value" in r && typeof r.value < "u") {
|
|
1251
1252
|
const u = r.value;
|
|
@@ -1260,8 +1261,8 @@ function Dt(e, n, t, s) {
|
|
|
1260
1261
|
else if (Array.isArray(r))
|
|
1261
1262
|
o = r.filter(Boolean);
|
|
1262
1263
|
else if (typeof r == "object" && r !== null)
|
|
1263
|
-
for (const [u,
|
|
1264
|
-
|
|
1264
|
+
for (const [u, v] of Object.entries(r))
|
|
1265
|
+
v && o.push(u);
|
|
1265
1266
|
const i = o.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${i}`.trim() : i.trim();
|
|
1266
1267
|
f ? n.class = f : n.class = void 0;
|
|
1267
1268
|
}
|
|
@@ -1295,7 +1296,7 @@ function Wt(e, n, t) {
|
|
|
1295
1296
|
const u = c.replace(
|
|
1296
1297
|
/[A-Z]/g,
|
|
1297
1298
|
(m) => `-${m.toLowerCase()}`
|
|
1298
|
-
),
|
|
1299
|
+
), v = [
|
|
1299
1300
|
"width",
|
|
1300
1301
|
"height",
|
|
1301
1302
|
"top",
|
|
@@ -1322,7 +1323,7 @@ function Wt(e, n, t) {
|
|
|
1322
1323
|
"max-height"
|
|
1323
1324
|
];
|
|
1324
1325
|
let b = String(f);
|
|
1325
|
-
typeof f == "number" &&
|
|
1326
|
+
typeof f == "number" && v.includes(u) && (b = `${f}px`), i.push(`${u}: ${b}`);
|
|
1326
1327
|
}
|
|
1327
1328
|
r = i.join("; ") + (i.length > 0 ? ";" : "");
|
|
1328
1329
|
}
|
|
@@ -1331,18 +1332,18 @@ function Wt(e, n, t) {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
function zt(e, n, t) {
|
|
1333
1334
|
let s = e;
|
|
1334
|
-
typeof e == "string" && t && (s = Pe(e, t)),
|
|
1335
|
+
typeof e == "string" && t && (s = Pe(e, t)), j(s) ? n.reactiveRef = s : n.ref = s;
|
|
1335
1336
|
}
|
|
1336
1337
|
function dt(e, n, t, s) {
|
|
1337
1338
|
const r = {}, o = { ...s || {} }, i = {};
|
|
1338
1339
|
for (const [c, f] of Object.entries(e)) {
|
|
1339
|
-
const { value: u, modifiers:
|
|
1340
|
+
const { value: u, modifiers: v, arg: b } = f;
|
|
1340
1341
|
if (c === "model" || c.startsWith("model:")) {
|
|
1341
1342
|
const m = c.split(":"), C = m.length > 1 ? m[1] : b;
|
|
1342
1343
|
It(
|
|
1343
1344
|
u,
|
|
1344
1345
|
// Pass the original value (could be string or reactive state object)
|
|
1345
|
-
|
|
1346
|
+
v,
|
|
1346
1347
|
r,
|
|
1347
1348
|
o,
|
|
1348
1349
|
i,
|
|
@@ -1373,13 +1374,13 @@ function dt(e, n, t, s) {
|
|
|
1373
1374
|
try {
|
|
1374
1375
|
if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && X(t)) {
|
|
1375
1376
|
const f = r.disabled, u = f && typeof f == "object" && "value" in f;
|
|
1376
|
-
let
|
|
1377
|
+
let v = !1;
|
|
1377
1378
|
try {
|
|
1378
|
-
|
|
1379
|
+
v = j(f);
|
|
1379
1380
|
} catch {
|
|
1380
|
-
|
|
1381
|
+
v = !1;
|
|
1381
1382
|
}
|
|
1382
|
-
if (!u && !
|
|
1383
|
+
if (!u && !v)
|
|
1383
1384
|
try {
|
|
1384
1385
|
o.disabled = f, delete r.disabled;
|
|
1385
1386
|
const b = globalThis;
|
|
@@ -1422,8 +1423,8 @@ function qe(e, n) {
|
|
|
1422
1423
|
for (; o.has(f); )
|
|
1423
1424
|
f = `${c}#${u++}`;
|
|
1424
1425
|
o.add(f);
|
|
1425
|
-
let
|
|
1426
|
-
return Array.isArray(
|
|
1426
|
+
let v = i.children;
|
|
1427
|
+
return Array.isArray(v) && (v = qe(v, f)), { ...i, key: f, children: v };
|
|
1427
1428
|
});
|
|
1428
1429
|
}
|
|
1429
1430
|
const t = e, s = t.props?.key ?? t.key ?? n;
|
|
@@ -1444,16 +1445,16 @@ function rt(e, n, t, s) {
|
|
|
1444
1445
|
...n.attrs || {},
|
|
1445
1446
|
...o || {},
|
|
1446
1447
|
...i.attrs || {}
|
|
1447
|
-
}, u = n.props ?? {},
|
|
1448
|
+
}, u = n.props ?? {}, v = c, b = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
|
|
1448
1449
|
let m = !1;
|
|
1449
|
-
for (const a in { ...u, ...
|
|
1450
|
-
const
|
|
1451
|
-
let y =
|
|
1450
|
+
for (const a in { ...u, ...v }) {
|
|
1451
|
+
const S = u[a], h = v[a];
|
|
1452
|
+
let y = S, p = h;
|
|
1452
1453
|
if (H(() => {
|
|
1453
|
-
(
|
|
1454
|
+
(j(S) || me(S)) && (y = S.value);
|
|
1454
1455
|
}), H(() => {
|
|
1455
|
-
(
|
|
1456
|
-
}), !(
|
|
1456
|
+
(j(h) || me(h)) && (p = h.value);
|
|
1457
|
+
}), !(S === h && y === p))
|
|
1457
1458
|
if (m = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
|
|
1458
1459
|
const _ = Fe(h), E = _ == null ? "" : String(_);
|
|
1459
1460
|
e.value !== E && (e.value = E);
|
|
@@ -1462,13 +1463,13 @@ function rt(e, n, t, s) {
|
|
|
1462
1463
|
e.checked = !!_;
|
|
1463
1464
|
} else if (a.startsWith("on") && typeof h == "function") {
|
|
1464
1465
|
const _ = pt(a);
|
|
1465
|
-
typeof
|
|
1466
|
+
typeof S == "function" && te.removeListener(e, _, S), typeof h == "function" && te.addListener(e, _, h);
|
|
1466
1467
|
try {
|
|
1467
1468
|
if (_ && _.startsWith("update:")) {
|
|
1468
|
-
const E = _.split(":", 2)[1], T =
|
|
1469
|
+
const E = _.split(":", 2)[1], T = v[E];
|
|
1469
1470
|
let d = [];
|
|
1470
1471
|
try {
|
|
1471
|
-
if (
|
|
1472
|
+
if (j(T)) {
|
|
1472
1473
|
const l = T.value;
|
|
1473
1474
|
d = l && typeof l == "object" ? Object.keys(l) : [];
|
|
1474
1475
|
} else T && typeof T == "object" && (d = Object.keys(T));
|
|
@@ -1480,7 +1481,7 @@ function rt(e, n, t, s) {
|
|
|
1480
1481
|
);
|
|
1481
1482
|
for (const l of k) {
|
|
1482
1483
|
const g = `update:${l}`, A = (N) => {
|
|
1483
|
-
const O = N.detail !== void 0 ? N.detail : N.target instanceof HTMLInputElement || N.target instanceof HTMLTextAreaElement || N.target instanceof HTMLSelectElement ? N.target.value : void 0, R = { ...
|
|
1484
|
+
const O = N.detail !== void 0 ? N.detail : N.target instanceof HTMLInputElement || N.target instanceof HTMLTextAreaElement || N.target instanceof HTMLSelectElement ? N.target.value : void 0, R = { ...j(T) ? T.value || {} : v[E] || {}, [l]: O };
|
|
1484
1485
|
try {
|
|
1485
1486
|
typeof h == "function" && h({
|
|
1486
1487
|
detail: R
|
|
@@ -1508,16 +1509,16 @@ function rt(e, n, t, s) {
|
|
|
1508
1509
|
h === !1 && q(e, a);
|
|
1509
1510
|
}
|
|
1510
1511
|
}
|
|
1511
|
-
for (const [a,
|
|
1512
|
+
for (const [a, S] of Object.entries(
|
|
1512
1513
|
i.listeners || {}
|
|
1513
1514
|
)) {
|
|
1514
|
-
te.addListener(e, a,
|
|
1515
|
+
te.addListener(e, a, S);
|
|
1515
1516
|
try {
|
|
1516
1517
|
const h = e && e.parentElement;
|
|
1517
1518
|
h && h !== e && te.addListener(
|
|
1518
1519
|
h,
|
|
1519
1520
|
a,
|
|
1520
|
-
|
|
1521
|
+
S
|
|
1521
1522
|
);
|
|
1522
1523
|
} catch {
|
|
1523
1524
|
}
|
|
@@ -1553,9 +1554,9 @@ function rt(e, n, t, s) {
|
|
|
1553
1554
|
} catch {
|
|
1554
1555
|
}
|
|
1555
1556
|
for (const a in { ...C, ...w }) {
|
|
1556
|
-
const
|
|
1557
|
-
let y =
|
|
1558
|
-
if (
|
|
1557
|
+
const S = C[a], h = w[a];
|
|
1558
|
+
let y = S, p = h;
|
|
1559
|
+
if (j(S) && (y = S.value), j(h) && (p = h.value), y !== p)
|
|
1559
1560
|
if (m = !0, p == null || p === !1)
|
|
1560
1561
|
H(() => {
|
|
1561
1562
|
q(e, a);
|
|
@@ -1631,7 +1632,7 @@ function rt(e, n, t, s) {
|
|
|
1631
1632
|
const E = Ze(a);
|
|
1632
1633
|
try {
|
|
1633
1634
|
const T = e;
|
|
1634
|
-
T[E] =
|
|
1635
|
+
T[E] = j(h) ? h : p, se(n, a, p);
|
|
1635
1636
|
} catch {
|
|
1636
1637
|
const T = F(h ?? p);
|
|
1637
1638
|
T !== null && D(e, a, String(T));
|
|
@@ -1640,7 +1641,7 @@ function rt(e, n, t, s) {
|
|
|
1640
1641
|
else if (!_ && a in e)
|
|
1641
1642
|
try {
|
|
1642
1643
|
const E = e;
|
|
1643
|
-
E[a] =
|
|
1644
|
+
E[a] = j(h) ? h : p, se(n, a, p);
|
|
1644
1645
|
} catch {
|
|
1645
1646
|
const E = F(p);
|
|
1646
1647
|
E !== null && (D(e, a, String(E)), se(n, a, p));
|
|
@@ -1654,7 +1655,7 @@ function rt(e, n, t, s) {
|
|
|
1654
1655
|
try {
|
|
1655
1656
|
if (X(e)) {
|
|
1656
1657
|
const a = c.disabled;
|
|
1657
|
-
let
|
|
1658
|
+
let S;
|
|
1658
1659
|
try {
|
|
1659
1660
|
const y = Object.prototype.hasOwnProperty.call(
|
|
1660
1661
|
i.props || {},
|
|
@@ -1662,14 +1663,14 @@ function rt(e, n, t, s) {
|
|
|
1662
1663
|
), p = a && typeof a == "object" && "value" in a;
|
|
1663
1664
|
let _ = !1;
|
|
1664
1665
|
H(() => {
|
|
1665
|
-
_ = !!
|
|
1666
|
+
_ = !!j(a);
|
|
1666
1667
|
});
|
|
1667
1668
|
const E = Ve(a);
|
|
1668
|
-
_ || p || y || E ?
|
|
1669
|
+
_ || p || y || E ? S = a : S = f.disabled;
|
|
1669
1670
|
} catch {
|
|
1670
|
-
|
|
1671
|
+
S = f.disabled;
|
|
1671
1672
|
}
|
|
1672
|
-
const h = ge(
|
|
1673
|
+
const h = ge(S);
|
|
1673
1674
|
H(() => {
|
|
1674
1675
|
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = h);
|
|
1675
1676
|
}), h ? H(() => {
|
|
@@ -1703,11 +1704,11 @@ function Z(e, n, t, s = null) {
|
|
|
1703
1704
|
return document.createRange().createContextualFragment(a);
|
|
1704
1705
|
}
|
|
1705
1706
|
if (e.tag === "#anchor") {
|
|
1706
|
-
const a = e,
|
|
1707
|
+
const a = e, S = Array.isArray(a.children) ? a.children : [], h = document.createTextNode(""), y = document.createTextNode("");
|
|
1707
1708
|
a.key != null && (G(h, `${a.key}:start`), G(y, `${a.key}:end`)), a._startNode = h, a._endNode = y;
|
|
1708
1709
|
const p = document.createDocumentFragment();
|
|
1709
1710
|
p.appendChild(h);
|
|
1710
|
-
for (const _ of
|
|
1711
|
+
for (const _ of S) {
|
|
1711
1712
|
const E = Z(
|
|
1712
1713
|
_,
|
|
1713
1714
|
n,
|
|
@@ -1728,8 +1729,8 @@ function Z(e, n, t, s = null) {
|
|
|
1728
1729
|
c,
|
|
1729
1730
|
e.props?._transitionGroup
|
|
1730
1731
|
);
|
|
1731
|
-
const { props: f = {}, attrs: u = {}, directives:
|
|
1732
|
-
|
|
1732
|
+
const { props: f = {}, attrs: u = {}, directives: v = {} } = e.props ?? {}, b = dt(
|
|
1733
|
+
v,
|
|
1733
1734
|
n,
|
|
1734
1735
|
c instanceof HTMLElement ? c : void 0,
|
|
1735
1736
|
u
|
|
@@ -1741,23 +1742,23 @@ function Z(e, n, t, s = null) {
|
|
|
1741
1742
|
...b.attrs
|
|
1742
1743
|
};
|
|
1743
1744
|
try {
|
|
1744
|
-
const a = (C && C.class) ?? (m && m.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class),
|
|
1745
|
-
if (
|
|
1746
|
-
const h = String(
|
|
1745
|
+
const a = (C && C.class) ?? (m && m.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), S = F(a);
|
|
1746
|
+
if (S !== null) {
|
|
1747
|
+
const h = String(S).trim();
|
|
1747
1748
|
h && D(c, "class", h);
|
|
1748
1749
|
}
|
|
1749
1750
|
} catch {
|
|
1750
1751
|
}
|
|
1751
1752
|
try {
|
|
1752
1753
|
if (m.disabled !== void 0 && c && X(c)) {
|
|
1753
|
-
const a = m.disabled,
|
|
1754
|
+
const a = m.disabled, S = a && typeof a == "object" && "value" in a;
|
|
1754
1755
|
let h = !1;
|
|
1755
1756
|
try {
|
|
1756
|
-
h =
|
|
1757
|
+
h = j(a);
|
|
1757
1758
|
} catch {
|
|
1758
1759
|
h = !1;
|
|
1759
1760
|
}
|
|
1760
|
-
!
|
|
1761
|
+
!S && !h && H(() => {
|
|
1761
1762
|
C.disabled = a, delete m.disabled;
|
|
1762
1763
|
});
|
|
1763
1764
|
}
|
|
@@ -1765,10 +1766,10 @@ function Z(e, n, t, s = null) {
|
|
|
1765
1766
|
}
|
|
1766
1767
|
const w = c.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1767
1768
|
for (const a in C) {
|
|
1768
|
-
const
|
|
1769
|
+
const S = C[a];
|
|
1769
1770
|
if (typeof a != "string" || /\[object Object\]/.test(a))
|
|
1770
1771
|
continue;
|
|
1771
|
-
const h = Fe(
|
|
1772
|
+
const h = Fe(S);
|
|
1772
1773
|
if (typeof h == "boolean")
|
|
1773
1774
|
h ? D(c, a, "") : H(() => {
|
|
1774
1775
|
q(c, a);
|
|
@@ -1821,14 +1822,14 @@ function Z(e, n, t, s = null) {
|
|
|
1821
1822
|
}
|
|
1822
1823
|
}
|
|
1823
1824
|
for (const a in m) {
|
|
1824
|
-
const
|
|
1825
|
+
const S = m[a];
|
|
1825
1826
|
if (!(typeof a != "string" || /\[object Object\]/.test(a)))
|
|
1826
1827
|
if (a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement)) {
|
|
1827
|
-
const h = typeof
|
|
1828
|
+
const h = typeof S == "object" && S !== null && me(S) ? S.value : S;
|
|
1828
1829
|
H(() => {
|
|
1829
1830
|
c.value = String(h ?? "");
|
|
1830
1831
|
});
|
|
1831
|
-
} else if (a.startsWith("on") && typeof
|
|
1832
|
+
} else if (a.startsWith("on") && typeof S == "function") {
|
|
1832
1833
|
const h = pt(a), y = h.includes(":") ? (() => {
|
|
1833
1834
|
const p = h.split(":"), _ = p[1];
|
|
1834
1835
|
if (_.includes("-")) {
|
|
@@ -1841,14 +1842,14 @@ function Z(e, n, t, s = null) {
|
|
|
1841
1842
|
return `${p[0]}:${E}`;
|
|
1842
1843
|
}
|
|
1843
1844
|
})() : h;
|
|
1844
|
-
b.listeners && (b.listeners[h] || b.listeners[y]) || te.addListener(c, h,
|
|
1845
|
+
b.listeners && (b.listeners[h] || b.listeners[y]) || te.addListener(c, h, S);
|
|
1845
1846
|
} else {
|
|
1846
|
-
if (a.startsWith("on") &&
|
|
1847
|
+
if (a.startsWith("on") && S === void 0)
|
|
1847
1848
|
continue;
|
|
1848
|
-
if (
|
|
1849
|
+
if (S == null || S === !1)
|
|
1849
1850
|
q(c, a);
|
|
1850
1851
|
else {
|
|
1851
|
-
const h = e.props?.isCustomElement ?? !1, y = typeof
|
|
1852
|
+
const h = e.props?.isCustomElement ?? !1, y = typeof S == "object" && S !== null && j(S) ? S : me(S) && typeof S.value < "u" ? S.value : S;
|
|
1852
1853
|
if (a === "class" || a === "style") {
|
|
1853
1854
|
try {
|
|
1854
1855
|
const p = F(y);
|
|
@@ -1859,7 +1860,7 @@ function Z(e, n, t, s = null) {
|
|
|
1859
1860
|
}
|
|
1860
1861
|
if (h || a in c)
|
|
1861
1862
|
try {
|
|
1862
|
-
const p = typeof
|
|
1863
|
+
const p = typeof S == "object" && S !== null && j(S) ? S : me(S) ? S.value : S;
|
|
1863
1864
|
if (a === "disabled" && X(c)) {
|
|
1864
1865
|
const _ = m.disabled !== void 0 ? m.disabled : p, E = ge(_);
|
|
1865
1866
|
H(() => {
|
|
@@ -1885,10 +1886,10 @@ function Z(e, n, t, s = null) {
|
|
|
1885
1886
|
}
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
|
-
for (const [a,
|
|
1889
|
+
for (const [a, S] of Object.entries(
|
|
1889
1890
|
b.listeners || {}
|
|
1890
1891
|
))
|
|
1891
|
-
te.addListener(c, a,
|
|
1892
|
+
te.addListener(c, a, S);
|
|
1892
1893
|
const L = {
|
|
1893
1894
|
...e,
|
|
1894
1895
|
props: {
|
|
@@ -1909,8 +1910,8 @@ function Z(e, n, t, s = null) {
|
|
|
1909
1910
|
}
|
|
1910
1911
|
if (Array.isArray(e.children)) {
|
|
1911
1912
|
const a = e.tag === "foreignObject" && i === bt ? null : c.namespaceURI ?? null;
|
|
1912
|
-
for (const
|
|
1913
|
-
c.appendChild(Z(
|
|
1913
|
+
for (const S of e.children)
|
|
1914
|
+
c.appendChild(Z(S, n, t, a));
|
|
1914
1915
|
} else typeof e.children == "string" && (c.textContent = e.children);
|
|
1915
1916
|
try {
|
|
1916
1917
|
if (c instanceof HTMLSelectElement && C && Object.prototype.hasOwnProperty.call(C, "value"))
|
|
@@ -1922,14 +1923,14 @@ function Z(e, n, t, s = null) {
|
|
|
1922
1923
|
}
|
|
1923
1924
|
try {
|
|
1924
1925
|
if (X(c)) {
|
|
1925
|
-
const a = m.disabled,
|
|
1926
|
+
const a = m.disabled, S = C.disabled, h = a && typeof a == "object" && "value" in a;
|
|
1926
1927
|
let y = !1;
|
|
1927
1928
|
try {
|
|
1928
|
-
y = !!
|
|
1929
|
+
y = !!j(a);
|
|
1929
1930
|
} catch {
|
|
1930
1931
|
y = !1;
|
|
1931
1932
|
}
|
|
1932
|
-
const _ = y || h || Ve(a) ? a :
|
|
1933
|
+
const _ = y || h || Ve(a) ? a : S, E = ge(_);
|
|
1933
1934
|
H(() => {
|
|
1934
1935
|
c.disabled = E;
|
|
1935
1936
|
}), E ? H(() => {
|
|
@@ -1957,7 +1958,7 @@ function Kt(e, n, t, s, r) {
|
|
|
1957
1958
|
if (typeof y == "string")
|
|
1958
1959
|
return y.startsWith("each-") ? y.substring(5) : y;
|
|
1959
1960
|
if (typeof y == "number") return String(y);
|
|
1960
|
-
}, a = [],
|
|
1961
|
+
}, a = [], S = [];
|
|
1961
1962
|
for (const y of t)
|
|
1962
1963
|
if (y && y.tag === "#anchor") {
|
|
1963
1964
|
const p = Array.isArray(y.children) ? y.children : [];
|
|
@@ -1975,15 +1976,15 @@ function Kt(e, n, t, s, r) {
|
|
|
1975
1976
|
const E = L(
|
|
1976
1977
|
_.key ?? y.key ?? "unknown"
|
|
1977
1978
|
);
|
|
1978
|
-
|
|
1979
|
+
S.push({ ..._, key: E });
|
|
1979
1980
|
}
|
|
1980
|
-
} else y &&
|
|
1981
|
+
} else y && S.push({
|
|
1981
1982
|
...y,
|
|
1982
1983
|
key: L(y.key)
|
|
1983
1984
|
});
|
|
1984
|
-
if (a.some((y) => y && y.key != null) ||
|
|
1985
|
+
if (a.some((y) => y && y.key != null) || S.some((y) => y && y.key != null)) {
|
|
1985
1986
|
const y = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
|
|
1986
|
-
for (const l of
|
|
1987
|
+
for (const l of S)
|
|
1987
1988
|
if (l && l.key != null) {
|
|
1988
1989
|
const g = String(l.key);
|
|
1989
1990
|
y.set(g, l);
|
|
@@ -2015,8 +2016,8 @@ function Kt(e, n, t, s, r) {
|
|
|
2015
2016
|
if (N && A) {
|
|
2016
2017
|
const O = Te(N, A, l, s);
|
|
2017
2018
|
_.add(N);
|
|
2018
|
-
const
|
|
2019
|
-
G(O,
|
|
2019
|
+
const M = String(g);
|
|
2020
|
+
G(O, M), d.push({
|
|
2020
2021
|
node: O,
|
|
2021
2022
|
key: g,
|
|
2022
2023
|
newVNode: l,
|
|
@@ -2031,8 +2032,8 @@ function Kt(e, n, t, s, r) {
|
|
|
2031
2032
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2032
2033
|
), G(N, String(g)), e.appendChild(N);
|
|
2033
2034
|
const O = T || f.appear === !0;
|
|
2034
|
-
N instanceof HTMLElement && O && Ae(N, f).catch((
|
|
2035
|
-
W("Enter transition error:",
|
|
2035
|
+
N instanceof HTMLElement && O && Ae(N, f).catch((M) => {
|
|
2036
|
+
W("Enter transition error:", M);
|
|
2036
2037
|
}), d.push({ node: N, key: g, newVNode: l, isNew: !0 });
|
|
2037
2038
|
}
|
|
2038
2039
|
}
|
|
@@ -2042,8 +2043,8 @@ function Kt(e, n, t, s, r) {
|
|
|
2042
2043
|
if (!_.has(g) && A != null && g instanceof HTMLElement) {
|
|
2043
2044
|
const O = ze(g, f).then(() => {
|
|
2044
2045
|
e.contains(g) && e.removeChild(g);
|
|
2045
|
-
}).catch((
|
|
2046
|
-
W("Leave transition error:",
|
|
2046
|
+
}).catch((M) => {
|
|
2047
|
+
W("Leave transition error:", M), e.contains(g) && e.removeChild(g);
|
|
2047
2048
|
});
|
|
2048
2049
|
k.push(O);
|
|
2049
2050
|
}
|
|
@@ -2058,7 +2059,7 @@ function Kt(e, n, t, s, r) {
|
|
|
2058
2059
|
if (!N && A instanceof HTMLElement) {
|
|
2059
2060
|
const O = E.get(A);
|
|
2060
2061
|
if (O) {
|
|
2061
|
-
const
|
|
2062
|
+
const M = A.getBoundingClientRect(), R = O.left - M.left, P = O.top - M.top;
|
|
2062
2063
|
if (R !== 0 || P !== 0) {
|
|
2063
2064
|
const K = f.moveClass.split(/\s+/).filter((I) => I);
|
|
2064
2065
|
g.push({ node: A, deltaX: R, deltaY: P, moveClasses: K });
|
|
@@ -2074,9 +2075,9 @@ function Kt(e, n, t, s, r) {
|
|
|
2074
2075
|
for (const O of N)
|
|
2075
2076
|
A.classList.add(O);
|
|
2076
2077
|
requestAnimationFrame(() => {
|
|
2077
|
-
const A = f.moveClass || "", N = A.match(/duration-(\d+)/), O = N ? `${N[1]}ms` : "300ms",
|
|
2078
|
+
const A = f.moveClass || "", N = A.match(/duration-(\d+)/), O = N ? `${N[1]}ms` : "300ms", M = A.match(
|
|
2078
2079
|
/ease-(out|in|in-out|linear)/
|
|
2079
|
-
), R =
|
|
2080
|
+
), R = M ? `ease-${M[1]}` : "ease-out";
|
|
2080
2081
|
for (const { node: P } of g)
|
|
2081
2082
|
P.style.transition = `transform ${O} ${R}`;
|
|
2082
2083
|
requestAnimationFrame(() => {
|
|
@@ -2106,62 +2107,62 @@ function Kt(e, n, t, s, r) {
|
|
|
2106
2107
|
const u = /* @__PURE__ */ new Map();
|
|
2107
2108
|
for (const L of c)
|
|
2108
2109
|
L && L.key != null && u.set(L.key, L);
|
|
2109
|
-
const
|
|
2110
|
+
const v = /* @__PURE__ */ new Map();
|
|
2110
2111
|
for (let L = 0; L < i.length; L++) {
|
|
2111
|
-
const a = i[L],
|
|
2112
|
-
|
|
2112
|
+
const a = i[L], S = Ie(a);
|
|
2113
|
+
S != null && v.set(S, a);
|
|
2113
2114
|
}
|
|
2114
2115
|
const b = /* @__PURE__ */ new Set();
|
|
2115
2116
|
let m = e.firstChild;
|
|
2116
2117
|
function C(L, a) {
|
|
2117
|
-
let
|
|
2118
|
-
for (;
|
|
2119
|
-
|
|
2118
|
+
let S = L;
|
|
2119
|
+
for (; S && (b.add(S), S !== a); )
|
|
2120
|
+
S = S.nextSibling;
|
|
2120
2121
|
}
|
|
2121
|
-
function w(L, a,
|
|
2122
|
+
function w(L, a, S, h, y, p = !0) {
|
|
2122
2123
|
const _ = [];
|
|
2123
2124
|
let E = L.nextSibling;
|
|
2124
2125
|
for (; E && E !== a; )
|
|
2125
2126
|
_.push(E), E = E.nextSibling;
|
|
2126
|
-
const T = Array.isArray(
|
|
2127
|
+
const T = Array.isArray(S) ? S : [];
|
|
2127
2128
|
if (h.some((k) => k && k.key != null) || T.some((k) => k && k.key != null)) {
|
|
2128
2129
|
const k = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
2129
2130
|
for (const O of T)
|
|
2130
2131
|
O && O.key != null && k.set(O.key, O);
|
|
2131
2132
|
for (const O of _) {
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2133
|
+
const M = Ie(O);
|
|
2134
|
+
M != null && l.set(M, O);
|
|
2134
2135
|
}
|
|
2135
2136
|
const g = y && y.state === "visible" && T.length === 0 && h.length > 0, A = /* @__PURE__ */ new Set();
|
|
2136
2137
|
let N = L.nextSibling;
|
|
2137
2138
|
for (const O of h) {
|
|
2138
|
-
let
|
|
2139
|
+
let M;
|
|
2139
2140
|
if (O.key != null && l.has(O.key)) {
|
|
2140
2141
|
const R = k.get(O.key);
|
|
2141
|
-
|
|
2142
|
+
M = Te(
|
|
2142
2143
|
l.get(O.key),
|
|
2143
2144
|
R,
|
|
2144
2145
|
O,
|
|
2145
2146
|
s
|
|
2146
|
-
), A.add(
|
|
2147
|
+
), A.add(M), y && M instanceof HTMLElement && g && y.appear && Ae(M, y).catch((P) => {
|
|
2147
2148
|
W("Transition enter error (appear):", P);
|
|
2148
|
-
}),
|
|
2149
|
+
}), M !== N && e.contains(M) && e.insertBefore(M, N);
|
|
2149
2150
|
} else
|
|
2150
|
-
|
|
2151
|
+
M = Z(
|
|
2151
2152
|
O,
|
|
2152
2153
|
s,
|
|
2153
2154
|
void 0,
|
|
2154
2155
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2155
|
-
), e.insertBefore(
|
|
2156
|
+
), e.insertBefore(M, N), A.add(M), y && M instanceof HTMLElement && p && Ae(M, y).catch((R) => {
|
|
2156
2157
|
W("Transition enter error:", R);
|
|
2157
2158
|
});
|
|
2158
|
-
N =
|
|
2159
|
+
N = M.nextSibling;
|
|
2159
2160
|
}
|
|
2160
2161
|
for (const O of _)
|
|
2161
2162
|
!A.has(O) && e.contains(O) && (y && O instanceof HTMLElement && p ? ze(O, y).then(() => {
|
|
2162
2163
|
e.contains(O) && e.removeChild(O);
|
|
2163
|
-
}).catch((
|
|
2164
|
-
W("Transition leave error:",
|
|
2164
|
+
}).catch((M) => {
|
|
2165
|
+
W("Transition leave error:", M), e.contains(O) && e.removeChild(O);
|
|
2165
2166
|
}) : e.removeChild(O));
|
|
2166
2167
|
} else {
|
|
2167
2168
|
const k = Math.min(
|
|
@@ -2196,8 +2197,8 @@ function Kt(e, n, t, s, r) {
|
|
|
2196
2197
|
for (const L of t) {
|
|
2197
2198
|
let a;
|
|
2198
2199
|
if (L.tag === "#anchor") {
|
|
2199
|
-
const
|
|
2200
|
-
let p =
|
|
2200
|
+
const S = L.key, h = `${S}:start`, y = `${S}:end`;
|
|
2201
|
+
let p = v.get(h), _ = v.get(y);
|
|
2201
2202
|
const E = Array.isArray(L.children) ? L.children : [];
|
|
2202
2203
|
if (p || (p = document.createTextNode(""), G(p, h)), _ || (_ = document.createTextNode(""), G(_, y)), L._startNode = p, L._endNode = _, !e.contains(p) || !e.contains(_)) {
|
|
2203
2204
|
e.insertBefore(p, m);
|
|
@@ -2215,11 +2216,11 @@ function Kt(e, n, t, s, r) {
|
|
|
2215
2216
|
}
|
|
2216
2217
|
e.insertBefore(_, m);
|
|
2217
2218
|
} else {
|
|
2218
|
-
const T = L._transition, k = u.get(
|
|
2219
|
+
const T = L._transition, k = u.get(S)._transition, l = k && k.state !== T?.state, g = T && T.state === "visible" && E.length > 0 && !l, A = l || !g || T?.appear === !0;
|
|
2219
2220
|
w(
|
|
2220
2221
|
p,
|
|
2221
2222
|
_,
|
|
2222
|
-
u.get(
|
|
2223
|
+
u.get(S)?.children,
|
|
2223
2224
|
E,
|
|
2224
2225
|
T,
|
|
2225
2226
|
A
|
|
@@ -2228,11 +2229,11 @@ function Kt(e, n, t, s, r) {
|
|
|
2228
2229
|
C(p, _), m = _.nextSibling;
|
|
2229
2230
|
continue;
|
|
2230
2231
|
}
|
|
2231
|
-
if (L.key != null &&
|
|
2232
|
-
const
|
|
2232
|
+
if (L.key != null && v.has(L.key)) {
|
|
2233
|
+
const S = u.get(L.key);
|
|
2233
2234
|
a = Te(
|
|
2234
|
-
|
|
2235
|
-
|
|
2235
|
+
v.get(L.key),
|
|
2236
|
+
S,
|
|
2236
2237
|
L,
|
|
2237
2238
|
s,
|
|
2238
2239
|
r
|
|
@@ -2264,8 +2265,8 @@ function Te(e, n, t, s, r) {
|
|
|
2264
2265
|
if (t && typeof t != "string" && t.tag === "#anchor") {
|
|
2265
2266
|
const i = t, c = Array.isArray(i.children) ? i.children : [], f = i._startNode ?? document.createTextNode(""), u = i._endNode ?? document.createTextNode("");
|
|
2266
2267
|
i.key != null && (G(f, `${i.key}:start`), G(u, `${i.key}:end`)), i._startNode = f, i._endNode = u;
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2268
|
+
const v = document.createDocumentFragment();
|
|
2269
|
+
v.appendChild(f);
|
|
2269
2270
|
for (const b of c) {
|
|
2270
2271
|
const m = Z(
|
|
2271
2272
|
b,
|
|
@@ -2273,9 +2274,9 @@ function Te(e, n, t, s, r) {
|
|
|
2273
2274
|
r,
|
|
2274
2275
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
2275
2276
|
);
|
|
2276
|
-
|
|
2277
|
+
v.appendChild(m);
|
|
2277
2278
|
}
|
|
2278
|
-
return
|
|
2279
|
+
return v.appendChild(u), e.parentNode?.replaceChild(v, e), f;
|
|
2279
2280
|
}
|
|
2280
2281
|
if (!t) {
|
|
2281
2282
|
ue(e, r);
|
|
@@ -2297,10 +2298,10 @@ function Te(e, n, t, s, r) {
|
|
|
2297
2298
|
t.key != null && (G(c, `${t.key}:start`), G(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
|
|
2298
2299
|
const u = document.createDocumentFragment();
|
|
2299
2300
|
u.appendChild(c);
|
|
2300
|
-
for (const
|
|
2301
|
+
for (const v of i)
|
|
2301
2302
|
u.appendChild(
|
|
2302
2303
|
Z(
|
|
2303
|
-
|
|
2304
|
+
v,
|
|
2304
2305
|
s,
|
|
2305
2306
|
r,
|
|
2306
2307
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
@@ -2352,8 +2353,8 @@ function Ut(e, n, t, s) {
|
|
|
2352
2353
|
), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
|
|
2353
2354
|
const f = [];
|
|
2354
2355
|
for (let u = 0; u < e.childNodes.length; u++) {
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2356
|
+
const v = e.childNodes[u];
|
|
2357
|
+
v !== c && v.nodeName !== "STYLE" && (ue(v, s), f.push(v));
|
|
2357
2358
|
}
|
|
2358
2359
|
f.forEach((u) => e.removeChild(u)), e._prevVNode = r, e._prevDom = c;
|
|
2359
2360
|
}
|
|
@@ -2452,7 +2453,7 @@ function Zt(e, n, t, s, r) {
|
|
|
2452
2453
|
if (st.get(e) === o)
|
|
2453
2454
|
return;
|
|
2454
2455
|
st.set(e, o);
|
|
2455
|
-
const c =
|
|
2456
|
+
const c = vt(o), f = St();
|
|
2456
2457
|
if ((!c || c.trim() === "") && !n._computedStyle && !f) {
|
|
2457
2458
|
if (r(null), "adoptedStyleSheets" in e && typeof CSSStyleSheet < "u") {
|
|
2458
2459
|
const y = [$e(), pe()];
|
|
@@ -2486,15 +2487,15 @@ ${_}`);
|
|
|
2486
2487
|
}
|
|
2487
2488
|
let u = "";
|
|
2488
2489
|
n._computedStyle && (u = n._computedStyle ?? "");
|
|
2489
|
-
let
|
|
2490
|
+
let v = _t(`${u}
|
|
2490
2491
|
${c}
|
|
2491
2492
|
`);
|
|
2492
|
-
|
|
2493
|
+
v = ke(v);
|
|
2493
2494
|
let b = s;
|
|
2494
2495
|
if ("adoptedStyleSheets" in e && typeof CSSStyleSheet < "u") {
|
|
2495
2496
|
b || (b = new CSSStyleSheet());
|
|
2496
2497
|
try {
|
|
2497
|
-
b.replaceSync(
|
|
2498
|
+
b.replaceSync(v);
|
|
2498
2499
|
} catch {
|
|
2499
2500
|
b = null;
|
|
2500
2501
|
}
|
|
@@ -2514,13 +2515,13 @@ ${c}
|
|
|
2514
2515
|
}
|
|
2515
2516
|
const a = ke(`${C}
|
|
2516
2517
|
${L}
|
|
2517
|
-
${
|
|
2518
|
-
let
|
|
2518
|
+
${v}`);
|
|
2519
|
+
let S = e.querySelector(
|
|
2519
2520
|
"style[data-cer-runtime]"
|
|
2520
2521
|
);
|
|
2521
|
-
|
|
2522
|
+
S || (S = document.createElement("style"), D(S, "data-cer-runtime", "true"), e.appendChild(S));
|
|
2522
2523
|
try {
|
|
2523
|
-
|
|
2524
|
+
S.textContent = a;
|
|
2524
2525
|
} catch {
|
|
2525
2526
|
}
|
|
2526
2527
|
try {
|
|
@@ -2532,7 +2533,7 @@ ${S}`);
|
|
|
2532
2533
|
try {
|
|
2533
2534
|
const y = new CSSStyleSheet();
|
|
2534
2535
|
try {
|
|
2535
|
-
y.replaceSync(
|
|
2536
|
+
y.replaceSync(v), h.push(y);
|
|
2536
2537
|
} catch {
|
|
2537
2538
|
h.push({ cssRules: [], replaceSync: () => {
|
|
2538
2539
|
} });
|
|
@@ -2622,14 +2623,14 @@ function dn(e) {
|
|
|
2622
2623
|
try {
|
|
2623
2624
|
const u = t && t._host;
|
|
2624
2625
|
if (u) {
|
|
2625
|
-
const
|
|
2626
|
+
const v = J(o), b = u.getAttribute(v);
|
|
2626
2627
|
if (b !== null) {
|
|
2627
2628
|
const m = typeof e[o];
|
|
2628
2629
|
return m === "boolean" ? b === "" || b === "true" : m === "number" ? Number(b) : b;
|
|
2629
2630
|
}
|
|
2630
2631
|
if (typeof u[o] < "u") {
|
|
2631
2632
|
const m = u[o];
|
|
2632
|
-
if (
|
|
2633
|
+
if (j(m) || m && typeof m == "object" && "value" in m && !(m instanceof Node))
|
|
2633
2634
|
return m.value;
|
|
2634
2635
|
const C = typeof e[o];
|
|
2635
2636
|
if (!(C === "string" && m && typeof m == "object"))
|
|
@@ -2657,21 +2658,21 @@ function dn(e) {
|
|
|
2657
2658
|
const f = t && t._host;
|
|
2658
2659
|
if (f) {
|
|
2659
2660
|
if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
|
|
2660
|
-
const
|
|
2661
|
+
const v = o.replace(/([A-Z])/g, "-$1").toLowerCase(), b = f.getAttribute(v);
|
|
2661
2662
|
if (b !== null)
|
|
2662
2663
|
return typeof i == "boolean" ? b === "" || b === "true" : typeof i == "number" ? Number(b) : b;
|
|
2663
2664
|
}
|
|
2664
2665
|
const u = f[o];
|
|
2665
2666
|
if (typeof u < "u" && u !== "") {
|
|
2666
|
-
const
|
|
2667
|
-
if (!(typeof i == "string" && u && typeof u == "object" && !
|
|
2668
|
-
return typeof i == "boolean" && i === !1 && u === "" ? i :
|
|
2667
|
+
const v = u && typeof u == "object" && "value" in u && !(u instanceof Node);
|
|
2668
|
+
if (!(typeof i == "string" && u && typeof u == "object" && !v && !j(u)))
|
|
2669
|
+
return typeof i == "boolean" && i === !1 && u === "" ? i : j(u) || v ? u.value : typeof i == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof i == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
|
|
2669
2670
|
}
|
|
2670
2671
|
}
|
|
2671
2672
|
} catch {
|
|
2672
2673
|
}
|
|
2673
2674
|
const c = t[o];
|
|
2674
|
-
return typeof i == "boolean" && c === "" ? i === !1 ? i : !0 :
|
|
2675
|
+
return typeof i == "boolean" && c === "" ? i === !1 ? i : !0 : j(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof i == "boolean" && typeof c == "string" ? c === "true" : typeof i == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : i;
|
|
2675
2676
|
},
|
|
2676
2677
|
has(r, o) {
|
|
2677
2678
|
return typeof o == "string" && (o in t || o in e);
|
|
@@ -2791,9 +2792,9 @@ function Yt(e, n) {
|
|
|
2791
2792
|
...c || {}
|
|
2792
2793
|
}, u = new CustomEvent(o, f);
|
|
2793
2794
|
this.dispatchEvent(u);
|
|
2794
|
-
const
|
|
2795
|
-
if (
|
|
2796
|
-
const b = o.substring(0,
|
|
2795
|
+
const v = o.indexOf(":");
|
|
2796
|
+
if (v > 0) {
|
|
2797
|
+
const b = o.substring(0, v), m = o.substring(v + 1), C = m.includes("-") ? `${b}:${m.split("-").map(
|
|
2797
2798
|
(w, L) => L === 0 ? w : w.charAt(0).toUpperCase() + w.slice(1)
|
|
2798
2799
|
).join("")}` : `${b}:${m.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
2799
2800
|
C !== o && H(() => {
|
|
@@ -2957,8 +2958,8 @@ function Yt(e, n) {
|
|
|
2957
2958
|
if (Array.isArray(o))
|
|
2958
2959
|
return new Proxy(o, {
|
|
2959
2960
|
get(c, f, u) {
|
|
2960
|
-
const
|
|
2961
|
-
return typeof
|
|
2961
|
+
const v = Reflect.get(c, f, u);
|
|
2962
|
+
return typeof v == "function" && typeof f == "string" && [
|
|
2962
2963
|
"push",
|
|
2963
2964
|
"pop",
|
|
2964
2965
|
"shift",
|
|
@@ -2967,7 +2968,7 @@ function Yt(e, n) {
|
|
|
2967
2968
|
"sort",
|
|
2968
2969
|
"reverse"
|
|
2969
2970
|
].includes(f) ? function(...m) {
|
|
2970
|
-
const C =
|
|
2971
|
+
const C = v.apply(c, m);
|
|
2971
2972
|
if (!r._initializing) {
|
|
2972
2973
|
const w = i || "root";
|
|
2973
2974
|
r._triggerWatchers(w, c), Ce(
|
|
@@ -2976,12 +2977,12 @@ function Yt(e, n) {
|
|
|
2976
2977
|
);
|
|
2977
2978
|
}
|
|
2978
2979
|
return C;
|
|
2979
|
-
} :
|
|
2980
|
+
} : v;
|
|
2980
2981
|
},
|
|
2981
2982
|
set(c, f, u) {
|
|
2982
2983
|
if (c[String(f)] = u, !r._initializing) {
|
|
2983
|
-
const
|
|
2984
|
-
r._triggerWatchers(
|
|
2984
|
+
const v = i ? `${i}.${String(f)}` : String(f);
|
|
2985
|
+
r._triggerWatchers(v, u), Ce(() => r._render(t), r._componentId);
|
|
2985
2986
|
}
|
|
2986
2987
|
return !0;
|
|
2987
2988
|
},
|
|
@@ -2994,7 +2995,7 @@ function Yt(e, n) {
|
|
|
2994
2995
|
}
|
|
2995
2996
|
});
|
|
2996
2997
|
if (o && typeof o == "object") {
|
|
2997
|
-
if (
|
|
2998
|
+
if (j(o))
|
|
2998
2999
|
return o;
|
|
2999
3000
|
for (const c in o) {
|
|
3000
3001
|
const f = i ? `${i}.${c}` : c;
|
|
@@ -3002,9 +3003,9 @@ function Yt(e, n) {
|
|
|
3002
3003
|
}
|
|
3003
3004
|
return new Proxy(o, {
|
|
3004
3005
|
set(c, f, u) {
|
|
3005
|
-
const
|
|
3006
|
-
return c[String(f)] = s(u,
|
|
3007
|
-
|
|
3006
|
+
const v = i ? `${i}.${String(f)}` : String(f);
|
|
3007
|
+
return c[String(f)] = s(u, v), r._initializing || (r._triggerWatchers(
|
|
3008
|
+
v,
|
|
3008
3009
|
c[String(f)]
|
|
3009
3010
|
), Ce(() => r._render(t), r._componentId)), !0;
|
|
3010
3011
|
},
|
|
@@ -3102,10 +3103,10 @@ function yn(e, n) {
|
|
|
3102
3103
|
f = n();
|
|
3103
3104
|
} catch (u) {
|
|
3104
3105
|
try {
|
|
3105
|
-
const
|
|
3106
|
-
if (
|
|
3106
|
+
const v = i._hookCallbacks;
|
|
3107
|
+
if (v && typeof v.onError == "function")
|
|
3107
3108
|
try {
|
|
3108
|
-
|
|
3109
|
+
v.onError(u);
|
|
3109
3110
|
} catch {
|
|
3110
3111
|
}
|
|
3111
3112
|
} catch {
|
|
@@ -3114,10 +3115,10 @@ function yn(e, n) {
|
|
|
3114
3115
|
}
|
|
3115
3116
|
if (i._hookCallbacks) {
|
|
3116
3117
|
const u = i._hookCallbacks;
|
|
3117
|
-
if (u.onConnected && (s.onConnected = u.onConnected), u.onDisconnected && (s.onDisconnected = u.onDisconnected), u.onAttributeChanged && (s.onAttributeChanged = u.onAttributeChanged), u.onError && (s.onError = u.onError), u.
|
|
3118
|
-
const
|
|
3118
|
+
if (u.onConnected && (s.onConnected = u.onConnected), u.onDisconnected && (s.onDisconnected = u.onDisconnected), u.onAttributeChanged && (s.onAttributeChanged = u.onAttributeChanged), u.onError && (s.onError = u.onError), u.props) {
|
|
3119
|
+
const v = u.props;
|
|
3119
3120
|
r.props = Object.fromEntries(
|
|
3120
|
-
Object.entries(
|
|
3121
|
+
Object.entries(v).map(([b, m]) => [
|
|
3121
3122
|
b,
|
|
3122
3123
|
{ type: typeof m == "boolean" ? Boolean : typeof m == "number" ? Number : typeof m == "string" ? String : Function, default: m }
|
|
3123
3124
|
])
|
|
@@ -3235,7 +3236,7 @@ function tn(e, n = [], t = {}) {
|
|
|
3235
3236
|
const s = {}, r = {}, o = {}, i = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
|
|
3236
3237
|
let f;
|
|
3237
3238
|
for (; f = c.exec(e); ) {
|
|
3238
|
-
const u = f[1],
|
|
3239
|
+
const u = f[1], v = f[2];
|
|
3239
3240
|
let b = "";
|
|
3240
3241
|
for (let a = 3; a < f.length; a++)
|
|
3241
3242
|
if (f[a] !== void 0) {
|
|
@@ -3256,31 +3257,31 @@ function tn(e, n = [], t = {}) {
|
|
|
3256
3257
|
"when"
|
|
3257
3258
|
];
|
|
3258
3259
|
if (u === ":") {
|
|
3259
|
-
const [a,
|
|
3260
|
+
const [a, S] = v.split(":"), [h, ...y] = a.split(".");
|
|
3260
3261
|
if (L.includes(h)) {
|
|
3261
|
-
const p = [...y], _ = h === "model" &&
|
|
3262
|
+
const p = [...y], _ = h === "model" && S ? `model:${S}` : h;
|
|
3262
3263
|
o[_] = {
|
|
3263
3264
|
value: w,
|
|
3264
3265
|
modifiers: p,
|
|
3265
|
-
arg:
|
|
3266
|
+
arg: S
|
|
3266
3267
|
};
|
|
3267
|
-
} else if (
|
|
3268
|
+
} else if (v === "disabled") {
|
|
3268
3269
|
let p = w;
|
|
3269
|
-
p &&
|
|
3270
|
+
p && j(p) && (p = p.value);
|
|
3270
3271
|
const _ = typeof p;
|
|
3271
3272
|
if (p === "" || _ === "boolean" || _ === "string" && (p === "true" || p === "false") || p == null || _ === "number")
|
|
3272
|
-
s[
|
|
3273
|
+
s[v] = p;
|
|
3273
3274
|
else {
|
|
3274
3275
|
let d = w;
|
|
3275
|
-
d &&
|
|
3276
|
+
d && j(d) && (d = d.value), r[v] = d;
|
|
3276
3277
|
}
|
|
3277
|
-
i.push(
|
|
3278
|
+
i.push(v);
|
|
3278
3279
|
} else {
|
|
3279
3280
|
let p = w;
|
|
3280
|
-
p &&
|
|
3281
|
+
p && j(p) && (p = p.value), r[v] = p, i.push(v);
|
|
3281
3282
|
}
|
|
3282
3283
|
} else if (u === "@") {
|
|
3283
|
-
const [a, ...
|
|
3284
|
+
const [a, ...S] = v.split("."), h = S;
|
|
3284
3285
|
Qt(w, a);
|
|
3285
3286
|
const y = typeof w == "function" ? w : typeof t[w] == "function" ? t[w] : void 0;
|
|
3286
3287
|
if (y) {
|
|
@@ -3293,7 +3294,7 @@ function tn(e, n = [], t = {}) {
|
|
|
3293
3294
|
}, _ = "on" + a.charAt(0).toUpperCase() + a.slice(1);
|
|
3294
3295
|
s[_] = p;
|
|
3295
3296
|
}
|
|
3296
|
-
} else
|
|
3297
|
+
} else v === "ref" ? s.ref = w : r[v] = w;
|
|
3297
3298
|
}
|
|
3298
3299
|
return { props: s, attrs: r, directives: o, bound: i };
|
|
3299
3300
|
}
|
|
@@ -3302,7 +3303,7 @@ function Ge(e) {
|
|
|
3302
3303
|
return e;
|
|
3303
3304
|
const n = e.props?.directives;
|
|
3304
3305
|
if (n && n.when) {
|
|
3305
|
-
const t = n.when.value, s =
|
|
3306
|
+
const t = n.when.value, s = j(t) ? t.value : t, r = { ...n };
|
|
3306
3307
|
delete r.when;
|
|
3307
3308
|
const o = { ...e.props };
|
|
3308
3309
|
Object.keys(r).length > 0 ? o.directives = r : delete o.directives;
|
|
@@ -3345,8 +3346,8 @@ function nn(e, n, t) {
|
|
|
3345
3346
|
let u = "";
|
|
3346
3347
|
for (let l = 0; l < e.length; l++)
|
|
3347
3348
|
u += e[l], l < n.length && (u += `{{${l}}}`);
|
|
3348
|
-
const
|
|
3349
|
-
let m, C = [], w = null, L = {}, a,
|
|
3349
|
+
const v = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, b = [];
|
|
3350
|
+
let m, C = [], w = null, L = {}, a, S = 0;
|
|
3350
3351
|
const h = [], y = /* @__PURE__ */ new Set([
|
|
3351
3352
|
"pre",
|
|
3352
3353
|
"code",
|
|
@@ -3369,11 +3370,11 @@ function nn(e, n, t) {
|
|
|
3369
3370
|
const N = g;
|
|
3370
3371
|
N.props && (A.props || (A.props = {}), Object.assign(A.props, N.props)), N.attrs && (A.attrs || (A.attrs = {}), Object.keys(N.attrs).forEach((O) => {
|
|
3371
3372
|
if (O === "style" && A.attrs.style) {
|
|
3372
|
-
const
|
|
3373
|
-
A.attrs.style =
|
|
3373
|
+
const M = String(A.attrs.style).replace(/;?\s*$/, ""), R = String(N.attrs.style).replace(/^;?\s*/, "");
|
|
3374
|
+
A.attrs.style = M + "; " + R;
|
|
3374
3375
|
} else if (O === "class" && A.attrs.class) {
|
|
3375
|
-
const
|
|
3376
|
-
.../* @__PURE__ */ new Set([...
|
|
3376
|
+
const M = String(A.attrs.class).trim().split(/\s+/).filter(Boolean), R = String(N.attrs.class).trim().split(/\s+/).filter(Boolean), P = [
|
|
3377
|
+
.../* @__PURE__ */ new Set([...M, ...R])
|
|
3377
3378
|
];
|
|
3378
3379
|
A.attrs.class = P.join(" ");
|
|
3379
3380
|
} else
|
|
@@ -3439,13 +3440,13 @@ function nn(e, n, t) {
|
|
|
3439
3440
|
"track",
|
|
3440
3441
|
"wbr"
|
|
3441
3442
|
]);
|
|
3442
|
-
for (; m =
|
|
3443
|
+
for (; m = v.exec(u); )
|
|
3443
3444
|
if (!(m[0].startsWith("<!--") && m[0].endsWith("-->"))) {
|
|
3444
3445
|
if (m[1]) {
|
|
3445
3446
|
const l = m[1], g = m[0][1] === "/", A = m[0][m[0].length - 2] === "/" || T.has(l), {
|
|
3446
3447
|
props: N,
|
|
3447
3448
|
attrs: O,
|
|
3448
|
-
directives:
|
|
3449
|
+
directives: M,
|
|
3449
3450
|
bound: R
|
|
3450
3451
|
} = tn(
|
|
3451
3452
|
m[2] || "",
|
|
@@ -3487,7 +3488,7 @@ function nn(e, n, t) {
|
|
|
3487
3488
|
for (const x of ie)
|
|
3488
3489
|
if (R && R.includes(x) && x in P.attrs && !(P.props && x in P.props)) {
|
|
3489
3490
|
let $ = P.attrs[x];
|
|
3490
|
-
if ($ &&
|
|
3491
|
+
if ($ && j($))
|
|
3491
3492
|
$ = $.value, P.props[x] = $, delete P.attrs[x];
|
|
3492
3493
|
else if ($ && typeof $ == "object" && "value" in $ && !($ instanceof Node))
|
|
3493
3494
|
try {
|
|
@@ -3514,8 +3515,8 @@ function nn(e, n, t) {
|
|
|
3514
3515
|
const z = $.includes("-") ? Ze($) : $, ee = P.attrs[$];
|
|
3515
3516
|
if (P.props[z] = ee, x.has($) || at($))
|
|
3516
3517
|
try {
|
|
3517
|
-
const
|
|
3518
|
-
|
|
3518
|
+
const je = F(P.attrs[$]);
|
|
3519
|
+
je === null ? delete P.attrs[$] : P.attrs[$] = je;
|
|
3519
3520
|
} catch {
|
|
3520
3521
|
delete P.attrs[$];
|
|
3521
3522
|
}
|
|
@@ -3533,18 +3534,18 @@ function nn(e, n, t) {
|
|
|
3533
3534
|
}
|
|
3534
3535
|
} catch {
|
|
3535
3536
|
}
|
|
3536
|
-
if (
|
|
3537
|
+
if (M && Object.keys(M).some(
|
|
3537
3538
|
(K) => K === "model" || K.startsWith("model:")
|
|
3538
3539
|
))
|
|
3539
3540
|
try {
|
|
3540
3541
|
const K = Symbol.for("cer.registry"), I = globalThis[K], ie = !!(I && typeof I.has == "function" && I.has(l)), Y = r, x = !!(Y && (Y.__customElements instanceof Set && Y.__customElements.has(l) || Array.isArray(Y.__isCustomElements) && Y.__isCustomElements.includes(l)));
|
|
3541
3542
|
if (!!(l.includes("-") || x || ie))
|
|
3542
|
-
for (const ee of Object.keys(
|
|
3543
|
+
for (const ee of Object.keys(M)) {
|
|
3543
3544
|
if (ee !== "model" && !ee.startsWith("model:")) continue;
|
|
3544
|
-
const
|
|
3545
|
+
const Me = M[ee], je = Me.arg ?? (ee.includes(":") ? ee.split(":", 2)[1] : void 0), V = Me.value, Be = je ?? "modelValue", Je = U, ht = Re, ve = r?._state || r;
|
|
3545
3546
|
let re;
|
|
3546
|
-
typeof V == "string" &&
|
|
3547
|
-
|
|
3547
|
+
typeof V == "string" && ve ? re = Je(
|
|
3548
|
+
ve,
|
|
3548
3549
|
V
|
|
3549
3550
|
) : re = V, P.props[Be] = re;
|
|
3550
3551
|
try {
|
|
@@ -3559,46 +3560,46 @@ function nn(e, n, t) {
|
|
|
3559
3560
|
), yt = "on" + Ye.charAt(0).toUpperCase() + Ye.slice(1);
|
|
3560
3561
|
P.props[yt] = function(ce) {
|
|
3561
3562
|
const ne = ce.detail !== void 0 ? ce.detail : ce.target ? ce.target.value : void 0;
|
|
3562
|
-
if (
|
|
3563
|
-
if (V &&
|
|
3563
|
+
if (ve)
|
|
3564
|
+
if (V && j(V)) {
|
|
3564
3565
|
const ae = V.value;
|
|
3565
3566
|
if (Array.isArray(ne) && Array.isArray(ae) ? JSON.stringify([...ne].sort()) !== JSON.stringify([...ae].sort()) : ne !== ae) {
|
|
3566
3567
|
V.value = ne;
|
|
3567
3568
|
try {
|
|
3568
3569
|
const le = r;
|
|
3569
3570
|
if (le) {
|
|
3570
|
-
const
|
|
3571
|
-
typeof
|
|
3571
|
+
const Se = le.requestRender, _e = le._requestRender;
|
|
3572
|
+
typeof Se == "function" ? Se() : typeof _e == "function" && _e();
|
|
3572
3573
|
}
|
|
3573
3574
|
} catch {
|
|
3574
3575
|
}
|
|
3575
3576
|
}
|
|
3576
3577
|
} else {
|
|
3577
3578
|
const ae = Je(
|
|
3578
|
-
|
|
3579
|
+
ve || {},
|
|
3579
3580
|
typeof V == "string" ? V : String(V)
|
|
3580
3581
|
);
|
|
3581
3582
|
if (Array.isArray(ne) && Array.isArray(ae) ? JSON.stringify([...ne].sort()) !== JSON.stringify([...ae].sort()) : ne !== ae) {
|
|
3582
3583
|
ht(
|
|
3583
|
-
|
|
3584
|
+
ve || {},
|
|
3584
3585
|
typeof V == "string" ? V : String(V),
|
|
3585
3586
|
ne
|
|
3586
3587
|
);
|
|
3587
3588
|
try {
|
|
3588
3589
|
const le = r;
|
|
3589
3590
|
if (le) {
|
|
3590
|
-
const
|
|
3591
|
-
typeof
|
|
3591
|
+
const Se = le.requestRender, _e = le._requestRender;
|
|
3592
|
+
typeof Se == "function" ? Se() : typeof _e == "function" && _e();
|
|
3592
3593
|
}
|
|
3593
3594
|
} catch {
|
|
3594
3595
|
}
|
|
3595
3596
|
}
|
|
3596
3597
|
}
|
|
3597
|
-
}, delete
|
|
3598
|
+
}, delete M[ee];
|
|
3598
3599
|
}
|
|
3599
3600
|
} catch {
|
|
3600
3601
|
}
|
|
3601
|
-
if (Object.keys(
|
|
3602
|
+
if (Object.keys(M).length > 0 && (P.directives = { ...M }), g) {
|
|
3602
3603
|
const K = C.some(
|
|
3603
3604
|
(x) => typeof x == "object" && x.tag !== "#text"
|
|
3604
3605
|
);
|
|
@@ -3642,11 +3643,11 @@ function nn(e, n, t) {
|
|
|
3642
3643
|
if (!N) continue;
|
|
3643
3644
|
const O = N.match(/^{{(\d+)}}$/);
|
|
3644
3645
|
if (O) {
|
|
3645
|
-
const
|
|
3646
|
+
const M = Number(O[1]), R = n[M], P = `interp-${M}`;
|
|
3646
3647
|
E(R, P);
|
|
3647
3648
|
} else {
|
|
3648
|
-
const
|
|
3649
|
-
g.push(f(N,
|
|
3649
|
+
const M = `text-${S++}`, R = p();
|
|
3650
|
+
g.push(f(N, M, R));
|
|
3650
3651
|
}
|
|
3651
3652
|
}
|
|
3652
3653
|
}
|
|
@@ -3670,11 +3671,12 @@ function mn(e, ...n) {
|
|
|
3670
3671
|
export {
|
|
3671
3672
|
yn as component,
|
|
3672
3673
|
En as computed,
|
|
3673
|
-
|
|
3674
|
+
wn as css,
|
|
3674
3675
|
Et as decodeEntities,
|
|
3675
3676
|
mn as html,
|
|
3676
|
-
|
|
3677
|
-
|
|
3677
|
+
vn as ref,
|
|
3678
|
+
kn as setDevMode,
|
|
3679
|
+
Sn as unsafeHTML,
|
|
3678
3680
|
an as useEmit,
|
|
3679
3681
|
un as useOnAttributeChanged,
|
|
3680
3682
|
ln as useOnConnected,
|