@mgdis/stencil-helpers 1.1.3 → 1.1.5

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/index.es.js CHANGED
@@ -1,30 +1,30 @@
1
- var ce = Object.defineProperty;
2
- var ae = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var h = (e, t, s) => (ae(e, typeof t != "symbol" ? t + "" : t, s), s);
4
- const Me = (e = "", t = 10) => {
1
+ var $e = Object.defineProperty;
2
+ var ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var v = (e, t, s) => ue(e, typeof t != "symbol" ? t + "" : t, s);
4
+ const Ce = (e = "", t = 10) => {
5
5
  const s = new Uint8Array(t);
6
6
  crypto.getRandomValues(s);
7
- const r = Array.from(s).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
7
+ const r = Array.from(s).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, t);
8
8
  return e !== "" ? `${e}-${r}` : r;
9
9
  };
10
- class Oe {
10
+ class He {
11
11
  constructor(t = []) {
12
12
  /**
13
13
  * Available classes
14
14
  */
15
- h(this, "classes");
15
+ v(this, "classes");
16
16
  /**
17
17
  * Add class
18
18
  * @param className - class name to add
19
19
  */
20
- h(this, "add", (t) => {
20
+ v(this, "add", (t) => {
21
21
  this.has(t) || this.classes.push(t);
22
22
  });
23
23
  /**
24
24
  * Delete class
25
25
  * @param className - class name to delete
26
26
  */
27
- h(this, "delete", (t) => {
27
+ v(this, "delete", (t) => {
28
28
  const s = this.classes.indexOf(t);
29
29
  s > -1 && this.classes.splice(s, 1);
30
30
  });
@@ -33,148 +33,146 @@ class Oe {
33
33
  * @param className - class name to check
34
34
  * @returns class name is in the list
35
35
  */
36
- h(this, "has", (t) => this.classes.includes(t));
36
+ v(this, "has", (t) => this.classes.includes(t));
37
37
  /**
38
38
  * Join classes seperated by spaces
39
39
  * @returns joined values
40
40
  */
41
- h(this, "join", () => this.classes.join(" "));
41
+ v(this, "join", () => this.classes.join(" "));
42
42
  this.classes = t;
43
43
  }
44
44
  }
45
- const Fe = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), De = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), _e = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Be = (e) => {
46
- const t = X(e), s = K(e);
45
+ const Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', ze = (e) => {
46
+ const t = Q(e), s = Z(e);
47
47
  return [e, ...t, ...s];
48
- }, X = (e, t = []) => {
48
+ }, Q = (e, t = []) => {
49
49
  if (e.self !== e.top)
50
50
  try {
51
51
  const s = e.parent;
52
- return s ? (t.push(s), X(s, t)) : t;
52
+ return s ? (t.push(s), Q(s, t)) : t;
53
53
  } catch (s) {
54
54
  return console.error("Different hosts between iframes:", s), t;
55
55
  }
56
56
  return t;
57
- }, K = (e, t = []) => {
57
+ }, Z = (e, t = []) => {
58
58
  if (e.frames.length > 0)
59
59
  for (const s of Array.from(e.frames))
60
- t.push(s), K(s, t);
60
+ t.push(s), Z(s, t);
61
61
  return t;
62
- }, Ne = (e) => typeof e == "string" && e.trim() !== "", Ue = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Ce = async (e) => e(), Q = (e, t) => {
62
+ }, Ie = (e) => typeof e == "string" && e.trim() !== "", qe = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Ge = async (e) => e(), J = (e, t) => {
63
63
  if (!t)
64
64
  return;
65
65
  const s = t.split("/");
66
66
  return `${e}${s.slice(2, s.length - 1).join("-")}--docs`;
67
- }, fe = (e, t) => {
67
+ }, de = (e, t) => {
68
68
  if (t)
69
69
  return `${e}${t}`;
70
- }, J = (e) => {
70
+ }, Y = (e) => {
71
71
  let t = e.overview ? `${e.overview}
72
72
 
73
73
  ` : "";
74
- const s = e.props.filter(({ attr: n }) => n !== void 0);
74
+ const s = e.props.filter(({ attr: l }) => l !== void 0);
75
75
  s.length && (t += `Attributes:
76
- `, t += s.map(({ attr: n, docs: l }) => `- \`${n}\`: ${l}
76
+ `, t += s.map(({ attr: l, docs: o }) => `- \`${l}\`: ${o}
77
77
  `).join(""), t += `
78
78
  `);
79
- const r = e.props.filter(({ attr: n }) => n === void 0);
79
+ const r = e.props.filter(({ attr: l }) => l === void 0);
80
80
  return r.length && (t += `Properties:
81
- `, t += r.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
81
+ `, t += r.map(({ name: l, docs: o }) => `- \`${l}\`: ${o}
82
82
  `).join(""), t += `
83
83
  `), e.methods.length && (t += `Methods:
84
- `, t += e.methods.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
84
+ `, t += e.methods.map(({ name: l, docs: o }) => `- \`${l}\`: ${o}
85
85
  `).join(""), t += `
86
86
  `), e.events.length && (t += `Events:
87
- `, t += e.events.map(({ event: n, docs: l }) => `- \`${n}\`: ${l}
87
+ `, t += e.events.map(({ event: l, docs: o }) => `- \`${l}\`: ${o}
88
88
  `).join(""), t += `
89
89
  `), e.listeners.length && (t += `Listeners:
90
- `, t += e.listeners.map(({ event: n }) => `- \`${n}\`
90
+ `, t += e.listeners.map(({ event: l }) => `- \`${l}\`
91
91
  `).join(""), t += `
92
92
  `), e.slots.length && (t += `Slots:
93
- `, t += e.slots.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
93
+ `, t += e.slots.map(({ name: l, docs: o }) => `- \`${l}\`: ${o}
94
94
  `).join(""), t += `
95
95
  `), t;
96
- }, F = (e) => `${e.docs}
96
+ }, D = (e) => `${e.docs}
97
97
 
98
- Type: \`${e.type}\``, He = (e, t, s, r) => ({
98
+ Type: \`${e.type}\``, Xe = (e, t, s, r) => ({
99
99
  $schema: "https://json.schemastore.org/web-types",
100
100
  name: e,
101
101
  version: t,
102
102
  "description-markup": "markdown",
103
103
  contributions: {
104
104
  html: {
105
- elements: s.components.map((n) => {
106
- const l = Q(r, n.filePath);
105
+ elements: s.components.map((l) => {
106
+ const o = J(r, l.filePath);
107
107
  return {
108
- name: n.tag,
109
- description: J(n),
110
- "doc-url": l,
111
- attributes: n.props.filter((o) => o.attr).map((o) => ({
112
- name: o.attr,
113
- description: F(o),
114
- "doc-url": l,
108
+ name: l.tag,
109
+ description: Y(l),
110
+ "doc-url": o,
111
+ attributes: l.props.filter((n) => n.attr).map((n) => ({
112
+ name: n.attr,
113
+ description: D(n),
114
+ "doc-url": o,
115
115
  value: {
116
- type: o.type,
117
- default: o.default,
118
- required: o.required
116
+ type: n.type,
117
+ default: n.default,
118
+ required: n.required
119
119
  }
120
120
  })),
121
121
  js: {
122
- properties: n.props.map((o) => ({
123
- name: o.name,
124
- description: F(o),
125
- "doc-url": l,
122
+ properties: l.props.map((n) => ({
123
+ name: n.name,
124
+ description: D(n),
125
+ "doc-url": o,
126
126
  value: {
127
- type: o.type,
128
- default: o.default,
129
- required: o.required
127
+ type: n.type,
128
+ default: n.default,
129
+ required: n.required
130
130
  }
131
131
  })),
132
- events: n.events.map((o) => ({
133
- name: o.event,
134
- description: o.docs
132
+ events: l.events.map((n) => ({
133
+ name: n.event,
134
+ description: n.docs
135
135
  }))
136
136
  }
137
137
  };
138
138
  })
139
139
  }
140
140
  }
141
- }), $e = (e, t, s) => {
142
- if (s)
143
- return [
144
- { name: "Storybook", url: Q(e, s) },
145
- { name: "Sources", url: fe(t, s) }
146
- ];
147
- }, ue = (e) => {
141
+ }), pe = (e, t, s) => [
142
+ { name: "Storybook", url: J(e, s) },
143
+ { name: "Sources", url: de(t, s) }
144
+ ], ve = (e) => {
148
145
  if (!e.values.some(({ value: t }) => t === void 0))
149
146
  return e.values.map(({ value: t }) => ({ name: t }));
150
- }, Pe = (e, t, s, r) => ({
147
+ }, Ke = (e, t, s, r) => ({
151
148
  version: e,
152
- tags: t.components.map((n) => {
153
- const l = $e(s, r, n.filePath);
149
+ tags: t.components.map((l) => {
150
+ const o = pe(s, r, l.filePath);
154
151
  return {
155
- name: n.tag,
156
- description: J(n),
157
- attributes: n.props.map((o) => ({
158
- name: o.attr || o.name,
159
- description: F(o),
160
- values: ue(o),
161
- references: l
152
+ name: l.tag,
153
+ description: Y(l),
154
+ attributes: l.props.map((n) => ({
155
+ name: n.attr || n.name,
156
+ description: D(n),
157
+ values: ve(n),
158
+ references: o
162
159
  })),
163
- references: l
160
+ references: o
164
161
  };
165
162
  }),
166
163
  globalAttributes: [],
167
164
  valueSets: []
168
- }), We = (e) => {
165
+ }), Qe = (e) => {
169
166
  const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
170
- return pe([t.value, s.value, r.value].join("-"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
171
- }, ze = (e) => e.toISOString().split("T")[0], de = (e, t, s) => {
172
- const r = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), l = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || s, o = l.split("-").shift();
167
+ return ye([t.value, s.value, r.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
168
+ }, Ze = (e) => e.toISOString().split("T")[0], ge = (e, t, s) => {
169
+ const r = e.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || s, n = o.split("-").shift();
173
170
  return {
174
- locale: l,
175
- messages: t[o] || t[s]
171
+ locale: o,
172
+ messages: t[n] || t[s]
176
173
  };
177
- }, qe = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), we = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), ge = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, pe = (e, t) => typeof e != "string" || e === "" || !ge.test(e) ? "" : new Intl.DateTimeFormat(t).format(new Date(e)), Ge = (e, t) => (s) => de(s, e, t), _ = {
174
+ }, Je = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ye = (e, t, s) => typeof e != "string" || e === "" || !he.test(e) ? "" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(s, e, t);
175
+ var U = {
178
176
  allRenderFn: !1,
179
177
  cmpDidLoad: !0,
180
178
  cmpDidUnload: !1,
@@ -240,6 +238,7 @@ Type: \`${e.type}\``, He = (e, t, s, r) => ({
240
238
  cloneNodeFix: !1,
241
239
  hydratedAttribute: !1,
242
240
  hydratedClass: !0,
241
+ // TODO(STENCIL-1305): remove this option
243
242
  scriptDataOpts: !1,
244
243
  // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
245
244
  scopedSlotTextContentFix: !1,
@@ -262,26 +261,55 @@ Type: \`${e.type}\``, He = (e, t, s, r) => ({
262
261
  attachStyles: !0,
263
262
  // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
264
263
  experimentalSlotFixes: !1
265
- };
266
- let k, D, x, B = !1, R = !1, N = !1, y = !1;
267
- const H = "http://www.w3.org/1999/xlink", P = {}, he = "http://www.w3.org/2000/svg", ye = "http://www.w3.org/1999/xhtml", ve = (e) => e != null, Y = (e) => (e = typeof e, e === "object" || e === "function"), Z = (e, t, ...s) => {
268
- let r = null, n = null, l = null, o = !1, c = !1;
269
- const i = [], d = (f) => {
264
+ }, be = Object.defineProperty, Se = (e, t) => {
265
+ for (var s in t)
266
+ be(e, s, { get: t[s], enumerable: !0 });
267
+ }, W = {}, me = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml", ke = (e) => e != null, V = (e) => (e = typeof e, e === "object" || e === "function"), xe = {};
268
+ Se(xe, {
269
+ err: () => ee,
270
+ map: () => Ee,
271
+ ok: () => N,
272
+ unwrap: () => Ae,
273
+ unwrapErr: () => Le
274
+ });
275
+ var N = (e) => ({
276
+ isOk: !0,
277
+ isErr: !1,
278
+ value: e
279
+ }), ee = (e) => ({
280
+ isOk: !1,
281
+ isErr: !0,
282
+ value: e
283
+ });
284
+ function Ee(e, t) {
285
+ if (e.isOk) {
286
+ const s = t(e.value);
287
+ return s instanceof Promise ? s.then((r) => N(r)) : N(s);
288
+ }
289
+ if (e.isErr) {
290
+ const s = e.value;
291
+ return ee(s);
292
+ }
293
+ throw "should never get here";
294
+ }
295
+ var Ae = (e) => {
296
+ if (e.isOk)
297
+ return e.value;
298
+ throw e.value;
299
+ }, Le = (e) => {
300
+ if (e.isErr)
301
+ return e.value;
302
+ throw e.value;
303
+ }, z = "http://www.w3.org/1999/xlink", Re = (e, t, ...s) => {
304
+ let r = null, l = null, o = null, n = !1, i = !1;
305
+ const a = [], d = (f) => {
270
306
  for (let $ = 0; $ < f.length; $++)
271
- r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != "boolean" && ((o = typeof e != "function" && !Y(r)) && (r = String(r)), o && c ? i[i.length - 1].$text$ += r : i.push(o ? M(null, r) : r), c = o);
307
+ r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != "boolean" && ((n = !V(r)) && (r = String(r)), n && i ? a[a.length - 1].$text$ += r : a.push(n ? _(null, r) : r), i = n);
272
308
  };
273
- if (d(s), t) {
274
- t.key && (n = t.key), t.name && (l = t.name);
275
- {
276
- const f = t.className || t.class;
277
- f && (t.class = typeof f != "object" ? f : Object.keys(f).filter(($) => f[$]).join(" "));
278
- }
279
- }
280
- if (typeof e == "function")
281
- return e(t === null ? {} : t, i, ke);
282
- const u = M(e, null);
283
- return u.$attrs$ = t, i.length > 0 && (u.$children$ = i), u.$key$ = n, u.$name$ = l, u;
284
- }, M = (e, t) => {
309
+ d(s);
310
+ const u = _(e, null);
311
+ return u.$attrs$ = t, a.length > 0 && (u.$children$ = a), u.$key$ = l, u.$name$ = o, u;
312
+ }, _ = (e, t) => {
285
313
  const s = {
286
314
  $flags$: 0,
287
315
  $tag$: e,
@@ -290,66 +318,48 @@ const H = "http://www.w3.org/1999/xlink", P = {}, he = "http://www.w3.org/2000/s
290
318
  $children$: null
291
319
  };
292
320
  return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
293
- }, be = {}, Se = (e) => e && e.$tag$ === be, ke = {
294
- forEach: (e, t) => e.map(W).forEach(t),
295
- map: (e, t) => e.map(W).map(t).map(Te)
296
- }, W = (e) => ({
297
- vattrs: e.$attrs$,
298
- vchildren: e.$children$,
299
- vkey: e.$key$,
300
- vname: e.$name$,
301
- vtag: e.$tag$,
302
- vtext: e.$text$
303
- }), Te = (e) => {
304
- if (typeof e.vtag == "function") {
305
- const s = Object.assign({}, e.vattrs);
306
- return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), Z(e.vtag, s, ...e.vchildren || []);
307
- }
308
- const t = M(e.vtag, e.vtext);
309
- return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
310
- }, z = (e, t, s, r, n, l) => {
321
+ }, je = {}, Oe = (e) => e && e.$tag$ === je, I = (e, t, s, r, l, o) => {
311
322
  if (s !== r) {
312
- let o = I(e, t), c = t.toLowerCase();
323
+ let n = K(e, t), i = t.toLowerCase();
313
324
  if (t === "class") {
314
- const i = e.classList, d = q(s), u = q(r);
315
- i.remove(...d.filter((f) => f && !u.includes(f))), i.add(...u.filter((f) => f && !d.includes(f)));
325
+ const a = e.classList, d = q(s), u = q(r);
326
+ a.remove(...d.filter((f) => f && !u.includes(f))), a.add(...u.filter((f) => f && !d.includes(f)));
316
327
  } else if (t === "style") {
317
- for (const i in s)
318
- (!r || r[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
319
- for (const i in r)
320
- (!s || r[i] !== s[i]) && (i.includes("-") ? e.style.setProperty(i, r[i]) : e.style[i] = r[i]);
321
- } else if (t !== "key")
322
- if (t === "ref")
323
- r && r(e);
324
- else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
325
- if (t[2] === "-" ? t = t.slice(3) : I(C, c) ? t = c.slice(2) : t = c[2] + t.slice(3), s || r) {
326
- const i = t.endsWith(V);
327
- t = t.replace(me, ""), s && m.rel(e, t, s, i), r && m.ael(e, t, r, i);
328
- }
329
- } else {
330
- const i = Y(r);
331
- if ((o || i && r !== null) && !n)
332
- try {
333
- if (e.tagName.includes("-"))
334
- e[t] = r;
335
- else {
336
- const u = r ?? "";
337
- t === "list" ? o = !1 : (s == null || e[t] != u) && (e[t] = u);
338
- }
339
- } catch {
340
- }
341
- let d = !1;
342
- c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (d ? e.removeAttributeNS(H, t) : e.removeAttribute(t)) : (!o || l & 4 || n) && !i && (r = r === !0 ? "" : r, d ? e.setAttributeNS(H, t, r) : e.setAttribute(t, r));
328
+ for (const a in s)
329
+ (!r || r[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
330
+ for (const a in r)
331
+ (!s || r[a] !== s[a]) && (a.includes("-") ? e.style.setProperty(a, r[a]) : e.style[a] = r[a]);
332
+ } else if (t !== "key") if (t === "ref")
333
+ r && r(e);
334
+ else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
335
+ if (t[2] === "-" ? t = t.slice(3) : K(B, i) ? t = i.slice(2) : t = i[2] + t.slice(3), s || r) {
336
+ const a = t.endsWith(te);
337
+ t = t.replace(De, ""), s && E.rel(e, t, s, a), r && E.ael(e, t, r, a);
343
338
  }
339
+ } else {
340
+ const a = V(r);
341
+ if ((n || a && r !== null) && !l)
342
+ try {
343
+ if (e.tagName.includes("-"))
344
+ e[t] = r;
345
+ else {
346
+ const u = r ?? "";
347
+ t === "list" ? n = !1 : (s == null || e[t] != u) && (e[t] = u);
348
+ }
349
+ } catch {
350
+ }
351
+ let d = !1;
352
+ i !== (i = i.replace(/^xlink\:?/, "")) && (t = i, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (d ? e.removeAttributeNS(z, t) : e.removeAttribute(t)) : (!n || o & 4 || l) && !a && (r = r === !0 ? "" : r, d ? e.setAttributeNS(z, t, r) : e.setAttribute(t, r));
353
+ }
344
354
  }
345
- }, xe = /\s/, q = (e) => e ? e.split(xe) : [], V = "Capture", me = new RegExp(V + "$"), ee = (e, t, s, r) => {
346
- const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || P, o = t.$attrs$ || P;
347
- for (r of w(Object.keys(l)))
348
- r in o || z(n, r, l[r], void 0, s, t.$flags$);
349
- for (r of w(Object.keys(o)))
350
- z(n, r, l[r], o[r], s, t.$flags$);
355
+ }, Me = /\s/, q = (e) => e ? e.split(Me) : [], te = "Capture", De = new RegExp(te + "$"), se = (e, t, s) => {
356
+ const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || W, o = t.$attrs$ || W;
357
+ for (const n of G(Object.keys(l)))
358
+ n in o || I(r, n, l[n], void 0, s, t.$flags$);
359
+ for (const n of G(Object.keys(o)))
360
+ I(r, n, l[n], o[n], s, t.$flags$);
351
361
  };
352
- function w(e) {
362
+ function G(e) {
353
363
  return e.includes("ref") ? (
354
364
  // we need to sort these to ensure that `'ref'` is the last attr
355
365
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -358,84 +368,97 @@ function w(e) {
358
368
  e
359
369
  );
360
370
  }
361
- const O = (e, t, s, r) => {
362
- var n;
363
- const l = t.$children$[s];
364
- let o = 0, c, i, d;
365
- if (B || (N = !0, l.$tag$ === "slot" && (k && r.classList.add(k + "-s"), l.$flags$ |= l.$children$ ? (
371
+ var T, F, x, w = !1, O = !1, C = !1, h = !1, M = (e, t, s, r) => {
372
+ var l;
373
+ const o = t.$children$[s];
374
+ let n = 0, i, a, d;
375
+ if (w || (C = !0, o.$tag$ === "slot" && (T && r.classList.add(T + "-s"), o.$flags$ |= o.$children$ ? (
366
376
  // slot element has fallback content
377
+ // still create an element that "mocks" the slot element
367
378
  2
368
379
  ) : (
369
380
  // slot element does not have fallback content
381
+ // create an html comment we'll use to always reference
382
+ // where actual slot content should sit next to
370
383
  1
371
- ))), l.$text$ !== null)
372
- c = l.$elm$ = j.createTextNode(l.$text$);
373
- else if (l.$flags$ & 1)
374
- c = l.$elm$ = j.createTextNode("");
384
+ ))), o.$text$ !== null)
385
+ i = o.$elm$ = j.createTextNode(o.$text$);
386
+ else if (o.$flags$ & 1)
387
+ i = o.$elm$ = j.createTextNode("");
375
388
  else {
376
- if (y || (y = l.$tag$ === "svg"), c = l.$elm$ = j.createElementNS(y ? he : ye, l.$flags$ & 2 ? "slot-fb" : l.$tag$), y && l.$tag$ === "foreignObject" && (y = !1), ee(null, l, y), ve(k) && c["s-si"] !== k && c.classList.add(c["s-si"] = k), l.$children$)
377
- for (o = 0; o < l.$children$.length; ++o)
378
- i = O(e, l, o, c), i && c.appendChild(i);
379
- l.$tag$ === "svg" ? y = !1 : c.tagName === "foreignObject" && (y = !0);
389
+ if (h || (h = o.$tag$ === "svg"), i = o.$elm$ = j.createElementNS(
390
+ h ? me : Te,
391
+ o.$flags$ & 2 ? "slot-fb" : o.$tag$
392
+ ), h && o.$tag$ === "foreignObject" && (h = !1), se(null, o, h), ke(T) && i["s-si"] !== T && i.classList.add(i["s-si"] = T), P(i, r), o.$children$)
393
+ for (n = 0; n < o.$children$.length; ++n)
394
+ a = M(e, o, n, i), a && i.appendChild(a);
395
+ o.$tag$ === "svg" ? h = !1 : i.tagName === "foreignObject" && (h = !0);
380
396
  }
381
- return c["s-hn"] = x, l.$flags$ & 3 && (c["s-sr"] = !0, c["s-cr"] = D, c["s-sn"] = l.$name$ || "", c["s-rf"] = (n = l.$attrs$) === null || n === void 0 ? void 0 : n.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === l.$tag$ && e.$elm$ && A(e.$elm$, !1)), c;
397
+ return i["s-hn"] = x, o.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = F, i["s-sn"] = o.$name$ || "", i["s-rf"] = (l = o.$attrs$) == null ? void 0 : l.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === o.$tag$ && e.$elm$ && A(e.$elm$, !1)), i;
382
398
  }, A = (e, t) => {
383
- m.$flags$ |= 1;
399
+ E.$flags$ |= 1;
384
400
  const s = Array.from(e.childNodes);
385
- if (e["s-sr"] && _.experimentalSlotFixes) {
401
+ if (e["s-sr"] && U.experimentalSlotFixes) {
386
402
  let r = e;
387
403
  for (; r = r.nextSibling; )
388
404
  r && r["s-sn"] === e["s-sn"] && r["s-sh"] === x && s.push(r);
389
405
  }
390
406
  for (let r = s.length - 1; r >= 0; r--) {
391
- const n = s[r];
392
- n["s-hn"] !== x && n["s-ol"] && (re(n).insertBefore(n, U(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, N = !0), t && A(n, t);
407
+ const l = s[r];
408
+ l["s-hn"] !== x && l["s-ol"] && (m(oe(l), l, H(l)), l["s-ol"].remove(), l["s-ol"] = void 0, l["s-sh"] = void 0, C = !0), t && A(l, t);
393
409
  }
394
- m.$flags$ &= -2;
395
- }, te = (e, t, s, r, n, l) => {
396
- let o = e["s-cr"] && e["s-cr"].parentNode || e, c;
397
- for (o.shadowRoot && o.tagName === x && (o = o.shadowRoot); n <= l; ++n)
398
- r[n] && (c = O(null, s, n, e), c && (r[n].$elm$ = c, o.insertBefore(c, U(t))));
399
- }, se = (e, t, s) => {
410
+ E.$flags$ &= -2;
411
+ }, re = (e, t, s, r, l, o) => {
412
+ let n = e["s-cr"] && e["s-cr"].parentNode || e, i;
413
+ for (n.shadowRoot && n.tagName === x && (n = n.shadowRoot); l <= o; ++l)
414
+ r[l] && (i = M(null, s, l, e), i && (r[l].$elm$ = i, m(n, i, H(t))));
415
+ }, le = (e, t, s) => {
400
416
  for (let r = t; r <= s; ++r) {
401
- const n = e[r];
402
- if (n) {
403
- const l = n.$elm$;
404
- oe(n), l && (R = !0, l["s-ol"] ? l["s-ol"].remove() : A(l, !0), l.remove());
417
+ const l = e[r];
418
+ if (l) {
419
+ const o = l.$elm$;
420
+ ae(l), o && (O = !0, o["s-ol"] ? o["s-ol"].remove() : A(o, !0), o.remove());
405
421
  }
406
422
  }
407
- }, Ae = (e, t, s, r, n = !1) => {
408
- let l = 0, o = 0, c = 0, i = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, a = r[0], g = r[$], b, v;
409
- for (; l <= d && o <= $; )
423
+ }, Ne = (e, t, s, r, l = !1) => {
424
+ let o = 0, n = 0, i = 0, a = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, c = r[0], p = r[$], b, y;
425
+ for (; o <= d && n <= $; )
410
426
  if (u == null)
411
- u = t[++l];
427
+ u = t[++o];
412
428
  else if (f == null)
413
429
  f = t[--d];
414
- else if (a == null)
415
- a = r[++o];
416
- else if (g == null)
417
- g = r[--$];
418
- else if (E(u, a, n))
419
- T(u, a, n), u = t[++l], a = r[++o];
420
- else if (E(f, g, n))
421
- T(f, g, n), f = t[--d], g = r[--$];
422
- else if (E(u, g, n))
423
- (u.$tag$ === "slot" || g.$tag$ === "slot") && A(u.$elm$.parentNode, !1), T(u, g, n), e.insertBefore(u.$elm$, f.$elm$.nextSibling), u = t[++l], g = r[--$];
424
- else if (E(f, a, n))
425
- (u.$tag$ === "slot" || g.$tag$ === "slot") && A(f.$elm$.parentNode, !1), T(f, a, n), e.insertBefore(f.$elm$, u.$elm$), f = t[--d], a = r[++o];
430
+ else if (c == null)
431
+ c = r[++n];
432
+ else if (p == null)
433
+ p = r[--$];
434
+ else if (R(u, c, l))
435
+ k(u, c, l), u = t[++o], c = r[++n];
436
+ else if (R(f, p, l))
437
+ k(f, p, l), f = t[--d], p = r[--$];
438
+ else if (R(u, p, l))
439
+ (u.$tag$ === "slot" || p.$tag$ === "slot") && A(u.$elm$.parentNode, !1), k(u, p, l), m(e, u.$elm$, f.$elm$.nextSibling), u = t[++o], p = r[--$];
440
+ else if (R(f, c, l))
441
+ (u.$tag$ === "slot" || p.$tag$ === "slot") && A(f.$elm$.parentNode, !1), k(f, c, l), m(e, f.$elm$, u.$elm$), f = t[--d], c = r[++n];
426
442
  else {
427
- for (c = -1, i = l; i <= d; ++i)
428
- if (t[i] && t[i].$key$ !== null && t[i].$key$ === a.$key$) {
429
- c = i;
443
+ for (i = -1, a = o; a <= d; ++a)
444
+ if (t[a] && t[a].$key$ !== null && t[a].$key$ === c.$key$) {
445
+ i = a;
430
446
  break;
431
447
  }
432
- c >= 0 ? (v = t[c], v.$tag$ !== a.$tag$ ? b = O(t && t[o], s, c, e) : (T(v, a, n), t[c] = void 0, b = v.$elm$), a = r[++o]) : (b = O(t && t[o], s, o, e), a = r[++o]), b && re(u.$elm$).insertBefore(b, U(u.$elm$));
448
+ i >= 0 ? (y = t[i], y.$tag$ !== c.$tag$ ? b = M(t && t[n], s, i, e) : (k(y, c, l), t[i] = void 0, b = y.$elm$), c = r[++n]) : (b = M(t && t[n], s, n, e), c = r[++n]), b && m(oe(u.$elm$), b, H(u.$elm$));
433
449
  }
434
- l > d ? te(e, r[$ + 1] == null ? null : r[$ + 1].$elm$, s, r, o, $) : o > $ && se(t, l, d);
435
- }, E = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, U = (e) => e && e["s-ol"] || e, re = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, T = (e, t, s = !1) => {
436
- const r = t.$elm$ = e.$elm$, n = e.$children$, l = t.$children$, o = t.$tag$, c = t.$text$;
437
- let i;
438
- c === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, o === "slot" && !B || ee(e, t, y), n !== null && l !== null ? Ae(r, n, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = ""), te(r, null, t, l, 0, l.length - 1)) : n !== null && se(n, 0, n.length - 1), y && o === "svg" && (y = !1)) : (i = r["s-cr"]) ? i.parentNode.textContent = c : e.$text$ !== c && (r.data = c);
450
+ o > d ? re(
451
+ e,
452
+ r[$ + 1] == null ? null : r[$ + 1].$elm$,
453
+ s,
454
+ r,
455
+ n,
456
+ $
457
+ ) : n > $ && le(t, o, d);
458
+ }, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, H = (e) => e && e["s-ol"] || e, oe = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, k = (e, t, s = !1) => {
459
+ const r = t.$elm$ = e.$elm$, l = e.$children$, o = t.$children$, n = t.$tag$, i = t.$text$;
460
+ let a;
461
+ i === null ? (h = n === "svg" ? !0 : n === "foreignObject" ? !1 : h, n === "slot" && !w || se(e, t, h), l !== null && o !== null ? Ne(r, l, t, o, s) : o !== null ? (e.$text$ !== null && (r.textContent = ""), re(r, null, t, o, 0, o.length - 1)) : l !== null && le(l, 0, l.length - 1), h && n === "svg" && (h = !1)) : (a = r["s-cr"]) ? a.parentNode.textContent = i : e.$text$ !== i && (r.data = i);
439
462
  }, ne = (e) => {
440
463
  const t = e.childNodes;
441
464
  for (const s of t)
@@ -443,14 +466,14 @@ const O = (e, t, s, r) => {
443
466
  if (s["s-sr"]) {
444
467
  const r = s["s-sn"];
445
468
  s.hidden = !1;
446
- for (const n of t)
447
- if (n !== s) {
448
- if (n["s-hn"] !== s["s-hn"] || r !== "") {
449
- if (n.nodeType === 1 && (r === n.getAttribute("slot") || r === n["s-sn"])) {
469
+ for (const l of t)
470
+ if (l !== s) {
471
+ if (l["s-hn"] !== s["s-hn"] || r !== "") {
472
+ if (l.nodeType === 1 && (r === l.getAttribute("slot") || r === l["s-sn"]) || l.nodeType === 3 && r === l["s-sn"]) {
450
473
  s.hidden = !0;
451
474
  break;
452
475
  }
453
- } else if (n.nodeType === 1 || n.nodeType === 3 && n.textContent.trim() !== "") {
476
+ } else if (l.nodeType === 1 || l.nodeType === 3 && l.textContent.trim() !== "") {
454
477
  s.hidden = !0;
455
478
  break;
456
479
  }
@@ -458,82 +481,102 @@ const O = (e, t, s, r) => {
458
481
  }
459
482
  ne(s);
460
483
  }
461
- }, S = [], le = (e) => {
484
+ }, S = [], ie = (e) => {
462
485
  let t, s, r;
463
- for (const n of e.childNodes) {
464
- if (n["s-sr"] && (t = n["s-cr"]) && t.parentNode) {
486
+ for (const l of e.childNodes) {
487
+ if (l["s-sr"] && (t = l["s-cr"]) && t.parentNode) {
465
488
  s = t.parentNode.childNodes;
466
- const l = n["s-sn"];
489
+ const o = l["s-sn"];
467
490
  for (r = s.length - 1; r >= 0; r--)
468
- if (t = s[r], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== n["s-hn"] && !_.experimentalSlotFixes)
469
- if (G(t, l)) {
470
- let o = S.find((c) => c.$nodeToRelocate$ === t);
471
- R = !0, t["s-sn"] = t["s-sn"] || l, o ? (o.$nodeToRelocate$["s-sh"] = n["s-hn"], o.$slotRefNode$ = n) : (t["s-sh"] = n["s-hn"], S.push({
472
- $slotRefNode$: n,
473
- $nodeToRelocate$: t
474
- })), t["s-sr"] && S.map((c) => {
475
- G(c.$nodeToRelocate$, t["s-sn"]) && (o = S.find((i) => i.$nodeToRelocate$ === t), o && !c.$slotRefNode$ && (c.$slotRefNode$ = o.$slotRefNode$));
476
- });
477
- } else
478
- S.some((o) => o.$nodeToRelocate$ === t) || S.push({
491
+ if (t = s[r], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== l["s-hn"] && !U.experimentalSlotFixes)
492
+ if (X(t, o)) {
493
+ let n = S.find((i) => i.$nodeToRelocate$ === t);
494
+ O = !0, t["s-sn"] = t["s-sn"] || o, n ? (n.$nodeToRelocate$["s-sh"] = l["s-hn"], n.$slotRefNode$ = l) : (t["s-sh"] = l["s-hn"], S.push({
495
+ $slotRefNode$: l,
479
496
  $nodeToRelocate$: t
497
+ })), t["s-sr"] && S.map((i) => {
498
+ X(i.$nodeToRelocate$, t["s-sn"]) && (n = S.find((a) => a.$nodeToRelocate$ === t), n && !i.$slotRefNode$ && (i.$slotRefNode$ = n.$slotRefNode$));
480
499
  });
500
+ } else S.some((n) => n.$nodeToRelocate$ === t) || S.push({
501
+ $nodeToRelocate$: t
502
+ });
481
503
  }
482
- n.nodeType === 1 && le(n);
504
+ l.nodeType === 1 && ie(l);
505
+ }
506
+ }, X = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ae = (e) => {
507
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);
508
+ }, m = (e, t, s) => {
509
+ const r = e == null ? void 0 : e.insertBefore(t, s);
510
+ return P(t, e), r;
511
+ }, ce = (e) => {
512
+ const t = [];
513
+ return e && t.push(
514
+ ...e["s-scs"] || [],
515
+ e["s-si"],
516
+ e["s-sc"],
517
+ ...ce(e.parentElement)
518
+ ), t;
519
+ }, P = (e, t, s = !1) => {
520
+ var r;
521
+ if (e && t && e.nodeType === 1) {
522
+ const l = new Set(ce(t).filter(Boolean));
523
+ if (l.size && ((r = e.classList) == null || r.add(...e["s-scs"] = [...l]), e["s-ol"] || s))
524
+ for (const o of Array.from(e.childNodes))
525
+ P(o, e, !0);
483
526
  }
484
- }, G = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", oe = (e) => {
485
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(oe);
486
- }, Le = (e, t, s = !1) => {
487
- var r, n, l, o, c;
488
- const i = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || M(null, null), f = Se(t) ? t : Z(null, null, t);
489
- if (x = i.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(([$, a]) => f.$attrs$[a] = i[$])), s && f.$attrs$)
527
+ }, _e = (e, t, s = !1) => {
528
+ var r, l, o, n, i;
529
+ const a = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || _(null, null), f = Oe(t) ? t : Re(null, null, t);
530
+ if (x = a.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(
531
+ ([$, c]) => f.$attrs$[c] = a[$]
532
+ )), s && f.$attrs$)
490
533
  for (const $ of Object.keys(f.$attrs$))
491
- i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (f.$attrs$[$] = i[$]);
492
- f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = i.shadowRoot || i, k = i["s-sc"], B = (d.$flags$ & 1) !== 0, D = i["s-cr"], R = !1, T(u, f, s);
534
+ a.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (f.$attrs$[$] = a[$]);
535
+ f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = a.shadowRoot || a, T = a["s-sc"], w = (d.$flags$ & 1) !== 0, F = a["s-cr"], O = !1, k(u, f, s);
493
536
  {
494
- if (m.$flags$ |= 1, N) {
495
- le(f.$elm$);
537
+ if (E.$flags$ |= 1, C) {
538
+ ie(f.$elm$);
496
539
  for (const $ of S) {
497
- const a = $.$nodeToRelocate$;
498
- if (!a["s-ol"]) {
499
- const g = j.createTextNode("");
500
- g["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = g, a);
540
+ const c = $.$nodeToRelocate$;
541
+ if (!c["s-ol"]) {
542
+ const p = j.createTextNode("");
543
+ p["s-nr"] = c, m(c.parentNode, c["s-ol"] = p, c);
501
544
  }
502
545
  }
503
546
  for (const $ of S) {
504
- const a = $.$nodeToRelocate$, g = $.$slotRefNode$;
505
- if (g) {
506
- const b = g.parentNode;
507
- let v = g.nextSibling;
547
+ const c = $.$nodeToRelocate$, p = $.$slotRefNode$;
548
+ if (p) {
549
+ const b = p.parentNode;
550
+ let y = p.nextSibling;
508
551
  {
509
- let L = (r = a["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
552
+ let L = (r = c["s-ol"]) == null ? void 0 : r.previousSibling;
510
553
  for (; L; ) {
511
- let p = (n = L["s-nr"]) !== null && n !== void 0 ? n : null;
512
- if (p && p["s-sn"] === a["s-sn"] && b === p.parentNode) {
513
- for (p = p.nextSibling; p === a || p != null && p["s-sr"]; )
514
- p = p == null ? void 0 : p.nextSibling;
515
- if (!p || !p["s-nr"]) {
516
- v = p;
554
+ let g = (l = L["s-nr"]) != null ? l : null;
555
+ if (g && g["s-sn"] === c["s-sn"] && b === g.parentNode) {
556
+ for (g = g.nextSibling; g === c || g != null && g["s-sr"]; )
557
+ g = g == null ? void 0 : g.nextSibling;
558
+ if (!g || !g["s-nr"]) {
559
+ y = g;
517
560
  break;
518
561
  }
519
562
  }
520
563
  L = L.previousSibling;
521
564
  }
522
565
  }
523
- (!v && b !== a.parentNode || a.nextSibling !== v) && a !== v && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), b.insertBefore(a, v), a.nodeType === 1 && (a.hidden = (l = a["s-ih"]) !== null && l !== void 0 ? l : !1)), a && typeof g["s-rf"] == "function" && g["s-rf"](a);
566
+ (!y && b !== c.parentNode || c.nextSibling !== y) && c !== y && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), m(b, c, y), c.nodeType === 1 && (c.hidden = (o = c["s-ih"]) != null ? o : !1)), c && typeof p["s-rf"] == "function" && p["s-rf"](c);
524
567
  } else
525
- a.nodeType === 1 && (s && (a["s-ih"] = (o = a.hidden) !== null && o !== void 0 ? o : !1), a.hidden = !0);
568
+ c.nodeType === 1 && (s && (c["s-ih"] = (n = c.hidden) != null ? n : !1), c.hidden = !0);
526
569
  }
527
570
  }
528
- R && ne(f.$elm$), m.$flags$ &= -2, S.length = 0;
571
+ O && ne(f.$elm$), E.$flags$ &= -2, S.length = 0;
529
572
  }
530
- if (_.experimentalScopedSlotChanges && d.$flags$ & 2)
573
+ if (U.experimentalScopedSlotChanges && d.$flags$ & 2)
531
574
  for (const $ of f.$elm$.childNodes)
532
- $["s-hn"] !== x && !$["s-sh"] && (s && $["s-ih"] == null && ($["s-ih"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);
533
- D = void 0;
534
- }, I = (e, t) => t in e, C = typeof window < "u" ? window : {}, j = C.document || { head: {} };
535
- C.HTMLElement;
536
- const m = {
575
+ $["s-hn"] !== x && !$["s-sh"] && (s && $["s-ih"] == null && ($["s-ih"] = (i = $.hidden) != null ? i : !1), $.hidden = !0);
576
+ F = void 0;
577
+ }, K = (e, t) => t in e, B = typeof window < "u" ? window : {}, j = B.document || { head: {} };
578
+ B.HTMLElement;
579
+ var E = {
537
580
  $flags$: 0,
538
581
  $resourcesUrl$: "",
539
582
  jmp: (e) => e(),
@@ -541,33 +584,34 @@ const m = {
541
584
  ael: (e, t, s, r) => e.addEventListener(t, s, r),
542
585
  rel: (e, t, s, r) => e.removeEventListener(t, s, r),
543
586
  ce: (e, t) => new CustomEvent(e, t)
544
- }, Ee = (e, t, s) => {
587
+ };
588
+ const Fe = (e, t, s) => {
545
589
  [null, void 0, "", !1].includes(s) || ["innerHTML", "style"].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof s) ? "/!\\ Object props are not rendered in the code example" : s);
546
- }, ie = (e, t, s, r, n) => {
590
+ }, fe = (e, t, s, r, l) => {
547
591
  if (t && typeof t == "string") {
548
- const l = document.createElement(t);
549
- Object.keys(s || {}).forEach((o) => {
550
- Ee(l, o, s[o]);
551
- }), r == null || r.forEach((o) => {
552
- ie(l, o.$tag$, o.$attrs$, o.$children$, o.$text$);
553
- }), s != null && s.innerHTML && (l.innerHTML = s.innerHTML), e.appendChild(l);
592
+ const o = document.createElement(t);
593
+ Object.keys(s || {}).forEach((n) => {
594
+ Fe(o, n, s[n]);
595
+ }), r == null || r.forEach((n) => {
596
+ fe(o, n.$tag$, n.$attrs$, n.$children$, n.$text$);
597
+ }), s != null && s.innerHTML && (o.innerHTML = s.innerHTML), e.appendChild(o);
554
598
  }
555
- n && (e.innerHTML = n);
556
- }, Ie = (e, t) => {
599
+ l && (e.innerHTML = l);
600
+ }, et = (e, t) => {
557
601
  const s = {};
558
602
  if (typeof e != "object")
559
603
  throw new Error("filterArgs - args isn't an object.");
560
604
  for (const r in e)
561
605
  if (!r.startsWith("slot")) {
562
- const n = e[r], l = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
563
- (!t || !Object.keys(t).includes(r) || t[r] !== n) && (s[l] = n);
606
+ const l = e[r], o = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
607
+ (!t || !Object.keys(t).includes(r) || t[r] !== l) && (s[o] = l);
564
608
  }
565
609
  return s;
566
- }, Xe = (e, t) => {
567
- var r, n;
610
+ }, tt = (e, t) => {
611
+ var r, l;
568
612
  const s = document.getElementById("storybook-root");
569
613
  if (s)
570
- return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((r = t.globals) == null ? void 0 : r.locale) || "en"), Le(
614
+ return (l = document.querySelector("[lang]")) == null || l.setAttribute("lang", ((r = t.globals) == null ? void 0 : r.locale) || "en"), _e(
571
615
  {
572
616
  $ancestorComponent$: void 0,
573
617
  $flags$: 0,
@@ -580,58 +624,58 @@ const m = {
580
624
  },
581
625
  e(t)
582
626
  ), s.children[s.children.length - 1];
583
- }, Ke = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {
584
- const n = document.createElement("div");
585
- return ie(n, e, t, s, r), n.innerHTML;
586
- }, Qe = ({ disconnect: e, observe: t, takeRecords: s }) => {
627
+ }, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {
628
+ const l = document.createElement("div");
629
+ return fe(l, e, t, s, r), l.innerHTML;
630
+ }, rt = ({ disconnect: e, observe: t, takeRecords: s }) => {
587
631
  class r {
588
- constructor(l) {
632
+ constructor(o) {
589
633
  /**
590
634
  *
591
635
  */
592
- h(this, "disconnect", e);
636
+ v(this, "disconnect", e);
593
637
  /**
594
638
  *
595
639
  */
596
- h(this, "observe", t);
640
+ v(this, "observe", t);
597
641
  /**
598
642
  *
599
643
  */
600
- h(this, "takeRecords", s);
644
+ v(this, "takeRecords", s);
601
645
  /**
602
646
  *
603
647
  */
604
- h(this, "cb");
605
- this.cb = l;
648
+ v(this, "cb");
649
+ this.cb = o;
606
650
  }
607
651
  }
608
- return [window, global].forEach((n) => {
609
- Object.defineProperty(n, "MutationObserver", {
652
+ return [window, global].forEach((l) => {
653
+ Object.defineProperty(l, "MutationObserver", {
610
654
  writable: !0,
611
655
  configurable: !0,
612
656
  value: r
613
657
  });
614
658
  }), r;
615
- }, Je = ({ disconnect: e, observe: t }) => {
659
+ }, lt = ({ disconnect: e, observe: t }) => {
616
660
  class s {
617
- constructor(n) {
661
+ constructor(l) {
618
662
  /**
619
663
  *
620
664
  */
621
- h(this, "disconnect", e);
665
+ v(this, "disconnect", e);
622
666
  /**
623
667
  *
624
668
  */
625
- h(this, "observe", t);
669
+ v(this, "observe", t);
626
670
  /**
627
671
  *
628
672
  */
629
- h(this, "unobserve");
673
+ v(this, "unobserve");
630
674
  /**
631
675
  *
632
676
  */
633
- h(this, "cb");
634
- this.cb = n;
677
+ v(this, "cb");
678
+ this.cb = l;
635
679
  }
636
680
  }
637
681
  return [window, global].forEach((r) => {
@@ -642,18 +686,18 @@ const m = {
642
686
  });
643
687
  }), s;
644
688
  };
645
- class je extends Event {
689
+ class Ue extends Event {
646
690
  constructor() {
647
691
  super(...arguments);
648
692
  /**
649
693
  *
650
694
  */
651
695
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
652
- h(this, "detail");
696
+ v(this, "detail");
653
697
  }
654
698
  }
655
- const Ye = () => {
656
- class e extends je {
699
+ const ot = () => {
700
+ class e extends Ue {
657
701
  }
658
702
  return [window, global].forEach((t) => {
659
703
  Object.defineProperty(t, "SubmitEvent", {
@@ -664,30 +708,30 @@ const Ye = () => {
664
708
  }), e;
665
709
  };
666
710
  export {
667
- Oe as ClassList,
668
- Fe as allItemsAreString,
669
- Ue as cleanString,
670
- Me as createID,
671
- ge as dateRegExp,
672
- ze as dateToString,
673
- Ge as defineLocales,
674
- Ie as filterArgs,
675
- _e as focusableElements,
676
- We as getLocaleDatePattern,
677
- X as getParentWindows,
678
- Ke as getStoryHTML,
679
- Be as getWindows,
680
- De as isTagName,
681
- Ne as isValidString,
682
- qe as localeCurrency,
683
- pe as localeDate,
684
- we as localeNumber,
685
- Ce as nextTick,
686
- Qe as setupMutationObserverMock,
687
- Je as setupResizeObserverMock,
688
- Ye as setupSubmitEventMock,
689
- Xe as stencilWrapper,
690
- Pe as vsCodeGenerator,
691
- He as webTypesGenerator
711
+ He as ClassList,
712
+ Pe as allItemsAreString,
713
+ qe as cleanString,
714
+ Ce as createID,
715
+ he as dateRegExp,
716
+ Ze as dateToString,
717
+ Ve as defineLocales,
718
+ et as filterArgs,
719
+ We as focusableElements,
720
+ Qe as getLocaleDatePattern,
721
+ Q as getParentWindows,
722
+ st as getStoryHTML,
723
+ ze as getWindows,
724
+ Be as isTagName,
725
+ Ie as isValidString,
726
+ Je as localeCurrency,
727
+ ye as localeDate,
728
+ Ye as localeNumber,
729
+ Ge as nextTick,
730
+ rt as setupMutationObserverMock,
731
+ lt as setupResizeObserverMock,
732
+ ot as setupSubmitEventMock,
733
+ tt as stencilWrapper,
734
+ Ke as vsCodeGenerator,
735
+ Xe as webTypesGenerator
692
736
  };
693
737
  //# sourceMappingURL=index.es.js.map