@popcorn245/cornfield-components 0.48.0 → 0.50.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/chunks/_corn-default-tokens-BpIL6q5N.js +4110 -0
- package/dist/chunks/corn-map-CMNEW1lH.js +2703 -0
- package/dist/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/chunks/runtime-DFu6W5g-.js +2186 -0
- package/dist/chunks/scope-CmIkJ1qf.js +847 -0
- package/dist/corn-map.js +1 -1
- package/dist/corn-scope.js +83 -0
- package/dist/index.js +4 -3
- package/dist/manifest.json +42 -17
- package/dist/tokens.css +4 -2
- package/dist/types/components.d.ts +78 -0
- package/dist/types/corn-scope.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/version.json +1 -1
- package/package.json +5 -1
- package/dist/chunks/corn-map-D6uJOnYp.js +0 -6391
- package/dist/chunks/runtime-D89gVy_w.js +0 -2192
|
@@ -0,0 +1,2186 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
+
// node_modules/@stencil/core/dist/app-data/index.js
|
|
3
|
+
var t = {
|
|
4
|
+
allRenderFn: !1,
|
|
5
|
+
element: !0,
|
|
6
|
+
event: !0,
|
|
7
|
+
hasRenderFn: !0,
|
|
8
|
+
hostListener: !0,
|
|
9
|
+
hostListenerTargetWindow: !0,
|
|
10
|
+
hostListenerTargetDocument: !0,
|
|
11
|
+
hostListenerTargetBody: !0,
|
|
12
|
+
hostListenerTarget: !0,
|
|
13
|
+
member: !0,
|
|
14
|
+
method: !0,
|
|
15
|
+
mode: !0,
|
|
16
|
+
observeAttribute: !0,
|
|
17
|
+
prop: !0,
|
|
18
|
+
propMutable: !0,
|
|
19
|
+
reflect: !0,
|
|
20
|
+
scoped: !0,
|
|
21
|
+
shadowDom: !0,
|
|
22
|
+
shadowModeClosed: !1,
|
|
23
|
+
slot: !0,
|
|
24
|
+
cssAnnotations: !0,
|
|
25
|
+
state: !0,
|
|
26
|
+
style: !0,
|
|
27
|
+
formAssociated: !0,
|
|
28
|
+
svg: !0,
|
|
29
|
+
updatable: !0,
|
|
30
|
+
vdomAttribute: !0,
|
|
31
|
+
vdomXlink: !0,
|
|
32
|
+
vdomClass: !0,
|
|
33
|
+
vdomFunctional: !0,
|
|
34
|
+
vdomKey: !0,
|
|
35
|
+
vdomListener: !0,
|
|
36
|
+
vdomRef: !0,
|
|
37
|
+
vdomPropOrAttr: !0,
|
|
38
|
+
vdomPropOrAttrPrefix: !0,
|
|
39
|
+
vdomRender: !0,
|
|
40
|
+
vdomStyle: !0,
|
|
41
|
+
vdomText: !0,
|
|
42
|
+
propChangeCallback: !0,
|
|
43
|
+
taskQueue: !0,
|
|
44
|
+
lifecycle: !0,
|
|
45
|
+
serializer: !0,
|
|
46
|
+
deserializer: !0,
|
|
47
|
+
patchAll: !0,
|
|
48
|
+
patchChildren: !0,
|
|
49
|
+
patchClone: !0,
|
|
50
|
+
patchInsert: !0,
|
|
51
|
+
hotModuleReplacement: !1,
|
|
52
|
+
isDebug: !1,
|
|
53
|
+
isDev: !1,
|
|
54
|
+
isTesting: !1,
|
|
55
|
+
hydrateServerSide: !1,
|
|
56
|
+
hydrateClientSide: !0,
|
|
57
|
+
lifecycleDOMEvents: !1,
|
|
58
|
+
lazyLoad: !1,
|
|
59
|
+
profile: !1,
|
|
60
|
+
slotRelocation: !0,
|
|
61
|
+
lightDomPatches: !0,
|
|
62
|
+
slotChildNodes: !0,
|
|
63
|
+
slotCloneNode: !0,
|
|
64
|
+
slotDomMutations: !0,
|
|
65
|
+
slotTextContent: !0,
|
|
66
|
+
hydratedAttribute: !1,
|
|
67
|
+
hydratedClass: !0,
|
|
68
|
+
invisiblePrehydration: !0,
|
|
69
|
+
staticHydrationStyles: !1,
|
|
70
|
+
propBoolean: !0,
|
|
71
|
+
propNumber: !0,
|
|
72
|
+
propString: !0,
|
|
73
|
+
constructableCSS: !0,
|
|
74
|
+
devTools: !1,
|
|
75
|
+
shadowDelegatesFocus: !0,
|
|
76
|
+
shadowSlotAssignmentManual: !1,
|
|
77
|
+
shadowClonable: !0,
|
|
78
|
+
shadowSerializable: !0,
|
|
79
|
+
initializeNextTick: !1,
|
|
80
|
+
asyncLoading: !0,
|
|
81
|
+
asyncQueue: !1
|
|
82
|
+
}, n = /* @__PURE__ */ e({
|
|
83
|
+
Computed: () => x,
|
|
84
|
+
Effect: () => S,
|
|
85
|
+
Signal: () => _,
|
|
86
|
+
action: () => oe,
|
|
87
|
+
batch: () => a,
|
|
88
|
+
computed: () => te,
|
|
89
|
+
createModel: () => le,
|
|
90
|
+
effect: () => ae,
|
|
91
|
+
signal: () => v,
|
|
92
|
+
untracked: () => c
|
|
93
|
+
}), r = Symbol.for("preact-signals");
|
|
94
|
+
function i() {
|
|
95
|
+
if (u > 1) u--;
|
|
96
|
+
else {
|
|
97
|
+
var e, t = !1;
|
|
98
|
+
for ((function() {
|
|
99
|
+
var e = m;
|
|
100
|
+
for (m = void 0; e !== void 0;) {
|
|
101
|
+
var t = e.S;
|
|
102
|
+
if (t.v === e.v) for (var n = t.t; n !== void 0; n = n.x) n.i === e.i && (n.i = t.i);
|
|
103
|
+
e = e.o;
|
|
104
|
+
}
|
|
105
|
+
})(); l !== void 0;) {
|
|
106
|
+
var n = l;
|
|
107
|
+
for (l = void 0, d++; n !== void 0;) {
|
|
108
|
+
var r = n.u;
|
|
109
|
+
if (n.u = void 0, n.f &= -3, !(8 & n.f) && y(n)) try {
|
|
110
|
+
n.c();
|
|
111
|
+
} catch (n) {
|
|
112
|
+
t ||= (e = n, !0);
|
|
113
|
+
}
|
|
114
|
+
n = r;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (d = 0, u--, t) throw e;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function a(e) {
|
|
121
|
+
if (u > 0) return e();
|
|
122
|
+
p = ++f, u++;
|
|
123
|
+
try {
|
|
124
|
+
return e();
|
|
125
|
+
} finally {
|
|
126
|
+
i();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
var o, s = void 0;
|
|
130
|
+
function c(e) {
|
|
131
|
+
var t = s, n = o;
|
|
132
|
+
s = void 0, o = void 0;
|
|
133
|
+
try {
|
|
134
|
+
return e();
|
|
135
|
+
} finally {
|
|
136
|
+
s = t, o = n;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
var l = void 0, u = 0, d = 0, f = 0, p = 0, m = void 0, h = 0;
|
|
140
|
+
function g(e) {
|
|
141
|
+
if (s !== void 0) {
|
|
142
|
+
var t = e.n;
|
|
143
|
+
if (t === void 0 || t.t !== s) return t = {
|
|
144
|
+
i: 0,
|
|
145
|
+
S: e,
|
|
146
|
+
p: s.s,
|
|
147
|
+
n: void 0,
|
|
148
|
+
t: s,
|
|
149
|
+
e: void 0,
|
|
150
|
+
x: void 0,
|
|
151
|
+
r: t
|
|
152
|
+
}, s.s !== void 0 && (s.s.n = t), s.s = t, e.n = t, 32 & s.f && e.S(t), t;
|
|
153
|
+
if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = s.s, t.n = void 0, s.s.n = t, s.s = t), t;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function _(e, t) {
|
|
157
|
+
this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
|
|
158
|
+
}
|
|
159
|
+
_.prototype.brand = r, _.prototype.h = function() {
|
|
160
|
+
return !0;
|
|
161
|
+
}, _.prototype.S = function(e) {
|
|
162
|
+
var t = this, n = this.t;
|
|
163
|
+
n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? c(function() {
|
|
164
|
+
var e;
|
|
165
|
+
(e = t.W) == null || e.call(t);
|
|
166
|
+
}) : n.e = e);
|
|
167
|
+
}, _.prototype.U = function(e) {
|
|
168
|
+
var t = this;
|
|
169
|
+
if (this.t !== void 0) {
|
|
170
|
+
var n = e.e, r = e.x;
|
|
171
|
+
n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && c(function() {
|
|
172
|
+
var e;
|
|
173
|
+
(e = t.Z) == null || e.call(t);
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
}, _.prototype.subscribe = function(e) {
|
|
177
|
+
var t = this;
|
|
178
|
+
return ae(function() {
|
|
179
|
+
var n = t.value;
|
|
180
|
+
c(function() {
|
|
181
|
+
return e(n);
|
|
182
|
+
});
|
|
183
|
+
}, { name: "sub" });
|
|
184
|
+
}, _.prototype.valueOf = function() {
|
|
185
|
+
return this.value;
|
|
186
|
+
}, _.prototype.toString = function() {
|
|
187
|
+
return this.value + "";
|
|
188
|
+
}, _.prototype.toJSON = function() {
|
|
189
|
+
return this.value;
|
|
190
|
+
}, _.prototype.peek = function() {
|
|
191
|
+
var e = this;
|
|
192
|
+
return c(function() {
|
|
193
|
+
return e.value;
|
|
194
|
+
});
|
|
195
|
+
}, Object.defineProperty(_.prototype, "value", {
|
|
196
|
+
get: function() {
|
|
197
|
+
var e = g(this);
|
|
198
|
+
return e !== void 0 && (e.i = this.i), this.v;
|
|
199
|
+
},
|
|
200
|
+
set: function(e) {
|
|
201
|
+
if (e !== this.v) {
|
|
202
|
+
if (d > 100) throw Error("Cycle detected");
|
|
203
|
+
(function(e) {
|
|
204
|
+
u !== 0 && d === 0 && e.l !== p && (e.l = p, m = {
|
|
205
|
+
S: e,
|
|
206
|
+
v: e.v,
|
|
207
|
+
i: e.i,
|
|
208
|
+
o: m
|
|
209
|
+
});
|
|
210
|
+
})(this), this.v = e, this.i++, h++, u++;
|
|
211
|
+
try {
|
|
212
|
+
for (var t = this.t; t !== void 0; t = t.x) t.t.N();
|
|
213
|
+
} finally {
|
|
214
|
+
i();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
function v(e, t) {
|
|
220
|
+
return new _(e, t);
|
|
221
|
+
}
|
|
222
|
+
function y(e) {
|
|
223
|
+
for (var t = e.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
|
|
224
|
+
return !1;
|
|
225
|
+
}
|
|
226
|
+
function b(e) {
|
|
227
|
+
for (var t = e.s; t !== void 0; t = t.n) {
|
|
228
|
+
var n = t.S.n;
|
|
229
|
+
if (n !== void 0 && (t.r = n), t.S.n = t, t.i = -1, t.n === void 0) {
|
|
230
|
+
e.s = t;
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
function ee(e) {
|
|
236
|
+
for (var t = e.s, n = void 0; t !== void 0;) {
|
|
237
|
+
var r = t.p;
|
|
238
|
+
t.i === -1 ? (t.S.U(t), r !== void 0 && (r.n = t.n), t.n !== void 0 && (t.n.p = r)) : n = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = r;
|
|
239
|
+
}
|
|
240
|
+
e.s = n;
|
|
241
|
+
}
|
|
242
|
+
function x(e, t) {
|
|
243
|
+
_.call(this, void 0, t), this.x = e, this.s = void 0, this.g = h - 1, this.f = 4;
|
|
244
|
+
}
|
|
245
|
+
x.prototype = new _(), x.prototype.h = function() {
|
|
246
|
+
if (this.f &= -3, 1 & this.f) return !1;
|
|
247
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === h)) return !0;
|
|
248
|
+
if (this.g = h, this.f |= 1, this.i > 0 && !y(this)) return this.f &= -2, !0;
|
|
249
|
+
var e = s;
|
|
250
|
+
try {
|
|
251
|
+
b(this), s = this;
|
|
252
|
+
var t = this.x();
|
|
253
|
+
(16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);
|
|
254
|
+
} catch (e) {
|
|
255
|
+
this.v = e, this.f |= 16, this.i++;
|
|
256
|
+
}
|
|
257
|
+
return s = e, ee(this), this.f &= -2, !0;
|
|
258
|
+
}, x.prototype.S = function(e) {
|
|
259
|
+
if (this.t === void 0) {
|
|
260
|
+
this.f |= 36;
|
|
261
|
+
for (var t = this.s; t !== void 0; t = t.n) t.S.S(t);
|
|
262
|
+
}
|
|
263
|
+
_.prototype.S.call(this, e);
|
|
264
|
+
}, x.prototype.U = function(e) {
|
|
265
|
+
if (this.t !== void 0 && (_.prototype.U.call(this, e), this.t === void 0)) {
|
|
266
|
+
this.f &= -33;
|
|
267
|
+
for (var t = this.s; t !== void 0; t = t.n) t.S.U(t);
|
|
268
|
+
}
|
|
269
|
+
}, x.prototype.N = function() {
|
|
270
|
+
if (!(2 & this.f)) {
|
|
271
|
+
this.f |= 6;
|
|
272
|
+
for (var e = this.t; e !== void 0; e = e.x) e.t.N();
|
|
273
|
+
}
|
|
274
|
+
}, Object.defineProperty(x.prototype, "value", { get: function() {
|
|
275
|
+
if (1 & this.f) throw Error("Cycle detected");
|
|
276
|
+
var e = g(this);
|
|
277
|
+
if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;
|
|
278
|
+
return this.v;
|
|
279
|
+
} });
|
|
280
|
+
function te(e, t) {
|
|
281
|
+
return new x(e, t);
|
|
282
|
+
}
|
|
283
|
+
function ne(e) {
|
|
284
|
+
var t = e.j;
|
|
285
|
+
if (e.j = void 0, typeof t == "function") {
|
|
286
|
+
u++;
|
|
287
|
+
var n = s;
|
|
288
|
+
s = void 0;
|
|
289
|
+
try {
|
|
290
|
+
t();
|
|
291
|
+
} catch (t) {
|
|
292
|
+
throw e.f &= -2, e.f |= 8, re(e), t;
|
|
293
|
+
} finally {
|
|
294
|
+
s = n, i();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function re(e) {
|
|
299
|
+
for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);
|
|
300
|
+
e.x = void 0, e.s = void 0, ne(e);
|
|
301
|
+
}
|
|
302
|
+
function ie(e) {
|
|
303
|
+
if (s !== this) throw Error("Out-of-order effect");
|
|
304
|
+
ee(this), s = e, this.f &= -2;
|
|
305
|
+
try {
|
|
306
|
+
8 & this.f && re(this);
|
|
307
|
+
} finally {
|
|
308
|
+
i();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function S(e, t) {
|
|
312
|
+
this.x = e, this.j = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, o && o.push(this);
|
|
313
|
+
}
|
|
314
|
+
S.prototype.c = function() {
|
|
315
|
+
var e = this.S();
|
|
316
|
+
try {
|
|
317
|
+
if (8 & this.f || this.x === void 0) return;
|
|
318
|
+
var t = this.x();
|
|
319
|
+
typeof t == "function" && (this.j = t);
|
|
320
|
+
} finally {
|
|
321
|
+
e();
|
|
322
|
+
}
|
|
323
|
+
}, S.prototype.S = function() {
|
|
324
|
+
if (1 & this.f) throw Error("Cycle detected");
|
|
325
|
+
this.f |= 1, this.f &= -9, ne(this), b(this), u++;
|
|
326
|
+
var e = s;
|
|
327
|
+
return s = this, ie.bind(this, e);
|
|
328
|
+
}, S.prototype.N = function() {
|
|
329
|
+
2 & this.f || (this.f |= 2, this.u = l, l = this);
|
|
330
|
+
}, S.prototype.d = function() {
|
|
331
|
+
this.f |= 8, 1 & this.f || re(this);
|
|
332
|
+
}, S.prototype.dispose = function() {
|
|
333
|
+
this.d();
|
|
334
|
+
};
|
|
335
|
+
function ae(e, t) {
|
|
336
|
+
var n = new S(e, t);
|
|
337
|
+
try {
|
|
338
|
+
n.c();
|
|
339
|
+
} catch (e) {
|
|
340
|
+
throw n.d(), e;
|
|
341
|
+
}
|
|
342
|
+
var r = n.d.bind(n);
|
|
343
|
+
return r[Symbol.dispose] = r, r;
|
|
344
|
+
}
|
|
345
|
+
function oe(e) {
|
|
346
|
+
return function() {
|
|
347
|
+
var t = arguments, n = this;
|
|
348
|
+
return a(function() {
|
|
349
|
+
return c(function() {
|
|
350
|
+
return e.apply(n, [].slice.call(t));
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function se() {
|
|
356
|
+
var e = o;
|
|
357
|
+
return o = [], function() {
|
|
358
|
+
var t = o;
|
|
359
|
+
return o && e && (e = e.concat(o)), o = e, t;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
var ce = function(e, t) {
|
|
363
|
+
t.push(e);
|
|
364
|
+
for (var n = Object.prototype.toString.call(e) === "[object Object]", r = Object.create(null), i = e; i && i !== Object.prototype; i = n && Object.getPrototypeOf(i)) {
|
|
365
|
+
var a = Object.getOwnPropertyDescriptors(i);
|
|
366
|
+
for (var o in a) if (!r[o]) {
|
|
367
|
+
r[o] = !0;
|
|
368
|
+
var s = a[o].value;
|
|
369
|
+
typeof s == "function" ? o !== "constructor" && (e[o] = oe(s)) : i === e && typeof s == "object" && s && !("brand" in s) && t.indexOf(s) < 0 && ce(s, t);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
function le(e) {
|
|
374
|
+
return function() {
|
|
375
|
+
var t, n, r = se();
|
|
376
|
+
try {
|
|
377
|
+
n = e.apply(void 0, [].slice.call(arguments));
|
|
378
|
+
} catch (e) {
|
|
379
|
+
var i = o;
|
|
380
|
+
if (o = void 0, i) try {
|
|
381
|
+
a(function() {
|
|
382
|
+
for (var e = 0; e < i.length; e++) try {
|
|
383
|
+
i[e].dispose();
|
|
384
|
+
} catch {}
|
|
385
|
+
});
|
|
386
|
+
} catch {}
|
|
387
|
+
throw e;
|
|
388
|
+
} finally {
|
|
389
|
+
t = r();
|
|
390
|
+
}
|
|
391
|
+
return ce(n, []), n[Symbol.dispose] = oe(function() {
|
|
392
|
+
if (t) for (var e = 0; e < t.length; e++) t[e].dispose();
|
|
393
|
+
t = void 0;
|
|
394
|
+
}), n;
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
// node_modules/@stencil/core/dist/runtime/client/runtime.js
|
|
398
|
+
var C = {
|
|
399
|
+
isSlotReference: 1,
|
|
400
|
+
isSlotFallback: 2,
|
|
401
|
+
isHost: 4
|
|
402
|
+
}, w = {
|
|
403
|
+
isElementConstructor: 1,
|
|
404
|
+
proxyState: 2
|
|
405
|
+
}, T = {
|
|
406
|
+
isTmpDisconnected: 1,
|
|
407
|
+
appLoaded: 2,
|
|
408
|
+
queueSync: 4,
|
|
409
|
+
queueMask: 6
|
|
410
|
+
}, E = {
|
|
411
|
+
ElementNode: 1,
|
|
412
|
+
TextNode: 3,
|
|
413
|
+
CommentNode: 8,
|
|
414
|
+
DocumentNode: 9,
|
|
415
|
+
DocumentTypeNode: 10,
|
|
416
|
+
DocumentFragment: 11
|
|
417
|
+
}, ue = "s-id", de = "sty-id", fe = "c-id", pe = "slot-fb{display:contents}slot-fb[hidden]{display:none}", me = "http://www.w3.org/1999/xlink", he = 1e3, ge = [
|
|
418
|
+
"formAssociatedCallback",
|
|
419
|
+
"formResetCallback",
|
|
420
|
+
"formDisabledCallback",
|
|
421
|
+
"formStateRestoreCallback"
|
|
422
|
+
], _e = {
|
|
423
|
+
isBrowser: !0,
|
|
424
|
+
isServer: !1,
|
|
425
|
+
isDev: t.isDev,
|
|
426
|
+
isTesting: t.isTesting
|
|
427
|
+
}, D = {
|
|
428
|
+
String: 1,
|
|
429
|
+
Number: 2,
|
|
430
|
+
Boolean: 4,
|
|
431
|
+
Any: 8,
|
|
432
|
+
Unknown: 16,
|
|
433
|
+
State: 32,
|
|
434
|
+
Method: 64,
|
|
435
|
+
Event: 128,
|
|
436
|
+
Element: 256,
|
|
437
|
+
ReflectAttr: 512,
|
|
438
|
+
Mutable: 1024,
|
|
439
|
+
Getter: 2048,
|
|
440
|
+
Setter: 4096,
|
|
441
|
+
Prop: 31,
|
|
442
|
+
HasAttribute: 31,
|
|
443
|
+
PropLike: 63
|
|
444
|
+
}, ve = { Immediate: 1 }, ye = {
|
|
445
|
+
Cancellable: 1,
|
|
446
|
+
Composed: 2,
|
|
447
|
+
Bubbles: 4
|
|
448
|
+
}, O = {
|
|
449
|
+
Passive: 1,
|
|
450
|
+
Capture: 2,
|
|
451
|
+
TargetDocument: 4,
|
|
452
|
+
TargetWindow: 8,
|
|
453
|
+
TargetBody: 16
|
|
454
|
+
}, k = {
|
|
455
|
+
hasConnected: 1,
|
|
456
|
+
hasRendered: 2,
|
|
457
|
+
isWaitingForChildren: 4,
|
|
458
|
+
isConstructingInstance: 8,
|
|
459
|
+
isQueuedForUpdate: 16,
|
|
460
|
+
hasInitializedComponent: 32,
|
|
461
|
+
hasLoadedComponent: 64,
|
|
462
|
+
isWatchReady: 128,
|
|
463
|
+
isListenReady: 256,
|
|
464
|
+
needsRerender: 512,
|
|
465
|
+
hasFiredConnected: 1024,
|
|
466
|
+
hasFailedLoad: 2048,
|
|
467
|
+
devOnRender: 4096,
|
|
468
|
+
devOnDidLoad: 8192
|
|
469
|
+
}, be = 2, A = {
|
|
470
|
+
shadowDomEncapsulation: 1,
|
|
471
|
+
scopedCssEncapsulation: be,
|
|
472
|
+
hasSlotRelocation: 4,
|
|
473
|
+
shadowDelegatesFocus: 16,
|
|
474
|
+
hasMode: 32,
|
|
475
|
+
needsScopedEncapsulation: be,
|
|
476
|
+
formAssociated: 64,
|
|
477
|
+
shadowNeedsScopedCss: 128,
|
|
478
|
+
hasSlot: 256,
|
|
479
|
+
hasModernPropertyDecls: 512,
|
|
480
|
+
shadowSlotAssignmentManual: 1024,
|
|
481
|
+
shadowModeClosed: 2048,
|
|
482
|
+
patchChildren: 4096,
|
|
483
|
+
patchClone: 8192,
|
|
484
|
+
patchInsert: 16384,
|
|
485
|
+
patchAll: 32768,
|
|
486
|
+
shadowClonable: 65536,
|
|
487
|
+
shadowSerializable: 1 << 17
|
|
488
|
+
}, xe = "http://www.w3.org/2000/svg", Se = {
|
|
489
|
+
ELEMENT_NODE: 1,
|
|
490
|
+
ATTRIBUTE_NODE: 2,
|
|
491
|
+
TEXT_NODE: 3,
|
|
492
|
+
CDATA_SECTION_NODE: 4,
|
|
493
|
+
ENTITY_REFERENCE_NODE: 5,
|
|
494
|
+
ENTITY_NODE: 6,
|
|
495
|
+
PROCESSING_INSTRUCTION_NODE: 7,
|
|
496
|
+
COMMENT_NODE: 8,
|
|
497
|
+
DOCUMENT_NODE: 9,
|
|
498
|
+
DOCUMENT_TYPE_NODE: 10,
|
|
499
|
+
DOCUMENT_FRAGMENT_NODE: 11,
|
|
500
|
+
NOTATION_NODE: 12
|
|
501
|
+
};
|
|
502
|
+
function Ce(e, t, n) {
|
|
503
|
+
let r = typeof HTMLElement < "u" ? HTMLElement.prototype : null;
|
|
504
|
+
for (; e && e !== r;) {
|
|
505
|
+
let r = Object.getOwnPropertyDescriptor(e, t);
|
|
506
|
+
if (r && (!n || r.get)) return r;
|
|
507
|
+
e = Object.getPrototypeOf(e);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
var we = (e, n) => {
|
|
511
|
+
let r = n.$cmpMeta$;
|
|
512
|
+
Object.entries(r.$members$ ?? {}).map(([r, [i]]) => {
|
|
513
|
+
if ((t.state || t.prop) && (i & D.Prop || i & D.State)) {
|
|
514
|
+
let t = e[r], i = Ce(Object.getPrototypeOf(e), r, !0) || Object.getOwnPropertyDescriptor(e, r);
|
|
515
|
+
i && Object.defineProperty(e, r, {
|
|
516
|
+
get() {
|
|
517
|
+
return i.get.call(this);
|
|
518
|
+
},
|
|
519
|
+
set(e) {
|
|
520
|
+
i.set.call(this, e);
|
|
521
|
+
},
|
|
522
|
+
configurable: !0,
|
|
523
|
+
enumerable: !0
|
|
524
|
+
}), n.$instanceValues$.has(r) ? e[r] = n.$instanceValues$.get(r) : t !== void 0 && e[r] !== t && (e[r] = t);
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}, j = (e) => {
|
|
528
|
+
if (e.__s_ghr) return e.__s_ghr();
|
|
529
|
+
}, Te = (e, n) => {
|
|
530
|
+
let r = {
|
|
531
|
+
$flags$: 0,
|
|
532
|
+
$hostElement$: e,
|
|
533
|
+
$cmpMeta$: n,
|
|
534
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
535
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
536
|
+
};
|
|
537
|
+
t.isDev && (r.$renderCount$ = 0), t.method && t.lazyLoad && (r.$onInstancePromise$ = new Promise((e) => r.$onInstanceResolve$ = e)), t.asyncLoading && (r.$onReadyPromise$ = new Promise((e) => r.$onReadyResolve$ = e), e["s-rp"] = r.$onReadyPromise$, t.lazyLoad || (r.$onFirstConnectPromise$ = new Promise((e) => r.$onFirstConnectResolve$ = e), e["s-fc"] = r.$onFirstConnectPromise$), e["s-p"] ||= [], e["s-rc"] ||= [], e["s-pc"] ||= []), t.lazyLoad && (r.$fetchedCbList$ = []);
|
|
538
|
+
let i = r;
|
|
539
|
+
return e.__s_ghr = () => i, !t.lazyLoad && n.$flags$ & A.hasModernPropertyDecls && (t.state || t.prop) && we(e, r), i;
|
|
540
|
+
}, Ee = (e, t) => t in e, M = (e, t) => (0, console.error)(e, t), De = t.isTesting ? ["STENCIL:"] : ["%cstencil", "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"], Oe = (...e) => console.error(...De, ...e), N = (...e) => console.warn(...De, ...e), ke = /*@__PURE__*/ new Map(), Ae = /*@__PURE__*/ new Map(), je = "./", Me = (e, n, r) => {
|
|
541
|
+
let i = e.$tagName$.replace(/-/g, "_"), a = e.$lazyBundleId$;
|
|
542
|
+
if (t.isDev && typeof a != "string") {
|
|
543
|
+
Oe(`Trying to lazily load component <${e.$tagName$}> with style mode "${n.$modeName$}", but it does not exist.`);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
if (!a) return;
|
|
547
|
+
let o = !t.hotModuleReplacement && ke.get(a);
|
|
548
|
+
if (o) return o[i];
|
|
549
|
+
let s = Ae.get(a) ?? 0, c = [s > 0 ? `s-retry=${s}` : "", t.hotModuleReplacement && r ? `s-hmr=${r}` : ""].filter(Boolean).join("&");
|
|
550
|
+
return import(
|
|
551
|
+
/* @vite-ignore */
|
|
552
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
553
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
554
|
+
/* webpackMode: "lazy" */
|
|
555
|
+
`${je}${`${a}.entry.js${c ? "?" + c : ""}`}`
|
|
556
|
+
).then((e) => (t.hotModuleReplacement || (Ae.delete(a), ke.set(a, e)), e[i]), (e) => {
|
|
557
|
+
Ae.set(a, s + 1), M(e, n.$hostElement$);
|
|
558
|
+
});
|
|
559
|
+
}, P = /*@__PURE__*/ new Map(), Ne = [], Pe = () => !1, F = typeof window < "u" ? window : {}, Fe = F.HTMLElement || class {}, I = {
|
|
560
|
+
$flags$: 0,
|
|
561
|
+
$resourcesUrl$: "",
|
|
562
|
+
jmp: (e) => e(),
|
|
563
|
+
raf: (e) => requestAnimationFrame(e),
|
|
564
|
+
ael: (e, t, n, r) => e.addEventListener(t, n, r),
|
|
565
|
+
rel: (e, t, n, r) => e.removeEventListener(t, n, r),
|
|
566
|
+
ce: (e, t) => new CustomEvent(e, t)
|
|
567
|
+
}, Ie = /*@__PURE__*/ (() => {
|
|
568
|
+
let e = !1;
|
|
569
|
+
try {
|
|
570
|
+
F.document?.addEventListener("e", null, Object.defineProperty({}, "passive", { get() {
|
|
571
|
+
e = !0;
|
|
572
|
+
} }));
|
|
573
|
+
} catch {}
|
|
574
|
+
return e;
|
|
575
|
+
})(), Le = (e) => Promise.resolve(e), Re = t.constructableCSS ? /*@__PURE__*/ (() => {
|
|
576
|
+
try {
|
|
577
|
+
return F.document.adoptedStyleSheets ? typeof new CSSStyleSheet().replaceSync == "function" : !1;
|
|
578
|
+
} catch {}
|
|
579
|
+
return !1;
|
|
580
|
+
})() : !1, ze = Re ? !!F.document && Object.getOwnPropertyDescriptor(F.document.adoptedStyleSheets, "length").writable : !1, Be = 0, Ve = !1, He = [], L = [], Ue = [], We = () => F.document?.hidden ? setTimeout(Je, 16) : I.raf(Je), Ge = (e, t) => (n) => {
|
|
581
|
+
e.push(n), Ve || (Ve = !0, t && I.$flags$ & T.queueSync ? Ye(Je) : We());
|
|
582
|
+
}, Ke = (e) => {
|
|
583
|
+
for (let t = 0; t < e.length; t++) try {
|
|
584
|
+
e[t](performance.now());
|
|
585
|
+
} catch (e) {
|
|
586
|
+
M(e);
|
|
587
|
+
}
|
|
588
|
+
e.length = 0;
|
|
589
|
+
}, qe = (e, t) => {
|
|
590
|
+
let n = 0, r = 0;
|
|
591
|
+
for (; n < e.length && (r = performance.now()) < t;) try {
|
|
592
|
+
e[n++](r);
|
|
593
|
+
} catch (e) {
|
|
594
|
+
M(e);
|
|
595
|
+
}
|
|
596
|
+
n === e.length ? e.length = 0 : n !== 0 && e.splice(0, n);
|
|
597
|
+
}, Je = () => {
|
|
598
|
+
if (t.asyncQueue && Be++, Ke(He), t.asyncQueue) {
|
|
599
|
+
let e = (I.$flags$ & T.queueMask) === T.appLoaded ? performance.now() + 14 * Math.ceil(1 / 10 * Be) : Infinity;
|
|
600
|
+
qe(L, e), qe(Ue, e), L.length > 0 && (Ue.push(...L), L.length = 0), (Ve = He.length + L.length + Ue.length > 0) ? We() : Be = 0;
|
|
601
|
+
} else Ke(L), (Ve = He.length > 0) && We();
|
|
602
|
+
}, Ye = (e) => Le().then(e), Xe = /*@__PURE__*/ Ge(L, !0);
|
|
603
|
+
function Ze(e) {
|
|
604
|
+
if (!e || !Re) return;
|
|
605
|
+
let t = new CSSStyleSheet();
|
|
606
|
+
return t.replaceSync(e), t;
|
|
607
|
+
}
|
|
608
|
+
var Qe;
|
|
609
|
+
function $e(e) {
|
|
610
|
+
let n = t.shadowModeClosed && !!(e.$flags$ & A.shadowModeClosed), r = { mode: n ? "closed" : "open" }, i = this.constructor._registry;
|
|
611
|
+
i && (r.customElementRegistry = i), t.shadowDelegatesFocus && (r.delegatesFocus = !!(e.$flags$ & A.shadowDelegatesFocus)), t.shadowSlotAssignmentManual && e.$flags$ & A.shadowSlotAssignmentManual && (r.slotAssignment = "manual"), t.shadowClonable && (r.clonable = !!(e.$flags$ & A.shadowClonable)), t.shadowSerializable && (r.serializable = !!(e.$flags$ & A.shadowSerializable));
|
|
612
|
+
let a = this.attachShadow(r);
|
|
613
|
+
t.shadowModeClosed && n && (this.__shadowRoot = a), Qe === void 0 && (Qe = Ze("") ?? null), Qe && (ze ? a.adoptedStyleSheets.push(Qe) : a.adoptedStyleSheets = [...a.adoptedStyleSheets, Qe]);
|
|
614
|
+
}
|
|
615
|
+
var et = (e) => {
|
|
616
|
+
let t = B(e, "childNodes");
|
|
617
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && nt(t, e.tagName).forEach((e) => {
|
|
618
|
+
e.nodeType === E.ElementNode && e.tagName === "SLOT-FB" && (e.hidden = !!rt(e, R(e), !1).length);
|
|
619
|
+
});
|
|
620
|
+
let n = 0;
|
|
621
|
+
for (n = 0; n < t.length; n++) {
|
|
622
|
+
let e = t[n];
|
|
623
|
+
e.nodeType === E.ElementNode && B(e, "childNodes").length && et(e);
|
|
624
|
+
}
|
|
625
|
+
}, tt = (e) => {
|
|
626
|
+
let t = [];
|
|
627
|
+
for (let n = 0; n < e.length; n++) {
|
|
628
|
+
let r = e[n]["s-nr"] || void 0;
|
|
629
|
+
r && r.isConnected && t.push(r);
|
|
630
|
+
}
|
|
631
|
+
return t;
|
|
632
|
+
};
|
|
633
|
+
function nt(e, t, n) {
|
|
634
|
+
let r = 0, i = [], a;
|
|
635
|
+
for (; r < e.length; r++) {
|
|
636
|
+
if (a = e[r], a["s-sr"] && (!t || a["s-hn"] === t) && (n === void 0 || R(a) === n) && (i.push(a), n !== void 0)) return i;
|
|
637
|
+
i = [...i, ...nt(B(a, "childNodes"), t, n)];
|
|
638
|
+
}
|
|
639
|
+
return i;
|
|
640
|
+
}
|
|
641
|
+
var rt = (e, t, n = !0) => {
|
|
642
|
+
let r = [];
|
|
643
|
+
(n && e["s-sr"] || !e["s-sr"]) && r.push(e);
|
|
644
|
+
let i = e;
|
|
645
|
+
for (; i = i.nextSibling;) R(i) === t && (n || !i["s-sr"]) && r.push(i);
|
|
646
|
+
return r;
|
|
647
|
+
}, it = (e, t) => e.nodeType === E.ElementNode ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : typeof e["s-sa"] == "string" ? e["s-sa"] === t : t === "", at = (e, n, r, i) => {
|
|
648
|
+
if (e["s-ol"] && e["s-ol"].isConnected) return;
|
|
649
|
+
let a = document.createTextNode("");
|
|
650
|
+
if (a["s-nr"] = e, !n["s-cr"] || !n["s-cr"].parentNode) return;
|
|
651
|
+
let o = n["s-cr"].parentNode, s = r ? B(o, "prepend") : B(o, "appendChild");
|
|
652
|
+
if (t.hydrateClientSide && i !== void 0) {
|
|
653
|
+
a["s-oo"] = i;
|
|
654
|
+
let e = B(o, "childNodes"), t = [a];
|
|
655
|
+
e.forEach((e) => {
|
|
656
|
+
e["s-nr"] && t.push(e);
|
|
657
|
+
}), t.sort((e, t) => !e["s-oo"] || e["s-oo"] < (t["s-oo"] || 0) ? -1 : +(!t["s-oo"] || t["s-oo"] < e["s-oo"])), t.forEach((e) => s.call(o, e));
|
|
658
|
+
} else s.call(o, a);
|
|
659
|
+
e["s-ol"] = a, e["s-sh"] = n["s-hn"];
|
|
660
|
+
}, R = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
|
|
661
|
+
function ot(e) {
|
|
662
|
+
if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
|
|
663
|
+
let n = (n) => function(e) {
|
|
664
|
+
let r = [], i = this["s-sn"];
|
|
665
|
+
e?.flatten && (t.isDev ? console.error("Flattening is not supported for Stencil non-shadow slots. You can use `.childNodes` for nested slot fallback content.") : console.error("Flattening not supported for Stencil non-shadow slots"));
|
|
666
|
+
let a = this["s-cr"].parentElement;
|
|
667
|
+
return (a.__childNodes ? a.childNodes : tt(a.childNodes)).forEach((e) => {
|
|
668
|
+
i === R(e) && r.push(e);
|
|
669
|
+
}), n ? r.filter((e) => e.nodeType === E.ElementNode) : r;
|
|
670
|
+
}.bind(e);
|
|
671
|
+
e.assignedElements = n(!0), e.assignedNodes = n(!1);
|
|
672
|
+
}
|
|
673
|
+
function st(e) {
|
|
674
|
+
e.name = e["s-sn"] || "", e.dispatchEvent(new CustomEvent("slotchange", {
|
|
675
|
+
bubbles: !1,
|
|
676
|
+
cancelable: !1,
|
|
677
|
+
composed: !1
|
|
678
|
+
}));
|
|
679
|
+
}
|
|
680
|
+
function ct(e, t) {
|
|
681
|
+
if (t ||= e["s-ol"]?.parentElement, !t) return {
|
|
682
|
+
slotNode: null,
|
|
683
|
+
slotName: ""
|
|
684
|
+
};
|
|
685
|
+
let n = e["s-sn"] = R(e) || "";
|
|
686
|
+
return {
|
|
687
|
+
slotNode: nt(B(t, "childNodes"), t.tagName, n)[0],
|
|
688
|
+
slotName: n
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
var lt = (e) => {
|
|
692
|
+
dt(e), mt(e), pt(e), ht(e), gt(e), _t(e), vt(e), ft(e);
|
|
693
|
+
}, ut = (e) => {
|
|
694
|
+
if (e.__cloneNode) return;
|
|
695
|
+
let n = e.__cloneNode = e.cloneNode;
|
|
696
|
+
e.cloneNode = function(e) {
|
|
697
|
+
let r = this, i = t.shadowDom ? !!r.shadowRoot : !1, a = n.call(r, i ? e : !1);
|
|
698
|
+
if (t.slot && !i && e) {
|
|
699
|
+
let e = 0, t, n, r = [
|
|
700
|
+
"s-id",
|
|
701
|
+
"s-cr",
|
|
702
|
+
"s-lr",
|
|
703
|
+
"s-rc",
|
|
704
|
+
"s-sc",
|
|
705
|
+
"s-p",
|
|
706
|
+
"s-cn",
|
|
707
|
+
"s-sr",
|
|
708
|
+
"s-sn",
|
|
709
|
+
"s-hn",
|
|
710
|
+
"s-ol",
|
|
711
|
+
"s-nr",
|
|
712
|
+
"s-si",
|
|
713
|
+
"s-rf",
|
|
714
|
+
"s-scs"
|
|
715
|
+
], i = this.__childNodes || this.childNodes;
|
|
716
|
+
for (; e < i.length; e++) t = i[e]["s-nr"], n = r.every((t) => !i[e][t]), t && (a.__appendChild ? a.__appendChild(t.cloneNode(!0)) : a.appendChild(t.cloneNode(!0))), n && a.appendChild(i[e].cloneNode(!0));
|
|
717
|
+
}
|
|
718
|
+
return a;
|
|
719
|
+
};
|
|
720
|
+
}, dt = (e) => {
|
|
721
|
+
e.__appendChild || (e.__appendChild = e.appendChild, e.appendChild = function(e) {
|
|
722
|
+
let { slotName: t, slotNode: n } = ct(e, this);
|
|
723
|
+
if (n) {
|
|
724
|
+
at(e, n);
|
|
725
|
+
let r = rt(n, t), i = r[r.length - 1], a = B(B(i, "parentNode"), "insertBefore")(e, i.nextSibling);
|
|
726
|
+
return st(n), et(this), a;
|
|
727
|
+
}
|
|
728
|
+
return this.__appendChild(e);
|
|
729
|
+
});
|
|
730
|
+
}, ft = (e) => {
|
|
731
|
+
e.__removeChild || (e.__removeChild = e.removeChild, e.removeChild = function(e) {
|
|
732
|
+
if (e && e["s-sn"] !== void 0 && nt(this.__childNodes || this.childNodes, this.tagName, e["s-sn"]) && e.isConnected) e.remove(), et(this);
|
|
733
|
+
else return this.__removeChild(e);
|
|
734
|
+
});
|
|
735
|
+
}, pt = (e) => {
|
|
736
|
+
e.__prepend || (e.__prepend = e.prepend, e.prepend = function(...t) {
|
|
737
|
+
t.forEach((t) => {
|
|
738
|
+
typeof t == "string" && (t = this.ownerDocument.createTextNode(t));
|
|
739
|
+
let n = (t["s-sn"] = R(t)) || "", r = nt(B(this, "childNodes"), this.tagName, n)[0];
|
|
740
|
+
if (r) {
|
|
741
|
+
at(t, r, !0);
|
|
742
|
+
let e = rt(r, n)[0], i = B(B(e, "parentNode"), "insertBefore")(t, B(e, "nextSibling"));
|
|
743
|
+
return st(r), i;
|
|
744
|
+
}
|
|
745
|
+
return t.nodeType === 1 && t.getAttribute("slot") && (t.hidden = !0), e.__prepend(t);
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
}, mt = (e) => {
|
|
749
|
+
e.__append || (e.__append = e.append, e.append = function(...e) {
|
|
750
|
+
e.forEach((e) => {
|
|
751
|
+
typeof e == "string" && (e = this.ownerDocument.createTextNode(e)), this.appendChild(e);
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
}, ht = (e) => {
|
|
755
|
+
if (e.__insertAdjacentHTML) return;
|
|
756
|
+
let t = e.insertAdjacentHTML;
|
|
757
|
+
e.insertAdjacentHTML = function(e, n) {
|
|
758
|
+
if (e !== "afterbegin" && e !== "beforeend") return t.call(this, e, n);
|
|
759
|
+
let r = this.ownerDocument.createElement("_"), i;
|
|
760
|
+
if (r.innerHTML = n, e === "afterbegin") for (; i = r.firstChild;) this.prepend(i);
|
|
761
|
+
else if (e === "beforeend") for (; i = r.firstChild;) this.append(i);
|
|
762
|
+
};
|
|
763
|
+
}, gt = (e) => {
|
|
764
|
+
if (e.__insertBefore) return;
|
|
765
|
+
let t = e;
|
|
766
|
+
t.__insertBefore || (t.__insertBefore = e.insertBefore, e.insertBefore = function(e, t) {
|
|
767
|
+
let { slotName: n, slotNode: r } = ct(e, this), i = this.__childNodes ? this.childNodes : tt(this.childNodes);
|
|
768
|
+
if (r) {
|
|
769
|
+
let a = !1;
|
|
770
|
+
if (i.forEach((i) => {
|
|
771
|
+
if (i === t || t === null) {
|
|
772
|
+
if (a = !0, t === null || n !== t["s-sn"]) {
|
|
773
|
+
this.appendChild(e);
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
n === t["s-sn"] && (at(e, r), B(B(t, "parentNode"), "insertBefore")(e, t), st(r));
|
|
777
|
+
}
|
|
778
|
+
}), a) return e;
|
|
779
|
+
}
|
|
780
|
+
let a = t?.__parentNode;
|
|
781
|
+
return a && !this.isSameNode(a) ? this.appendChild(e) : this.__insertBefore(e, t);
|
|
782
|
+
});
|
|
783
|
+
}, _t = (e) => {
|
|
784
|
+
z("textContent", e), Object.defineProperty(e, "textContent", {
|
|
785
|
+
get: function() {
|
|
786
|
+
let e = "";
|
|
787
|
+
return (this.__childNodes ? this.childNodes : tt(this.childNodes)).forEach((t) => e += t.textContent || ""), e;
|
|
788
|
+
},
|
|
789
|
+
set: function(e) {
|
|
790
|
+
(this.__childNodes ? this.childNodes : tt(this.childNodes)).forEach((e) => {
|
|
791
|
+
e["s-ol"] && e["s-ol"].remove(), e.remove();
|
|
792
|
+
}), this.insertAdjacentHTML("beforeend", e);
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
}, vt = (e) => {
|
|
796
|
+
class t extends Array {
|
|
797
|
+
item(e) {
|
|
798
|
+
return this[e];
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
z("children", e), Object.defineProperty(e, "children", { get() {
|
|
802
|
+
return this.childNodes.filter((e) => e.nodeType === 1);
|
|
803
|
+
} }), Object.defineProperty(e, "childElementCount", { get() {
|
|
804
|
+
return this.children.length;
|
|
805
|
+
} }), z("firstChild", e), Object.defineProperty(e, "firstChild", { get() {
|
|
806
|
+
return this.childNodes[0] || null;
|
|
807
|
+
} }), z("lastChild", e), Object.defineProperty(e, "lastChild", { get() {
|
|
808
|
+
return this.childNodes[this.childNodes.length - 1] || null;
|
|
809
|
+
} }), z("childNodes", e), Object.defineProperty(e, "childNodes", { get() {
|
|
810
|
+
let e = new t();
|
|
811
|
+
return this["s-cr"] ? (e.push(...tt(this.__childNodes)), e) : (e.push(...Array.from(this.__childNodes)), e);
|
|
812
|
+
} });
|
|
813
|
+
}, yt = (e) => {
|
|
814
|
+
e && e.__nextSibling === void 0 && globalThis.Node && (bt(e), St(e), wt(e), e.nodeType === Node.ELEMENT_NODE && (xt(e), Ct(e)));
|
|
815
|
+
}, bt = (e) => {
|
|
816
|
+
e && !e.__nextSibling && (z("nextSibling", e), Object.defineProperty(e, "nextSibling", { get: function() {
|
|
817
|
+
let e = this["s-ol"]?.parentNode.childNodes, t = e?.indexOf(this);
|
|
818
|
+
return e && t > -1 ? e[t + 1] || null : this.__nextSibling;
|
|
819
|
+
} }));
|
|
820
|
+
}, xt = (e) => {
|
|
821
|
+
e && !e.__nextElementSibling && (z("nextElementSibling", e), Object.defineProperty(e, "nextElementSibling", { get: function() {
|
|
822
|
+
let e = this["s-ol"]?.parentNode.children, t = e?.indexOf(this);
|
|
823
|
+
return e && t > -1 ? e[t + 1] || null : this.__nextElementSibling;
|
|
824
|
+
} }));
|
|
825
|
+
}, St = (e) => {
|
|
826
|
+
e && !e.__previousSibling && (z("previousSibling", e), Object.defineProperty(e, "previousSibling", { get: function() {
|
|
827
|
+
let e = this["s-ol"]?.parentNode.childNodes, t = e?.indexOf(this);
|
|
828
|
+
return e && t > -1 ? e[t - 1] || null : this.__previousSibling;
|
|
829
|
+
} }));
|
|
830
|
+
}, Ct = (e) => {
|
|
831
|
+
e && !e.__previousElementSibling && (z("previousElementSibling", e), Object.defineProperty(e, "previousElementSibling", { get: function() {
|
|
832
|
+
let e = this["s-ol"]?.parentNode.children, t = e?.indexOf(this);
|
|
833
|
+
return e && t > -1 ? e[t - 1] || null : this.__previousElementSibling;
|
|
834
|
+
} }));
|
|
835
|
+
}, wt = (e) => {
|
|
836
|
+
e && !e.__parentNode && (z("parentNode", e), Object.defineProperty(e, "parentNode", {
|
|
837
|
+
get: function() {
|
|
838
|
+
return this["s-ol"]?.parentNode || this.__parentNode;
|
|
839
|
+
},
|
|
840
|
+
set: function(e) {
|
|
841
|
+
this.__parentNode = e;
|
|
842
|
+
}
|
|
843
|
+
}));
|
|
844
|
+
}, Tt = [
|
|
845
|
+
"children",
|
|
846
|
+
"nextElementSibling",
|
|
847
|
+
"previousElementSibling"
|
|
848
|
+
], Et = [
|
|
849
|
+
"childNodes",
|
|
850
|
+
"firstChild",
|
|
851
|
+
"lastChild",
|
|
852
|
+
"nextSibling",
|
|
853
|
+
"previousSibling",
|
|
854
|
+
"textContent",
|
|
855
|
+
"parentNode"
|
|
856
|
+
];
|
|
857
|
+
function z(e, t) {
|
|
858
|
+
if (!globalThis.Node || !globalThis.Element) return;
|
|
859
|
+
let n;
|
|
860
|
+
Tt.includes(e) ? n = Object.getOwnPropertyDescriptor(Element.prototype, e) : Et.includes(e) && (n = Object.getOwnPropertyDescriptor(Node.prototype, e)), n ||= Object.getOwnPropertyDescriptor(t, e), n && Object.defineProperty(t, "__" + e, n);
|
|
861
|
+
}
|
|
862
|
+
function B(e, t) {
|
|
863
|
+
if ("__" + t in e) {
|
|
864
|
+
let n = e["__" + t];
|
|
865
|
+
return typeof n == "function" ? n.bind(e) : n;
|
|
866
|
+
}
|
|
867
|
+
return typeof e[t] == "function" ? e[t].bind(e) : e[t];
|
|
868
|
+
}
|
|
869
|
+
var Dt = (e) => t.lazyLoad ? j(e)?.$hostElement$ : e, Ot = (e) => t.shadowModeClosed && e.__shadowRoot ? e.__shadowRoot : e.shadowRoot, kt = 0, V = (e, n = "") => {
|
|
870
|
+
if (t.profile && performance.mark) {
|
|
871
|
+
let t = `st:${e}:${n}:${kt++}`;
|
|
872
|
+
return performance.mark(t), () => performance.measure(`[Stencil] ${e}() <${n}>`, t);
|
|
873
|
+
}
|
|
874
|
+
return () => {};
|
|
875
|
+
}, At = (e, n) => t.profile && performance.mark ? (performance.getEntriesByName(e, "mark").length === 0 && performance.mark(e), () => {
|
|
876
|
+
performance.getEntriesByName(n, "measure").length === 0 && performance.measure(n, e);
|
|
877
|
+
}) : () => {};
|
|
878
|
+
function jt(e) {
|
|
879
|
+
return e.head?.querySelector("meta[name=\"csp-nonce\"]")?.getAttribute("content") ?? void 0;
|
|
880
|
+
}
|
|
881
|
+
var H = /*@__PURE__*/ new WeakMap(), Mt = (e) => {
|
|
882
|
+
let t = H.get(e);
|
|
883
|
+
return t || (t = /* @__PURE__ */ new Set(), H.set(e, t)), t;
|
|
884
|
+
}, Nt = (e, t, n = !1) => {
|
|
885
|
+
ze ? n ? e.adoptedStyleSheets.unshift(t) : e.adoptedStyleSheets.push(t) : e.adoptedStyleSheets = n ? [t, ...e.adoptedStyleSheets] : [...e.adoptedStyleSheets, t];
|
|
886
|
+
}, Pt = (e, t) => {
|
|
887
|
+
let n = new (e.defaultView ?? (e.ownerDocument?.defaultView) ?? F).CSSStyleSheet();
|
|
888
|
+
return n.replaceSync(t), n;
|
|
889
|
+
}, Ft = (e) => e ? typeof e == "string" ? e + pe : e : pe, It = (e, t, n) => {
|
|
890
|
+
if (Re && n) {
|
|
891
|
+
let n = P.get(e) ?? new CSSStyleSheet();
|
|
892
|
+
n.replaceSync(t), P.set(e, n);
|
|
893
|
+
} else P.set(e, t);
|
|
894
|
+
}, Lt = (e, n, r) => {
|
|
895
|
+
let i = zt(n, r);
|
|
896
|
+
if (!F.document) return i;
|
|
897
|
+
let a = P.get(i);
|
|
898
|
+
n.$flags$ & A.hasSlotRelocation && (a = Ft(a));
|
|
899
|
+
let o = t.hydrateServerSide && t.shadowModeClosed && n.$flags$ & A.shadowNeedsScopedCss && n.$flags$ & A.shadowModeClosed;
|
|
900
|
+
if (e.nodeType !== E.DocumentFragment && !o && (e = F.document), a) {
|
|
901
|
+
if (typeof a == "string") {
|
|
902
|
+
e = e.head || e;
|
|
903
|
+
let r = Mt(e), s, c = (t.hydrateClientSide || t.hotModuleReplacement) && e.querySelector(`[sty-id="${i}"]`);
|
|
904
|
+
if (c) c.textContent = a;
|
|
905
|
+
else if (!r.has(i)) {
|
|
906
|
+
s = F.document.createElement("style"), s.textContent = a;
|
|
907
|
+
let c = I.$nonce$ ?? jt(F.document);
|
|
908
|
+
if (c != null && s.setAttribute("nonce", c), (t.hydrateServerSide && (n.$flags$ & A.scopedCssEncapsulation || n.$flags$ & A.shadowNeedsScopedCss || n.$flags$ & A.shadowDomEncapsulation) || t.hotModuleReplacement) && s.setAttribute(de, i), t.hotModuleReplacement && n.$flags$ & A.hasSlotRelocation && s.setAttribute("data-slot-fb", ""), !(n.$flags$ & A.shadowDomEncapsulation)) {
|
|
909
|
+
if (e.nodeName === "HEAD") {
|
|
910
|
+
let t = e.querySelectorAll("link[rel=preconnect]"), n = t.length > 0 ? t[t.length - 1].nextSibling : e.querySelector("style");
|
|
911
|
+
e.insertBefore(s, n?.parentNode === e ? n : null);
|
|
912
|
+
} else if ("host" in e) {
|
|
913
|
+
if (Re) {
|
|
914
|
+
let t = Pt(e, a);
|
|
915
|
+
Nt(e, t, !0);
|
|
916
|
+
} else {
|
|
917
|
+
let n = e.querySelector("style");
|
|
918
|
+
n && !t.hotModuleReplacement ? n.textContent = a + n.textContent : e.prepend(s);
|
|
919
|
+
}
|
|
920
|
+
} else e.append(s);
|
|
921
|
+
}
|
|
922
|
+
n.$flags$ & A.shadowDomEncapsulation && (o ? e.prepend(s) : e.insertBefore(s, null)), r && r.add(i);
|
|
923
|
+
}
|
|
924
|
+
} else if (t.constructableCSS) {
|
|
925
|
+
let n = Mt(e);
|
|
926
|
+
if (!n.has(i)) {
|
|
927
|
+
let r = e.defaultView ?? e.ownerDocument.defaultView, o;
|
|
928
|
+
if (a.constructor === r.CSSStyleSheet) o = a;
|
|
929
|
+
else {
|
|
930
|
+
o = new r.CSSStyleSheet();
|
|
931
|
+
for (let e = 0; e < a.cssRules.length; e++) o.insertRule(a.cssRules[e].cssText, e);
|
|
932
|
+
}
|
|
933
|
+
if (Nt(e, o), n.add(i), t.hydrateClientSide && "host" in e) {
|
|
934
|
+
let t = e.querySelector(`[${de}="${i}"]`);
|
|
935
|
+
t && Xe(() => t.remove());
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
return i;
|
|
941
|
+
}, Rt = (e) => {
|
|
942
|
+
let n = e.$cmpMeta$, r = e.$hostElement$, i = n.$flags$, a = V("attachStyles", n.$tagName$), o;
|
|
943
|
+
o = (t.shadowDom ? Ot(r) : null) || (t.hydrateServerSide && t.shadowModeClosed && i & A.shadowNeedsScopedCss && i & A.shadowModeClosed ? r : r.getRootNode());
|
|
944
|
+
let s = Lt(o, n, e.$modeName$);
|
|
945
|
+
(t.shadowDom || t.scoped) && t.cssAnnotations && i & A.needsScopedEncapsulation && (r["s-sc"] = s, r.classList.add(s + "-h")), a();
|
|
946
|
+
}, zt = (e, n) => "sc-" + (t.mode && n && e.$flags$ & A.hasMode ? e.$tagName$ + "-" + n : e.$tagName$), Bt = (e) => e.replace(/\/\*!@([^/]+)\*\/[^{]+\{/g, "$1{"), Vt = () => {
|
|
947
|
+
if (!F.document) return;
|
|
948
|
+
let e = F.document.querySelectorAll(`[${de}]`), t = 0;
|
|
949
|
+
for (; t < e.length; t++) {
|
|
950
|
+
let n = e[t].getAttribute(de), r = P.get(n), i = r === void 0 || r instanceof CSSStyleSheet;
|
|
951
|
+
It(n, Bt(e[t].innerHTML), i);
|
|
952
|
+
}
|
|
953
|
+
}, Ht = (e) => e != null && e !== void 0, Ut = (e) => (e = typeof e, e === "object" || e === "function"), Wt = () => globalThis[Symbol.for("stencil.preact-signals-core")] ??= n, U = (e, t) => Wt().effect(e, t);
|
|
954
|
+
function Gt(e, t) {
|
|
955
|
+
return Wt().signal(e, t);
|
|
956
|
+
}
|
|
957
|
+
var Kt = (e, n, r) => {
|
|
958
|
+
let i = Dt(e);
|
|
959
|
+
return { emit: (e) => (t.isDev && !i.isConnected && N(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`), qt(i, n, {
|
|
960
|
+
bubbles: !!(r & ye.Bubbles),
|
|
961
|
+
composed: !!(r & ye.Composed),
|
|
962
|
+
cancelable: !!(r & ye.Cancellable),
|
|
963
|
+
detail: e
|
|
964
|
+
})) };
|
|
965
|
+
}, qt = (e, t, n) => {
|
|
966
|
+
let r = I.ce(t, n);
|
|
967
|
+
return e.dispatchEvent(r), r;
|
|
968
|
+
}, Jt = () => customElements, Yt = (e) => e.constructor._registry ?? Jt(), W = /* @__PURE__ */ new WeakMap(), Xt = (e) => {
|
|
969
|
+
if (!t.vdomSignals) return;
|
|
970
|
+
let n = W.get(e);
|
|
971
|
+
n && (n.forEach((e) => e()), W.delete(e));
|
|
972
|
+
}, Zt = (e, n, r, i, a, o, s) => {
|
|
973
|
+
if (r === i) return;
|
|
974
|
+
if (t.vdomSignals && Qn(i)) {
|
|
975
|
+
let t = W.get(e) ?? /* @__PURE__ */ new Map();
|
|
976
|
+
t.get(n)?.(), W.has(e) || W.set(e, t);
|
|
977
|
+
let s = r;
|
|
978
|
+
t.set(n, U(() => {
|
|
979
|
+
let t = i.value;
|
|
980
|
+
Zt(e, n, s, t, a, o), s = t;
|
|
981
|
+
}));
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
if (t.vdomSignals && Qn(r)) {
|
|
985
|
+
let t = W.get(e);
|
|
986
|
+
t && (t.get(n)?.(), t.delete(n));
|
|
987
|
+
}
|
|
988
|
+
let c = Ee(e, n), l = n.toLowerCase();
|
|
989
|
+
if (t.vdomClass && n === "class") {
|
|
990
|
+
let n = e.classList, a = tn(r), o = tn(i);
|
|
991
|
+
if (t.hydrateClientSide && (e["s-si"] || e["s-sc"]) && s) {
|
|
992
|
+
let t = e["s-sc"] || e["s-si"];
|
|
993
|
+
o.push(t), a.forEach((e) => {
|
|
994
|
+
e.startsWith(t) && o.push(e);
|
|
995
|
+
}), o = [...new Set(o)].filter((e) => e), n.add(...o);
|
|
996
|
+
} else n.remove(...a.filter((e) => e && !o.includes(e))), n.add(...o.filter((e) => e && !a.includes(e)));
|
|
997
|
+
} else if (t.vdomStyle && n === "style") {
|
|
998
|
+
if (t.updatable) for (let n in r) i && i[n] != null || (!t.hydrateServerSide && n.includes("-") ? e.style.removeProperty(n) : e.style[n] = "");
|
|
999
|
+
for (let n in i) r && i[n] === r[n] || (!t.hydrateServerSide && n.includes("-") ? e.style.setProperty(n, i[n]) : e.style[n] = i[n]);
|
|
1000
|
+
} else if (!(t.vdomKey && n === "key")) {
|
|
1001
|
+
if (t.vdomRef && n === "ref") i && kn(i, e);
|
|
1002
|
+
else if (t.vdomListener && (t.lazyLoad ? !c : !e.__lookupSetter__(n)) && n[0] === "o" && n[1] === "n") {
|
|
1003
|
+
if (n = n[2] === "-" ? n.slice(3) : Ee(F, l) ? l.slice(2) : l[2] + n.slice(3), r || i) {
|
|
1004
|
+
let t = n.endsWith(nn);
|
|
1005
|
+
n = n.replace(/*@__PURE__*/ RegExp(nn + "$"), ""), r && I.rel(e, n, r, t), i && I.ael(e, n, i, t);
|
|
1006
|
+
}
|
|
1007
|
+
} else if (t.vdomPropOrAttrPrefix && n[0] === "a" && n.startsWith("attr:")) {
|
|
1008
|
+
let r = n.slice(5), a;
|
|
1009
|
+
if (t.member) {
|
|
1010
|
+
let t = j(e);
|
|
1011
|
+
if (t && t.$cmpMeta$ && t.$cmpMeta$.$members$) {
|
|
1012
|
+
let e = t.$cmpMeta$.$members$[r];
|
|
1013
|
+
e && e[1] && (a = e[1]);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
a ||= r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i == null || i === !1 ? (i !== !1 || e.getAttribute(a) === "") && e.removeAttribute(a) : e.setAttribute(a, i === !0 ? "" : i);
|
|
1017
|
+
return;
|
|
1018
|
+
} else if (t.vdomPropOrAttrPrefix && n[0] === "p" && n.startsWith("prop:")) {
|
|
1019
|
+
let t = n.slice(5);
|
|
1020
|
+
try {
|
|
1021
|
+
e[t] = i;
|
|
1022
|
+
} catch {}
|
|
1023
|
+
return;
|
|
1024
|
+
} else if (t.vdomPropOrAttr) {
|
|
1025
|
+
let s = Ut(i);
|
|
1026
|
+
if (!t.lazyLoad) {
|
|
1027
|
+
let t = l.startsWith("aria-") || l.startsWith("data-");
|
|
1028
|
+
if (!c && !t && e.tagName?.includes("-") && e.tagName !== "SLOT-FB" && !customElements.get(e.tagName.toLowerCase()) && (e["s-pp"] ||= /* @__PURE__ */ new Map(), e["s-pp"].set(n, i), s || /[A-Z]/.test(n))) return;
|
|
1029
|
+
}
|
|
1030
|
+
if ((c || s && i !== null) && !a) try {
|
|
1031
|
+
if (e.tagName.includes("-")) e[n] !== i && (e[n] = i);
|
|
1032
|
+
else {
|
|
1033
|
+
let t = i ?? "";
|
|
1034
|
+
n === "list" ? c = !1 : (r == null || e[n] !== t) && (typeof e.__lookupSetter__(n) == "function" ? e[n] = t : e.setAttribute(n, t));
|
|
1035
|
+
}
|
|
1036
|
+
} catch {}
|
|
1037
|
+
let u = !1;
|
|
1038
|
+
t.vdomXlink && l !== (l = l.replace(/^xlink:?/, "")) && (n = l, u = !0), i == null || i === !1 ? (i !== !1 || e.getAttribute(n) === "" || o & C.isHost && !$t(n)) && (t.vdomXlink && u ? e.removeAttributeNS(me, n) : e.removeAttribute(n)) : (!c || o & C.isHost || a) && !s && e.nodeType === E.ElementNode && (i = i === !0 ? "" : i, t.vdomXlink && u ? e.setAttributeNS(me, n, i) : e.setAttribute(n, i));
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}, Qt = /*@__PURE__*/ new Set([
|
|
1042
|
+
"draggable",
|
|
1043
|
+
"contenteditable",
|
|
1044
|
+
"spellcheck"
|
|
1045
|
+
]), $t = (e) => Qt.has(e) || e.startsWith("aria-"), en = /\s/, tn = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(en)), nn = "Capture", rn = (e, n, r, i) => {
|
|
1046
|
+
let a = e && e.$attrs$ || {}, o = n.$attrs$ || {}, s = Object.keys(a), c = Object.keys(o);
|
|
1047
|
+
if (!t.updatable && c.length === 0 || t.updatable && s.length === 0 && c.length === 0) return;
|
|
1048
|
+
let l = n.$elm$.nodeType === E.DocumentFragment && n.$elm$.host ? n.$elm$.host : n.$elm$;
|
|
1049
|
+
if (t.updatable) for (let e of an(s)) e in o || Zt(l, e, a[e], void 0, r, n.$flags$, i);
|
|
1050
|
+
for (let e of an(c)) Zt(l, e, a[e], o[e], r, n.$flags$, i);
|
|
1051
|
+
};
|
|
1052
|
+
function an(e) {
|
|
1053
|
+
return t.vdomRef && e.includes("ref") ? [...e.filter((e) => e !== "ref"), "ref"] : e;
|
|
1054
|
+
}
|
|
1055
|
+
var on, sn, G, cn, ln = !1, un = !1, dn = !1, K = !1, fn = [], pn = [], mn = /* @__PURE__ */ new WeakMap(), hn = (e) => {
|
|
1056
|
+
let t = e.$elm$;
|
|
1057
|
+
t && (gn(t), Xt(t)), e.$children$?.forEach(hn);
|
|
1058
|
+
}, gn = (e) => {
|
|
1059
|
+
let t = mn.get(e);
|
|
1060
|
+
t && (t(), mn.delete(e));
|
|
1061
|
+
}, _n = (e, t) => {
|
|
1062
|
+
mn.set(e, U(() => {
|
|
1063
|
+
e.data = String(t.value);
|
|
1064
|
+
}));
|
|
1065
|
+
}, vn = (e, n, r) => {
|
|
1066
|
+
let i = n.$children$[r], a = 0, o, s, c;
|
|
1067
|
+
if (t.slotRelocation && !ln && (dn = !0, i.$tag$ === "slot" && (i.$flags$ |= i.$children$ ? C.isSlotFallback : C.isSlotReference)), t.isDev && i.$elm$ && Oe(`The JSX ${i.$text$ === null ? `"${String(i.$tag$)}" element` : `"${i.$text$}" text`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`), t.vdomText && i.$text$ != null) o = i.$elm$ = F.document.createTextNode(i.$text$), t.vdomSignals && i.$signal$ && _n(o, i.$signal$);
|
|
1068
|
+
else if (t.slotRelocation && i.$flags$ & C.isSlotReference) o = i.$elm$ = t.isDebug || t.hydrateServerSide ? Nn(i) : F.document.createTextNode(""), typeof i.$attrs$?.slot == "string" && (o["s-sa"] = i.$attrs$.slot), t.vdomAttribute && rn(null, i, K);
|
|
1069
|
+
else {
|
|
1070
|
+
if (t.svg && !K && (K = i.$tag$ === "svg"), !F.document) throw Error("No DOM environment available for rendering.");
|
|
1071
|
+
let n = !ln && t.slotRelocation && i.$flags$ & C.isSlotFallback ? "slot-fb" : i.$tag$, r = cn !== F.customElements && n.includes("-") ? { customElementRegistry: cn } : void 0;
|
|
1072
|
+
if (o = i.$elm$ = t.svg && K ? F.document.createElementNS(xe, n) : F.document.createElement(n, r), t.svg && K && i.$tag$ === "foreignObject" && (K = !1), t.vdomAttribute && rn(null, i, K), (t.scoped || t.hydrateServerSide && A.shadowNeedsScopedCss) && Ht(on) && o["s-si"] !== on && o.classList.add(o["s-si"] = on), i.$children$) {
|
|
1073
|
+
let t = i.$tag$ === "template" ? o.content : o;
|
|
1074
|
+
for (a = 0; a < i.$children$.length; ++a) s = vn(e, i, a), s && t.appendChild(s);
|
|
1075
|
+
}
|
|
1076
|
+
t.svg && (i.$tag$ === "svg" ? K = !1 : o.tagName === "foreignObject" && (K = !0));
|
|
1077
|
+
}
|
|
1078
|
+
return o["s-hn"] = G, t.slotRelocation && i.$flags$ & (C.isSlotFallback | C.isSlotReference) && (o["s-sr"] = !0, o["s-cr"] = sn, o["s-sn"] = i.$name$ || "", o["s-rf"] = i.$attrs$?.ref, ot(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === i.$tag$ && e.$elm$ && yn(e.$elm$), (t.scoped || t.hydrateServerSide && A.shadowNeedsScopedCss) && jn(sn, o, n.$elm$, e?.$elm$)), o;
|
|
1079
|
+
}, yn = (e) => {
|
|
1080
|
+
I.$flags$ |= T.isTmpDisconnected;
|
|
1081
|
+
let t = e.closest(G.toLowerCase());
|
|
1082
|
+
if (t != null) {
|
|
1083
|
+
let n = Array.from(t.__childNodes || t.childNodes).find((e) => e["s-cr"]), r = Array.from(e.__childNodes || e.childNodes);
|
|
1084
|
+
for (let e of n ? r.reverse() : r) e["s-sh"] != null && (Y(t, e, n ?? null), e["s-sh"] = void 0, dn = !0);
|
|
1085
|
+
}
|
|
1086
|
+
I.$flags$ &= ~T.isTmpDisconnected;
|
|
1087
|
+
}, bn = (e, t) => {
|
|
1088
|
+
I.$flags$ |= T.isTmpDisconnected;
|
|
1089
|
+
let n = Array.from(e.__childNodes || e.childNodes);
|
|
1090
|
+
if (e["s-sr"]) {
|
|
1091
|
+
let t = e;
|
|
1092
|
+
for (; t = t.nextSibling;) t && t["s-sn"] === e["s-sn"] && t["s-sh"] === G && n.push(t);
|
|
1093
|
+
}
|
|
1094
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
|
1095
|
+
let r = n[e];
|
|
1096
|
+
r["s-hn"] !== G && r["s-ol"] && (Y(Tn(r).parentNode, r, Tn(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, dn = !0), t && bn(r, t);
|
|
1097
|
+
}
|
|
1098
|
+
I.$flags$ &= ~T.isTmpDisconnected;
|
|
1099
|
+
}, xn = (e, n, r, i, a, o) => {
|
|
1100
|
+
let s = t.slotRelocation && e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
1101
|
+
if (t.shadowDom && s.tagName === G) {
|
|
1102
|
+
let e = Ot(s);
|
|
1103
|
+
e && (s = e);
|
|
1104
|
+
}
|
|
1105
|
+
for (r.$tag$ === "template" && (s = s.content); a <= o; ++a) i[a] && (c = vn(null, r, a), c && (i[a].$elm$ = c, Y(s, c, t.slotRelocation ? Tn(n) : n)));
|
|
1106
|
+
}, Sn = (e, n, r) => {
|
|
1107
|
+
for (let i = n; i <= r; ++i) {
|
|
1108
|
+
let n = e[i];
|
|
1109
|
+
if (n) {
|
|
1110
|
+
let e = n.$elm$;
|
|
1111
|
+
On(n), t.vdomSignals && hn(n), e && (t.slotRelocation && (un = !0, e["s-ol"] ? e["s-ol"].remove() : bn(e, !0)), e.remove());
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}, Cn = (e, n, r, i, a = !1) => {
|
|
1115
|
+
let o = 0, s = 0, c = 0, l = 0, u = n.length - 1, d = n[0], f = n[u], p = i.length - 1, m = i[0], h = i[p], g, _, v = r.$tag$ === "template" ? e.content : e;
|
|
1116
|
+
for (; o <= u && s <= p;) if (d == null) d = n[++o];
|
|
1117
|
+
else if (f == null) f = n[--u];
|
|
1118
|
+
else if (m == null) m = i[++s];
|
|
1119
|
+
else if (h == null) h = i[--p];
|
|
1120
|
+
else if (wn(d, m, a)) q(d, m, a), d = n[++o], m = i[++s];
|
|
1121
|
+
else if (wn(f, h, a)) q(f, h, a), f = n[--u], h = i[--p];
|
|
1122
|
+
else if (wn(d, h, a)) t.slotRelocation && (d.$tag$ === "slot" || h.$tag$ === "slot") && bn(d.$elm$.parentNode, !1), q(d, h, a), Y(v, d.$elm$, f.$elm$.nextSibling), d = n[++o], h = i[--p];
|
|
1123
|
+
else if (wn(f, m, a)) t.slotRelocation && (d.$tag$ === "slot" || h.$tag$ === "slot") && bn(f.$elm$.parentNode, !1), q(f, m, a), Y(v, f.$elm$, d.$elm$), f = n[--u], m = i[++s];
|
|
1124
|
+
else {
|
|
1125
|
+
if (c = -1, t.vdomKey) {
|
|
1126
|
+
for (l = o; l <= u; ++l) if (n[l] && n[l].$key$ !== null && n[l].$key$ === m.$key$) {
|
|
1127
|
+
c = l;
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
t.vdomKey && c >= 0 ? (_ = n[c], _.$tag$ === m.$tag$ ? (q(_, m, a), n[c] = void 0, g = _.$elm$) : g = vn(n && n[s], r, s), m = i[++s]) : (g = vn(n && n[s], r, s), m = i[++s]), g && (t.slotRelocation ? Y(Tn(d.$elm$).parentNode, g, Tn(d.$elm$)) : Y(d.$elm$.parentNode, g, d.$elm$));
|
|
1132
|
+
}
|
|
1133
|
+
o > u ? xn(e, i[p + 1] == null ? null : i[p + 1].$elm$, r, i, s, p) : t.updatable && s > p && Sn(n, o, u);
|
|
1134
|
+
}, wn = (e, n, r = !1) => e.$tag$ === n.$tag$ ? t.slotRelocation && e.$tag$ === "slot" ? e.$name$ === n.$name$ : t.vdomKey && !r ? e.$key$ === n.$key$ : (r && !e.$key$ && n.$key$ && (e.$key$ = n.$key$), !0) : !1, Tn = (e) => e && e["s-ol"] || e, q = (e, n, r = !1) => {
|
|
1135
|
+
let i = n.$elm$ = e.$elm$, a = e.$children$, o = n.$children$, s = n.$tag$, c = n.$text$, l;
|
|
1136
|
+
!t.vdomText || c == null ? (t.svg && (K = s === "svg" || s !== "foreignObject" && K), (t.vdomAttribute || t.reflect) && (t.slot && s === "slot" && !ln && e.$name$ !== n.$name$ && (n.$elm$["s-sn"] = n.$name$ || "", yn(n.$elm$.parentElement)), rn(e, n, K, r)), t.updatable && a !== null && o !== null ? Cn(i, a, n, o, r) : o === null ? !r && t.updatable && a !== null ? Sn(a, 0, a.length - 1) : t.hydrateClientSide && r && t.updatable && a !== null && o === null && (n.$children$ = a) : (t.updatable && t.vdomText && e.$text$ !== null && (i.textContent = ""), xn(i, null, n, o, 0, o.length - 1)), t.svg && K && s === "svg" && (K = !1)) : t.vdomText && t.slotRelocation && (l = i["s-cr"]) ? l.parentNode.textContent = c : t.vdomText && (t.vdomSignals && n.$signal$ ? n.$signal$ !== e.$signal$ && (gn(i), _n(i, n.$signal$)) : (t.vdomSignals && e.$signal$ && gn(i), e.$text$ !== c && (i.data = c)));
|
|
1137
|
+
}, J = [], En = () => {
|
|
1138
|
+
for (let e of J.slice()) {
|
|
1139
|
+
let t = e.$nodeToRelocate$;
|
|
1140
|
+
if (!t["s-sr"]) continue;
|
|
1141
|
+
let n = rt(t, t["s-sn"] || "", !1);
|
|
1142
|
+
for (let t of n) {
|
|
1143
|
+
if (!t["s-ol"]) continue;
|
|
1144
|
+
let n = J.find((e) => e.$nodeToRelocate$ === t);
|
|
1145
|
+
n || (n = { $nodeToRelocate$: t }, J.push(n)), n.$slotRefNode$ = e.$slotRefNode$, e.$slotRefNode$ && (t["s-sh"] = e.$slotRefNode$["s-hn"]);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}, Dn = (e) => {
|
|
1149
|
+
let t, n, r, i = e.__childNodes || e.childNodes;
|
|
1150
|
+
for (let e of i) {
|
|
1151
|
+
if (e["s-sr"] && (t = e["s-cr"]) && t.parentNode) {
|
|
1152
|
+
n = t.parentNode.__childNodes || t.parentNode.childNodes;
|
|
1153
|
+
let i = e["s-sn"];
|
|
1154
|
+
for (r = n.length - 1; r >= 0; r--) if (t = n[r], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (!t["s-sh"] || t["s-sh"] !== e["s-hn"])) {
|
|
1155
|
+
if (it(t, i)) {
|
|
1156
|
+
let n = J.find((e) => e.$nodeToRelocate$ === t);
|
|
1157
|
+
un = !0, t["s-sn"] = t["s-sn"] || i, n ? (n.$nodeToRelocate$["s-sh"] = e["s-hn"], n.$slotRefNode$ = e) : (t["s-sh"] = e["s-hn"], J.push({
|
|
1158
|
+
$slotRefNode$: e,
|
|
1159
|
+
$nodeToRelocate$: t
|
|
1160
|
+
})), t["s-sr"] && J.map((e) => {
|
|
1161
|
+
it(e.$nodeToRelocate$, t["s-sn"]) && (n = J.find((e) => e.$nodeToRelocate$ === t), n && !e.$slotRefNode$ && (e.$slotRefNode$ = n.$slotRefNode$));
|
|
1162
|
+
});
|
|
1163
|
+
} else J.some((e) => e.$nodeToRelocate$ === t) || J.push({ $nodeToRelocate$: t });
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
e.nodeType === E.ElementNode && Dn(e);
|
|
1167
|
+
}
|
|
1168
|
+
}, On = (e) => {
|
|
1169
|
+
t.vdomRef && (e.$attrs$ && e.$attrs$.ref && fn.push(() => e.$attrs$.ref(null)), e.$children$ && e.$children$.map(On));
|
|
1170
|
+
}, kn = (e, n) => {
|
|
1171
|
+
t.vdomRef && pn.push(() => e(n));
|
|
1172
|
+
}, An = () => {
|
|
1173
|
+
t.vdomRef && (fn.forEach((e) => e()), fn.length = 0, pn.forEach((e) => e()), pn.length = 0);
|
|
1174
|
+
}, Y = (e, n, r, i) => {
|
|
1175
|
+
if (t.slotRelocation) {
|
|
1176
|
+
if (t.scoped && typeof n["s-sn"] == "string" && n["s-sr"] && n["s-cr"]) jn(n["s-cr"], n, e, n.parentElement);
|
|
1177
|
+
else if (typeof n["s-sn"] == "string") {
|
|
1178
|
+
let a = n["s-hn"] && e.closest?.(n["s-hn"]);
|
|
1179
|
+
(t.lightDomPatches || t.slotChildNodes || t.patchAll && a && j(a)?.$cmpMeta$.$flags$ & A.patchAll) && e.getRootNode().nodeType !== Se.DOCUMENT_FRAGMENT_NODE && wt(n), e.insertBefore(n, r);
|
|
1180
|
+
let { slotNode: o } = ct(n);
|
|
1181
|
+
return o && !i && st(o), n;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
return t.slotRelocation && e?.__insertBefore ? e.__insertBefore(n, r) : e?.insertBefore(n, r);
|
|
1185
|
+
};
|
|
1186
|
+
function jn(e, t, n, r) {
|
|
1187
|
+
let i;
|
|
1188
|
+
if (e && typeof t["s-sn"] == "string" && t["s-sr"] && e.parentNode && e.parentNode["s-sc"] && (i = t["s-si"] || e.parentNode["s-sc"])) {
|
|
1189
|
+
let e = t["s-sn"], a = t["s-hn"];
|
|
1190
|
+
if (n.classList?.add(i + "-s"), r && r.classList?.contains(i + "-s")) {
|
|
1191
|
+
let t = (r.__childNodes || r.childNodes)[0], n = !1;
|
|
1192
|
+
for (; t;) {
|
|
1193
|
+
if (t["s-sn"] !== e && t["s-hn"] === a && t["s-sr"]) {
|
|
1194
|
+
n = !0;
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
t = t.nextSibling;
|
|
1198
|
+
}
|
|
1199
|
+
n || r.classList.remove(i + "-s");
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
var Mn = (e, n, r = !1) => {
|
|
1204
|
+
let i = e.$hostElement$, a = e.$cmpMeta$, o = e.$vnode$ || Q(null, null), s = rr(n) ? n : tr(null, null, n);
|
|
1205
|
+
if (G = i.tagName, cn = Yt(i), t.isDev && Array.isArray(n) && n.some(rr)) throw Error(`The <Host> must be the single root component.
|
|
1206
|
+
Looks like the render() function of "${G.toLowerCase()}" is returning an array that contains the <Host>.
|
|
1207
|
+
|
|
1208
|
+
The render() function should look like this instead:
|
|
1209
|
+
|
|
1210
|
+
render() {
|
|
1211
|
+
// Do not return an array
|
|
1212
|
+
return (
|
|
1213
|
+
<Host>{content}</Host>
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
`);
|
|
1217
|
+
if (t.reflect && a.$attrsToReflect$ && (s.$attrs$ = s.$attrs$ || {}, a.$attrsToReflect$.forEach(([n, r]) => {
|
|
1218
|
+
t.serializer && e.$serializerValues$.has(n) ? s.$attrs$[r] = e.$serializerValues$.get(n) : s.$attrs$[r] = i[n];
|
|
1219
|
+
})), r && s.$attrs$) for (let e of Object.keys(s.$attrs$)) i.hasAttribute(e) && ![
|
|
1220
|
+
"key",
|
|
1221
|
+
"ref",
|
|
1222
|
+
"style",
|
|
1223
|
+
"class"
|
|
1224
|
+
].includes(e) && (s.$attrs$[e] = i[e]);
|
|
1225
|
+
if (s.$tag$ = null, s.$flags$ |= C.isHost, e.$vnode$ = s, s.$elm$ = o.$elm$ = t.shadowDom && Ot(i) || i, (t.scoped || t.shadowDom) && (on = i["s-sc"]), ln = !!(a.$flags$ & A.shadowDomEncapsulation) && !(a.$flags$ & A.shadowNeedsScopedCss), t.slotRelocation && (sn = i["s-cr"], un = !1), q(o, s, r), t.slotRelocation) {
|
|
1226
|
+
if (I.$flags$ |= T.isTmpDisconnected, dn) {
|
|
1227
|
+
Dn(s.$elm$), En();
|
|
1228
|
+
for (let e of J) {
|
|
1229
|
+
let n = e.$nodeToRelocate$;
|
|
1230
|
+
if (!n["s-ol"] && F.document) {
|
|
1231
|
+
let e = t.isDebug || t.hydrateServerSide ? Pn(n) : F.document.createTextNode("");
|
|
1232
|
+
e["s-nr"] = n, Y(n.parentNode, n["s-ol"] = e, n, r);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
for (let e of J) {
|
|
1236
|
+
let n = e.$nodeToRelocate$, i = e.$slotRefNode$;
|
|
1237
|
+
if (n.nodeType === E.ElementNode && r && (n["s-ih"] = !!n.hidden), i) {
|
|
1238
|
+
let e = i.parentNode, a = i.nextSibling;
|
|
1239
|
+
if (!t.hydrateServerSide && a && a.nodeType === E.ElementNode) {
|
|
1240
|
+
let t = n["s-ol"]?.previousSibling;
|
|
1241
|
+
for (; t;) {
|
|
1242
|
+
let r = t["s-nr"] ?? null;
|
|
1243
|
+
if (r && r["s-sn"] === n["s-sn"] && e === (r.__parentNode || r.parentNode)) {
|
|
1244
|
+
for (r = r.nextSibling; r === n || r?.["s-sr"];) r = r?.nextSibling;
|
|
1245
|
+
if (!r || !r["s-nr"]) {
|
|
1246
|
+
a = r;
|
|
1247
|
+
break;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
t = t.previousSibling;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
let o = n.__parentNode || n.parentNode, s = n.__nextSibling || n.nextSibling;
|
|
1254
|
+
if ((!a && e !== o || s !== a) && n !== a) {
|
|
1255
|
+
if (Y(e, n, a, r), n.nodeType === E.CommentNode && n.nodeValue.startsWith("s-nt-")) {
|
|
1256
|
+
let e = F.document.createTextNode(n.nodeValue.replace(/^s-nt-/, ""));
|
|
1257
|
+
e["s-hn"] = n["s-hn"], e["s-sn"] = n["s-sn"], e["s-sh"] = n["s-sh"], e["s-sr"] = n["s-sr"], e["s-ol"] = n["s-ol"], e["s-ol"]["s-nr"] = e, Y(n.parentNode, e, n, r), n.parentNode.removeChild(n);
|
|
1258
|
+
}
|
|
1259
|
+
n.nodeType === E.ElementNode && n.tagName !== "SLOT-FB" && (n.hidden = n["s-ih"] ?? !1);
|
|
1260
|
+
}
|
|
1261
|
+
n && typeof i["s-rf"] == "function" && i["s-rf"](i);
|
|
1262
|
+
} else n.nodeType === E.ElementNode && (n.hidden = !0);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
un && et(s.$elm$), I.$flags$ &= ~T.isTmpDisconnected, J.length = 0;
|
|
1266
|
+
}
|
|
1267
|
+
if (t.slotRelocation && !ln && !(a.$flags$ & A.shadowDomEncapsulation) && i["s-cr"]) {
|
|
1268
|
+
let e = s.$elm$.__childNodes || s.$elm$.childNodes;
|
|
1269
|
+
for (let t of e) if (t["s-hn"] !== G && t["s-sh"] !== G) {
|
|
1270
|
+
if (r && t["s-ih"] == null && (t["s-ih"] = t.hidden ?? !1), t.nodeType === E.ElementNode) t.hidden = !0;
|
|
1271
|
+
else if (t.nodeType === E.TextNode && t.nodeValue.trim()) {
|
|
1272
|
+
let e = F.document.createComment("s-nt-" + t.nodeValue);
|
|
1273
|
+
e["s-sn"] = t["s-sn"], Y(t.parentNode, e, t, r), t.parentNode.removeChild(t);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
sn = void 0, An();
|
|
1278
|
+
}, Nn = (e) => F.document?.createComment(`<slot${e.$name$ ? " name=\"" + e.$name$ + "\"" : ""}> (host=${G.toLowerCase()})`), Pn = (e) => F.document?.createComment("org-location for " + (e.localName ? `<${e.localName}> (host=${e["s-hn"]})` : `[${e.textContent}]`)), Fn = (e) => (e.$onFirstConnectPromise$ ||= new Promise((t) => e.$onFirstConnectResolve$ = t), e.$onFirstConnectPromise$), In = (e) => {
|
|
1279
|
+
e.$flags$ |= k.hasFiredConnected, e.$onFirstConnectResolve$?.(), e.$onFirstConnectResolve$ = void 0;
|
|
1280
|
+
}, Ln = async (e, n) => {
|
|
1281
|
+
let r = j(e);
|
|
1282
|
+
!t.lazyLoad && !r && (await n.whenDefined(e.tagName.toLowerCase()), r = j(e)), r && !(r.$flags$ & k.hasFiredConnected) && await Fn(r);
|
|
1283
|
+
}, Rn = (e, n) => {
|
|
1284
|
+
if (t.asyncLoading && n && !e.$onRenderResolve$ && n["s-p"]) {
|
|
1285
|
+
let t = n["s-p"].push(new Promise((r) => e.$onRenderResolve$ = () => {
|
|
1286
|
+
n["s-p"].splice(t - 1, 1), r();
|
|
1287
|
+
}));
|
|
1288
|
+
n["s-pc"] && n["s-pc"].push(Fn(e));
|
|
1289
|
+
}
|
|
1290
|
+
}, zn = (e, n) => {
|
|
1291
|
+
if (t.updatable && (e.$flags$ |= k.isQueuedForUpdate), t.asyncLoading && e.$flags$ & k.isWaitingForChildren) {
|
|
1292
|
+
e.$flags$ |= k.needsRerender;
|
|
1293
|
+
return;
|
|
1294
|
+
}
|
|
1295
|
+
Rn(e, e.$ancestorComponent$);
|
|
1296
|
+
let r = () => Bn(e, n);
|
|
1297
|
+
if (n) {
|
|
1298
|
+
let n = t.asyncLoading ? e.$hostElement$["s-pc"] : void 0;
|
|
1299
|
+
if (n && n.length > 0) return Promise.all(n).then(r).catch(r);
|
|
1300
|
+
queueMicrotask(() => {
|
|
1301
|
+
r();
|
|
1302
|
+
});
|
|
1303
|
+
} else return t.taskQueue ? Xe(r) : r();
|
|
1304
|
+
}, Bn = (e, n) => {
|
|
1305
|
+
let r = e.$hostElement$, i = V("scheduleUpdate", e.$cmpMeta$.$tagName$), a = t.lazyLoad ? e.$lazyInstance$ : r;
|
|
1306
|
+
if (!a) {
|
|
1307
|
+
if (t.isDev) throw Error(`Can't render <${r.tagName.toLowerCase()} /> - compiled without externalRuntime: true. See https://stenciljs.com/docs/custom-elements#externalruntime`);
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
let o;
|
|
1311
|
+
if (n) t.lazyLoad && (t.hostListener && (e.$flags$ |= k.isListenReady, e.$queuedListeners$ &&= (e.$queuedListeners$.map(([e, t]) => X(a, e, t, r)), void 0)), e.$fetchedCbList$.length && e.$fetchedCbList$.forEach((e) => e(r))), t.lifecycleDOMEvents && Z(r, "componentWillLoad"), o = X(a, "componentWillLoad", void 0, r);
|
|
1312
|
+
else {
|
|
1313
|
+
if (t.updatable && e.$queuedPropChanges$) {
|
|
1314
|
+
let t = e.$queuedPropChanges$;
|
|
1315
|
+
if (e.$queuedPropChanges$ = void 0, X(a, "componentShouldUpdate", t, r) === !1) {
|
|
1316
|
+
e.$flags$ &= ~k.isQueuedForUpdate;
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
t.lifecycleDOMEvents && Z(r, "componentWillUpdate"), o = X(a, "componentWillUpdate", void 0, r);
|
|
1321
|
+
}
|
|
1322
|
+
return t.lifecycleDOMEvents && Z(r, "componentWillRender"), o = Vn(o, () => X(a, "componentWillRender", void 0, r)), i(), Vn(o, () => Un(e, a, n));
|
|
1323
|
+
}, Vn = (e, t) => {
|
|
1324
|
+
if (Hn(e)) return e.then(t).catch((e) => {
|
|
1325
|
+
console.error(e), t();
|
|
1326
|
+
});
|
|
1327
|
+
let n = t();
|
|
1328
|
+
return Hn(n) ? n : void 0;
|
|
1329
|
+
}, Hn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Un = (e, n, r) => {
|
|
1330
|
+
let i = e.$hostElement$, a = V("update", e.$cmpMeta$.$tagName$), o = i["s-rc"];
|
|
1331
|
+
t.style && r && Rt(e);
|
|
1332
|
+
let s = V("render", e.$cmpMeta$.$tagName$);
|
|
1333
|
+
if (t.isDev && (e.$flags$ |= k.devOnRender), t.hydrateServerSide) return Gn(e, n, i, r).then(() => {
|
|
1334
|
+
Wn(e, i, o, r, s, a);
|
|
1335
|
+
});
|
|
1336
|
+
Gn(e, n, i, r), Wn(e, i, o, r, s, a);
|
|
1337
|
+
}, Wn = (e, n, r, i, a, o) => {
|
|
1338
|
+
if (t.isDev && (e.$renderCount$ = e.$renderCount$ === void 0 ? 1 : e.$renderCount$ + 1, e.$flags$ &= ~k.devOnRender), t.hydrateServerSide) try {
|
|
1339
|
+
Xn(n), i && (e.$cmpMeta$.$flags$ & A.shadowDomEncapsulation ? n["s-en"] = "" : e.$cmpMeta$.$flags$ & A.scopedCssEncapsulation && (n["s-en"] = "c"));
|
|
1340
|
+
} catch (e) {
|
|
1341
|
+
M(e, n);
|
|
1342
|
+
}
|
|
1343
|
+
if (t.asyncLoading && r && (r.map((e) => e()), n["s-rc"] = void 0), a(), o(), t.asyncLoading) {
|
|
1344
|
+
let t = n["s-p"] ?? [], r = () => Kn(e);
|
|
1345
|
+
t.length === 0 ? r() : (Promise.all(t).then(r).catch(r), e.$flags$ |= k.isWaitingForChildren, t.length = 0);
|
|
1346
|
+
} else Kn(e);
|
|
1347
|
+
}, Gn = (e, n, r, i) => {
|
|
1348
|
+
let a = !!t.allRenderFn, o = !!t.lazyLoad, s = !!t.updatable;
|
|
1349
|
+
try {
|
|
1350
|
+
if (n = (a || n.render) && n.render(), s && (e.$flags$ &= ~k.isQueuedForUpdate), (s || o) && (e.$flags$ |= k.hasRendered), t.hasRenderFn || t.reflect) {
|
|
1351
|
+
if (t.vdomRender || t.reflect) {
|
|
1352
|
+
if (t.hydrateServerSide) return Promise.resolve(n).then((t) => Mn(e, t, i));
|
|
1353
|
+
Mn(e, n, i);
|
|
1354
|
+
} else {
|
|
1355
|
+
let t = r.shadowRoot;
|
|
1356
|
+
e.$cmpMeta$.$flags$ & A.shadowDomEncapsulation ? t.textContent = n : r.textContent = n;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
} catch (t) {
|
|
1360
|
+
M(t, e.$hostElement$);
|
|
1361
|
+
}
|
|
1362
|
+
return null;
|
|
1363
|
+
}, Kn = (e) => {
|
|
1364
|
+
let n = e.$cmpMeta$.$tagName$, r = e.$hostElement$, i = V("postUpdate", n), a = t.lazyLoad ? e.$lazyInstance$ : r, o = e.$ancestorComponent$;
|
|
1365
|
+
t.isDev && (e.$flags$ |= k.devOnRender), X(a, "componentDidRender", void 0, r), t.isDev && (e.$flags$ &= ~k.devOnRender), t.lifecycleDOMEvents && Z(r, "componentDidRender"), e.$flags$ & k.hasLoadedComponent ? (t.isDev && (e.$flags$ |= k.devOnRender), X(a, "componentDidUpdate", void 0, r), t.isDev && (e.$flags$ &= ~k.devOnRender), t.lifecycleDOMEvents && Z(r, "componentDidUpdate"), i()) : (e.$flags$ |= k.hasLoadedComponent, t.asyncLoading && t.cssAnnotations && Yn(r), t.isDev && (e.$flags$ |= k.devOnDidLoad), X(a, "componentDidLoad", void 0, r), t.isDev && (e.$flags$ &= ~k.devOnDidLoad), t.lifecycleDOMEvents && Z(r, "componentDidLoad"), t.propChangeCallback && (e.$flags$ |= k.isWatchReady), i(), t.asyncLoading && (e.$onReadyResolve$(r), o || Jn(n))), t.method && t.lazyLoad && e.$onInstanceResolve$(r), t.asyncLoading && (e.$onRenderResolve$ &&= (e.$onRenderResolve$(), void 0), e.$flags$ & k.needsRerender && Ye(() => zn(e, !1)), e.$flags$ &= ~(k.isWaitingForChildren | k.needsRerender));
|
|
1366
|
+
}, qn = (e) => {
|
|
1367
|
+
if (t.updatable && (_e.isBrowser || _e.isTesting)) {
|
|
1368
|
+
let t = j(e), n = t?.$hostElement$?.isConnected;
|
|
1369
|
+
return n && (t.$flags$ & (k.hasRendered | k.isQueuedForUpdate)) === k.hasRendered && zn(t, !1), n;
|
|
1370
|
+
}
|
|
1371
|
+
return !1;
|
|
1372
|
+
}, Jn = (e) => {
|
|
1373
|
+
t.asyncQueue && (I.$flags$ |= T.appLoaded), Ye(() => qt(F, "appload", { detail: { namespace: "app" } })), t.hydrateClientSide && I.$orgLocNodes$?.size && I.$orgLocNodes$.clear(), t.profile && performance.measure && performance.measure(`[Stencil] app initial load (by ${e})`, "st:app:start");
|
|
1374
|
+
}, X = (e, t, n, r) => {
|
|
1375
|
+
if (e && e[t]) try {
|
|
1376
|
+
return e[t](n);
|
|
1377
|
+
} catch (e) {
|
|
1378
|
+
M(e, r);
|
|
1379
|
+
}
|
|
1380
|
+
}, Z = (e, n) => {
|
|
1381
|
+
t.lifecycleDOMEvents && qt(e, "stencil_" + n, {
|
|
1382
|
+
bubbles: !0,
|
|
1383
|
+
composed: !0,
|
|
1384
|
+
detail: { namespace: "app" }
|
|
1385
|
+
});
|
|
1386
|
+
}, Yn = (e) => t.hydratedClass ? e.classList.add(t.hydratedSelectorName ?? "hydrated") : t.hydratedAttribute ? e.setAttribute(t.hydratedSelectorName ?? "hydrated", "") : void 0, Xn = (e) => {
|
|
1387
|
+
let t = e.children;
|
|
1388
|
+
if (t != null) for (let e = 0, n = t.length; e < n; e++) {
|
|
1389
|
+
let n = t[e];
|
|
1390
|
+
typeof n.connectedCallback == "function" && n.connectedCallback(), Xn(n);
|
|
1391
|
+
}
|
|
1392
|
+
}, Zn = Symbol.for("stencil.signals"), Qn = (e) => typeof e == "object" && !!e && typeof e.peek == "function" && typeof e.subscribe == "function", $n = (e, n, r) => {
|
|
1393
|
+
if (n.$signalValues$) return;
|
|
1394
|
+
n.$signalValues$ = /* @__PURE__ */ new Map();
|
|
1395
|
+
let i = [], a = t.lazyLoad ? n.$lazyInstance$ : e;
|
|
1396
|
+
for (let [o, [s]] of Object.entries(r.$members$ ?? {})) {
|
|
1397
|
+
if (!(s & D.PropLike)) continue;
|
|
1398
|
+
let c = Gt(n.$instanceValues$.get(o));
|
|
1399
|
+
n.$signalValues$.set(o, c);
|
|
1400
|
+
let l = c.peek();
|
|
1401
|
+
if (i.push(U(() => {
|
|
1402
|
+
let e = c.value;
|
|
1403
|
+
if (n.$flags$ & k.hasRendered) {
|
|
1404
|
+
if (a?.componentShouldUpdate) {
|
|
1405
|
+
let t = n.$queuedPropChanges$ ||= {};
|
|
1406
|
+
t[o] = {
|
|
1407
|
+
newVal: e,
|
|
1408
|
+
oldVal: t[o]?.oldVal ?? l
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
n.$flags$ & k.isQueuedForUpdate || zn(n, !1);
|
|
1412
|
+
}
|
|
1413
|
+
l = e;
|
|
1414
|
+
})), t.propChangeCallback && r.$watchers$?.[o]) {
|
|
1415
|
+
let a = r.$watchers$[o], s = c.peek();
|
|
1416
|
+
i.push(U(() => {
|
|
1417
|
+
let r = c.value, i = n.$flags$;
|
|
1418
|
+
a.forEach((a) => {
|
|
1419
|
+
try {
|
|
1420
|
+
let [[c, l]] = Object.entries(a);
|
|
1421
|
+
if (i & k.isWatchReady || l & ve.Immediate) {
|
|
1422
|
+
let i = t.lazyLoad ? n.$lazyInstance$ : e;
|
|
1423
|
+
i && i[c](r, s, o);
|
|
1424
|
+
}
|
|
1425
|
+
} catch (t) {
|
|
1426
|
+
M(t, e);
|
|
1427
|
+
}
|
|
1428
|
+
}), s = r;
|
|
1429
|
+
}));
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
let o = a?.__stencilEffects ?? [];
|
|
1433
|
+
for (let t of o) i.push(U(() => {
|
|
1434
|
+
try {
|
|
1435
|
+
a[t]();
|
|
1436
|
+
} catch (t) {
|
|
1437
|
+
M(t, e);
|
|
1438
|
+
}
|
|
1439
|
+
}));
|
|
1440
|
+
e[Zn] = new Map([...n.$signalValues$].filter(([e]) => (r.$members$?.[e]?.[0] ?? 0) & D.Prop)), n.$signalCleanup$ = () => {
|
|
1441
|
+
i.forEach((e) => e()), e[Zn] = void 0;
|
|
1442
|
+
};
|
|
1443
|
+
}, er = (e, n) => {
|
|
1444
|
+
let r = t.lazyLoad ? n.$lazyInstance$ : e, i = r?.__stencilEffects ?? [];
|
|
1445
|
+
if (!i.length) return;
|
|
1446
|
+
let a = [];
|
|
1447
|
+
for (let t of i) a.push(U(() => {
|
|
1448
|
+
try {
|
|
1449
|
+
r[t]();
|
|
1450
|
+
} catch (t) {
|
|
1451
|
+
M(t, e);
|
|
1452
|
+
}
|
|
1453
|
+
}));
|
|
1454
|
+
n.$signalCleanup$ = () => a.forEach((e) => e());
|
|
1455
|
+
}, tr = (e, n, ...r) => {
|
|
1456
|
+
typeof e == "string" && (e = Fi(e));
|
|
1457
|
+
let i = null, a = null, o = null, s = !1, c = !1, l = [], u = (n) => {
|
|
1458
|
+
for (let r = 0; r < n.length; r++) if (i = n[r], Array.isArray(i)) u(i);
|
|
1459
|
+
else if (i != null && typeof i != "boolean") {
|
|
1460
|
+
if (t.vdomSignals && Qn(i)) {
|
|
1461
|
+
let e = Q(null, String(i.peek()));
|
|
1462
|
+
e.$signal$ = i, l.push(e), c = !1;
|
|
1463
|
+
} else {
|
|
1464
|
+
if (s = typeof e != "function" && !Ut(i)) i = String(i);
|
|
1465
|
+
else if (typeof e != "function" && i.$flags$ === void 0) {
|
|
1466
|
+
t.isDev ? Oe("vNode passed as children has unexpected type.\n Make sure it's using the correct h() function.\n Empty objects can also be the cause, look for JSX comments that became objects.") : M("Invalid vNode child");
|
|
1467
|
+
continue;
|
|
1468
|
+
}
|
|
1469
|
+
s && c ? l[l.length - 1].$text$ += i : l.push(s ? Q(null, i) : i), c = s;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
};
|
|
1473
|
+
if (u(r), n && typeof n == "object" && (t.isDev && e === "input" && sr(n), t.vdomKey && n.key && (a = n.key), t.slotRelocation && n.name && (o = n.name), t.vdomClass)) {
|
|
1474
|
+
let e = n.class;
|
|
1475
|
+
e && !(t.vdomSignals && Qn(e)) && (n.class = typeof e == "object" ? Object.keys(e).filter((t) => e[t]).join(" ") : e);
|
|
1476
|
+
}
|
|
1477
|
+
if (t.isDev && l.some(rr) && Oe("The <Host> must be used once, and be the single root component of the render() function."), t.vdomFunctional && typeof e == "function") return e(n === null ? {} : n, l, ir);
|
|
1478
|
+
let d = Q(e, null);
|
|
1479
|
+
return d.$attrs$ = n, l.length > 0 && (d.$children$ = l), t.vdomKey && (d.$key$ = a), t.slotRelocation && (d.$name$ = o), d;
|
|
1480
|
+
}, Q = (e, n) => {
|
|
1481
|
+
let r = {
|
|
1482
|
+
$flags$: 0,
|
|
1483
|
+
$tag$: e,
|
|
1484
|
+
$text$: n ?? null,
|
|
1485
|
+
$elm$: null,
|
|
1486
|
+
$children$: null
|
|
1487
|
+
};
|
|
1488
|
+
return t.vdomAttribute && (r.$attrs$ = null), t.vdomKey && (r.$key$ = null), t.slotRelocation && (r.$name$ = null), r;
|
|
1489
|
+
}, nr = {}, rr = (e) => e && e.$tag$ === nr, ir = {
|
|
1490
|
+
forEach: (e, t) => e.map(ar).forEach(t),
|
|
1491
|
+
map: (e, t) => e.map(ar).map(t).map(or)
|
|
1492
|
+
}, ar = (e) => ({
|
|
1493
|
+
vattrs: e.$attrs$,
|
|
1494
|
+
vchildren: e.$children$,
|
|
1495
|
+
vkey: e.$key$,
|
|
1496
|
+
vname: e.$name$,
|
|
1497
|
+
vtag: e.$tag$,
|
|
1498
|
+
vtext: e.$text$
|
|
1499
|
+
}), or = (e) => {
|
|
1500
|
+
if (typeof e.vtag == "function") {
|
|
1501
|
+
let t = { ...e.vattrs };
|
|
1502
|
+
return e.vkey && (t.key = e.vkey), e.vname && (t.name = e.vname), tr(e.vtag, t, ...e.vchildren || []);
|
|
1503
|
+
}
|
|
1504
|
+
let t = Q(e.vtag, e.vtext);
|
|
1505
|
+
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
1506
|
+
}, sr = (e) => {
|
|
1507
|
+
let t = Object.keys(e), n = t.indexOf("value");
|
|
1508
|
+
if (n === -1) return;
|
|
1509
|
+
let r = t.indexOf("type"), i = t.indexOf("min"), a = t.indexOf("max"), o = t.indexOf("step");
|
|
1510
|
+
(n < r || n < i || n < a || n < o) && N("The \"value\" prop of <input> should be set after \"min\", \"max\", \"type\" and \"step\"");
|
|
1511
|
+
}, cr = (e, n, r, i) => {
|
|
1512
|
+
let a = V("hydrateClient", n), o = Ot(e), s = [], c = [], l = [], u = t.shadowDom && o ? [] : null, d = Q(n, null);
|
|
1513
|
+
d.$elm$ = e;
|
|
1514
|
+
let f;
|
|
1515
|
+
if (t.scoped) {
|
|
1516
|
+
let t = i.$cmpMeta$;
|
|
1517
|
+
t && t.$flags$ & A.needsScopedEncapsulation && e["s-sc"] ? (f = e["s-sc"], e.classList.add(f + "-h")) : e["s-sc"] && delete e["s-sc"];
|
|
1518
|
+
}
|
|
1519
|
+
!F.document || I.$orgLocNodes$ && I.$orgLocNodes$.size || ur(F.document.body, I.$orgLocNodes$ = /* @__PURE__ */ new Map()), e[ue] = r, e.removeAttribute(ue), i.$vnode$ = lr(d, s, c, u, e, e, r, l);
|
|
1520
|
+
let p = 0, m = s.length, h;
|
|
1521
|
+
for (; p < m; p++) {
|
|
1522
|
+
h = s[p];
|
|
1523
|
+
let r = h.$hostId$ + "." + h.$nodeId$, i = I.$orgLocNodes$.get(r), a = h.$elm$;
|
|
1524
|
+
if (!o) a["s-hn"] = Fi(n).toUpperCase(), h.$tag$ === "slot" && (a["s-cr"] = e["s-cr"]);
|
|
1525
|
+
else if (h.$tag$?.toString().includes("-") && h.$tag$ !== "slot-fb" && !h.$elm$.shadowRoot) {
|
|
1526
|
+
let e = j(h.$elm$);
|
|
1527
|
+
if (e) {
|
|
1528
|
+
let n = zt(e.$cmpMeta$, t.mode ? h.$elm$.getAttribute("s-mode") : void 0), r = F.document.querySelector(`style[sty-id="${n}"]`);
|
|
1529
|
+
r && u.unshift(r.cloneNode(!0));
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
if (h.$tag$ === "slot" && (h.$name$ = h.$elm$["s-sn"] || h.$elm$.name || null, h.$children$ ? (h.$flags$ |= C.isSlotFallback, h.$elm$.childNodes.length || h.$children$.forEach((e) => {
|
|
1533
|
+
h.$elm$.appendChild(e.$elm$);
|
|
1534
|
+
})) : h.$flags$ |= C.isSlotReference), i && i.isConnected) {
|
|
1535
|
+
let e = i.parentNode;
|
|
1536
|
+
i.parentElement.shadowRoot && i["s-en"] === "" && e.insertBefore(a, i.nextSibling), e.removeChild(i), o || (a["s-oo"] = parseInt(h.$nodeId$));
|
|
1537
|
+
}
|
|
1538
|
+
i && !i["s-id"] && I.$orgLocNodes$.delete(r);
|
|
1539
|
+
}
|
|
1540
|
+
let g = [], _ = l.length, v = 0, y, b, ee, x, te = 0;
|
|
1541
|
+
for (; v < _; v++) if (y = l[v], y && y.length) for (ee = y.length, b = 0; b < ee; b++) {
|
|
1542
|
+
x = y[b];
|
|
1543
|
+
let e = x.hostId;
|
|
1544
|
+
if (g[e] || (g[e] = I.$orgLocNodes$.get(x.hostId)), !g[e]) continue;
|
|
1545
|
+
let n = g[e], r = x.node, a = x.slot;
|
|
1546
|
+
n.shadowRoot && r.parentElement !== n && n.insertBefore(r, y[b - 1]?.node?.nextSibling), n.shadowRoot && o || (a["s-cr"] ||= (a["s-cr"] = n["s-cr"], !a["s-cr"] && n.shadowRoot ? n : (n.__childNodes || n.childNodes)[0]), at(r, a, !1, r["s-oo"] || te), r.parentElement?.shadowRoot && r.getAttribute && r.getAttribute("slot") && r.removeAttribute("slot"), (t.lightDomPatches || t.slotChildNodes || t.patchAll && i.$cmpMeta$.$flags$ & A.patchAll) && yt(r)), te = (r["s-oo"] || te) + 1;
|
|
1547
|
+
}
|
|
1548
|
+
if (t.scoped && f && c.length && c.forEach((e) => {
|
|
1549
|
+
e.$elm$.parentElement.classList.add(f + "-s");
|
|
1550
|
+
}), t.shadowDom && o && !o.childNodes.length) {
|
|
1551
|
+
let t = 0, n = u.length;
|
|
1552
|
+
if (n) {
|
|
1553
|
+
for (; t < n; t++) {
|
|
1554
|
+
let e = u[t];
|
|
1555
|
+
e && o.appendChild(e);
|
|
1556
|
+
}
|
|
1557
|
+
Array.from(e.childNodes).forEach((e) => {
|
|
1558
|
+
typeof e["s-en"] != "string" && typeof e["s-sn"] != "string" && (e.nodeType === E.ElementNode && e.slot && e.hidden ? e.removeAttribute("hidden") : e.nodeType === E.CommentNode && !e.nodeValue && e.parentNode.removeChild(e));
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
i.$hostElement$ = e, a();
|
|
1563
|
+
}, lr = (e, n, r, i, a, o, s, c = []) => {
|
|
1564
|
+
let l, u, d, f, p = a["s-sc"];
|
|
1565
|
+
if (o.nodeType === E.ElementNode) {
|
|
1566
|
+
if (l = o.getAttribute(fe), l && (u = l.split("."), u[0] === s || u[0] === "0")) {
|
|
1567
|
+
d = dr({
|
|
1568
|
+
$hostId$: u[0],
|
|
1569
|
+
$nodeId$: u[1],
|
|
1570
|
+
$depth$: u[2],
|
|
1571
|
+
$index$: u[3],
|
|
1572
|
+
$tag$: o.tagName.toLowerCase(),
|
|
1573
|
+
$elm$: o,
|
|
1574
|
+
$attrs$: { class: o.className || "" }
|
|
1575
|
+
}), n.push(d), o.removeAttribute(fe), e.$children$ || (e.$children$ = []), t.scoped && p && u[0] === s && (o["s-si"] = p, d.$attrs$.class += " " + p);
|
|
1576
|
+
let a = d.$elm$.getAttribute("s-sn");
|
|
1577
|
+
typeof a == "string" && (d.$tag$ === "slot-fb" && (fr(a, u[2], d, o, e, n, r, i, c), t.scoped && p && o.classList.add(p)), d.$elm$["s-sn"] = a, d.$elm$.removeAttribute("s-sn")), d.$index$ !== void 0 && (e.$children$[d.$index$] = d), e = d, i && d.$depth$ === "0" && (i[d.$index$] = d.$elm$);
|
|
1578
|
+
}
|
|
1579
|
+
if (o.shadowRoot) for (f = o.shadowRoot.childNodes.length - 1; f >= 0; f--) lr(e, n, r, i, a, o.shadowRoot.childNodes[f], s, c);
|
|
1580
|
+
let m = o.__childNodes || o.childNodes;
|
|
1581
|
+
for (f = m.length - 1; f >= 0; f--) lr(e, n, r, i, a, m[f], s, c);
|
|
1582
|
+
} else if (o.nodeType === E.CommentNode) u = o.nodeValue.split("."), (u[1] === s || u[1] === "0") && (l = u[0], d = dr({
|
|
1583
|
+
$hostId$: u[1],
|
|
1584
|
+
$nodeId$: u[2],
|
|
1585
|
+
$depth$: u[3],
|
|
1586
|
+
$index$: u[4] || "0",
|
|
1587
|
+
$elm$: o
|
|
1588
|
+
}), l === "t" ? (d.$elm$ = mr(o, E.TextNode), d.$elm$ && d.$elm$.nodeType === E.TextNode && (d.$text$ = d.$elm$.textContent, n.push(d), o.remove(), s === d.$hostId$ && (e.$children$ || (e.$children$ = []), e.$children$[d.$index$] = d), i && d.$depth$ === "0" && (i[d.$index$] = d.$elm$))) : l === "c" ? (d.$elm$ = mr(o, E.CommentNode), d.$elm$ && d.$elm$.nodeType === E.CommentNode && (n.push(d), o.remove())) : d.$hostId$ === s && (l === "s" ? fr(o["s-sn"] = u[5] || "", u[2], d, o, e, n, r, i, c) : l === "r" && (t.shadowDom && i ? o.remove() : t.slotRelocation && (a["s-cr"] = o, o["s-cn"] = !0))));
|
|
1589
|
+
else if (e && e.$tag$ === "style") {
|
|
1590
|
+
let t = Q(null, o.textContent);
|
|
1591
|
+
t.$elm$ = o, t.$index$ = "0", e.$children$ = [t];
|
|
1592
|
+
}
|
|
1593
|
+
return e;
|
|
1594
|
+
}, ur = (e, t) => {
|
|
1595
|
+
if (e.nodeType === E.ElementNode) {
|
|
1596
|
+
let n = e["s-id"] || e.getAttribute("s-id");
|
|
1597
|
+
n && t.set(n, e);
|
|
1598
|
+
let r = 0;
|
|
1599
|
+
if (e.shadowRoot) for (; r < e.shadowRoot.childNodes.length; r++) ur(e.shadowRoot.childNodes[r], t);
|
|
1600
|
+
let i = e.__childNodes || e.childNodes;
|
|
1601
|
+
for (r = 0; r < i.length; r++) ur(i[r], t);
|
|
1602
|
+
} else if (e.nodeType === E.CommentNode) {
|
|
1603
|
+
let n = e.nodeValue.split(".");
|
|
1604
|
+
n[0] === "o" && (t.set(n[1] + "." + n[2], e), e.nodeValue = "", e["s-en"] = n[3]);
|
|
1605
|
+
}
|
|
1606
|
+
}, dr = (e) => ({
|
|
1607
|
+
$flags$: 0,
|
|
1608
|
+
$index$: "0",
|
|
1609
|
+
...e
|
|
1610
|
+
});
|
|
1611
|
+
function fr(e, n, r, i, a, o, s, c, l) {
|
|
1612
|
+
i["s-sr"] = !0, r.$name$ = e || null, r.$tag$ = "slot";
|
|
1613
|
+
let u = a?.$elm$ ? a.$elm$["s-id"] || a.$elm$.getAttribute("s-id") : "";
|
|
1614
|
+
if (t.shadowDom && c && F.document) {
|
|
1615
|
+
let t = r.$elm$ = F.document.createElement(r.$tag$);
|
|
1616
|
+
r.$name$ && r.$elm$.setAttribute("name", e), a.$elm$.shadowRoot && u && u !== r.$hostId$ ? B(a.$elm$, "insertBefore")(t, B(a.$elm$, "children")[0]) : B(B(i, "parentNode"), "insertBefore")(t, i), pr(l, n, e, i, r.$hostId$), i.remove(), r.$depth$ === "0" && (c[r.$index$] = r.$elm$);
|
|
1617
|
+
} else {
|
|
1618
|
+
let t = r.$elm$, o = u && u !== r.$hostId$ && a.$elm$.shadowRoot;
|
|
1619
|
+
pr(l, n, e, i, o ? u : r.$hostId$), ot(i), o && a.$elm$.insertBefore(t, a.$elm$.children[0]);
|
|
1620
|
+
}
|
|
1621
|
+
o.push(r), s.push(r), a.$children$ ||= [], a.$children$[r.$index$] = r;
|
|
1622
|
+
}
|
|
1623
|
+
var pr = (e, t, n, r, i) => {
|
|
1624
|
+
let a = r.nextSibling, o = e[t] ||= [];
|
|
1625
|
+
if (a && !a.nodeValue?.startsWith("s.")) do {
|
|
1626
|
+
let e = a.getAttribute && a.getAttribute("slot");
|
|
1627
|
+
(e || a["s-sn"]) !== n && (n !== "" || a["s-sn"] || e || a.nodeType !== E.CommentNode && a.nodeType !== E.TextNode) || (a["s-sn"] = n, o.push({
|
|
1628
|
+
slot: r,
|
|
1629
|
+
node: a,
|
|
1630
|
+
hostId: i
|
|
1631
|
+
})), a = a.nextSibling;
|
|
1632
|
+
} while (a && !a.nodeValue?.startsWith("s."));
|
|
1633
|
+
}, mr = (e, t) => {
|
|
1634
|
+
let n = e;
|
|
1635
|
+
do
|
|
1636
|
+
n = n.nextSibling;
|
|
1637
|
+
while (n && (n.nodeType !== t || !n.nodeValue));
|
|
1638
|
+
return n;
|
|
1639
|
+
}, hr = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), gr = (e) => {
|
|
1640
|
+
let t = [], n = 0;
|
|
1641
|
+
return e = e.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (e, r) => {
|
|
1642
|
+
let i = `__part-${n}__`;
|
|
1643
|
+
return t.push(r), n++, i;
|
|
1644
|
+
}), e = e.replace(/(\[[^\]]*\])/g, (e, r) => {
|
|
1645
|
+
let i = `__ph-${n}__`;
|
|
1646
|
+
return t.push(r), n++, i;
|
|
1647
|
+
}), {
|
|
1648
|
+
content: e.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (e, r, i) => {
|
|
1649
|
+
let a = `__ph-${n}__`;
|
|
1650
|
+
return t.push(i), n++, r + a;
|
|
1651
|
+
}),
|
|
1652
|
+
placeholders: t
|
|
1653
|
+
};
|
|
1654
|
+
}, _r = (e, t) => (t = t.replace(/__part-(\d+)__/g, (t, n) => e[+n]), t.replace(/__ph-(\d+)__/g, (t, n) => e[+n])), vr = "-shadowcsshost", yr = "-shadowcssslotted", br = "-shadowcsscontext", xr = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)", Sr, Cr, wr, Tr = () => Sr ??= RegExp("(-shadowcsshost" + xr, "gim"), Er = () => Cr ??= RegExp("(-shadowcsscontext" + xr, "gim"), Dr = () => wr ??= RegExp("(-shadowcssslotted" + xr, "gim"), $ = "-shadowcsshost-no-combinator", Or = /-shadowcsshost-no-combinator([^\s]*)/, kr = [/::shadow/g, /::content/g], Ar = /__part-(\d+)__/g, jr = /-shadowcsshost/gim, Mr = (e) => {
|
|
1655
|
+
let t = hr(e);
|
|
1656
|
+
return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`, "g");
|
|
1657
|
+
}, Nr = /\/\*\s*[\s\S]*?\*\//g, Pr = (e) => e.replace(Nr, ""), Fr = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g, Ir = (e) => e.match(Fr) || [], Lr = /(\s*)([^;{}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g, Rr = /([{}])/g, zr = /(^.*?[^\\])??((:+)(.*)|$)/, Br = "{", Vr = "}", Hr = "%BLOCK%", Ur = (e, t) => {
|
|
1658
|
+
let n = Wr(e), r = 0;
|
|
1659
|
+
return n.escapedString.replace(Lr, (...e) => {
|
|
1660
|
+
let i = e[2], a = "", o = e[4], s = "";
|
|
1661
|
+
o && o.startsWith("{%BLOCK%") && (a = n.blocks[r++], o = o.substring(8), s = "{");
|
|
1662
|
+
let c = t({
|
|
1663
|
+
selector: i,
|
|
1664
|
+
content: a
|
|
1665
|
+
});
|
|
1666
|
+
return `${e[1]}${c.selector}${e[3]}${s}${c.content}${o}`;
|
|
1667
|
+
});
|
|
1668
|
+
}, Wr = (e) => {
|
|
1669
|
+
let t = e.split(Rr), n = [], r = [], i = 0, a = [];
|
|
1670
|
+
for (let e = 0; e < t.length; e++) {
|
|
1671
|
+
let o = t[e];
|
|
1672
|
+
o === Vr && i--, i > 0 ? a.push(o) : (a.length > 0 && (r.push(a.join("")), n.push(Hr), a = []), n.push(o)), o === Br && i++;
|
|
1673
|
+
}
|
|
1674
|
+
return a.length > 0 && (r.push(a.join("")), n.push(Hr)), {
|
|
1675
|
+
escapedString: n.join(""),
|
|
1676
|
+
blocks: r
|
|
1677
|
+
};
|
|
1678
|
+
}, Gr = (e) => {
|
|
1679
|
+
let t = [];
|
|
1680
|
+
e = e.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (e, n) => {
|
|
1681
|
+
let r = `__supports_${t.length}__`;
|
|
1682
|
+
return t.push(n), `@supports selector(${r})`;
|
|
1683
|
+
});
|
|
1684
|
+
let n = Mr("::slotted"), r = Mr(":host"), i = Mr(":host-context");
|
|
1685
|
+
return e = e.replace(i, `$1${br}`).replace(r, `$1${vr}`).replace(n, `$1${yr}`), t.forEach((t, n) => {
|
|
1686
|
+
e = e.replace(`__supports_${n}__`, t);
|
|
1687
|
+
}), e;
|
|
1688
|
+
}, Kr = (e, t, n) => e.replace(t, (...e) => {
|
|
1689
|
+
if (e[2]) {
|
|
1690
|
+
let t = e[2].split(","), r = [];
|
|
1691
|
+
for (let i = 0; i < t.length; i++) {
|
|
1692
|
+
let a = t[i].trim();
|
|
1693
|
+
if (!a) break;
|
|
1694
|
+
r.push(n($, a, e[3]));
|
|
1695
|
+
}
|
|
1696
|
+
return r.join(",");
|
|
1697
|
+
}
|
|
1698
|
+
return $ + e[3];
|
|
1699
|
+
}), qr = (e, t, n) => e + t.replace(vr, "") + n, Jr = (e) => Kr(e, Tr(), qr), Yr = (e, t, n) => t.indexOf(vr) > -1 ? qr(e, t, n) : e + t + n + ", " + t + " " + e + n, Xr = (e, t) => {
|
|
1700
|
+
let n = "." + t + " > ", r = [];
|
|
1701
|
+
return e = e.replace(Dr(), (...e) => {
|
|
1702
|
+
if (e[2]) {
|
|
1703
|
+
let t = e[2].trim(), i = e[3], a = n + t + i, o = "";
|
|
1704
|
+
for (let t = e[4] - 1; t >= 0; t--) {
|
|
1705
|
+
let n = e[5][t];
|
|
1706
|
+
if (n === "}" || n === ",") break;
|
|
1707
|
+
o = n + o;
|
|
1708
|
+
}
|
|
1709
|
+
let s = (o + a).trim(), c = `${o.trimEnd()}${a.trim()}`.trim();
|
|
1710
|
+
if (s !== c) {
|
|
1711
|
+
let e = `${c}, ${s}`;
|
|
1712
|
+
r.push({
|
|
1713
|
+
orgSelector: s,
|
|
1714
|
+
updatedSelector: e
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
return a;
|
|
1718
|
+
}
|
|
1719
|
+
return $ + e[3];
|
|
1720
|
+
}), {
|
|
1721
|
+
selectors: r,
|
|
1722
|
+
cssText: e
|
|
1723
|
+
};
|
|
1724
|
+
}, Zr = (e) => Kr(e, Er(), Yr), Qr = (e) => kr.reduce((e, t) => e.replace(t, " "), e), $r = (e) => (e = e.replace(/\[/g, "\\[").replace(/\]/g, "\\]"), RegExp("^(" + e + ")([>\\s~+[.,{:][\\s\\S]*)?$", "m")), ei = (e, t) => !$r(t).test(e), ti = (e, t) => e.replace(zr, (e, n = "", r, i = "", a = "") => n + t + i + a), ni = (e, t, n) => {
|
|
1725
|
+
if (jr.lastIndex = 0, jr.test(e)) {
|
|
1726
|
+
let t = `.${n}`;
|
|
1727
|
+
return e.replace(Or, (e, n) => ti(n, t)).replace(jr, t + " ");
|
|
1728
|
+
}
|
|
1729
|
+
return t + " " + e;
|
|
1730
|
+
}, ri = (e, t, n) => {
|
|
1731
|
+
t = t.replace(/\[is=([^\]]*)\]/g, (e, ...t) => t[0]);
|
|
1732
|
+
let r = "." + t, i = (e) => {
|
|
1733
|
+
let i = e.trim();
|
|
1734
|
+
if (!i) return "";
|
|
1735
|
+
if (e.indexOf($) > -1) i = ni(e, t, n);
|
|
1736
|
+
else {
|
|
1737
|
+
let t = e.replace(jr, "");
|
|
1738
|
+
t.length > 0 && (i = ti(t, r));
|
|
1739
|
+
}
|
|
1740
|
+
return i;
|
|
1741
|
+
}, a = gr(e);
|
|
1742
|
+
e = a.content;
|
|
1743
|
+
let o = "", s = 0, c, l = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g, u = !(e.indexOf($) > -1);
|
|
1744
|
+
for (; (c = l.exec(e)) !== null;) {
|
|
1745
|
+
let t = c[1], n = e.slice(s, c.index).trim();
|
|
1746
|
+
u ||= n.indexOf($) > -1;
|
|
1747
|
+
let r = u ? i(n) : n;
|
|
1748
|
+
o += `${r} ${t} `, s = l.lastIndex;
|
|
1749
|
+
}
|
|
1750
|
+
let d = e.substring(s);
|
|
1751
|
+
return u = !d.match(Ar) && (u || d.indexOf($) > -1), o += u ? i(d) : d, _r(a.placeholders, o);
|
|
1752
|
+
}, ii = (e, t, n, r) => e.split(",").map((e) => r && e.indexOf("." + r) > -1 ? e.trim() : ei(e, t) ? ri(e, t, n).trim() : e.trim()).join(", "), ai = (e) => e.startsWith("@media") || e.startsWith("@supports") || e.startsWith("@page") || e.startsWith("@document") || e.startsWith("@layer") || e.startsWith("@container"), oi = (e, t, n, r, i) => Ur(e, (e) => {
|
|
1753
|
+
let a = e.selector, o = e.content;
|
|
1754
|
+
return e.selector[0] === "@" ? ai(e.selector) && (o = oi(e.content, t, n, r, i)) : a = ii(e.selector, t, n, r), {
|
|
1755
|
+
selector: a.replace(/\s{2,}/g, " ").trim(),
|
|
1756
|
+
content: o
|
|
1757
|
+
};
|
|
1758
|
+
}), si = (e, t, n, r, i) => {
|
|
1759
|
+
e = Gr(e), e = Jr(e), e = Zr(e);
|
|
1760
|
+
let a = Xr(e, r);
|
|
1761
|
+
return e = a.cssText, e = Qr(e), t && (e = oi(e, t, n, r, i)), e = ci(e, n), e = e.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 "), {
|
|
1762
|
+
cssText: e.trim(),
|
|
1763
|
+
slottedSelectors: a.selectors.map((e) => ({
|
|
1764
|
+
orgSelector: ci(e.orgSelector, n),
|
|
1765
|
+
updatedSelector: ci(e.updatedSelector, n)
|
|
1766
|
+
}))
|
|
1767
|
+
};
|
|
1768
|
+
}, ci = (e, t) => e.replace(/-shadowcsshost-no-combinator/g, `.${t}`), li = (e) => {
|
|
1769
|
+
let t = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
|
|
1770
|
+
return Ur(e, (e) => (e.selector[0] === "@" || (e.selector = e.selector.split(",").map((n) => {
|
|
1771
|
+
let r = [n.trim()], i;
|
|
1772
|
+
for (; (i = t.exec(n)) !== null;) {
|
|
1773
|
+
let t = i[1].trimEnd(), a = i[2].trim().split(/\s+/), o = i[3] || "", s = a.flatMap((t) => e.selector.includes(`[part~="${t}"]`) ? [] : [`[part~="${t}"]`]).join(""), c = `${t} ${s}${o}`;
|
|
1774
|
+
s && c !== n.trim() && r.push(c);
|
|
1775
|
+
}
|
|
1776
|
+
return r.join(", ");
|
|
1777
|
+
}).join(", ")), e));
|
|
1778
|
+
}, ui = (e, t, n) => {
|
|
1779
|
+
let r = t + "-h", i = t + "-s", a = Ir(e);
|
|
1780
|
+
e = Pr(e);
|
|
1781
|
+
let o = [];
|
|
1782
|
+
if (n) {
|
|
1783
|
+
let t = (e) => {
|
|
1784
|
+
let t = `/*!@___${o.length}___*/`, n = `/*!@${e.selector}*/`;
|
|
1785
|
+
return o.push({
|
|
1786
|
+
placeholder: t,
|
|
1787
|
+
comment: n
|
|
1788
|
+
}), e.selector = t + e.selector, e;
|
|
1789
|
+
}, n = (e) => Ur(e, (e) => e.selector[0] === "@" ? (ai(e.selector) && (e.content = n(e.content)), e) : t(e));
|
|
1790
|
+
e = n(e);
|
|
1791
|
+
}
|
|
1792
|
+
let s = si(e, t, r, i, n);
|
|
1793
|
+
return e = [s.cssText, ...a].join("\n"), n && o.forEach(({ placeholder: t, comment: n }) => {
|
|
1794
|
+
e = e.replace(t, n);
|
|
1795
|
+
}), s.slottedSelectors.forEach((t) => {
|
|
1796
|
+
let n = RegExp(hr(t.orgSelector) + "(?=\\s*[,{]|$)", "g");
|
|
1797
|
+
e = e.replace(n, t.updatedSelector);
|
|
1798
|
+
}), e = li(e), e;
|
|
1799
|
+
}, di = (e) => Ne.map((t) => t(e)).find((e) => !!e), fi = (e) => {
|
|
1800
|
+
if (!e) return;
|
|
1801
|
+
let t = Object.keys(e);
|
|
1802
|
+
if (t.length === 0) return;
|
|
1803
|
+
let n = !1;
|
|
1804
|
+
for (let r of t) {
|
|
1805
|
+
if (n) break;
|
|
1806
|
+
for (let t of e[r]) if (typeof t == "string") {
|
|
1807
|
+
n = !0;
|
|
1808
|
+
break;
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
if (!n) return e;
|
|
1812
|
+
let r = {};
|
|
1813
|
+
for (let n of t) r[n] = e[n].map((e) => typeof e == "string" ? { [e]: 0 } : e);
|
|
1814
|
+
return r;
|
|
1815
|
+
}, pi = (e, n) => e != null && !Ut(e) ? t.propBoolean && n & D.Boolean ? e === "" || !!e : t.propNumber && n & D.Number ? typeof e == "string" ? parseFloat(e) : typeof e == "number" ? e : NaN : t.propString && n & D.String ? String(e) : e : e, mi = (e, t, n, r, i) => {
|
|
1816
|
+
let a = (i) => {
|
|
1817
|
+
let a = r;
|
|
1818
|
+
for (let e of t.$serializers$[n]) {
|
|
1819
|
+
let [[t]] = Object.entries(e);
|
|
1820
|
+
a = i[t](a, n);
|
|
1821
|
+
}
|
|
1822
|
+
e.$serializerValues$.set(n, a);
|
|
1823
|
+
};
|
|
1824
|
+
i ? a(i) : e.$fetchedCbList$.push(() => a(e.$lazyInstance$));
|
|
1825
|
+
}, hi = (e, n) => {
|
|
1826
|
+
if (t.signalBacking) {
|
|
1827
|
+
let t = j(e)?.$signalValues$?.get(n);
|
|
1828
|
+
if (t !== void 0) return t.value;
|
|
1829
|
+
}
|
|
1830
|
+
return j(e).$instanceValues$.get(n);
|
|
1831
|
+
}, gi = (e, n, r, i) => {
|
|
1832
|
+
let a = j(e);
|
|
1833
|
+
if (t.signalBacking) {
|
|
1834
|
+
let o = a?.$signalValues$?.get(n);
|
|
1835
|
+
if (o !== void 0) {
|
|
1836
|
+
let s = pi(r, i.$members$[n][0]);
|
|
1837
|
+
if (t.serializer && t.reflect && i.$attrsToReflect$ && i.$serializers$?.[n]) {
|
|
1838
|
+
let r = t.lazyLoad ? a.$hostElement$ : e;
|
|
1839
|
+
mi(a, i, n, s, t.lazyLoad ? a.$lazyInstance$ : r);
|
|
1840
|
+
}
|
|
1841
|
+
Number.isNaN(o.peek()) && Number.isNaN(s) || (o.value = s);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
if (!a) {
|
|
1846
|
+
if (t.lazyLoad) throw Error(t.isDev ? `Couldn't find host element for "${i.$tagName$}". This usually happens when integrating a 3rd party Stencil component with another Stencil runtime. See https://github.com/stenciljs/core/issues/5457` : `Host element not found for "${i.$tagName$}"`);
|
|
1847
|
+
return;
|
|
1848
|
+
}
|
|
1849
|
+
if (t.serializer && a.$serializerValues$.has(n) && a.$serializerValues$.get(n) === r) return;
|
|
1850
|
+
let o = t.lazyLoad ? a.$hostElement$ : e, s = a.$instanceValues$.get(n), c = a.$flags$, l = t.lazyLoad ? a.$lazyInstance$ : o;
|
|
1851
|
+
r = pi(r, i.$members$[n][0]);
|
|
1852
|
+
let u = r !== s && !(Number.isNaN(s) && Number.isNaN(r));
|
|
1853
|
+
if ((!t.lazyLoad || !(c & k.isConstructingInstance) || s === void 0) && u) {
|
|
1854
|
+
if (a.$instanceValues$.set(n, r), t.serializer && t.reflect && i.$attrsToReflect$ && i.$serializers$?.[n] && mi(a, i, n, r, l), t.isDev && (a.$flags$ & k.devOnRender ? N(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, "\nElement", o, "\nNew value", r, "\nOld value", s) : a.$flags$ & k.devOnDidLoad && N(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, "\nElement", o, "\nNew value", r, "\nOld value", s)), t.propChangeCallback && i.$watchers$) {
|
|
1855
|
+
let e = i.$watchers$[n];
|
|
1856
|
+
e && e.map((e) => {
|
|
1857
|
+
try {
|
|
1858
|
+
let [[i, o]] = Object.entries(e);
|
|
1859
|
+
if (c & k.isWatchReady || o & ve.Immediate) {
|
|
1860
|
+
if (t.signalBacking && !a.$signalValues$) return;
|
|
1861
|
+
l ? l[i](r, s, n) : a.$fetchedCbList$.push(() => {
|
|
1862
|
+
a.$lazyInstance$[i](r, s, n);
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
} catch (e) {
|
|
1866
|
+
M(e, o);
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1870
|
+
if (t.updatable && c & k.hasRendered) {
|
|
1871
|
+
if (l.componentShouldUpdate) {
|
|
1872
|
+
let e = a.$queuedPropChanges$ ||= {};
|
|
1873
|
+
e[n] = {
|
|
1874
|
+
newVal: r,
|
|
1875
|
+
oldVal: e[n]?.oldVal ?? s
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
c & k.isQueuedForUpdate || zn(a, !1);
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}, _i = (e) => e == null || e === !1 ? null : e === !0 ? "" : String(e), vi = (e, t) => {
|
|
1882
|
+
let n = e.$lazyInstance$;
|
|
1883
|
+
if (n) {
|
|
1884
|
+
for (let [r, [i]] of Object.entries(t.$members$ ?? {})) if (i & D.Setter && e.$instanceValues$.has(r)) {
|
|
1885
|
+
let t = e.$instanceValues$.get(r);
|
|
1886
|
+
n[r] !== t && (n[r] = t);
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
}, yi = (e, n, r) => {
|
|
1890
|
+
let i = e.prototype;
|
|
1891
|
+
if (t.isTesting) {
|
|
1892
|
+
if (i.__stencilAugmented) return;
|
|
1893
|
+
i.__stencilAugmented = !0;
|
|
1894
|
+
}
|
|
1895
|
+
if (t.formAssociated && n.$flags$ & A.formAssociated && r & w.isElementConstructor && ge.forEach((e) => {
|
|
1896
|
+
let n = i[e];
|
|
1897
|
+
Object.defineProperty(i, e, { value(...r) {
|
|
1898
|
+
let i = j(this), a = t.lazyLoad ? i?.$lazyInstance$ : this;
|
|
1899
|
+
if (!a) i?.$onReadyPromise$?.then((t) => {
|
|
1900
|
+
let n = t[e];
|
|
1901
|
+
typeof n == "function" && n.call(t, ...r);
|
|
1902
|
+
});
|
|
1903
|
+
else {
|
|
1904
|
+
let i = t.lazyLoad ? a[e] : n;
|
|
1905
|
+
typeof i == "function" && i.call(a, ...r);
|
|
1906
|
+
}
|
|
1907
|
+
} });
|
|
1908
|
+
}), t.member && n.$members$ || t.propChangeCallback) {
|
|
1909
|
+
t.propChangeCallback && (e.watchers && !n.$watchers$ && (n.$watchers$ = fi(e.watchers)), e.deserializers && !n.$deserializers$ && (n.$deserializers$ = e.deserializers), e.serializers && !n.$serializers$ && (n.$serializers$ = e.serializers));
|
|
1910
|
+
let a = Object.entries(n.$members$ ?? {});
|
|
1911
|
+
if (a.map(([e, [a]]) => {
|
|
1912
|
+
if ((t.prop || t.state) && (a & D.Prop || (!t.lazyLoad || r & w.proxyState) && a & D.State)) {
|
|
1913
|
+
let { get: o, set: s } = Ce(i, e) || {};
|
|
1914
|
+
o && (n.$members$[e][0] |= D.Getter), s && (n.$members$[e][0] |= D.Setter), (r & w.isElementConstructor || !o) && Object.defineProperty(i, e, {
|
|
1915
|
+
get() {
|
|
1916
|
+
if (t.lazyLoad) {
|
|
1917
|
+
if ((n.$members$[e][0] & D.Getter) === 0) return hi(this, e);
|
|
1918
|
+
let t = j(this);
|
|
1919
|
+
return t ? t.$lazyInstance$ ? t.$lazyInstance$[e] : hi(this, e) : i[e];
|
|
1920
|
+
}
|
|
1921
|
+
if (!t.lazyLoad) return o ? o.apply(this) : hi(this, e);
|
|
1922
|
+
},
|
|
1923
|
+
configurable: !0,
|
|
1924
|
+
enumerable: !0
|
|
1925
|
+
}), Object.defineProperty(i, e, { set(i) {
|
|
1926
|
+
let o = j(this);
|
|
1927
|
+
if (o) {
|
|
1928
|
+
if (t.isDev && (r & w.isElementConstructor) === 0 && (n.$members$[e][0] & D.Setter) === 0 && (o && o.$flags$ & k.isConstructingInstance) === 0 && (a & D.Prop) !== 0 && (a & D.Mutable) === 0 && N(`@Prop() "${e}" on <${n.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`), s) (a & D.State ? this[e] : o.$hostElement$[e]) === void 0 && o.$instanceValues$.get(e) && (i = o.$instanceValues$.get(e)), s.apply(this, [pi(i, a)]), i = a & D.State ? this[e] : o.$hostElement$[e], gi(this, e, i, n);
|
|
1929
|
+
else if (!t.lazyLoad) gi(this, e, i, n);
|
|
1930
|
+
else if (t.lazyLoad) {
|
|
1931
|
+
if ((r & w.isElementConstructor) === 0 || (n.$members$[e][0] & D.Setter) === 0) {
|
|
1932
|
+
gi(this, e, i, n);
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
let t = pi(i, a);
|
|
1936
|
+
if (o.$lazyInstance$) {
|
|
1937
|
+
let r = o.$lazyInstance$[e];
|
|
1938
|
+
!o.$instanceValues$.get(e) && r && o.$instanceValues$.set(e, r), o.$lazyInstance$[e] = t, gi(this, e, o.$lazyInstance$[e], n);
|
|
1939
|
+
} else o.$instanceValues$.set(e, t);
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
} });
|
|
1943
|
+
} else t.lazyLoad && t.method && r & w.isElementConstructor && a & D.Method && Object.defineProperty(i, e, { value(...t) {
|
|
1944
|
+
let n = j(this);
|
|
1945
|
+
return n?.$onInstancePromise$?.then(() => n.$lazyInstance$?.[e](...t));
|
|
1946
|
+
} });
|
|
1947
|
+
}), t.observeAttribute && (!t.lazyLoad || r & w.isElementConstructor)) {
|
|
1948
|
+
let r = /* @__PURE__ */ new Map();
|
|
1949
|
+
i.attributeChangedCallback = function(e, o, s) {
|
|
1950
|
+
I.jmp(() => {
|
|
1951
|
+
let c = r.get(e), l = j(this);
|
|
1952
|
+
if (t.serializer && l.$serializerValues$.has(c) && l.$serializerValues$.get(c) === s) return;
|
|
1953
|
+
if (this.hasOwnProperty(c) && t.lazyLoad && (s = this[c], delete this[c]), t.deserializer && n.$deserializers$ && n.$deserializers$[c]) {
|
|
1954
|
+
let e = (e, t) => {
|
|
1955
|
+
let n = t?.[e](s, c);
|
|
1956
|
+
n !== this[c] && (this[c] = n);
|
|
1957
|
+
};
|
|
1958
|
+
for (let r of n.$deserializers$[c]) {
|
|
1959
|
+
let [[n]] = Object.entries(r);
|
|
1960
|
+
t.lazyLoad ? l.$lazyInstance$ ? e(n, l.$lazyInstance$) : l.$fetchedCbList$.push(() => {
|
|
1961
|
+
e(n, l.$lazyInstance$);
|
|
1962
|
+
}) : e(n, this);
|
|
1963
|
+
}
|
|
1964
|
+
return;
|
|
1965
|
+
}
|
|
1966
|
+
if (i.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == s) return;
|
|
1967
|
+
if (c == null) {
|
|
1968
|
+
let r = l?.$flags$;
|
|
1969
|
+
if (l && r && !(r & k.isConstructingInstance) && s !== o) {
|
|
1970
|
+
let i = t.lazyLoad ? l.$hostElement$ : this, a = t.lazyLoad ? l.$lazyInstance$ : i;
|
|
1971
|
+
(n.$watchers$?.[e])?.forEach((t) => {
|
|
1972
|
+
let [[n, i]] = Object.entries(t);
|
|
1973
|
+
a[n] != null && (r & k.isWatchReady || i & ve.Immediate) && a[n](s, o, e);
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
return;
|
|
1977
|
+
}
|
|
1978
|
+
let u = a.find(([e]) => e === c), d = u ? u[1][0] : 0, f = d & D.Boolean;
|
|
1979
|
+
if (t.reflect && d & D.ReflectAttr && d & D.Any && !Ut(this[c]) && _i(this[c]) === s) return;
|
|
1980
|
+
let p = f && s === null && this[c] === void 0;
|
|
1981
|
+
f && (t.isDev && s === "false" && N(`<${n.$tagName$} ${e}="false">: boolean attributes are true when present, regardless of value. Remove the attribute or set the "${c}" property to false instead.`), s = s !== null);
|
|
1982
|
+
let m = Object.getOwnPropertyDescriptor(i, c);
|
|
1983
|
+
p || s == this[c] || m.get && !m.set || (this[c] = s);
|
|
1984
|
+
});
|
|
1985
|
+
}, e.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys(n.$watchers$ ?? {}), ...a.filter(([e, t]) => t[0] & D.HasAttribute).map(([e, i]) => {
|
|
1986
|
+
let a = i[1] || e;
|
|
1987
|
+
return r.set(a, e), t.reflect && i[0] & D.ReflectAttr && n.$attrsToReflect$?.push([e, a]), a;
|
|
1988
|
+
})]));
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
return e;
|
|
1992
|
+
}, bi = async (e, n, r, i) => {
|
|
1993
|
+
let a;
|
|
1994
|
+
try {
|
|
1995
|
+
if ((n.$flags$ & k.hasInitializedComponent) === 0) {
|
|
1996
|
+
n.$flags$ |= k.hasInitializedComponent, n.$flags$ &= ~k.hasFailedLoad;
|
|
1997
|
+
let o = r.$lazyBundleId$;
|
|
1998
|
+
if (t.lazyLoad && o) {
|
|
1999
|
+
let o = Me(r, n, i);
|
|
2000
|
+
if (o && "then" in o) {
|
|
2001
|
+
let e = At(`st:load:${r.$tagName$}:${n.$modeName$}`, `[Stencil] Load module for <${r.$tagName$}>`);
|
|
2002
|
+
a = await o, e();
|
|
2003
|
+
} else a = o;
|
|
2004
|
+
if (!a) throw n.$flags$ &= ~k.hasInitializedComponent, n.$loadRetryCount$ = (n.$loadRetryCount$ ?? 0) + 1, n.$loadRetryCount$ < 3 && (n.$flags$ |= k.hasFailedLoad), Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);
|
|
2005
|
+
t.member && !a.isProxied && (t.propChangeCallback && (r.$watchers$ = fi(a.watchers), r.$serializers$ = a.serializers, r.$deserializers$ = a.deserializers), yi(a, r, w.proxyState), a.isProxied = !0);
|
|
2006
|
+
let s = V("createInstance", r.$tagName$);
|
|
2007
|
+
t.member && (n.$flags$ |= k.isConstructingInstance);
|
|
2008
|
+
try {
|
|
2009
|
+
new a(n);
|
|
2010
|
+
} catch (t) {
|
|
2011
|
+
M(t, e);
|
|
2012
|
+
}
|
|
2013
|
+
t.member && (n.$flags$ &= ~k.isConstructingInstance, vi(n, r)), s(), t.asyncLoading && n.$ancestorComponent$ && await Ln(n.$ancestorComponent$, Yt(e)), t.slotRelocation && r.$flags$ & A.hasSlotRelocation ? queueMicrotask(() => {
|
|
2014
|
+
xi(n.$lazyInstance$, e), t.asyncLoading && In(n);
|
|
2015
|
+
}) : (xi(n.$lazyInstance$, e), t.asyncLoading && In(n));
|
|
2016
|
+
} else a = e.constructor;
|
|
2017
|
+
if (t.style && a && a.style) {
|
|
2018
|
+
let o;
|
|
2019
|
+
typeof a.style == "string" ? o = a.style : t.mode && typeof a.style != "string" && (n.$modeName$ = di(e), n.$modeName$ && (o = a.style[n.$modeName$]), t.hydrateServerSide && n.$modeName$ && e.setAttribute("s-mode", n.$modeName$));
|
|
2020
|
+
let s = zt(r, n.$modeName$);
|
|
2021
|
+
if (!P.has(s) || t.hotModuleReplacement && i) {
|
|
2022
|
+
let e = V("registerStyles", r.$tagName$);
|
|
2023
|
+
t.hydrateServerSide && t.shadowDom && (r.$flags$ & A.shadowNeedsScopedCss ? o = ui(o, s, !0) : Pe() && (o = li(o))), It(s, o, !!(r.$flags$ & A.shadowDomEncapsulation)), e();
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
t.signalBacking && r.$members$ ? $n(e, n, r) : t.vdomSignals && er(e, n);
|
|
2028
|
+
let o = n.$ancestorComponent$, s = () => zn(n, !0);
|
|
2029
|
+
t.asyncLoading && o && o["s-rc"] ? o["s-rc"].push(s) : s();
|
|
2030
|
+
} catch (r) {
|
|
2031
|
+
M(r, e), t.asyncLoading && n.$onRenderResolve$ && (n.$onRenderResolve$(), n.$onRenderResolve$ = void 0), t.asyncLoading && In(n), t.asyncLoading && n.$onReadyResolve$ && !(n.$flags$ & k.hasFailedLoad) && n.$onReadyResolve$(e);
|
|
2032
|
+
}
|
|
2033
|
+
}, xi = (e, n) => {
|
|
2034
|
+
t.lazyLoad && X(e, "connectedCallback", void 0, n);
|
|
2035
|
+
}, Si = (e) => {
|
|
2036
|
+
if ((I.$flags$ & T.isTmpDisconnected) === 0) {
|
|
2037
|
+
let n = j(e);
|
|
2038
|
+
if (!n) return;
|
|
2039
|
+
let r = n.$cmpMeta$, i = V("connectedCallback", r.$tagName$);
|
|
2040
|
+
if (n.$flags$ & k.hasConnected) ji(e, n, r.$listeners$), n?.$lazyInstance$ ? xi(n.$lazyInstance$, e) : n.$flags$ & k.hasFailedLoad ? setTimeout(() => bi(e, n, r), he) : n?.$onReadyPromise$ && n.$onReadyPromise$.then(() => xi(n.$lazyInstance$, e));
|
|
2041
|
+
else {
|
|
2042
|
+
n.$flags$ |= k.hasConnected;
|
|
2043
|
+
let i;
|
|
2044
|
+
if (t.hydrateClientSide && (i = e.getAttribute(ue), i)) {
|
|
2045
|
+
if (t.shadowDom && r.$flags$ & A.shadowDomEncapsulation) {
|
|
2046
|
+
let n = Ot(e), i = t.mode ? Lt(n, r, e.getAttribute("s-mode")) : Lt(n, r);
|
|
2047
|
+
e.classList.remove(i + "-h", i + "-s");
|
|
2048
|
+
} else t.scoped && r.$flags$ & A.scopedCssEncapsulation && (e["s-sc"] = zt(r, t.mode ? e.getAttribute("s-mode") : void 0));
|
|
2049
|
+
cr(e, r.$tagName$, i, n);
|
|
2050
|
+
}
|
|
2051
|
+
if (t.slotRelocation && !i && (t.hydrateServerSide || (t.slot || t.shadowDom) && r.$flags$ & A.hasSlotRelocation) && Ci(e), t.asyncLoading) {
|
|
2052
|
+
let r = e;
|
|
2053
|
+
for (; r = r.parentNode || r.host;) if (t.hydrateClientSide && !r["s-p"] && r.nodeType === E.ElementNode && r.hasAttribute("s-id") && (r["s-p"] = [], r["s-rc"] = [], r["s-pc"] = []), r["s-p"]) {
|
|
2054
|
+
Rn(n, n.$ancestorComponent$ = r);
|
|
2055
|
+
break;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
if (t.prop && !t.hydrateServerSide && r.$members$ && Object.entries(r.$members$).map(([t, [n]]) => {
|
|
2059
|
+
if (n & D.Prop && Object.prototype.hasOwnProperty.call(e, t)) {
|
|
2060
|
+
if (r.$flags$ & A.hasModernPropertyDecls) {
|
|
2061
|
+
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
2062
|
+
if (n && (n.get || n.set)) return;
|
|
2063
|
+
}
|
|
2064
|
+
let n = e[t];
|
|
2065
|
+
delete e[t], e[t] = n;
|
|
2066
|
+
}
|
|
2067
|
+
}), !t.lazyLoad && t.prop && !t.hydrateServerSide) {
|
|
2068
|
+
let t = e["s-pp"];
|
|
2069
|
+
t && (delete e["s-pp"], t.forEach((t, n) => {
|
|
2070
|
+
e[n] = t;
|
|
2071
|
+
}));
|
|
2072
|
+
}
|
|
2073
|
+
t.initializeNextTick ? Ye(() => bi(e, n, r)) : bi(e, n, r);
|
|
2074
|
+
}
|
|
2075
|
+
i();
|
|
2076
|
+
}
|
|
2077
|
+
}, Ci = (e) => {
|
|
2078
|
+
if (!F.document) return;
|
|
2079
|
+
let n = e["s-cr"] = F.document.createComment(t.isDebug ? `content-ref (host=${e.localName})` : "");
|
|
2080
|
+
n["s-cn"] = !0, Y(e, n, e.firstChild);
|
|
2081
|
+
}, wi = (e, n) => {
|
|
2082
|
+
t.lazyLoad && X(e, "disconnectedCallback", void 0, n || e);
|
|
2083
|
+
}, Ti = async (e) => {
|
|
2084
|
+
if ((I.$flags$ & T.isTmpDisconnected) === 0) {
|
|
2085
|
+
let n = j(e);
|
|
2086
|
+
t.hostListener && n?.$rmListeners$ && (n.$rmListeners$.map((e) => e()), n.$rmListeners$ = void 0), t.vdomSignals && n?.$signalCleanup$ && (n.$signalCleanup$(), n.$signalCleanup$ = void 0), t.asyncLoading && n && !(n.$flags$ & k.hasFiredConnected) && In(n), t.lazyLoad ? n?.$lazyInstance$ ? wi(n.$lazyInstance$, e) : n?.$onReadyPromise$ && n.$onReadyPromise$.then(() => wi(n.$lazyInstance$, e)) : wi(e);
|
|
2087
|
+
}
|
|
2088
|
+
H.has(e) && H.delete(e), e.shadowRoot && H.has(e.shadowRoot) && H.delete(e.shadowRoot);
|
|
2089
|
+
}, Ei = (e, n, r) => {
|
|
2090
|
+
if (t.lazyLoad) {
|
|
2091
|
+
let i = j(e);
|
|
2092
|
+
if (!i) return;
|
|
2093
|
+
i.$flags$ = k.hasConnected, t.hostListener && i.$rmListeners$ && (i.$rmListeners$.map((e) => e()), i.$rmListeners$ = void 0), bi(e, i, n, r);
|
|
2094
|
+
} else Di(e, n, r);
|
|
2095
|
+
}, Di = async (e, t, n) => {
|
|
2096
|
+
let r = e.constructor.__stencil_module__;
|
|
2097
|
+
if (!r) console.warn(`[Stencil HMR] No __stencil_module__ on <${t.$tagName$}> constructor - was this built with devMode?`);
|
|
2098
|
+
else try {
|
|
2099
|
+
let e = await import(
|
|
2100
|
+
/* @vite-ignore */
|
|
2101
|
+
`${r}?s-hmr=${n}`
|
|
2102
|
+
), i = Object.values(e).find((e) => typeof e == "function" && e.is === t.$tagName$) ?? e.default;
|
|
2103
|
+
i && Oi(t, i);
|
|
2104
|
+
} catch (e) {
|
|
2105
|
+
console.error(`[Stencil HMR] Failed to reload <${t.$tagName$}>`, e);
|
|
2106
|
+
}
|
|
2107
|
+
}, Oi = (e, n) => {
|
|
2108
|
+
let r = customElements.get(e.$tagName$), i = !!(e.$flags$ & A.shadowDomEncapsulation);
|
|
2109
|
+
if (r && r !== n) {
|
|
2110
|
+
for (let e of Object.getOwnPropertyNames(n.prototype)) e !== "constructor" && Object.defineProperty(r.prototype, e, Object.getOwnPropertyDescriptor(n.prototype, e));
|
|
2111
|
+
let t = Object.getOwnPropertyDescriptor(n, "style");
|
|
2112
|
+
if (t) {
|
|
2113
|
+
Object.defineProperty(r, "style", t);
|
|
2114
|
+
let a = n.style;
|
|
2115
|
+
a && It(zt(e), a, i);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
document.querySelectorAll(e.$tagName$).forEach((n) => {
|
|
2119
|
+
let r = j(n);
|
|
2120
|
+
t.hostListener && r?.$rmListeners$ && (r.$rmListeners$.map((e) => e()), r.$rmListeners$ = void 0, ji(n, r, e.$listeners$)), !i && r && Rt(r), qn(n);
|
|
2121
|
+
});
|
|
2122
|
+
}, ki = (e, t) => {
|
|
2123
|
+
let n = Fi(t[1]), r = Ai(e, t);
|
|
2124
|
+
customElements.get(n) || customElements.define(n, r);
|
|
2125
|
+
}, Ai = (e, n) => {
|
|
2126
|
+
t.profile && performance.mark && performance.getEntriesByName("st:app:start", "mark").length === 0 && performance.mark("st:app:start");
|
|
2127
|
+
let r = {
|
|
2128
|
+
$flags$: n[0],
|
|
2129
|
+
$tagName$: n[1]
|
|
2130
|
+
};
|
|
2131
|
+
try {
|
|
2132
|
+
t.member && (r.$members$ = n[2]), t.hostListener && (r.$listeners$ = n[3]), t.propChangeCallback && (r.$watchers$ = fi(e.$watchers$), r.$deserializers$ = e.$deserializers$, r.$serializers$ = e.$serializers$), t.reflect && (r.$attrsToReflect$ = []), t.hotModuleReplacement && (e.prototype["s-hmr"] = function(e) {
|
|
2133
|
+
Ei(this, r, e);
|
|
2134
|
+
}, e["s-hmr-apply"] = (e) => Oi(r, e)), !(r.$flags$ & A.shadowDomEncapsulation) && (t.slotCloneNode || t.patchClone && r.$flags$ & A.patchClone) && ut(e.prototype), !(r.$flags$ & A.shadowDomEncapsulation) && r.$flags$ & A.hasSlot && (t.lightDomPatches || t.patchAll && r.$flags$ & A.patchAll ? lt(e.prototype) : ((t.slotChildNodes || t.patchChildren && r.$flags$ & A.patchChildren) && vt(e.prototype), (t.slotDomMutations || t.patchInsert && r.$flags$ & A.patchInsert) && (dt(e.prototype), mt(e.prototype), pt(e.prototype), ht(e.prototype), gt(e.prototype), ft(e.prototype)), t.slotTextContent && _t(e.prototype))), t.hydrateClientSide && t.shadowDom && Vt();
|
|
2135
|
+
let i = e.prototype.connectedCallback, a = e.prototype.disconnectedCallback;
|
|
2136
|
+
return Object.assign(e.prototype, {
|
|
2137
|
+
__hasHostListenerAttached: !1,
|
|
2138
|
+
__registerHost() {
|
|
2139
|
+
Te(this, r);
|
|
2140
|
+
},
|
|
2141
|
+
componentOnReady() {
|
|
2142
|
+
return j(this)?.$onReadyPromise$;
|
|
2143
|
+
},
|
|
2144
|
+
async connectedCallback() {
|
|
2145
|
+
let e = !this.__hasHostListenerAttached, n;
|
|
2146
|
+
if (e) {
|
|
2147
|
+
if (n = j(this), !n) return;
|
|
2148
|
+
ji(this, n, r.$listeners$), this.__hasHostListenerAttached = !0;
|
|
2149
|
+
}
|
|
2150
|
+
Si(this), t.asyncLoading && n && n.$ancestorComponent$ && (await Ln(n.$ancestorComponent$, Yt(this)), !this.isConnected) || (i && (I.$flags$ & T.isTmpDisconnected) === 0 && i.call(this), t.asyncLoading && n && In(n));
|
|
2151
|
+
},
|
|
2152
|
+
disconnectedCallback() {
|
|
2153
|
+
Ti(this), a && (I.$flags$ & T.isTmpDisconnected) === 0 && a.call(this);
|
|
2154
|
+
},
|
|
2155
|
+
__attachShadow() {
|
|
2156
|
+
let e = t.shadowModeClosed && !!(r.$flags$ & A.shadowModeClosed), n = this.shadowRoot;
|
|
2157
|
+
if (t.shadowModeClosed && e && (n = this.__shadowRoot ?? null), !n) $e.call(this, r);
|
|
2158
|
+
else if (t.isDev && t.shadowModeClosed && e && n.mode !== "closed") throw Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${n.mode} but expected closed.`);
|
|
2159
|
+
}
|
|
2160
|
+
}), Object.defineProperty(e, "is", {
|
|
2161
|
+
value: r.$tagName$,
|
|
2162
|
+
configurable: !0
|
|
2163
|
+
}), yi(e, r, w.isElementConstructor | w.proxyState);
|
|
2164
|
+
} catch (t) {
|
|
2165
|
+
return M(t), e;
|
|
2166
|
+
}
|
|
2167
|
+
}, ji = (e, n, r) => {
|
|
2168
|
+
t.hostListener && r && F.document && r.map(([r, i, a]) => {
|
|
2169
|
+
let o = t.hostListenerTarget ? Ni(F.document, e, r) : e, s = Mi(n, a), c = Pi(r);
|
|
2170
|
+
I.ael(o, i, s, c), (n.$rmListeners$ = n.$rmListeners$ || []).push(() => I.rel(o, i, s, c));
|
|
2171
|
+
});
|
|
2172
|
+
}, Mi = (e, n) => (r) => {
|
|
2173
|
+
try {
|
|
2174
|
+
t.lazyLoad ? e.$flags$ & k.isListenReady ? e.$lazyInstance$?.[n](r) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([n, r]) : e.$hostElement$[n](r);
|
|
2175
|
+
} catch (t) {
|
|
2176
|
+
M(t, e.$hostElement$);
|
|
2177
|
+
}
|
|
2178
|
+
}, Ni = (e, n, r) => t.hostListenerTargetDocument && r & O.TargetDocument ? e : t.hostListenerTargetWindow && r & O.TargetWindow ? F : t.hostListenerTargetBody && r & O.TargetBody ? e.body : n, Pi = (e) => Ie ? {
|
|
2179
|
+
passive: (e & O.Passive) !== 0,
|
|
2180
|
+
capture: (e & O.Capture) !== 0
|
|
2181
|
+
} : (e & O.Capture) !== 0;
|
|
2182
|
+
t.lazyLoad || globalThis.HTMLElement;
|
|
2183
|
+
function Fi(e) {
|
|
2184
|
+
return e;
|
|
2185
|
+
}
|
|
2186
|
+
export { Kt as n, ki as r, Fe as t };
|