@mgdis/stencil-helpers 3.1.1 → 3.2.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/index.es.js CHANGED
@@ -2,16 +2,19 @@ var De = Object.defineProperty;
2
2
  var ce = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var He = (e, t, r) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var d = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r), fe = (e, t, r) => t.has(e) || ce("Cannot " + r);
7
- var v = (e, t, r) => (fe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), k = (e, t, r) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), U = (e, t, r, s) => (fe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
- const Zt = (e = "", t = 10) => {
5
+ var Be = (e, t, r) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var d = (e, t, r) => Be(e, typeof t != "symbol" ? t + "" : t, r), fe = (e, t, r) => t.has(e) || ce("Cannot " + r);
7
+ var v = (e, t, r) => (fe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), k = (e, t, r) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Z = (e, t, r, s) => (fe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
+ const He = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r > 0 ? "-" : "") + t.toLowerCase()).replace(/[^a-z0-9-]+/g, "-").replace(/--+/g, "-").replace(/(?:^-)|(?:-$)/g, ""), Dt = (e = "", t = 10) => {
9
9
  const r = new Uint8Array(t);
10
10
  crypto.getRandomValues(r);
11
11
  const s = Array.from(r).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
12
12
  return e !== "" ? `${e}-${s}` : s;
13
- }, Dt = (e) => qe(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null;
14
- class Ht {
13
+ }, Bt = (e) => qe(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, Ht = (e) => {
14
+ let t;
15
+ return typeof e == "string" ? t = e : e && (K(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && (t = String(e)), t && He(t);
16
+ };
17
+ class qt {
15
18
  constructor(t = []) {
16
19
  /**
17
20
  * Available classes
@@ -46,7 +49,7 @@ class Ht {
46
49
  this.classes = t;
47
50
  }
48
51
  }
49
- const qt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Bt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Gt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Jt = (e) => {
52
+ const Gt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Jt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Xt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Kt = (e) => {
50
53
  const t = _e(e), r = be(e);
51
54
  return [e, ...t, ...r];
52
55
  }, _e = (e, t = []) => {
@@ -63,21 +66,21 @@ const qt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Bt =
63
66
  for (const r of Array.from(e.frames))
64
67
  t.push(r), be(r, t);
65
68
  return t;
66
- }, qe = (e) => typeof e == "string" && e.trim() !== "", Xt = (e) => typeof e == "object" ? JSON.stringify(e) : `${e}`, Kt = (e) => typeof e == "number" && !Number.isNaN(e), Yt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Qt = async (e) => {
69
+ }, qe = (e) => typeof e == "string" && e.trim() !== "", Yt = (e) => typeof e == "object" ? JSON.stringify(e) : `${e}`, Qt = (e) => typeof e == "number" && !Number.isNaN(e), Vt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, er = async (e) => {
67
70
  if (e) return e();
68
- }, ne = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Be = (e, t, r) => {
71
+ }, K = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Ge = (e, t, r) => {
69
72
  const s = ".";
70
- if (!ne(e) || typeof t != "string")
73
+ if (!K(e) || typeof t != "string")
71
74
  return r;
72
75
  const [n, ...i] = t.split(s);
73
- return i.length ? Be(e[n], i.join(s)) : e[n];
74
- }, Vt = {
76
+ return i.length ? Ge(e[n], i.join(s)) : e[n];
77
+ }, tr = {
75
78
  FIRST: "first",
76
79
  NEXT: "next",
77
80
  PREVIOUS: "previous",
78
81
  LAST: "last"
79
82
  }, ve = 10;
80
- class Ge {
83
+ class Je {
81
84
  constructor(t) {
82
85
  /**
83
86
  * Define items
@@ -116,14 +119,14 @@ class Ge {
116
119
  }
117
120
  return t === "first" ? i = 0 : t === "last" ? i = n : t === "previous" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[0]) ? n : o - this.baseIndex : t === "next" && (i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[n]) ? 0 : o + this.baseIndex), i;
118
121
  });
119
- if (ne(t))
122
+ if (K(t))
120
123
  Array.isArray(t.items) && (this.items = t.items), typeof t.top == "number" && (this.top = t.top), this.total = typeof t.total == "number" ? t.total : this.items.length, this.next = t.next;
121
124
  else
122
125
  throw new Error("Page - init must match IPage type.");
123
126
  }
124
127
  }
125
128
  var O, N, C;
126
- class er {
129
+ class rr {
127
130
  constructor(t, r) {
128
131
  /**
129
132
  * Define paginated items
@@ -142,26 +145,26 @@ class er {
142
145
  d(this, "getPage", (t = 0, r) => {
143
146
  const s = typeof r == "function" ? this.items.filter(r) : this.items;
144
147
  let n;
145
- return v(this, N) ? n = v(this, N) : s.length > t + v(this, O) && (n = () => this.getPage(t + v(this, O), r)), new Ge({
148
+ return v(this, N) ? n = v(this, N) : s.length > t + v(this, O) && (n = () => this.getPage(t + v(this, O), r)), new Je({
146
149
  items: s.slice(t, t + v(this, O)),
147
150
  total: v(this, C),
148
151
  top: v(this, O),
149
152
  next: n
150
153
  });
151
154
  });
152
- Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || ne(r.next) && URL.canParse(r.next)) && U(this, N, r.next), typeof (r == null ? void 0 : r.top) == "number" && U(this, O, r.top), typeof (r == null ? void 0 : r.total) == "number" && U(this, C, r.total);
155
+ Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || K(r.next) && URL.canParse(r.next)) && Z(this, N, r.next), typeof (r == null ? void 0 : r.top) == "number" && Z(this, O, r.top), typeof (r == null ? void 0 : r.total) == "number" && Z(this, C, r.total);
153
156
  }
154
157
  }
155
158
  O = new WeakMap(), N = new WeakMap(), C = new WeakMap();
156
- var K = {
159
+ var Y = {
157
160
  updatable: !0,
158
161
  slotRelocation: !0,
159
162
  // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
160
163
  experimentalSlotFixes: !1
161
- }, Je = Object.defineProperty, Xe = (e, t) => {
164
+ }, Xe = Object.defineProperty, Ke = (e, t) => {
162
165
  for (var r in t)
163
- Je(e, r, { get: t[r], enumerable: !0 });
164
- }, Ke = "http://www.w3.org/2000/svg", Ye = "http://www.w3.org/1999/xhtml", ue = (e, t) => t in e, pe = "http://www.w3.org/1999/xlink", A = typeof window < "u" ? window : {}, z = {
166
+ Xe(e, r, { get: t[r], enumerable: !0 });
167
+ }, Ye = "http://www.w3.org/2000/svg", Qe = "http://www.w3.org/1999/xhtml", ue = (e, t) => t in e, pe = "http://www.w3.org/1999/xlink", A = typeof window < "u" ? window : {}, z = {
165
168
  $flags$: 0,
166
169
  $resourcesUrl$: "",
167
170
  jmp: (e) => e(),
@@ -169,15 +172,15 @@ var K = {
169
172
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
170
173
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
171
174
  ce: (e, t) => new CustomEvent(e, t)
172
- }, Qe = (e) => e != null && e !== void 0, we = (e) => (e = typeof e, e === "object" || e === "function"), Ve = {};
173
- Xe(Ve, {
175
+ }, Ve = (e) => e != null && e !== void 0, we = (e) => (e = typeof e, e === "object" || e === "function"), et = {};
176
+ Ke(et, {
174
177
  err: () => me,
175
- map: () => et,
176
- ok: () => Q,
177
- unwrap: () => tt,
178
- unwrapErr: () => rt
178
+ map: () => tt,
179
+ ok: () => V,
180
+ unwrap: () => rt,
181
+ unwrapErr: () => st
179
182
  });
180
- var Q = (e) => ({
183
+ var V = (e) => ({
181
184
  isOk: !0,
182
185
  isErr: !1,
183
186
  value: e
@@ -186,10 +189,10 @@ var Q = (e) => ({
186
189
  isErr: !0,
187
190
  value: e
188
191
  });
189
- function et(e, t) {
192
+ function tt(e, t) {
190
193
  if (e.isOk) {
191
194
  const r = t(e.value);
192
- return r instanceof Promise ? r.then((s) => Q(s)) : Q(r);
195
+ return r instanceof Promise ? r.then((s) => V(s)) : V(r);
193
196
  }
194
197
  if (e.isErr) {
195
198
  const r = e.value;
@@ -197,25 +200,25 @@ function et(e, t) {
197
200
  }
198
201
  throw "should never get here";
199
202
  }
200
- var tt = (e) => {
203
+ var rt = (e) => {
201
204
  if (e.isOk)
202
205
  return e.value;
203
206
  throw e.value;
204
- }, rt = (e) => {
207
+ }, st = (e) => {
205
208
  if (e.isErr)
206
209
  return e.value;
207
210
  throw e.value;
208
211
  }, xe = (e) => {
209
212
  const t = $e(e, "childNodes");
210
213
  e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ee(t, e.tagName).forEach((s) => {
211
- s.nodeType === 1 && s.tagName === "SLOT-FB" && (nt(s, ie(s), !1).length ? s.hidden = !0 : s.hidden = !1);
214
+ s.nodeType === 1 && s.tagName === "SLOT-FB" && (it(s, ie(s), !1).length ? s.hidden = !0 : s.hidden = !1);
212
215
  });
213
216
  let r = 0;
214
217
  for (r = 0; r < t.length; r++) {
215
218
  const s = t[r];
216
219
  s.nodeType === 1 && $e(s, "childNodes").length && xe(s);
217
220
  }
218
- }, st = (e) => {
221
+ }, nt = (e) => {
219
222
  const t = [];
220
223
  for (let r = 0; r < e.length; r++) {
221
224
  const s = e[r]["s-nr"] || void 0;
@@ -229,7 +232,7 @@ function Ee(e, t, r) {
229
232
  i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];
230
233
  return n;
231
234
  }
232
- var nt = (e, t, r = !0) => {
235
+ var it = (e, t, r = !0) => {
233
236
  const s = [];
234
237
  (r && e["s-sr"] || !e["s-sr"]) && s.push(e);
235
238
  let n = e;
@@ -237,7 +240,7 @@ var nt = (e, t, r = !0) => {
237
240
  ie(n) === t && (r || !n["s-sr"]) && s.push(n);
238
241
  return s;
239
242
  }, ge = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ie = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
240
- function it(e) {
243
+ function ot(e) {
241
244
  if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
242
245
  const t = (r) => (function(s) {
243
246
  const n = [], i = this["s-sn"];
@@ -247,7 +250,7 @@ function it(e) {
247
250
  If you have a particular use case, please open an issue on the Stencil repo.
248
251
  `);
249
252
  const o = this["s-cr"].parentElement;
250
- return (o.__childNodes ? o.childNodes : st(o.childNodes)).forEach((c) => {
253
+ return (o.__childNodes ? o.childNodes : nt(o.childNodes)).forEach((c) => {
251
254
  i === ie(c) && n.push(c);
252
255
  }), r ? n.filter(
253
256
  (c) => c.nodeType === 1
@@ -263,16 +266,16 @@ function $e(e, t) {
263
266
  } else
264
267
  return typeof e[t] != "function" ? e[t] : e[t].bind(e);
265
268
  }
266
- var ot = (e, t, ...r) => {
269
+ var at = (e, t, ...r) => {
267
270
  let s = null, n = null, i = null, o = !1, f = !1;
268
271
  const c = [], l = (a) => {
269
272
  for (let g = 0; g < a.length; g++)
270
- s = a[g], Array.isArray(s) ? l(s) : s != null && typeof s != "boolean" && ((o = !we(s)) && (s = String(s)), o && f ? c[c.length - 1].$text$ += s : c.push(o ? V(null, s) : s), f = o);
273
+ s = a[g], Array.isArray(s) ? l(s) : s != null && typeof s != "boolean" && ((o = !we(s)) && (s = String(s)), o && f ? c[c.length - 1].$text$ += s : c.push(o ? ee(null, s) : s), f = o);
271
274
  };
272
275
  l(r);
273
- const p = V(e, null);
276
+ const p = ee(e, null);
274
277
  return p.$attrs$ = t, c.length > 0 && (p.$children$ = c), p.$key$ = n, p.$name$ = i, p;
275
- }, V = (e, t) => {
278
+ }, ee = (e, t) => {
276
279
  const r = {
277
280
  $flags$: 0,
278
281
  $tag$: e,
@@ -281,7 +284,7 @@ var ot = (e, t, ...r) => {
281
284
  $children$: null
282
285
  };
283
286
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
284
- }, at = {}, lt = (e) => e && e.$tag$ === at, de = (e, t, r, s, n, i, o) => {
287
+ }, lt = {}, ct = (e) => e && e.$tag$ === lt, de = (e, t, r, s, n, i, o) => {
285
288
  if (r === s)
286
289
  return;
287
290
  let f = ue(e, t), c = t.toLowerCase();
@@ -299,7 +302,7 @@ var ot = (e, t, ...r) => {
299
302
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
300
303
  if (t[2] === "-" ? t = t.slice(3) : ue(A, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
301
304
  const l = t.endsWith(Se);
302
- t = t.replace(ft, ""), r && z.rel(e, t, r, l), s && z.ael(e, t, s, l);
305
+ t = t.replace(ut, ""), r && z.rel(e, t, r, l), s && z.ael(e, t, s, l);
303
306
  }
304
307
  } else {
305
308
  const l = we(s);
@@ -316,7 +319,7 @@ var ot = (e, t, ...r) => {
316
319
  let p = !1;
317
320
  c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (p ? e.removeAttributeNS(pe, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !l && e.nodeType === 1 && (s = s === !0 ? "" : s, p ? e.setAttributeNS(pe, t, s) : e.setAttribute(t, s));
318
321
  }
319
- }, ct = /\s/, he = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(ct)), Se = "Capture", ft = new RegExp(Se + "$"), ee = (e, t, r, s) => {
322
+ }, ft = /\s/, he = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(ft)), Se = "Capture", ut = new RegExp(Se + "$"), te = (e, t, r, s) => {
320
323
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};
321
324
  for (const f of ye(Object.keys(i)))
322
325
  f in o || de(
@@ -346,11 +349,11 @@ function ye(e) {
346
349
  e
347
350
  );
348
351
  }
349
- var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
352
+ var W, H, L, re = !1, q = !1, oe = !1, b = !1, G = (e, t, r) => {
350
353
  var s;
351
354
  const n = t.$children$[r];
352
355
  let i = 0, o, f, c;
353
- if (te || (oe = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
356
+ if (re || (oe = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
354
357
  // slot element has fallback content
355
358
  // still create an element that "mocks" the slot element
356
359
  2
@@ -362,25 +365,25 @@ var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
362
365
  ))), n.$text$ !== null)
363
366
  o = n.$elm$ = A.document.createTextNode(n.$text$);
364
367
  else if (n.$flags$ & 1)
365
- o = n.$elm$ = A.document.createTextNode(""), ee(null, n, b);
368
+ o = n.$elm$ = A.document.createTextNode(""), te(null, n, b);
366
369
  else {
367
370
  if (b || (b = n.$tag$ === "svg"), !A.document)
368
371
  throw new Error(
369
372
  "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
370
373
  );
371
374
  if (o = n.$elm$ = A.document.createElementNS(
372
- b ? Ke : Ye,
373
- !te && K.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
374
- ), b && n.$tag$ === "foreignObject" && (b = !1), ee(null, n, b), Qe(Z) && o["s-si"] !== Z && o.classList.add(o["s-si"] = Z), n.$children$)
375
+ b ? Ye : Qe,
376
+ !re && Y.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
377
+ ), b && n.$tag$ === "foreignObject" && (b = !1), te(null, n, b), Ve(W) && o["s-si"] !== W && o.classList.add(o["s-si"] = W), n.$children$)
375
378
  for (i = 0; i < n.$children$.length; ++i)
376
379
  f = G(e, n, i), f && o.appendChild(f);
377
380
  n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
378
381
  }
379
- return o["s-hn"] = L, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = q, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, it(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === n.$tag$ && e.$elm$ && M(e.$elm$, !1), ke(q, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;
382
+ return o["s-hn"] = L, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = H, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, ot(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === n.$tag$ && e.$elm$ && M(e.$elm$, !1), ke(H, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;
380
383
  }, M = (e, t) => {
381
384
  z.$flags$ |= 1;
382
385
  const r = Array.from(e.__childNodes || e.childNodes);
383
- e["s-sr"] && K.experimentalSlotFixes;
386
+ e["s-sr"] && Y.experimentalSlotFixes;
384
387
  for (let s = r.length - 1; s >= 0; s--) {
385
388
  const n = r[s];
386
389
  n["s-hn"] !== L && n["s-ol"] && (T(F(n).parentNode, n, F(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, oe = !0), t && M(n, t);
@@ -395,10 +398,10 @@ var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
395
398
  const n = e[s];
396
399
  if (n) {
397
400
  const i = n.$elm$;
398
- Te(n), i && (B = !0, i["s-ol"] ? i["s-ol"].remove() : M(i, !0), i.remove());
401
+ Te(n), i && (q = !0, i["s-ol"] ? i["s-ol"].remove() : M(i, !0), i.remove());
399
402
  }
400
403
  }
401
- }, ut = (e, t, r, s, n = !1) => {
404
+ }, pt = (e, t, r, s, n = !1) => {
402
405
  let i = 0, o = 0, f = 0, c = 0, l = t.length - 1, p = t[0], a = t[l], g = s.length - 1, u = s[0], $ = s[g], _, w;
403
406
  for (; i <= l && o <= g; )
404
407
  if (p == null)
@@ -409,13 +412,13 @@ var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
409
412
  u = s[++o];
410
413
  else if ($ == null)
411
414
  $ = s[--g];
412
- else if (W(p, u, n))
415
+ else if (U(p, u, n))
413
416
  R(p, u, n), p = t[++i], u = s[++o];
414
- else if (W(a, $, n))
417
+ else if (U(a, $, n))
415
418
  R(a, $, n), a = t[--l], $ = s[--g];
416
- else if (W(p, $, n))
419
+ else if (U(p, $, n))
417
420
  (p.$tag$ === "slot" || $.$tag$ === "slot") && M(p.$elm$.parentNode, !1), R(p, $, n), T(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], $ = s[--g];
418
- else if (W(a, u, n))
421
+ else if (U(a, u, n))
419
422
  (p.$tag$ === "slot" || $.$tag$ === "slot") && M(a.$elm$.parentNode, !1), R(a, u, n), T(e, a.$elm$, p.$elm$), a = t[--l], u = s[++o];
420
423
  else {
421
424
  for (f = -1, c = i; c <= l; ++c)
@@ -437,12 +440,12 @@ var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
437
440
  o,
438
441
  g
439
442
  ) : o > g && Ae(t, i, l);
440
- }, W = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, F = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
443
+ }, U = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, F = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
441
444
  const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, f = t.$text$;
442
445
  let c;
443
- f === null ? (b = o === "svg" ? !0 : o === "foreignObject" ? !1 : b, ee(e, t, b), n !== null && i !== null ? ut(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Oe(s, null, t, i, 0, i.length - 1)) : (
446
+ f === null ? (b = o === "svg" ? !0 : o === "foreignObject" ? !1 : b, te(e, t, b), n !== null && i !== null ? pt(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Oe(s, null, t, i, 0, i.length - 1)) : (
444
447
  // don't do this on initial render as it can cause non-hydrated content to be removed
445
- !r && K.updatable && n !== null && Ae(n, 0, n.length - 1)
448
+ !r && Y.updatable && n !== null && Ae(n, 0, n.length - 1)
446
449
  ), b && o === "svg" && (b = !1)) : (c = s["s-cr"]) ? c.parentNode.textContent = f : e.$text$ !== f && (s.data = f);
447
450
  }, x = [], je = (e) => {
448
451
  let t, r, s;
@@ -455,7 +458,7 @@ var Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {
455
458
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
456
459
  if (ge(t, o)) {
457
460
  let f = x.find((c) => c.$nodeToRelocate$ === t);
458
- B = !0, t["s-sn"] = t["s-sn"] || o, f ? (f.$nodeToRelocate$["s-sh"] = i["s-hn"], f.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], x.push({
461
+ q = !0, t["s-sn"] = t["s-sn"] || o, f ? (f.$nodeToRelocate$["s-sh"] = i["s-hn"], f.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], x.push({
459
462
  $slotRefNode$: i,
460
463
  $nodeToRelocate$: t
461
464
  })), t["s-sr"] && x.map((c) => {
@@ -488,15 +491,15 @@ function ke(e, t, r, s) {
488
491
  }
489
492
  }
490
493
  }
491
- var pt = (e, t, r = !1) => {
494
+ var gt = (e, t, r = !1) => {
492
495
  var s, n, i, o, f;
493
- const c = e.$hostElement$, l = e.$cmpMeta$, p = e.$vnode$ || V(null, null), a = lt(t) ? t : ot(null, null, t);
496
+ const c = e.$hostElement$, l = e.$cmpMeta$, p = e.$vnode$ || ee(null, null), a = ct(t) ? t : at(null, null, t);
494
497
  if (L = c.tagName, l.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, l.$attrsToReflect$.map(
495
498
  ([g, u]) => a.$attrs$[u] = c[g]
496
499
  )), r && a.$attrs$)
497
500
  for (const g of Object.keys(a.$attrs$))
498
501
  c.hasAttribute(g) && !["key", "ref", "style", "class"].includes(g) && (a.$attrs$[g] = c[g]);
499
- a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = p.$elm$ = c.shadowRoot || c, Z = c["s-sc"], te = !!(l.$flags$ & 1) && !(l.$flags$ & 128), q = c["s-cr"], B = !1, R(p, a, r);
502
+ a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = p.$elm$ = c.shadowRoot || c, W = c["s-sc"], re = !!(l.$flags$ & 1) && !(l.$flags$ & 128), H = c["s-cr"], q = !1, R(p, a, r);
500
503
  {
501
504
  if (z.$flags$ |= 1, oe) {
502
505
  je(a.$elm$);
@@ -533,14 +536,14 @@ var pt = (e, t, r = !1) => {
533
536
  u.nodeType === 1 && (r && (u["s-ih"] = (o = u.hidden) != null ? o : !1), u.hidden = !0);
534
537
  }
535
538
  }
536
- B && xe(a.$elm$), z.$flags$ &= -2, x.length = 0;
539
+ q && xe(a.$elm$), z.$flags$ &= -2, x.length = 0;
537
540
  }
538
- if (K.experimentalScopedSlotChanges && l.$flags$ & 2) {
541
+ if (Y.experimentalScopedSlotChanges && l.$flags$ & 2) {
539
542
  const g = a.$elm$.__childNodes || a.$elm$.childNodes;
540
543
  for (const u of g)
541
544
  u["s-hn"] !== L && !u["s-sh"] && (r && u["s-ih"] == null && (u["s-ih"] = (f = u.hidden) != null ? f : !1), u.hidden = !0);
542
545
  }
543
- q = void 0;
546
+ H = void 0;
544
547
  };
545
548
  const D = {
546
549
  content_wrap: 0,
@@ -578,7 +581,7 @@ const D = {
578
581
  typeof t[s] != "object" ? r[s] = t[s] : r[s] = Ne(r[s] || {}, t[s]);
579
582
  }
580
583
  return r;
581
- }, gt = (e, t) => Ne(structuredClone(e), t), $t = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, m + "nl!").replace(/\r/g, m + "cr!").replace(/\s/g, m + "ws!"))), e), dt = (e) => e.replace(/\n/g, E + "nl!").replace(/\r/g, E + "cr!").replace(/\s/g, E + "ws!"), ht = (e) => {
584
+ }, $t = (e, t) => Ne(structuredClone(e), t), dt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, m + "nl!").replace(/\r/g, m + "cr!").replace(/\s/g, m + "ws!"))), e), ht = (e) => e.replace(/\n/g, E + "nl!").replace(/\r/g, E + "cr!").replace(/\s/g, E + "ws!"), yt = (e) => {
582
585
  const t = /\s*<([a-zA-Z0-9:-]+)[^>]*>\n\s*<\/\1>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n\s*)<\/\3>/g;
583
586
  return e.replace(t, (r, s, n, i, o) => {
584
587
  const f = n || o;
@@ -587,10 +590,10 @@ const D = {
587
590
  const c = f.replace(/\n/g, E + "nl!").replace(/\r/g, E + "cr!").replace(/\s/g, E + "ws!");
588
591
  return r.replace(f, c);
589
592
  });
590
- }, yt = (e) => {
593
+ }, _t = (e) => {
591
594
  const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\s+[A-Za-z0-9_-]+="[^"]*"|\s*[a-z]*)*)>/g;
592
595
  return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, m + "lt!").replace(/>/g, m + "gt!"))), e;
593
- }, _t = (e, t) => {
596
+ }, bt = (e, t) => {
594
597
  const r = t.ignore, s = t.ignore_with;
595
598
  for (let n = 0; n < r.length; n++) {
596
599
  const i = new RegExp(`<${r[n]}[^>]*>((.|
@@ -598,15 +601,15 @@ const D = {
598
601
  e = e.replace(i, (o, f) => o.replace(f, (c) => c.replace(/</g, "-" + s + "lt-").replace(/>/g, "-" + s + "gt-").replace(/\n/g, "-" + s + "nl-").replace(/\r/g, "-" + s + "cr-").replace(/\s/g, "-" + s + "ws-")));
599
602
  }
600
603
  return e;
601
- }, bt = (e, t) => {
604
+ }, vt = (e, t) => {
602
605
  for (let r = 0; r < t.length; r++) {
603
606
  const s = new RegExp(`(<${t[r]}[^>]*>)\\s+`, "g"), n = new RegExp(`\\s+(</${t[r]}>)`, "g");
604
607
  e = e.replace(s, "$1").replace(n, "$1");
605
608
  }
606
609
  return e;
607
- }, vt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + "nl!", "g"), `
608
- `).replace(new RegExp(m + "cr!", "g"), "\r").replace(new RegExp(m + "ws!", "g"), " "))), e), wt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(E + "nl!", "g"), `
609
- `).replace(new RegExp(E + "cr!", "g"), "\r").replace(new RegExp(E + "ws!", "g"), " "))), e), mt = (e) => (e = e.replace(/<[\w:\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + "lt!", "g"), "<").replace(new RegExp(m + "gt!", "g"), ">"))), e), xt = (e, t) => {
610
+ }, wt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + "nl!", "g"), `
611
+ `).replace(new RegExp(m + "cr!", "g"), "\r").replace(new RegExp(m + "ws!", "g"), " "))), e), mt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(E + "nl!", "g"), `
612
+ `).replace(new RegExp(E + "cr!", "g"), "\r").replace(new RegExp(E + "ws!", "g"), " "))), e), xt = (e) => (e = e.replace(/<[\w:\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + "lt!", "g"), "<").replace(new RegExp(m + "gt!", "g"), ">"))), e), Et = (e, t) => {
610
613
  const r = t.ignore, s = t.ignore_with;
611
614
  for (let n = 0; n < r.length; n++) {
612
615
  const i = new RegExp(`<${r[n]}[^>]*>((.|
@@ -615,7 +618,7 @@ const D = {
615
618
  `).replace(new RegExp("-" + s + "cr-", "g"), "\r").replace(new RegExp("-" + s + "ws-", "g"), " ")));
616
619
  }
617
620
  return e;
618
- }, Et = (e) => {
621
+ }, St = (e) => {
619
622
  var s, n;
620
623
  if (typeof e != "object") throw new Error("Config must be an object.");
621
624
  if (!(Object.hasOwn(e, "content_wrap") || Object.hasOwn(e, "ignore") || Object.hasOwn(e, "ignore_with") || Object.hasOwn(e, "strict") || Object.hasOwn(e, "tab_size") || Object.hasOwn(e, "tag_wrap") || Object.hasOwn(e, "tag_wrap_width") || Object.hasOwn(e, "trim"))) return D;
@@ -640,8 +643,8 @@ const D = {
640
643
  throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);
641
644
  if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !((n = e.trim) != null && n.every((i) => typeof i == "string"))))
642
645
  throw new Error("Trim config must be an array of strings.");
643
- return gt(D, e);
644
- }, St = (e, t, r) => {
646
+ return $t(D, e);
647
+ }, Ot = (e, t, r) => {
645
648
  const s = e.trim().split(/\s+/);
646
649
  if (s.length === 0 || s.length === 1 && s[0] === "")
647
650
  return "";
@@ -659,25 +662,25 @@ const D = {
659
662
  }), i !== "" && n.push(n.length === 0 ? r + i : o + i);
660
663
  const f = n.join(`
661
664
  `);
662
- return dt(f);
663
- }, Ot = (e, t = !0) => t && !ae(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Re.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`)), At = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e), jt = (e, t = !0) => (t && !ae(e) || (e = At(e), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/<\s*\//g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
665
+ return ht(f);
666
+ }, At = (e, t = !0) => t && !ae(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Re.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`)), jt = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e), Tt = (e, t = !0) => (t && !ae(e) || (e = jt(e), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/<\s*\//g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
664
667
  /([a-zA-Z0-9_-]+)=(['"])(.*?)\2/g,
665
668
  (r, s, n, i) => {
666
669
  const o = i.trim();
667
670
  return `${s}=${n}${o}${n}`;
668
671
  }
669
672
  ), e = e.trim()), e);
670
- let H, re;
673
+ let B, se;
671
674
  const I = {
672
675
  line: []
673
- }, Tt = (e) => {
676
+ }, kt = (e) => {
674
677
  I.line = [];
675
678
  let t = -1;
676
679
  const r = /(<[^>]+>)|([^<]+)/g;
677
680
  return e = e.replace(r, (s, n, i) => (n ? I.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && I.line.push({ type: "text", value: s }), t++, `
678
681
  [#-# : ${t} : ${s} : #-#]
679
682
  `)), e;
680
- }, kt = (e) => (e = Ot(e, !1), re.length > 0 && (e = bt(e, re)), e = jt(e, !1), e = Tt(e), e), Rt = (e, t) => {
683
+ }, Rt = (e) => (e = At(e, !1), se.length > 0 && (e = vt(e, se)), e = Tt(e, !1), e = kt(e), e), Nt = (e, t) => {
681
684
  const r = " ".repeat(t.tab_size), s = t.tag_wrap, n = t.content_wrap;
682
685
  let i = "";
683
686
  const o = [], f = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, c = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
@@ -688,25 +691,25 @@ const I = {
688
691
  const P = Math.max(0, i.length - u);
689
692
  i = i.substring(0, P);
690
693
  const S = r.repeat(P);
691
- if (H && g.trim().startsWith("<!--"))
694
+ if (B && g.trim().startsWith("<!--"))
692
695
  return;
693
696
  let y = g;
694
697
  if (p.type === "text" && n > 0 && y.length >= n)
695
- y = St(y, n, S);
698
+ y = Ot(y, n, S);
696
699
  else if (s > 0 && y.length > s && f.test(y)) {
697
700
  f.lastIndex = 0, c.lastIndex = 0;
698
701
  const h = y.split(c).filter(Boolean);
699
702
  if (h.length >= 2) {
700
703
  const Le = y.matchAll(c), Me = S + r;
701
- let Y = S + h[0] + `
704
+ let Q = S + h[0] + `
702
705
  `;
703
- for (const We of Le) {
704
- const Ze = We[0].trim();
705
- Y += Me + Ze + `
706
+ for (const Ue of Le) {
707
+ const We = Ue[0].trim();
708
+ Q += Me + We + `
706
709
  `;
707
710
  }
708
- const le = h[0].match(/<([A-Za-z_:-]+)/), Fe = le ? le[1] : "", Ce = Re.includes(Fe), Pe = h[1].trim(), Ue = S + (H && Ce ? " " : "");
709
- Y += Ue + Pe, y = Y;
711
+ const le = h[0].match(/<([A-Za-z_:-]+)/), Fe = le ? le[1] : "", Ce = Re.includes(Fe), Pe = h[1].trim(), Ze = S + (B && Ce ? " " : "");
712
+ Q += Ze + Pe, y = Q;
710
713
  } else
711
714
  y = S + y;
712
715
  } else
@@ -715,31 +718,31 @@ const I = {
715
718
  });
716
719
  let l = o.join(`
717
720
  `);
718
- return s > 0 && (l = $t(l)), n > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(l) && (l = ht(l)), l = l.replace(
721
+ return s > 0 && (l = dt(l)), n > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(l) && (l = yt(l)), l = l.replace(
719
722
  /<(?<Element>.+).*>[^<]*?[^><\/\s][^<]*?<\/{1}\k<Element>|<script[^>]*>\s+<\/script>|<(\w+)>\s+<\/(\w+)|<(?:([\w:\._-]+)|([\w:\._-]+)[^>]*[^\/])>\s+<\/([\w:\._-]+)>/g,
720
723
  (p) => p.replace(/\n|\t|\s{2,}/g, "")
721
- ), n > 0 && (l = wt(l)), s > 0 && (l = vt(l)), H && (l = l.replace(/\s\/>|\/>/g, ">")), l.startsWith(`
724
+ ), n > 0 && (l = mt(l)), s > 0 && (l = wt(l)), B && (l = l.replace(/\s\/>|\/>/g, ">")), l.startsWith(`
722
725
  `) && (l = l.substring(1)), l.endsWith(`
723
726
  `) && (l = l.substring(0, l.length - 1)), l;
724
- }, Nt = (e, t) => {
727
+ }, zt = (e, t) => {
725
728
  if (!ae(e)) return e;
726
- const r = t ? Et(t) : D;
727
- H = r.strict;
729
+ const r = t ? St(t) : D;
730
+ B = r.strict;
728
731
  const s = r.ignore.length > 0;
729
- return re = r.trim, s && (e = _t(e, r)), e = yt(e), e = kt(e), e = Rt(e, r), e = mt(e), s && (e = xt(e, r)), e;
730
- }, zt = (e, t, r) => {
732
+ return se = r.trim, s && (e = bt(e, r)), e = _t(e), e = Rt(e), e = Nt(e, r), e = xt(e), s && (e = Et(e, r)), e;
733
+ }, It = (e, t, r) => {
731
734
  [null, void 0, "", !1].includes(r) || ["innerHTML", "style", ""].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof r) ? "⚠️ Property must be set through a script or a framework-specific syntax." : r);
732
735
  }, ze = (e, t, r, s, n) => {
733
736
  if (t && typeof t == "string") {
734
737
  const i = document.createElement(t);
735
738
  Object.keys(r || {}).forEach((o) => {
736
- zt(i, o, r[o]);
739
+ It(i, o, r[o]);
737
740
  }), s == null || s.forEach((o) => {
738
741
  ze(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
739
742
  }), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
740
743
  }
741
744
  n && (e.innerHTML = n);
742
- }, tr = (e, t, r = []) => {
745
+ }, sr = (e, t, r = []) => {
743
746
  const s = {};
744
747
  if (typeof e != "object")
745
748
  throw new Error("filterArgs - args isn't an object.");
@@ -749,11 +752,11 @@ const I = {
749
752
  (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);
750
753
  }
751
754
  return s;
752
- }, rr = (e, t) => {
755
+ }, nr = (e, t) => {
753
756
  var s, n;
754
757
  const r = document.getElementById("storybook-root");
755
758
  if (r !== null)
756
- return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((s = t.globals) == null ? void 0 : s.locale) || "en"), pt(
759
+ return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((s = t.globals) == null ? void 0 : s.locale) || "en"), gt(
757
760
  {
758
761
  $cmpMeta$: {
759
762
  $flags$: 0,
@@ -763,9 +766,9 @@ const I = {
763
766
  },
764
767
  e(t)
765
768
  ), r.children[r.children.length - 1];
766
- }, sr = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
769
+ }, ir = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
767
770
  const n = document.createElement("div");
768
- return ze(n, e, t, r, s), Nt(n.innerHTML, {
771
+ return ze(n, e, t, r, s), zt(n.innerHTML, {
769
772
  tag_wrap: 40,
770
773
  content_wrap: 120
771
774
  }).replace(/="true"/g, "");
@@ -776,7 +779,7 @@ const I = {
776
779
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
777
780
  };
778
781
  var j, X;
779
- class nr {
782
+ class or {
780
783
  constructor(t) {
781
784
  /**
782
785
  * JsonDocs
@@ -924,7 +927,7 @@ class nr {
924
927
  }
925
928
  }
926
929
  j = new WeakMap(), X = new WeakMap();
927
- const It = (e, t) => {
930
+ const Lt = (e, t) => {
928
931
  if (t)
929
932
  return `${e}${t}`;
930
933
  }, Ie = (e) => {
@@ -953,9 +956,9 @@ const It = (e, t) => {
953
956
  `, t += e.slots.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
954
957
  `).join(""), t += `
955
958
  `), t;
956
- }, se = (e) => `${e.docs}
959
+ }, ne = (e) => `${e.docs}
957
960
 
958
- Type: \`${e.type}\``, ir = (e, t, r, s) => ({
961
+ Type: \`${e.type}\``, ar = (e, t, r, s) => ({
959
962
  $schema: "https://json.schemastore.org/web-types",
960
963
  name: e,
961
964
  version: t,
@@ -970,7 +973,7 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
970
973
  "doc-url": i,
971
974
  attributes: n.props.filter((o) => o.attr).map((o) => ({
972
975
  name: o.attr,
973
- description: se(o),
976
+ description: ne(o),
974
977
  "doc-url": i,
975
978
  value: {
976
979
  type: o.type,
@@ -981,7 +984,7 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
981
984
  js: {
982
985
  properties: n.props.map((o) => ({
983
986
  name: o.name,
984
- description: se(o),
987
+ description: ne(o),
985
988
  "doc-url": i,
986
989
  value: {
987
990
  type: o.type,
@@ -1004,23 +1007,23 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
1004
1007
  })
1005
1008
  }
1006
1009
  }
1007
- }), Lt = (e, t, r) => [
1010
+ }), Mt = (e, t, r) => [
1008
1011
  { name: "Storybook", url: J(e, r) },
1009
- { name: "Sources", url: It(t, r) }
1010
- ], Mt = (e) => {
1012
+ { name: "Sources", url: Lt(t, r) }
1013
+ ], Ft = (e) => {
1011
1014
  if (!e.values.some(({ value: t }) => t === void 0))
1012
1015
  return e.values.map(({ value: t }) => ({ name: t }));
1013
- }, or = (e, t, r) => ({
1016
+ }, lr = (e, t, r) => ({
1014
1017
  version: 1.1,
1015
1018
  tags: e.components.map((s) => {
1016
- const n = Lt(t, r, s.filePath);
1019
+ const n = Mt(t, r, s.filePath);
1017
1020
  return {
1018
1021
  name: s.tag,
1019
1022
  description: Ie(s),
1020
1023
  attributes: s.props.map((i) => ({
1021
1024
  name: i.attr || i.name,
1022
- description: se(i),
1023
- values: Mt(i),
1025
+ description: ne(i),
1026
+ values: Ft(i),
1024
1027
  references: n
1025
1028
  })),
1026
1029
  references: n
@@ -1028,7 +1031,7 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
1028
1031
  }),
1029
1032
  globalAttributes: [],
1030
1033
  valueSets: []
1031
- }), ar = (e) => ({
1034
+ }), cr = (e) => ({
1032
1035
  version: 1.1,
1033
1036
  properties: e.components.flatMap(
1034
1037
  (t) => t.styles.map((r) => ({
@@ -1036,10 +1039,10 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
1036
1039
  description: r.docs
1037
1040
  }))
1038
1041
  )
1039
- }), lr = (e) => {
1042
+ }), fr = (e) => {
1040
1043
  const t = { value: "2023", pattern: "yyyy" }, r = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
1041
- return Pt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
1042
- }, cr = (e) => e.toISOString().split("T")[0], Ft = (e, t, r) => {
1044
+ return Zt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
1045
+ }, ur = (e) => e.toISOString().split("T")[0], Ct = (e, t, r) => {
1043
1046
  const s = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || r, o = i.split("-").shift();
1044
1047
  return Object.keys(t).length === 0 ? {
1045
1048
  locale: i,
@@ -1048,17 +1051,17 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
1048
1051
  locale: i,
1049
1052
  messages: t[o] || t[r] || { lang: r }
1050
1053
  };
1051
- }, fr = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), ur = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), pr = (e, t, r = 0) => new Intl.NumberFormat(t, {
1054
+ }, pr = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), gr = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), $r = (e, t, r = 0) => new Intl.NumberFormat(t, {
1052
1055
  style: "percent",
1053
1056
  minimumFractionDigits: r,
1054
1057
  maximumFractionDigits: r
1055
- }).format(e), gr = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
1058
+ }).format(e), dr = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
1056
1059
  style: "unit",
1057
1060
  unit: r,
1058
1061
  unitDisplay: s,
1059
1062
  minimumFractionDigits: n,
1060
1063
  maximumFractionDigits: n
1061
- }).format(e), Ct = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Pt = (e, t, r) => typeof e != "string" || e === "" || !Ct.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), $r = (e, t) => (r) => Ft(r, e, t), dr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1064
+ }).format(e), Pt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Zt = (e, t, r) => typeof e != "string" || e === "" || !Pt.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), hr = (e, t) => (r) => Ct(r, e, t), yr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1062
1065
  class s {
1063
1066
  constructor(i) {
1064
1067
  /**
@@ -1087,7 +1090,7 @@ Type: \`${e.type}\``, ir = (e, t, r, s) => ({
1087
1090
  value: s
1088
1091
  });
1089
1092
  }), s;
1090
- }, hr = ({ disconnect: e, observe: t }) => {
1093
+ }, _r = ({ disconnect: e, observe: t }) => {
1091
1094
  class r {
1092
1095
  constructor(n) {
1093
1096
  /**
@@ -1127,7 +1130,7 @@ class Ut extends Event {
1127
1130
  }
1128
1131
  // eslint-disable-line @typescript-eslint/no-explicit-any
1129
1132
  }
1130
- const yr = () => {
1133
+ const br = () => {
1131
1134
  class e extends Ut {
1132
1135
  }
1133
1136
  return [window, global].forEach((t) => {
@@ -1137,7 +1140,7 @@ const yr = () => {
1137
1140
  value: e
1138
1141
  });
1139
1142
  }), e;
1140
- }, _r = (e) => {
1143
+ }, vr = (e) => {
1141
1144
  const t = (r) => (setTimeout(r, 1), e(), 0);
1142
1145
  return [window, global].forEach((r) => {
1143
1146
  Object.defineProperty(r, "requestAnimationFrame", {
@@ -1148,44 +1151,45 @@ const yr = () => {
1148
1151
  }), t;
1149
1152
  };
1150
1153
  export {
1151
- Ht as ClassList,
1152
- Vt as Cursor,
1153
- Ge as Page,
1154
- er as Paginate,
1155
- nr as StorybookPreview,
1156
- qt as allItemsAreString,
1157
- Yt as cleanString,
1158
- Zt as createID,
1159
- Ct as dateRegExp,
1160
- cr as dateToString,
1161
- $r as defineLocales,
1162
- tr as filterArgs,
1163
- Gt as focusableElements,
1164
- lr as getLocaleDatePattern,
1165
- Be as getObjectValueFromKey,
1154
+ qt as ClassList,
1155
+ tr as Cursor,
1156
+ Je as Page,
1157
+ rr as Paginate,
1158
+ or as StorybookPreview,
1159
+ Gt as allItemsAreString,
1160
+ Vt as cleanString,
1161
+ Dt as createID,
1162
+ Pt as dateRegExp,
1163
+ ur as dateToString,
1164
+ hr as defineLocales,
1165
+ sr as filterArgs,
1166
+ Xt as focusableElements,
1167
+ Ht as formatID,
1168
+ fr as getLocaleDatePattern,
1169
+ Ge as getObjectValueFromKey,
1166
1170
  _e as getParentWindows,
1167
- sr as getStoryHTML,
1171
+ ir as getStoryHTML,
1168
1172
  J as getStorybookUrl,
1169
- Jt as getWindows,
1170
- ne as isObject,
1171
- Bt as isTagName,
1172
- Kt as isValidNumber,
1173
+ Kt as getWindows,
1174
+ K as isObject,
1175
+ Jt as isTagName,
1176
+ Qt as isValidNumber,
1173
1177
  qe as isValidString,
1174
- Dt as isValideID,
1175
- fr as localeCurrency,
1176
- Pt as localeDate,
1177
- ur as localeNumber,
1178
- pr as localePercent,
1179
- gr as localeUnit,
1180
- Qt as nextTick,
1181
- _r as setUpRequestAnimationFrameMock,
1182
- dr as setupMutationObserverMock,
1183
- hr as setupResizeObserverMock,
1184
- yr as setupSubmitEventMock,
1185
- rr as stencilWrapper,
1186
- Xt as toString,
1187
- ar as vsCodeCssGenerator,
1188
- or as vsCodeGenerator,
1189
- ir as webTypesGenerator
1178
+ Bt as isValideID,
1179
+ pr as localeCurrency,
1180
+ Zt as localeDate,
1181
+ gr as localeNumber,
1182
+ $r as localePercent,
1183
+ dr as localeUnit,
1184
+ er as nextTick,
1185
+ vr as setUpRequestAnimationFrameMock,
1186
+ yr as setupMutationObserverMock,
1187
+ _r as setupResizeObserverMock,
1188
+ br as setupSubmitEventMock,
1189
+ nr as stencilWrapper,
1190
+ Yt as toString,
1191
+ cr as vsCodeCssGenerator,
1192
+ lr as vsCodeGenerator,
1193
+ ar as webTypesGenerator
1190
1194
  };
1191
1195
  //# sourceMappingURL=index.es.js.map