@openvoxproject/voxblocks 0.10.0 → 0.11.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.
Files changed (34) hide show
  1. package/dist/cdn/voxblocks.css +1 -1
  2. package/dist/cdn/voxblocks.js +1179 -1075
  3. package/dist/types/components/accordion/vox-accordion.d.ts +2 -0
  4. package/dist/types/components/disclosure/vox-disclosure.d.ts +2 -0
  5. package/dist/types/components/dropdown/vox-dropdown.d.ts +3 -0
  6. package/dist/types/components/header/vox-header.d.ts +2 -0
  7. package/dist/types/components/pagination/vox-pagination.d.ts +6 -4
  8. package/dist/types/components/sidenav/vox-sidenav.d.ts +4 -0
  9. package/dist/types/internal/field.d.ts +4 -0
  10. package/dist/voxblocks.css +1 -1
  11. package/dist/voxblocks.js +1000 -896
  12. package/package.json +1 -1
  13. package/src/components/accordion/vox-accordion.ts +6 -1
  14. package/src/components/alert/vox-alert.ts +5 -1
  15. package/src/components/avatar/vox-avatar.ts +9 -2
  16. package/src/components/card/vox-card.ts +1 -1
  17. package/src/components/checkbox/vox-checkbox.ts +4 -3
  18. package/src/components/dialog/vox-dialog.ts +2 -2
  19. package/src/components/disclosure/vox-disclosure.ts +6 -1
  20. package/src/components/dropdown/vox-dropdown.ts +32 -8
  21. package/src/components/empty-state/vox-empty-state.ts +1 -1
  22. package/src/components/file-input/vox-file-input.ts +4 -1
  23. package/src/components/header/vox-header.ts +10 -0
  24. package/src/components/input/vox-input.ts +2 -0
  25. package/src/components/link-hub/vox-link-hub.ts +1 -1
  26. package/src/components/pagination/vox-pagination.ts +9 -6
  27. package/src/components/radio/vox-radio-group.ts +17 -6
  28. package/src/components/select/vox-select.ts +3 -0
  29. package/src/components/sidenav/vox-sidenav.ts +16 -1
  30. package/src/components/step-indicator/vox-step-indicator.ts +16 -2
  31. package/src/components/tabs/vox-tabs.ts +26 -2
  32. package/src/components/textarea/vox-textarea.ts +2 -0
  33. package/src/internal/field.ts +20 -2
  34. package/src/tokens/tokens.css +7 -7
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const Ie = globalThis, _t = Ie.ShadowRoot && (Ie.ShadyCSS === void 0 || Ie.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ct = Symbol(), It = /* @__PURE__ */ new WeakMap();
6
+ const qe = globalThis, _t = qe.ShadowRoot && (qe.ShadyCSS === void 0 || qe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ct = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
7
7
  let oo = class {
8
- constructor(e, o, s) {
8
+ constructor(e, r, s) {
9
9
  if (this._$cssResult$ = !0, s !== Ct) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
- this.cssText = e, this.t = o;
10
+ this.cssText = e, this.t = r;
11
11
  }
12
12
  get styleSheet() {
13
13
  let e = this.o;
14
- const o = this.t;
14
+ const r = this.t;
15
15
  if (_t && e === void 0) {
16
- const s = o !== void 0 && o.length === 1;
17
- s && (e = It.get(o)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && It.set(o, e));
16
+ const s = r !== void 0 && r.length === 1;
17
+ s && (e = Ut.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Ut.set(r, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,119 +22,119 @@ let oo = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const yo = (r) => new oo(typeof r == "string" ? r : r + "", void 0, Ct), d = (r, ...e) => {
26
- const o = r.length === 1 ? r[0] : e.reduce((s, t, a) => s + ((i) => {
25
+ const yo = (o) => new oo(typeof o == "string" ? o : o + "", void 0, Ct), d = (o, ...e) => {
26
+ const r = o.length === 1 ? o[0] : e.reduce((s, t, a) => s + ((i) => {
27
27
  if (i._$cssResult$ === !0) return i.cssText;
28
28
  if (typeof i == "number") return i;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(t) + r[a + 1], r[0]);
31
- return new oo(o, r, Ct);
32
- }, mo = (r, e) => {
33
- if (_t) r.adoptedStyleSheets = e.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
34
- else for (const o of e) {
35
- const s = document.createElement("style"), t = Ie.litNonce;
36
- t !== void 0 && s.setAttribute("nonce", t), s.textContent = o.cssText, r.appendChild(s);
37
- }
38
- }, qt = _t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
39
- let o = "";
40
- for (const s of e.cssRules) o += s.cssText;
41
- return yo(o);
42
- })(r) : r;
30
+ })(t) + o[a + 1], o[0]);
31
+ return new oo(r, o, Ct);
32
+ }, mo = (o, e) => {
33
+ if (_t) o.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
34
+ else for (const r of e) {
35
+ const s = document.createElement("style"), t = qe.litNonce;
36
+ t !== void 0 && s.setAttribute("nonce", t), s.textContent = r.cssText, o.appendChild(s);
37
+ }
38
+ }, qt = _t ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((e) => {
39
+ let r = "";
40
+ for (const s of e.cssRules) r += s.cssText;
41
+ return yo(r);
42
+ })(o) : o;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: $o, defineProperty: wo, getOwnPropertyDescriptor: _o, getOwnPropertyNames: Co, getOwnPropertySymbols: Oo, getPrototypeOf: Mo } = Object, M = globalThis, Ft = M.trustedTypes, Po = Ft ? Ft.emptyScript : "", pt = M.reactiveElementPolyfillSupport, se = (r, e) => r, qe = { toAttribute(r, e) {
48
+ const { is: $o, defineProperty: wo, getOwnPropertyDescriptor: _o, getOwnPropertyNames: Co, getOwnPropertySymbols: Oo, getPrototypeOf: Mo } = Object, P = globalThis, Ft = P.trustedTypes, Po = Ft ? Ft.emptyScript : "", pt = P.reactiveElementPolyfillSupport, le = (o, e) => o, Fe = { toAttribute(o, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- r = r ? Po : null;
51
+ o = o ? Po : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- r = r == null ? r : JSON.stringify(r);
55
+ o = o == null ? o : JSON.stringify(o);
56
56
  }
57
- return r;
58
- }, fromAttribute(r, e) {
59
- let o = r;
57
+ return o;
58
+ }, fromAttribute(o, e) {
59
+ let r = o;
60
60
  switch (e) {
61
61
  case Boolean:
62
- o = r !== null;
62
+ r = o !== null;
63
63
  break;
64
64
  case Number:
65
- o = r === null ? null : Number(r);
65
+ r = o === null ? null : Number(o);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- o = JSON.parse(r);
70
+ r = JSON.parse(o);
71
71
  } catch {
72
- o = null;
72
+ r = null;
73
73
  }
74
74
  }
75
- return o;
76
- } }, Ot = (r, e) => !$o(r, e), Zt = { attribute: !0, type: String, converter: qe, reflect: !1, useDefault: !1, hasChanged: Ot };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let q = class extends HTMLElement {
75
+ return r;
76
+ } }, Ot = (o, e) => !$o(o, e), Zt = { attribute: !0, type: String, converter: Fe, reflect: !1, useDefault: !1, hasChanged: Ot };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let G = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(e, o = Zt) {
86
- if (o.state && (o.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((o = Object.create(o)).wrapped = !0), this.elementProperties.set(e, o), !o.noAccessor) {
87
- const s = Symbol(), t = this.getPropertyDescriptor(e, s, o);
85
+ static createProperty(e, r = Zt) {
86
+ if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
87
+ const s = Symbol(), t = this.getPropertyDescriptor(e, s, r);
88
88
  t !== void 0 && wo(this.prototype, e, t);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(e, o, s) {
91
+ static getPropertyDescriptor(e, r, s) {
92
92
  const { get: t, set: a } = _o(this.prototype, e) ?? { get() {
93
- return this[o];
93
+ return this[r];
94
94
  }, set(i) {
95
- this[o] = i;
95
+ this[r] = i;
96
96
  } };
97
97
  return { get: t, set(i) {
98
- const u = t == null ? void 0 : t.call(this);
99
- a == null || a.call(this, i), this.requestUpdate(e, u, s);
98
+ const x = t == null ? void 0 : t.call(this);
99
+ a == null || a.call(this, i), this.requestUpdate(e, x, s);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
103
103
  return this.elementProperties.get(e) ?? Zt;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(se("elementProperties"))) return;
106
+ if (this.hasOwnProperty(le("elementProperties"))) return;
107
107
  const e = Mo(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(se("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(se("properties"))) {
113
- const o = this.properties, s = [...Co(o), ...Oo(o)];
114
- for (const t of s) this.createProperty(t, o[t]);
111
+ if (this.hasOwnProperty(le("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(le("properties"))) {
113
+ const r = this.properties, s = [...Co(r), ...Oo(r)];
114
+ for (const t of s) this.createProperty(t, r[t]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
117
117
  if (e !== null) {
118
- const o = litPropertyMetadata.get(e);
119
- if (o !== void 0) for (const [s, t] of o) this.elementProperties.set(s, t);
118
+ const r = litPropertyMetadata.get(e);
119
+ if (r !== void 0) for (const [s, t] of r) this.elementProperties.set(s, t);
120
120
  }
121
121
  this._$Eh = /* @__PURE__ */ new Map();
122
- for (const [o, s] of this.elementProperties) {
123
- const t = this._$Eu(o, s);
124
- t !== void 0 && this._$Eh.set(t, o);
122
+ for (const [r, s] of this.elementProperties) {
123
+ const t = this._$Eu(r, s);
124
+ t !== void 0 && this._$Eh.set(t, r);
125
125
  }
126
126
  this.elementStyles = this.finalizeStyles(this.styles);
127
127
  }
128
128
  static finalizeStyles(e) {
129
- const o = [];
129
+ const r = [];
130
130
  if (Array.isArray(e)) {
131
131
  const s = new Set(e.flat(1 / 0).reverse());
132
- for (const t of s) o.unshift(qt(t));
133
- } else e !== void 0 && o.push(qt(e));
134
- return o;
132
+ for (const t of s) r.unshift(qt(t));
133
+ } else e !== void 0 && r.push(qt(e));
134
+ return r;
135
135
  }
136
- static _$Eu(e, o) {
137
- const s = o.attribute;
136
+ static _$Eu(e, r) {
137
+ const s = r.attribute;
138
138
  return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
139
139
  }
140
140
  constructor() {
@@ -142,19 +142,19 @@ let q = class extends HTMLElement {
142
142
  }
143
143
  _$Ev() {
144
144
  var e;
145
- this._$ES = new Promise((o) => this.enableUpdating = o), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((o) => o(this));
145
+ this._$ES = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((r) => r(this));
146
146
  }
147
147
  addController(e) {
148
- var o;
149
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((o = e.hostConnected) == null || o.call(e));
148
+ var r;
149
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((r = e.hostConnected) == null || r.call(e));
150
150
  }
151
151
  removeController(e) {
152
- var o;
153
- (o = this._$EO) == null || o.delete(e);
152
+ var r;
153
+ (r = this._$EO) == null || r.delete(e);
154
154
  }
155
155
  _$E_() {
156
- const e = /* @__PURE__ */ new Map(), o = this.constructor.elementProperties;
157
- for (const s of o.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
156
+ const e = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties;
157
+ for (const s of r.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
158
158
  e.size > 0 && (this._$Ep = e);
159
159
  }
160
160
  createRenderRoot() {
@@ -163,59 +163,59 @@ let q = class extends HTMLElement {
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
166
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((o) => {
166
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((r) => {
167
167
  var s;
168
- return (s = o.hostConnected) == null ? void 0 : s.call(o);
168
+ return (s = r.hostConnected) == null ? void 0 : s.call(r);
169
169
  });
170
170
  }
171
171
  enableUpdating(e) {
172
172
  }
173
173
  disconnectedCallback() {
174
174
  var e;
175
- (e = this._$EO) == null || e.forEach((o) => {
175
+ (e = this._$EO) == null || e.forEach((r) => {
176
176
  var s;
177
- return (s = o.hostDisconnected) == null ? void 0 : s.call(o);
177
+ return (s = r.hostDisconnected) == null ? void 0 : s.call(r);
178
178
  });
179
179
  }
180
- attributeChangedCallback(e, o, s) {
180
+ attributeChangedCallback(e, r, s) {
181
181
  this._$AK(e, s);
182
182
  }
183
- _$ET(e, o) {
183
+ _$ET(e, r) {
184
184
  var a;
185
185
  const s = this.constructor.elementProperties.get(e), t = this.constructor._$Eu(e, s);
186
186
  if (t !== void 0 && s.reflect === !0) {
187
- const i = (((a = s.converter) == null ? void 0 : a.toAttribute) !== void 0 ? s.converter : qe).toAttribute(o, s.type);
187
+ const i = (((a = s.converter) == null ? void 0 : a.toAttribute) !== void 0 ? s.converter : Fe).toAttribute(r, s.type);
188
188
  this._$Em = e, i == null ? this.removeAttribute(t) : this.setAttribute(t, i), this._$Em = null;
189
189
  }
190
190
  }
191
- _$AK(e, o) {
191
+ _$AK(e, r) {
192
192
  var a, i;
193
193
  const s = this.constructor, t = s._$Eh.get(e);
194
194
  if (t !== void 0 && this._$Em !== t) {
195
- const u = s.getPropertyOptions(t), v = typeof u.converter == "function" ? { fromAttribute: u.converter } : ((a = u.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? u.converter : qe;
195
+ const x = s.getPropertyOptions(t), v = typeof x.converter == "function" ? { fromAttribute: x.converter } : ((a = x.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? x.converter : Fe;
196
196
  this._$Em = t;
197
- const f = v.fromAttribute(o, u.type);
197
+ const f = v.fromAttribute(r, x.type);
198
198
  this[t] = f ?? ((i = this._$Ej) == null ? void 0 : i.get(t)) ?? f, this._$Em = null;
199
199
  }
200
200
  }
201
- requestUpdate(e, o, s, t = !1, a) {
201
+ requestUpdate(e, r, s, t = !1, a) {
202
202
  var i;
203
203
  if (e !== void 0) {
204
- const u = this.constructor;
205
- if (t === !1 && (a = this[e]), s ?? (s = u.getPropertyOptions(e)), !((s.hasChanged ?? Ot)(a, o) || s.useDefault && s.reflect && a === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(u._$Eu(e, s)))) return;
206
- this.C(e, o, s);
204
+ const x = this.constructor;
205
+ if (t === !1 && (a = this[e]), s ?? (s = x.getPropertyOptions(e)), !((s.hasChanged ?? Ot)(a, r) || s.useDefault && s.reflect && a === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(x._$Eu(e, s)))) return;
206
+ this.C(e, r, s);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
209
  }
210
- C(e, o, { useDefault: s, reflect: t, wrapped: a }, i) {
211
- s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ?? o ?? this[e]), a !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (o = void 0), this._$AL.set(e, o)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
210
+ C(e, r, { useDefault: s, reflect: t, wrapped: a }, i) {
211
+ s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ?? r ?? this[e]), a !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (r = void 0), this._$AL.set(e, r)), t === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
212
212
  }
213
213
  async _$EP() {
214
214
  this.isUpdatePending = !0;
215
215
  try {
216
216
  await this._$ES;
217
- } catch (o) {
218
- Promise.reject(o);
217
+ } catch (r) {
218
+ Promise.reject(r);
219
219
  }
220
220
  const e = this.scheduleUpdate();
221
221
  return e != null && await e, !this.isUpdatePending;
@@ -233,27 +233,27 @@ let q = class extends HTMLElement {
233
233
  }
234
234
  const t = this.constructor.elementProperties;
235
235
  if (t.size > 0) for (const [a, i] of t) {
236
- const { wrapped: u } = i, v = this[a];
237
- u !== !0 || this._$AL.has(a) || v === void 0 || this.C(a, void 0, i, v);
236
+ const { wrapped: x } = i, v = this[a];
237
+ x !== !0 || this._$AL.has(a) || v === void 0 || this.C(a, void 0, i, v);
238
238
  }
239
239
  }
240
240
  let e = !1;
241
- const o = this._$AL;
241
+ const r = this._$AL;
242
242
  try {
243
- e = this.shouldUpdate(o), e ? (this.willUpdate(o), (s = this._$EO) == null || s.forEach((t) => {
243
+ e = this.shouldUpdate(r), e ? (this.willUpdate(r), (s = this._$EO) == null || s.forEach((t) => {
244
244
  var a;
245
245
  return (a = t.hostUpdate) == null ? void 0 : a.call(t);
246
- }), this.update(o)) : this._$EM();
246
+ }), this.update(r)) : this._$EM();
247
247
  } catch (t) {
248
248
  throw e = !1, this._$EM(), t;
249
249
  }
250
- e && this._$AE(o);
250
+ e && this._$AE(r);
251
251
  }
252
252
  willUpdate(e) {
253
253
  }
254
254
  _$AE(e) {
255
- var o;
256
- (o = this._$EO) == null || o.forEach((s) => {
255
+ var r;
256
+ (r = this._$EO) == null || r.forEach((s) => {
257
257
  var t;
258
258
  return (t = s.hostUpdated) == null ? void 0 : t.call(s);
259
259
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
@@ -271,85 +271,85 @@ let q = class extends HTMLElement {
271
271
  return !0;
272
272
  }
273
273
  update(e) {
274
- this._$Eq && (this._$Eq = this._$Eq.forEach((o) => this._$ET(o, this[o]))), this._$EM();
274
+ this._$Eq && (this._$Eq = this._$Eq.forEach((r) => this._$ET(r, this[r]))), this._$EM();
275
275
  }
276
276
  updated(e) {
277
277
  }
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[se("elementProperties")] = /* @__PURE__ */ new Map(), q[se("finalized")] = /* @__PURE__ */ new Map(), pt == null || pt({ ReactiveElement: q }), (M.reactiveElementVersions ?? (M.reactiveElementVersions = [])).push("2.1.2");
281
+ G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[le("elementProperties")] = /* @__PURE__ */ new Map(), G[le("finalized")] = /* @__PURE__ */ new Map(), pt == null || pt({ ReactiveElement: G }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.1.2");
282
282
  /**
283
283
  * @license
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const ae = globalThis, Kt = (r) => r, Fe = ae.trustedTypes, Gt = Fe ? Fe.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ro = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, so = "?" + O, Ao = `<${so}>`, V = document, ie = () => V.createComment(""), ne = (r) => r === null || typeof r != "object" && typeof r != "function", Mt = Array.isArray, ko = (r) => Mt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", vt = `[
288
- \f\r]`, re = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Wt = /-->/g, Xt = />/g, k = RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Jt = /"/g, ao = /^(?:script|style|textarea|title)$/i, io = (r) => (e, ...o) => ({ _$litType$: r, strings: e, values: o }), c = io(1), l = io(2), m = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), Qt = /* @__PURE__ */ new WeakMap(), E = V.createTreeWalker(V, 129);
290
- function no(r, e) {
291
- if (!Mt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ const ce = globalThis, Kt = (o) => o, Ze = ce.trustedTypes, Gt = Ze ? Ze.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, ro = "$lit$", M = `lit$${Math.random().toFixed(9).slice(2)}$`, so = "?" + M, Ao = `<${so}>`, j = document, de = () => j.createComment(""), he = (o) => o === null || typeof o != "object" && typeof o != "function", Mt = Array.isArray, ko = (o) => Mt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", vt = `[
288
+ \f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Wt = /-->/g, Xt = />/g, L = RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Jt = /"/g, ao = /^(?:script|style|textarea|title)$/i, io = (o) => (e, ...r) => ({ _$litType$: o, strings: e, values: r }), c = io(1), l = io(2), m = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Qt = /* @__PURE__ */ new WeakMap(), S = j.createTreeWalker(j, 129);
290
+ function no(o, e) {
291
+ if (!Mt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return Gt !== void 0 ? Gt.createHTML(e) : e;
293
293
  }
294
- const Lo = (r, e) => {
295
- const o = r.length - 1, s = [];
296
- let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = re;
297
- for (let u = 0; u < o; u++) {
298
- const v = r[u];
299
- let f, b, g = -1, w = 0;
300
- for (; w < v.length && (i.lastIndex = w, b = i.exec(v), b !== null); ) w = i.lastIndex, i === re ? b[1] === "!--" ? i = Wt : b[1] !== void 0 ? i = Xt : b[2] !== void 0 ? (ao.test(b[2]) && (t = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = t ?? re, g = -1) : b[1] === void 0 ? g = -2 : (g = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? Jt : Yt) : i === Jt || i === Yt ? i = k : i === Wt || i === Xt ? i = re : (i = k, t = void 0);
301
- const C = i === k && r[u + 1].startsWith("/>") ? " " : "";
302
- a += i === re ? v + Ao : g >= 0 ? (s.push(f), v.slice(0, g) + ro + v.slice(g) + O + C) : v + O + (g === -2 ? u : C);
303
- }
304
- return [no(r, a + (r[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
294
+ const Lo = (o, e) => {
295
+ const r = o.length - 1, s = [];
296
+ let t, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = ne;
297
+ for (let x = 0; x < r; x++) {
298
+ const v = o[x];
299
+ let f, b, g = -1, _ = 0;
300
+ for (; _ < v.length && (i.lastIndex = _, b = i.exec(v), b !== null); ) _ = i.lastIndex, i === ne ? b[1] === "!--" ? i = Wt : b[1] !== void 0 ? i = Xt : b[2] !== void 0 ? (ao.test(b[2]) && (t = RegExp("</" + b[2], "g")), i = L) : b[3] !== void 0 && (i = L) : i === L ? b[0] === ">" ? (i = t ?? ne, g = -1) : b[1] === void 0 ? g = -2 : (g = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? L : b[3] === '"' ? Jt : Yt) : i === Jt || i === Yt ? i = L : i === Wt || i === Xt ? i = ne : (i = L, t = void 0);
301
+ const O = i === L && o[x + 1].startsWith("/>") ? " " : "";
302
+ a += i === ne ? v + Ao : g >= 0 ? (s.push(f), v.slice(0, g) + ro + v.slice(g) + M + O) : v + M + (g === -2 ? x : O);
303
+ }
304
+ return [no(o, a + (o[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
305
305
  };
306
- class le {
307
- constructor({ strings: e, _$litType$: o }, s) {
306
+ class pe {
307
+ constructor({ strings: e, _$litType$: r }, s) {
308
308
  let t;
309
309
  this.parts = [];
310
310
  let a = 0, i = 0;
311
- const u = e.length - 1, v = this.parts, [f, b] = Lo(e, o);
312
- if (this.el = le.createElement(f, s), E.currentNode = this.el.content, o === 2 || o === 3) {
311
+ const x = e.length - 1, v = this.parts, [f, b] = Lo(e, r);
312
+ if (this.el = pe.createElement(f, s), S.currentNode = this.el.content, r === 2 || r === 3) {
313
313
  const g = this.el.content.firstChild;
314
314
  g.replaceWith(...g.childNodes);
315
315
  }
316
- for (; (t = E.nextNode()) !== null && v.length < u; ) {
316
+ for (; (t = S.nextNode()) !== null && v.length < x; ) {
317
317
  if (t.nodeType === 1) {
318
318
  if (t.hasAttributes()) for (const g of t.getAttributeNames()) if (g.endsWith(ro)) {
319
- const w = b[i++], C = t.getAttribute(g).split(O), Re = /([.?@])?(.*)/.exec(w);
320
- v.push({ type: 1, index: a, name: Re[2], strings: C, ctor: Re[1] === "." ? So : Re[1] === "?" ? Vo : Re[1] === "@" ? jo : ot }), t.removeAttribute(g);
321
- } else g.startsWith(O) && (v.push({ type: 6, index: a }), t.removeAttribute(g));
319
+ const _ = b[i++], O = t.getAttribute(g).split(M), Re = /([.?@])?(.*)/.exec(_);
320
+ v.push({ type: 1, index: a, name: Re[2], strings: O, ctor: Re[1] === "." ? So : Re[1] === "?" ? Vo : Re[1] === "@" ? jo : rt }), t.removeAttribute(g);
321
+ } else g.startsWith(M) && (v.push({ type: 6, index: a }), t.removeAttribute(g));
322
322
  if (ao.test(t.tagName)) {
323
- const g = t.textContent.split(O), w = g.length - 1;
324
- if (w > 0) {
325
- t.textContent = Fe ? Fe.emptyScript : "";
326
- for (let C = 0; C < w; C++) t.append(g[C], ie()), E.nextNode(), v.push({ type: 2, index: ++a });
327
- t.append(g[w], ie());
323
+ const g = t.textContent.split(M), _ = g.length - 1;
324
+ if (_ > 0) {
325
+ t.textContent = Ze ? Ze.emptyScript : "";
326
+ for (let O = 0; O < _; O++) t.append(g[O], de()), S.nextNode(), v.push({ type: 2, index: ++a });
327
+ t.append(g[_], de());
328
328
  }
329
329
  }
330
330
  } else if (t.nodeType === 8) if (t.data === so) v.push({ type: 2, index: a });
331
331
  else {
332
332
  let g = -1;
333
- for (; (g = t.data.indexOf(O, g + 1)) !== -1; ) v.push({ type: 7, index: a }), g += O.length - 1;
333
+ for (; (g = t.data.indexOf(M, g + 1)) !== -1; ) v.push({ type: 7, index: a }), g += M.length - 1;
334
334
  }
335
335
  a++;
336
336
  }
337
337
  }
338
- static createElement(e, o) {
339
- const s = V.createElement("template");
338
+ static createElement(e, r) {
339
+ const s = j.createElement("template");
340
340
  return s.innerHTML = e, s;
341
341
  }
342
342
  }
343
- function F(r, e, o = r, s) {
344
- var i, u;
343
+ function W(o, e, r = o, s) {
344
+ var i, x;
345
345
  if (e === m) return e;
346
- let t = s !== void 0 ? (i = o._$Co) == null ? void 0 : i[s] : o._$Cl;
347
- const a = ne(e) ? void 0 : e._$litDirective$;
348
- return (t == null ? void 0 : t.constructor) !== a && ((u = t == null ? void 0 : t._$AO) == null || u.call(t, !1), a === void 0 ? t = void 0 : (t = new a(r), t._$AT(r, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = t : o._$Cl = t), t !== void 0 && (e = F(r, t._$AS(r, e.values), t, s)), e;
346
+ let t = s !== void 0 ? (i = r._$Co) == null ? void 0 : i[s] : r._$Cl;
347
+ const a = he(e) ? void 0 : e._$litDirective$;
348
+ return (t == null ? void 0 : t.constructor) !== a && ((x = t == null ? void 0 : t._$AO) == null || x.call(t, !1), a === void 0 ? t = void 0 : (t = new a(o), t._$AT(o, r, s)), s !== void 0 ? (r._$Co ?? (r._$Co = []))[s] = t : r._$Cl = t), t !== void 0 && (e = W(o, t._$AS(o, e.values), t, s)), e;
349
349
  }
350
350
  class Eo {
351
- constructor(e, o) {
352
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = o;
351
+ constructor(e, r) {
352
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
353
353
  }
354
354
  get parentNode() {
355
355
  return this._$AM.parentNode;
@@ -358,35 +358,35 @@ class Eo {
358
358
  return this._$AM._$AU;
359
359
  }
360
360
  u(e) {
361
- const { el: { content: o }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? V).importNode(o, !0);
362
- E.currentNode = t;
363
- let a = E.nextNode(), i = 0, u = 0, v = s[0];
361
+ const { el: { content: r }, parts: s } = this._$AD, t = ((e == null ? void 0 : e.creationScope) ?? j).importNode(r, !0);
362
+ S.currentNode = t;
363
+ let a = S.nextNode(), i = 0, x = 0, v = s[0];
364
364
  for (; v !== void 0; ) {
365
365
  if (i === v.index) {
366
366
  let f;
367
- v.type === 2 ? f = new Le(a, a.nextSibling, this, e) : v.type === 1 ? f = new v.ctor(a, v.name, v.strings, this, e) : v.type === 6 && (f = new Do(a, this, e)), this._$AV.push(f), v = s[++u];
367
+ v.type === 2 ? f = new Ee(a, a.nextSibling, this, e) : v.type === 1 ? f = new v.ctor(a, v.name, v.strings, this, e) : v.type === 6 && (f = new Do(a, this, e)), this._$AV.push(f), v = s[++x];
368
368
  }
369
- i !== (v == null ? void 0 : v.index) && (a = E.nextNode(), i++);
369
+ i !== (v == null ? void 0 : v.index) && (a = S.nextNode(), i++);
370
370
  }
371
- return E.currentNode = V, t;
371
+ return S.currentNode = j, t;
372
372
  }
373
373
  p(e) {
374
- let o = 0;
375
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, o), o += s.strings.length - 2) : s._$AI(e[o])), o++;
374
+ let r = 0;
375
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, r), r += s.strings.length - 2) : s._$AI(e[r])), r++;
376
376
  }
377
377
  }
378
- class Le {
378
+ class Ee {
379
379
  get _$AU() {
380
380
  var e;
381
381
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
382
382
  }
383
- constructor(e, o, s, t) {
384
- this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB = o, this._$AM = s, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
383
+ constructor(e, r, s, t) {
384
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = s, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
385
385
  }
386
386
  get parentNode() {
387
387
  let e = this._$AA.parentNode;
388
- const o = this._$AM;
389
- return o !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = o.parentNode), e;
388
+ const r = this._$AM;
389
+ return r !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = r.parentNode), e;
390
390
  }
391
391
  get startNode() {
392
392
  return this._$AA;
@@ -394,8 +394,8 @@ class Le {
394
394
  get endNode() {
395
395
  return this._$AB;
396
396
  }
397
- _$AI(e, o = this) {
398
- e = F(this, e, o), ne(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== m && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ko(e) ? this.k(e) : this._(e);
397
+ _$AI(e, r = this) {
398
+ e = W(this, e, r), he(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== m && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ko(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -404,135 +404,135 @@ class Le {
404
404
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
405
405
  }
406
406
  _(e) {
407
- this._$AH !== x && ne(this._$AH) ? this._$AA.nextSibling.data = e : this.T(V.createTextNode(e)), this._$AH = e;
407
+ this._$AH !== u && he(this._$AH) ? this._$AA.nextSibling.data = e : this.T(j.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
410
  var a;
411
- const { values: o, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = le.createElement(no(s.h, s.h[0]), this.options)), s);
412
- if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(o);
411
+ const { values: r, _$litType$: s } = e, t = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = pe.createElement(no(s.h, s.h[0]), this.options)), s);
412
+ if (((a = this._$AH) == null ? void 0 : a._$AD) === t) this._$AH.p(r);
413
413
  else {
414
- const i = new Eo(t, this), u = i.u(this.options);
415
- i.p(o), this.T(u), this._$AH = i;
414
+ const i = new Eo(t, this), x = i.u(this.options);
415
+ i.p(r), this.T(x), this._$AH = i;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let o = Qt.get(e.strings);
420
- return o === void 0 && Qt.set(e.strings, o = new le(e)), o;
419
+ let r = Qt.get(e.strings);
420
+ return r === void 0 && Qt.set(e.strings, r = new pe(e)), r;
421
421
  }
422
422
  k(e) {
423
423
  Mt(this._$AH) || (this._$AH = [], this._$AR());
424
- const o = this._$AH;
424
+ const r = this._$AH;
425
425
  let s, t = 0;
426
- for (const a of e) t === o.length ? o.push(s = new Le(this.O(ie()), this.O(ie()), this, this.options)) : s = o[t], s._$AI(a), t++;
427
- t < o.length && (this._$AR(s && s._$AB.nextSibling, t), o.length = t);
426
+ for (const a of e) t === r.length ? r.push(s = new Ee(this.O(de()), this.O(de()), this, this.options)) : s = r[t], s._$AI(a), t++;
427
+ t < r.length && (this._$AR(s && s._$AB.nextSibling, t), r.length = t);
428
428
  }
429
- _$AR(e = this._$AA.nextSibling, o) {
429
+ _$AR(e = this._$AA.nextSibling, r) {
430
430
  var s;
431
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, o); e !== this._$AB; ) {
431
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, r); e !== this._$AB; ) {
432
432
  const t = Kt(e).nextSibling;
433
433
  Kt(e).remove(), e = t;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
437
- var o;
438
- this._$AM === void 0 && (this._$Cv = e, (o = this._$AP) == null || o.call(this, e));
437
+ var r;
438
+ this._$AM === void 0 && (this._$Cv = e, (r = this._$AP) == null || r.call(this, e));
439
439
  }
440
440
  }
441
- class ot {
441
+ class rt {
442
442
  get tagName() {
443
443
  return this.element.tagName;
444
444
  }
445
445
  get _$AU() {
446
446
  return this._$AM._$AU;
447
447
  }
448
- constructor(e, o, s, t, a) {
449
- this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name = o, this._$AM = t, this.options = a, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = x;
448
+ constructor(e, r, s, t, a) {
449
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = r, this._$AM = t, this.options = a, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
450
450
  }
451
- _$AI(e, o = this, s, t) {
451
+ _$AI(e, r = this, s, t) {
452
452
  const a = this.strings;
453
453
  let i = !1;
454
- if (a === void 0) e = F(this, e, o, 0), i = !ne(e) || e !== this._$AH && e !== m, i && (this._$AH = e);
454
+ if (a === void 0) e = W(this, e, r, 0), i = !he(e) || e !== this._$AH && e !== m, i && (this._$AH = e);
455
455
  else {
456
- const u = e;
456
+ const x = e;
457
457
  let v, f;
458
- for (e = a[0], v = 0; v < a.length - 1; v++) f = F(this, u[s + v], o, v), f === m && (f = this._$AH[v]), i || (i = !ne(f) || f !== this._$AH[v]), f === x ? e = x : e !== x && (e += (f ?? "") + a[v + 1]), this._$AH[v] = f;
458
+ for (e = a[0], v = 0; v < a.length - 1; v++) f = W(this, x[s + v], r, v), f === m && (f = this._$AH[v]), i || (i = !he(f) || f !== this._$AH[v]), f === u ? e = u : e !== u && (e += (f ?? "") + a[v + 1]), this._$AH[v] = f;
459
459
  }
460
460
  i && !t && this.j(e);
461
461
  }
462
462
  j(e) {
463
- e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
463
+ e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class So extends ot {
466
+ class So extends rt {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
470
470
  j(e) {
471
- this.element[this.name] = e === x ? void 0 : e;
471
+ this.element[this.name] = e === u ? void 0 : e;
472
472
  }
473
473
  }
474
- class Vo extends ot {
474
+ class Vo extends rt {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
478
478
  j(e) {
479
- this.element.toggleAttribute(this.name, !!e && e !== x);
479
+ this.element.toggleAttribute(this.name, !!e && e !== u);
480
480
  }
481
481
  }
482
- class jo extends ot {
483
- constructor(e, o, s, t, a) {
484
- super(e, o, s, t, a), this.type = 5;
482
+ class jo extends rt {
483
+ constructor(e, r, s, t, a) {
484
+ super(e, r, s, t, a), this.type = 5;
485
485
  }
486
- _$AI(e, o = this) {
487
- if ((e = F(this, e, o, 0) ?? x) === m) return;
488
- const s = this._$AH, t = e === x && s !== x || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, a = e !== x && (s === x || t);
486
+ _$AI(e, r = this) {
487
+ if ((e = W(this, e, r, 0) ?? u) === m) return;
488
+ const s = this._$AH, t = e === u && s !== u || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, a = e !== u && (s === u || t);
489
489
  t && this.element.removeEventListener(this.name, this, s), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
491
491
  handleEvent(e) {
492
- var o;
493
- typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, e) : this._$AH.handleEvent(e);
492
+ var r;
493
+ typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, e) : this._$AH.handleEvent(e);
494
494
  }
495
495
  }
496
496
  class Do {
497
- constructor(e, o, s) {
498
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = s;
497
+ constructor(e, r, s) {
498
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
499
499
  }
500
500
  get _$AU() {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(e) {
504
- F(this, e);
504
+ W(this, e);
505
505
  }
506
506
  }
507
- const ut = ae.litHtmlPolyfillSupport;
508
- ut == null || ut(le, Le), (ae.litHtmlVersions ?? (ae.litHtmlVersions = [])).push("3.3.3");
509
- const Ho = (r, e, o) => {
510
- const s = (o == null ? void 0 : o.renderBefore) ?? e;
507
+ const ut = ce.litHtmlPolyfillSupport;
508
+ ut == null || ut(pe, Ee), (ce.litHtmlVersions ?? (ce.litHtmlVersions = [])).push("3.3.3");
509
+ const Ho = (o, e, r) => {
510
+ const s = (r == null ? void 0 : r.renderBefore) ?? e;
511
511
  let t = s._$litPart$;
512
512
  if (t === void 0) {
513
- const a = (o == null ? void 0 : o.renderBefore) ?? null;
514
- s._$litPart$ = t = new Le(e.insertBefore(ie(), a), a, void 0, o ?? {});
513
+ const a = (r == null ? void 0 : r.renderBefore) ?? null;
514
+ s._$litPart$ = t = new Ee(e.insertBefore(de(), a), a, void 0, r ?? {});
515
515
  }
516
- return t._$AI(r), t;
516
+ return t._$AI(o), t;
517
517
  };
518
518
  /**
519
519
  * @license
520
520
  * Copyright 2017 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const S = globalThis;
524
- let p = class extends q {
523
+ const V = globalThis;
524
+ let p = class extends G {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
527
  }
528
528
  createRenderRoot() {
529
- var o;
529
+ var r;
530
530
  const e = super.createRenderRoot();
531
- return (o = this.renderOptions).renderBefore ?? (o.renderBefore = e.firstChild), e;
531
+ return (r = this.renderOptions).renderBefore ?? (r.renderBefore = e.firstChild), e;
532
532
  }
533
533
  update(e) {
534
- const o = this.render();
535
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ho(o, this.renderRoot, this.renderOptions);
534
+ const r = this.render();
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ho(r, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -547,78 +547,78 @@ let p = class extends q {
547
547
  }
548
548
  };
549
549
  var to;
550
- p._$litElement$ = !0, p.finalized = !0, (to = S.litElementHydrateSupport) == null || to.call(S, { LitElement: p });
551
- const xt = S.litElementPolyfillSupport;
550
+ p._$litElement$ = !0, p.finalized = !0, (to = V.litElementHydrateSupport) == null || to.call(V, { LitElement: p });
551
+ const xt = V.litElementPolyfillSupport;
552
552
  xt == null || xt({ LitElement: p });
553
- (S.litElementVersions ?? (S.litElementVersions = [])).push("4.2.2");
553
+ (V.litElementVersions ?? (V.litElementVersions = [])).push("4.2.2");
554
554
  /**
555
555
  * @license
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const h = (r) => (e, o) => {
560
- o !== void 0 ? o.addInitializer(() => {
561
- customElements.define(r, e);
562
- }) : customElements.define(r, e);
559
+ const h = (o) => (e, r) => {
560
+ r !== void 0 ? r.addInitializer(() => {
561
+ customElements.define(o, e);
562
+ }) : customElements.define(o, e);
563
563
  };
564
564
  /**
565
565
  * @license
566
566
  * Copyright 2017 Google LLC
567
567
  * SPDX-License-Identifier: BSD-3-Clause
568
568
  */
569
- const zo = { attribute: !0, type: String, converter: qe, reflect: !1, hasChanged: Ot }, To = (r = zo, e, o) => {
570
- const { kind: s, metadata: t } = o;
569
+ const zo = { attribute: !0, type: String, converter: Fe, reflect: !1, hasChanged: Ot }, To = (o = zo, e, r) => {
570
+ const { kind: s, metadata: t } = r;
571
571
  let a = globalThis.litPropertyMetadata.get(t);
572
- if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), a.set(o.name, r), s === "accessor") {
573
- const { name: i } = o;
574
- return { set(u) {
572
+ if (a === void 0 && globalThis.litPropertyMetadata.set(t, a = /* @__PURE__ */ new Map()), s === "setter" && ((o = Object.create(o)).wrapped = !0), a.set(r.name, o), s === "accessor") {
573
+ const { name: i } = r;
574
+ return { set(x) {
575
575
  const v = e.get.call(this);
576
- e.set.call(this, u), this.requestUpdate(i, v, r, !0, u);
577
- }, init(u) {
578
- return u !== void 0 && this.C(i, void 0, r, u), u;
576
+ e.set.call(this, x), this.requestUpdate(i, v, o, !0, x);
577
+ }, init(x) {
578
+ return x !== void 0 && this.C(i, void 0, o, x), x;
579
579
  } };
580
580
  }
581
581
  if (s === "setter") {
582
- const { name: i } = o;
583
- return function(u) {
582
+ const { name: i } = r;
583
+ return function(x) {
584
584
  const v = this[i];
585
- e.call(this, u), this.requestUpdate(i, v, r, !0, u);
585
+ e.call(this, x), this.requestUpdate(i, v, o, !0, x);
586
586
  };
587
587
  }
588
588
  throw Error("Unsupported decorator location: " + s);
589
589
  };
590
- function n(r) {
591
- return (e, o) => typeof o == "object" ? To(r, e, o) : ((s, t, a) => {
590
+ function n(o) {
591
+ return (e, r) => typeof r == "object" ? To(o, e, r) : ((s, t, a) => {
592
592
  const i = t.hasOwnProperty(a);
593
593
  return t.constructor.createProperty(a, s), i ? Object.getOwnPropertyDescriptor(t, a) : void 0;
594
- })(r, e, o);
594
+ })(o, e, r);
595
595
  }
596
596
  /**
597
597
  * @license
598
598
  * Copyright 2017 Google LLC
599
599
  * SPDX-License-Identifier: BSD-3-Clause
600
600
  */
601
- function rt(r) {
602
- return n({ ...r, state: !0, attribute: !1 });
601
+ function Se(o) {
602
+ return n({ ...o, state: !0, attribute: !1 });
603
603
  }
604
604
  /**
605
605
  * @license
606
606
  * Copyright 2017 Google LLC
607
607
  * SPDX-License-Identifier: BSD-3-Clause
608
608
  */
609
- const Bo = (r, e, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, o), o);
609
+ const Io = (o, e, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(o, e, r), r);
610
610
  /**
611
611
  * @license
612
612
  * Copyright 2017 Google LLC
613
613
  * SPDX-License-Identifier: BSD-3-Clause
614
614
  */
615
- function Pt(r, e) {
616
- return (o, s, t) => {
615
+ function Pt(o, e) {
616
+ return (r, s, t) => {
617
617
  const a = (i) => {
618
- var u;
619
- return ((u = i.renderRoot) == null ? void 0 : u.querySelector(r)) ?? null;
618
+ var x;
619
+ return ((x = i.renderRoot) == null ? void 0 : x.querySelector(o)) ?? null;
620
620
  };
621
- return Bo(o, s, { get() {
621
+ return Io(r, s, { get() {
622
622
  return a(this);
623
623
  } });
624
624
  };
@@ -628,21 +628,21 @@ function Pt(r, e) {
628
628
  * Copyright 2017 Google LLC
629
629
  * SPDX-License-Identifier: BSD-3-Clause
630
630
  */
631
- const L = { ATTRIBUTE: 1, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, lo = (r) => (...e) => ({ _$litDirective$: r, values: e });
631
+ const E = { ATTRIBUTE: 1, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, lo = (o) => (...e) => ({ _$litDirective$: o, values: e });
632
632
  class co {
633
633
  constructor(e) {
634
634
  }
635
635
  get _$AU() {
636
636
  return this._$AM._$AU;
637
637
  }
638
- _$AT(e, o, s) {
639
- this._$Ct = e, this._$AM = o, this._$Ci = s;
638
+ _$AT(e, r, s) {
639
+ this._$Ct = e, this._$AM = r, this._$Ci = s;
640
640
  }
641
- _$AS(e, o) {
642
- return this.update(e, o);
641
+ _$AS(e, r) {
642
+ return this.update(e, r);
643
643
  }
644
- update(e, o) {
645
- return this.render(...o);
644
+ update(e, r) {
645
+ return this.render(...r);
646
646
  }
647
647
  }
648
648
  /**
@@ -650,26 +650,26 @@ class co {
650
650
  * Copyright 2018 Google LLC
651
651
  * SPDX-License-Identifier: BSD-3-Clause
652
652
  */
653
- const No = lo(class extends co {
654
- constructor(r) {
653
+ const Bo = lo(class extends co {
654
+ constructor(o) {
655
655
  var e;
656
- if (super(r), r.type !== L.ATTRIBUTE || r.name !== "class" || ((e = r.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
656
+ if (super(o), o.type !== E.ATTRIBUTE || o.name !== "class" || ((e = o.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
657
657
  }
658
- render(r) {
659
- return " " + Object.keys(r).filter((e) => r[e]).join(" ") + " ";
658
+ render(o) {
659
+ return " " + Object.keys(o).filter((e) => o[e]).join(" ") + " ";
660
660
  }
661
- update(r, [e]) {
661
+ update(o, [e]) {
662
662
  var s, t;
663
663
  if (this.st === void 0) {
664
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((a) => a !== "")));
664
+ this.st = /* @__PURE__ */ new Set(), o.strings !== void 0 && (this.nt = new Set(o.strings.join(" ").split(/\s/).filter((a) => a !== "")));
665
665
  for (const a in e) e[a] && !((s = this.nt) != null && s.has(a)) && this.st.add(a);
666
666
  return this.render(e);
667
667
  }
668
- const o = r.element.classList;
669
- for (const a of this.st) a in e || (o.remove(a), this.st.delete(a));
668
+ const r = o.element.classList;
669
+ for (const a of this.st) a in e || (r.remove(a), this.st.delete(a));
670
670
  for (const a in e) {
671
671
  const i = !!e[a];
672
- i === this.st.has(a) || (t = this.nt) != null && t.has(a) || (i ? (o.add(a), this.st.add(a)) : (o.remove(a), this.st.delete(a)));
672
+ i === this.st.has(a) || (t = this.nt) != null && t.has(a) || (i ? (r.add(a), this.st.add(a)) : (r.remove(a), this.st.delete(a)));
673
673
  }
674
674
  return m;
675
675
  }
@@ -679,39 +679,39 @@ const No = lo(class extends co {
679
679
  * Copyright 2018 Google LLC
680
680
  * SPDX-License-Identifier: BSD-3-Clause
681
681
  */
682
- const Z = (r) => r ?? x;
683
- var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, R = (r, e, o, s) => {
684
- for (var t = s > 1 ? void 0 : s ? Uo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
685
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
686
- return s && t && Ro(e, o, t), t;
682
+ const $ = (o) => o ?? u;
683
+ var No = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, F = (o, e, r, s) => {
684
+ for (var t = s > 1 ? void 0 : s ? Ro(e, r) : e, a = o.length - 1, i; a >= 0; a--)
685
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
686
+ return s && t && No(e, r, t), t;
687
687
  };
688
- let _ = class extends p {
688
+ let C = class extends p {
689
689
  constructor() {
690
690
  super(...arguments), this.variant = "brand", this.size = "md", this.type = "button", this.disabled = !1;
691
691
  }
692
692
  render() {
693
- const r = No({
693
+ const o = Bo({
694
694
  button: !0,
695
695
  [this.variant]: !0,
696
696
  [this.size]: !0
697
697
  });
698
698
  return this.href !== void 0 && !this.disabled ? c`
699
699
  <a
700
- class=${r}
700
+ class=${o}
701
701
  href=${this.href}
702
- target=${Z(this.target)}
703
- rel=${Z(this.target === "_blank" ? "noreferrer" : void 0)}
702
+ target=${$(this.target)}
703
+ rel=${$(this.target === "_blank" ? "noreferrer" : void 0)}
704
704
  >
705
705
  <slot></slot>
706
706
  </a>
707
707
  ` : c`
708
- <button class=${r} type=${this.type} ?disabled=${this.disabled}>
708
+ <button class=${o} type=${this.type} ?disabled=${this.disabled}>
709
709
  <slot></slot>
710
710
  </button>
711
711
  `;
712
712
  }
713
713
  };
714
- _.styles = d`
714
+ C.styles = d`
715
715
  :host {
716
716
  display: inline-block;
717
717
  }
@@ -819,33 +819,33 @@ _.styles = d`
819
819
  border-radius: 0 var(--vox-radius-md) var(--vox-radius-md) 0;
820
820
  }
821
821
  `;
822
- R([
822
+ F([
823
823
  n()
824
- ], _.prototype, "variant", 2);
825
- R([
824
+ ], C.prototype, "variant", 2);
825
+ F([
826
826
  n()
827
- ], _.prototype, "size", 2);
828
- R([
827
+ ], C.prototype, "size", 2);
828
+ F([
829
829
  n()
830
- ], _.prototype, "href", 2);
831
- R([
830
+ ], C.prototype, "href", 2);
831
+ F([
832
832
  n()
833
- ], _.prototype, "target", 2);
834
- R([
833
+ ], C.prototype, "target", 2);
834
+ F([
835
835
  n()
836
- ], _.prototype, "type", 2);
837
- R([
836
+ ], C.prototype, "type", 2);
837
+ F([
838
838
  n({ type: Boolean, reflect: !0 })
839
- ], _.prototype, "disabled", 2);
840
- _ = R([
839
+ ], C.prototype, "disabled", 2);
840
+ C = F([
841
841
  h("vox-button")
842
- ], _);
843
- var Io = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, At = (r, e, o, s) => {
844
- for (var t = s > 1 ? void 0 : s ? qo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
845
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
846
- return s && t && Io(e, o, t), t;
842
+ ], C);
843
+ var Uo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, At = (o, e, r, s) => {
844
+ for (var t = s > 1 ? void 0 : s ? qo(e, r) : e, a = o.length - 1, i; a >= 0; a--)
845
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
846
+ return s && t && Uo(e, r, t), t;
847
847
  };
848
- let ce = class extends p {
848
+ let ve = class extends p {
849
849
  constructor() {
850
850
  super(...arguments), this.href = "#";
851
851
  }
@@ -861,7 +861,7 @@ let ce = class extends p {
861
861
  `;
862
862
  }
863
863
  };
864
- ce.styles = d`
864
+ ve.styles = d`
865
865
  :host {
866
866
  display: inline-block;
867
867
  font-family: var(--vox-font-family-base);
@@ -900,23 +900,23 @@ ce.styles = d`
900
900
  `;
901
901
  At([
902
902
  n()
903
- ], ce.prototype, "href", 2);
903
+ ], ve.prototype, "href", 2);
904
904
  At([
905
905
  n()
906
- ], ce.prototype, "target", 2);
907
- ce = At([
906
+ ], ve.prototype, "target", 2);
907
+ ve = At([
908
908
  h("vox-cta")
909
- ], ce);
910
- var Fo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, st = (r, e, o, s) => {
911
- for (var t = s > 1 ? void 0 : s ? Zo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
912
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
913
- return s && t && Fo(e, o, t), t;
909
+ ], ve);
910
+ var Fo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, st = (o, e, r, s) => {
911
+ for (var t = s > 1 ? void 0 : s ? Zo(e, r) : e, a = o.length - 1, i; a >= 0; a--)
912
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
913
+ return s && t && Fo(e, r, t), t;
914
914
  };
915
915
  const eo = "vox-theme", Ue = "data-vox-theme";
916
- let K = class extends p {
916
+ let X = class extends p {
917
917
  constructor() {
918
- super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (r) => {
919
- localStorage.getItem(eo) || document.documentElement.setAttribute(Ue, r.matches ? "dark" : "light");
918
+ super(...arguments), this.lightLabel = "Switch to dark theme", this.darkLabel = "Switch to light theme", this.dark = !1, this.media = window.matchMedia("(prefers-color-scheme: dark)"), this.handleSystemChange = (o) => {
919
+ localStorage.getItem(eo) || document.documentElement.setAttribute(Ue, o.matches ? "dark" : "light");
920
920
  };
921
921
  }
922
922
  connectedCallback() {
@@ -926,32 +926,32 @@ let K = class extends p {
926
926
  }), this.media.addEventListener("change", this.handleSystemChange);
927
927
  }
928
928
  disconnectedCallback() {
929
- var r;
930
- super.disconnectedCallback(), (r = this.observer) == null || r.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
929
+ var o;
930
+ super.disconnectedCallback(), (o = this.observer) == null || o.disconnect(), this.media.removeEventListener("change", this.handleSystemChange);
931
931
  }
932
932
  syncFromDocument() {
933
- const r = document.documentElement.getAttribute(Ue) === "dark";
934
- this.dark = r, this.toggleAttribute("dark", r);
933
+ const o = document.documentElement.getAttribute(Ue) === "dark";
934
+ this.dark = o, this.toggleAttribute("dark", o);
935
935
  }
936
936
  handleClick() {
937
- const r = this.dark ? "light" : "dark";
938
- document.documentElement.setAttribute(Ue, r), localStorage.setItem(eo, r), this.dispatchEvent(
937
+ const o = this.dark ? "light" : "dark";
938
+ document.documentElement.setAttribute(Ue, o), localStorage.setItem(eo, o), this.dispatchEvent(
939
939
  new CustomEvent("vox-theme-change", {
940
- detail: { theme: r },
940
+ detail: { theme: o },
941
941
  bubbles: !0,
942
942
  composed: !0
943
943
  })
944
944
  );
945
945
  }
946
946
  render() {
947
- const r = this.dark ? this.darkLabel : this.lightLabel;
947
+ const o = this.dark ? this.darkLabel : this.lightLabel;
948
948
  return c`
949
949
  <button
950
950
  type="button"
951
951
  role="switch"
952
952
  aria-checked=${this.dark}
953
- aria-label=${r}
954
- title=${r}
953
+ aria-label=${o}
954
+ title=${o}
955
955
  @click=${this.handleClick}
956
956
  >
957
957
  <span class="track">
@@ -968,7 +968,7 @@ let K = class extends p {
968
968
  `;
969
969
  }
970
970
  };
971
- K.styles = d`
971
+ X.styles = d`
972
972
  :host {
973
973
  display: inline-flex;
974
974
  }
@@ -1029,17 +1029,17 @@ K.styles = d`
1029
1029
  `;
1030
1030
  st([
1031
1031
  n({ attribute: "light-label" })
1032
- ], K.prototype, "lightLabel", 2);
1032
+ ], X.prototype, "lightLabel", 2);
1033
1033
  st([
1034
1034
  n({ attribute: "dark-label" })
1035
- ], K.prototype, "darkLabel", 2);
1035
+ ], X.prototype, "darkLabel", 2);
1036
1036
  st([
1037
- rt()
1038
- ], K.prototype, "dark", 2);
1039
- K = st([
1037
+ Se()
1038
+ ], X.prototype, "dark", 2);
1039
+ X = st([
1040
1040
  h("vox-theme-toggle")
1041
- ], K);
1042
- const j = {
1041
+ ], X);
1042
+ const D = {
1043
1043
  // Phase 1: shared UI baseline -----------------------------------------
1044
1044
  search: l`<circle cx="21" cy="21" r="13"/><path d="M30.5 30.5 L41 41"/>`,
1045
1045
  close: l`<path d="M14 14 L34 34 M34 14 L14 34"/>`,
@@ -1127,18 +1127,18 @@ const j = {
1127
1127
  accessibility: l`<circle cx="24" cy="24" r="18"/><circle cx="24" cy="16" r="2.6" fill="currentColor" stroke="none"/><path d="M14 21 H34 M24 21 V32 M24 25 L18 34 M24 25 L30 34"/>`,
1128
1128
  settings: l`<circle cx="24" cy="24" r="7"/><path d="M24 6 V12 M24 36 V42 M6 24 H12 M36 24 H42 M11 11 L15.2 15.2 M32.8 32.8 L37 37 M37 11 L32.8 15.2 M15.2 32.8 L11 37"/>`
1129
1129
  };
1130
- var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, at = (r, e, o, s) => {
1131
- for (var t = s > 1 ? void 0 : s ? Go(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1132
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1133
- return s && t && Ko(e, o, t), t;
1130
+ var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, at = (o, e, r, s) => {
1131
+ for (var t = s > 1 ? void 0 : s ? Go(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1132
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1133
+ return s && t && Ko(e, r, t), t;
1134
1134
  };
1135
- let G = class extends p {
1135
+ let Y = class extends p {
1136
1136
  constructor() {
1137
1137
  super(...arguments), this.name = "info", this.size = "md";
1138
1138
  }
1139
1139
  render() {
1140
- const r = j[this.name];
1141
- return r ? c`
1140
+ const o = D[this.name];
1141
+ return o ? c`
1142
1142
  <svg
1143
1143
  viewBox="0 0 48 48"
1144
1144
  fill="none"
@@ -1146,16 +1146,16 @@ let G = class extends p {
1146
1146
  stroke-width="2"
1147
1147
  stroke-linecap="round"
1148
1148
  stroke-linejoin="round"
1149
- role=${this.label ? "img" : x}
1150
- aria-hidden=${this.label ? x : "true"}
1151
- aria-label=${this.label ?? x}
1149
+ role=${this.label ? "img" : u}
1150
+ aria-hidden=${this.label ? u : "true"}
1151
+ aria-label=${this.label ?? u}
1152
1152
  >
1153
- ${r}
1153
+ ${o}
1154
1154
  </svg>
1155
- ` : x;
1155
+ ` : u;
1156
1156
  }
1157
1157
  };
1158
- G.styles = d`
1158
+ Y.styles = d`
1159
1159
  :host {
1160
1160
  display: inline-flex;
1161
1161
  flex: none;
@@ -1188,24 +1188,24 @@ G.styles = d`
1188
1188
  `;
1189
1189
  at([
1190
1190
  n()
1191
- ], G.prototype, "name", 2);
1191
+ ], Y.prototype, "name", 2);
1192
1192
  at([
1193
1193
  n({ reflect: !0 })
1194
- ], G.prototype, "size", 2);
1194
+ ], Y.prototype, "size", 2);
1195
1195
  at([
1196
1196
  n()
1197
- ], G.prototype, "label", 2);
1198
- G = at([
1197
+ ], Y.prototype, "label", 2);
1198
+ Y = at([
1199
1199
  h("vox-icon")
1200
- ], G);
1201
- var Wo = Object.defineProperty, Ee = (r, e, o, s) => {
1202
- for (var t = void 0, a = r.length - 1, i; a >= 0; a--)
1203
- (i = r[a]) && (t = i(e, o, t) || t);
1204
- return t && Wo(e, o, t), t;
1200
+ ], Y);
1201
+ var Wo = Object.defineProperty, se = (o, e, r, s) => {
1202
+ for (var t = void 0, a = o.length - 1, i; a >= 0; a--)
1203
+ (i = o[a]) && (t = i(e, r, t) || t);
1204
+ return t && Wo(e, r, t), t;
1205
1205
  };
1206
- const Ut = class Ut extends p {
1206
+ const Rt = class Rt extends p {
1207
1207
  constructor() {
1208
- super(), this.name = "", this.label = "", this.note = "", this.disabled = !1, this.required = !1, this.internals = this.attachInternals();
1208
+ super(), this.invalid = !1, this.name = "", this.label = "", this.note = "", this.disabled = !1, this.required = !1, this.internals = this.attachInternals();
1209
1209
  }
1210
1210
  get form() {
1211
1211
  return this.internals.form;
@@ -1224,37 +1224,44 @@ const Ut = class Ut extends p {
1224
1224
  }
1225
1225
  /** Mirror a native inner control's validity onto the host element. */
1226
1226
  syncValidity(e) {
1227
- this.internals.setValidity(e.validity, e.validationMessage, e);
1227
+ this.internals.setValidity(e.validity, e.validationMessage, e), this.invalid = !e.validity.valid;
1228
1228
  }
1229
1229
  renderLabel(e) {
1230
1230
  return this.label ? c`
1231
1231
  <label class="label" for=${e}>
1232
- ${this.label}${this.required ? c`<span class="required-mark" aria-hidden="true"> *</span>` : x}
1232
+ ${this.label}${this.required ? c`<span class="required-mark" aria-hidden="true"> *</span>` : u}
1233
1233
  </label>
1234
- ` : x;
1234
+ ` : u;
1235
+ }
1236
+ /** `note`'s id when present, for `aria-describedby` on the native control. */
1237
+ get noteId() {
1238
+ return this.note ? "note" : void 0;
1235
1239
  }
1236
1240
  renderNote() {
1237
- return this.note ? c`<p class="note">${this.note}</p>` : x;
1241
+ return this.note ? c`<p class="note" id="note">${this.note}</p>` : u;
1238
1242
  }
1239
1243
  };
1240
- Ut.formAssociated = !0;
1241
- let y = Ut;
1242
- Ee([
1244
+ Rt.formAssociated = !0;
1245
+ let y = Rt;
1246
+ se([
1247
+ Se()
1248
+ ], y.prototype, "invalid");
1249
+ se([
1243
1250
  n()
1244
1251
  ], y.prototype, "name");
1245
- Ee([
1252
+ se([
1246
1253
  n()
1247
1254
  ], y.prototype, "label");
1248
- Ee([
1255
+ se([
1249
1256
  n()
1250
1257
  ], y.prototype, "note");
1251
- Ee([
1258
+ se([
1252
1259
  n({ type: Boolean, reflect: !0 })
1253
1260
  ], y.prototype, "disabled");
1254
- Ee([
1261
+ se([
1255
1262
  n({ type: Boolean, reflect: !0 })
1256
1263
  ], y.prototype, "required");
1257
- const Se = d`
1264
+ const Ve = d`
1258
1265
  :host {
1259
1266
  display: block;
1260
1267
  font-family: var(--vox-font-family-base);
@@ -1309,6 +1316,15 @@ const Se = d`
1309
1316
  box-shadow: 0 0 0 3px var(--vox-color-brand-soft);
1310
1317
  }
1311
1318
 
1319
+ .control[aria-invalid='true'] {
1320
+ border-color: var(--vox-color-danger-1);
1321
+ }
1322
+
1323
+ .control[aria-invalid='true']:focus {
1324
+ border-color: var(--vox-color-danger-1);
1325
+ box-shadow: 0 0 0 3px var(--vox-color-danger-soft);
1326
+ }
1327
+
1312
1328
  /* Corner flattening when placed inside a <vox-input-group>. */
1313
1329
  :host([data-vox-group]) .control {
1314
1330
  border-radius: 0;
@@ -1350,12 +1366,12 @@ const Se = d`
1350
1366
  margin: 0;
1351
1367
  }
1352
1368
  `;
1353
- var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, kt = (r, e, o, s) => {
1354
- for (var t = s > 1 ? void 0 : s ? Yo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1355
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1356
- return s && t && Xo(e, o, t), t;
1369
+ var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, kt = (o, e, r, s) => {
1370
+ for (var t = s > 1 ? void 0 : s ? Yo(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1371
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1372
+ return s && t && Xo(e, r, t), t;
1357
1373
  };
1358
- let de = class extends y {
1374
+ let ue = class extends y {
1359
1375
  constructor() {
1360
1376
  super(...arguments), this.checked = !1, this.value = "on";
1361
1377
  }
@@ -1363,14 +1379,14 @@ let de = class extends y {
1363
1379
  this.checked = !1;
1364
1380
  }
1365
1381
  updated() {
1366
- this.internals.setFormValue(this.checked ? this.value : null), this.internals.setValidity(
1367
- this.required && !this.checked ? { valueMissing: !0 } : {},
1382
+ this.internals.setFormValue(this.checked ? this.value : null), this.invalid = this.required && !this.checked, this.internals.setValidity(
1383
+ this.invalid ? { valueMissing: !0 } : {},
1368
1384
  "Please check this box.",
1369
1385
  this.renderRoot.querySelector("input") ?? void 0
1370
1386
  );
1371
1387
  }
1372
- handleChange(r) {
1373
- this.checked = r.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
1388
+ handleChange(o) {
1389
+ this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
1374
1390
  }
1375
1391
  render() {
1376
1392
  return c`
@@ -1379,6 +1395,8 @@ let de = class extends y {
1379
1395
  type="checkbox"
1380
1396
  .checked=${this.checked}
1381
1397
  ?disabled=${this.disabled}
1398
+ ?required=${this.required}
1399
+ aria-invalid=${this.invalid ? "true" : "false"}
1382
1400
  @change=${this.handleChange}
1383
1401
  />
1384
1402
  <span class="box" aria-hidden="true">
@@ -1391,7 +1409,7 @@ let de = class extends y {
1391
1409
  `;
1392
1410
  }
1393
1411
  };
1394
- de.styles = [
1412
+ ue.styles = [
1395
1413
  ho,
1396
1414
  d`
1397
1415
  .box {
@@ -1434,19 +1452,19 @@ de.styles = [
1434
1452
  ];
1435
1453
  kt([
1436
1454
  n({ type: Boolean, reflect: !0 })
1437
- ], de.prototype, "checked", 2);
1455
+ ], ue.prototype, "checked", 2);
1438
1456
  kt([
1439
1457
  n()
1440
- ], de.prototype, "value", 2);
1441
- de = kt([
1458
+ ], ue.prototype, "value", 2);
1459
+ ue = kt([
1442
1460
  h("vox-checkbox")
1443
- ], de);
1444
- var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, te = (r, e, o, s) => {
1445
- for (var t = s > 1 ? void 0 : s ? Qo(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1446
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1447
- return s && t && Jo(e, o, t), t;
1461
+ ], ue);
1462
+ var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ae = (o, e, r, s) => {
1463
+ for (var t = s > 1 ? void 0 : s ? Qo(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1464
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1465
+ return s && t && Jo(e, r, t), t;
1448
1466
  };
1449
- let P = class extends y {
1467
+ let A = class extends y {
1450
1468
  constructor() {
1451
1469
  super(...arguments), this.multiple = !1, this.buttonLabel = "Choose a file", this.fileNames = [];
1452
1470
  }
@@ -1454,12 +1472,12 @@ let P = class extends y {
1454
1472
  this.fileNames = [], this.inputEl && (this.inputEl.value = ""), this.internals.setFormValue(null);
1455
1473
  }
1456
1474
  handleChange() {
1457
- const r = [...this.inputEl.files ?? []];
1458
- this.fileNames = r.map((o) => o.name);
1475
+ const o = [...this.inputEl.files ?? []];
1476
+ this.fileNames = o.map((r) => r.name);
1459
1477
  const e = new FormData();
1460
- for (const o of r) e.append(this.name, o);
1461
- this.internals.setFormValue(r.length > 0 ? e : null), this.internals.setValidity(
1462
- this.required && r.length === 0 ? { valueMissing: !0 } : {},
1478
+ for (const r of o) e.append(this.name, r);
1479
+ this.internals.setFormValue(o.length > 0 ? e : null), this.invalid = this.required && o.length === 0, this.internals.setValidity(
1480
+ this.invalid ? { valueMissing: !0 } : {},
1463
1481
  "Please select a file.",
1464
1482
  this.inputEl
1465
1483
  ), this.dispatchEvent(new Event("change", { bubbles: !0 }));
@@ -1472,9 +1490,11 @@ let P = class extends y {
1472
1490
  <input
1473
1491
  id="file"
1474
1492
  type="file"
1475
- accept=${Z(this.accept)}
1493
+ accept=${$(this.accept)}
1476
1494
  ?multiple=${this.multiple}
1477
1495
  ?disabled=${this.disabled}
1496
+ aria-describedby=${$(this.noteId)}
1497
+ aria-invalid=${this.invalid ? "true" : "false"}
1478
1498
  @change=${this.handleChange}
1479
1499
  />
1480
1500
  <span class="picker">
@@ -1489,8 +1509,8 @@ let P = class extends y {
1489
1509
  `;
1490
1510
  }
1491
1511
  };
1492
- P.styles = [
1493
- Se,
1512
+ A.styles = [
1513
+ Ve,
1494
1514
  d`
1495
1515
  input {
1496
1516
  position: absolute;
@@ -1539,60 +1559,60 @@ P.styles = [
1539
1559
  }
1540
1560
  `
1541
1561
  ];
1542
- te([
1562
+ ae([
1543
1563
  n()
1544
- ], P.prototype, "accept", 2);
1545
- te([
1564
+ ], A.prototype, "accept", 2);
1565
+ ae([
1546
1566
  n({ type: Boolean })
1547
- ], P.prototype, "multiple", 2);
1548
- te([
1567
+ ], A.prototype, "multiple", 2);
1568
+ ae([
1549
1569
  n({ attribute: "button-label" })
1550
- ], P.prototype, "buttonLabel", 2);
1551
- te([
1552
- rt()
1553
- ], P.prototype, "fileNames", 2);
1554
- te([
1570
+ ], A.prototype, "buttonLabel", 2);
1571
+ ae([
1572
+ Se()
1573
+ ], A.prototype, "fileNames", 2);
1574
+ ae([
1555
1575
  Pt("input")
1556
- ], P.prototype, "inputEl", 2);
1557
- P = te([
1576
+ ], A.prototype, "inputEl", 2);
1577
+ A = ae([
1558
1578
  h("vox-file-input")
1559
- ], P);
1579
+ ], A);
1560
1580
  /**
1561
1581
  * @license
1562
1582
  * Copyright 2020 Google LLC
1563
1583
  * SPDX-License-Identifier: BSD-3-Clause
1564
1584
  */
1565
- const er = (r) => r.strings === void 0, tr = {}, or = (r, e = tr) => r._$AH = e;
1585
+ const er = (o) => o.strings === void 0, tr = {}, or = (o, e = tr) => o._$AH = e;
1566
1586
  /**
1567
1587
  * @license
1568
1588
  * Copyright 2020 Google LLC
1569
1589
  * SPDX-License-Identifier: BSD-3-Clause
1570
1590
  */
1571
1591
  const po = lo(class extends co {
1572
- constructor(r) {
1573
- if (super(r), r.type !== L.PROPERTY && r.type !== L.ATTRIBUTE && r.type !== L.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
1574
- if (!er(r)) throw Error("`live` bindings can only contain a single expression");
1592
+ constructor(o) {
1593
+ if (super(o), o.type !== E.PROPERTY && o.type !== E.ATTRIBUTE && o.type !== E.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
1594
+ if (!er(o)) throw Error("`live` bindings can only contain a single expression");
1575
1595
  }
1576
- render(r) {
1577
- return r;
1596
+ render(o) {
1597
+ return o;
1578
1598
  }
1579
- update(r, [e]) {
1580
- if (e === m || e === x) return e;
1581
- const o = r.element, s = r.name;
1582
- if (r.type === L.PROPERTY) {
1583
- if (e === o[s]) return m;
1584
- } else if (r.type === L.BOOLEAN_ATTRIBUTE) {
1585
- if (!!e === o.hasAttribute(s)) return m;
1586
- } else if (r.type === L.ATTRIBUTE && o.getAttribute(s) === e + "") return m;
1587
- return or(r), e;
1599
+ update(o, [e]) {
1600
+ if (e === m || e === u) return e;
1601
+ const r = o.element, s = o.name;
1602
+ if (o.type === E.PROPERTY) {
1603
+ if (e === r[s]) return m;
1604
+ } else if (o.type === E.BOOLEAN_ATTRIBUTE) {
1605
+ if (!!e === r.hasAttribute(s)) return m;
1606
+ } else if (o.type === E.ATTRIBUTE && r.getAttribute(s) === e + "") return m;
1607
+ return or(o), e;
1588
1608
  }
1589
1609
  });
1590
- var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, oe = (r, e, o, s) => {
1591
- for (var t = s > 1 ? void 0 : s ? sr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1592
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1593
- return s && t && rr(e, o, t), t;
1610
+ var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, ie = (o, e, r, s) => {
1611
+ for (var t = s > 1 ? void 0 : s ? sr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1612
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1613
+ return s && t && rr(e, r, t), t;
1594
1614
  };
1595
- let A = class extends y {
1615
+ let k = class extends y {
1596
1616
  constructor() {
1597
1617
  super(...arguments), this.type = "text", this.value = "", this.readonly = !1;
1598
1618
  }
@@ -1601,15 +1621,15 @@ let A = class extends y {
1601
1621
  }
1602
1622
  updated() {
1603
1623
  this.internals.setFormValue(this.value);
1604
- const r = this.renderRoot.querySelector("input");
1605
- r && this.syncValidity(r);
1624
+ const o = this.renderRoot.querySelector("input");
1625
+ o && this.syncValidity(o);
1606
1626
  }
1607
- focus(r) {
1627
+ focus(o) {
1608
1628
  var e;
1609
- (e = this.renderRoot.querySelector("input")) == null || e.focus(r);
1629
+ (e = this.renderRoot.querySelector("input")) == null || e.focus(o);
1610
1630
  }
1611
- handleInput(r) {
1612
- this.value = r.target.value;
1631
+ handleInput(o) {
1632
+ this.value = o.target.value;
1613
1633
  }
1614
1634
  handleChange() {
1615
1635
  this.dispatchEvent(new Event("change", { bubbles: !0 }));
@@ -1623,12 +1643,14 @@ let A = class extends y {
1623
1643
  class="control"
1624
1644
  type=${this.type}
1625
1645
  .value=${po(this.value)}
1626
- placeholder=${Z(this.placeholder)}
1627
- autocomplete=${Z(this.autocomplete)}
1646
+ placeholder=${$(this.placeholder)}
1647
+ autocomplete=${$(this.autocomplete)}
1628
1648
  ?required=${this.required}
1629
1649
  ?readonly=${this.readonly}
1630
1650
  ?disabled=${this.disabled}
1631
- aria-label=${this.label ? x : "text input"}
1651
+ aria-label=${this.label ? u : "text input"}
1652
+ aria-describedby=${$(this.noteId)}
1653
+ aria-invalid=${this.invalid ? "true" : "false"}
1632
1654
  @input=${this.handleInput}
1633
1655
  @change=${this.handleChange}
1634
1656
  />
@@ -1637,36 +1659,36 @@ let A = class extends y {
1637
1659
  `;
1638
1660
  }
1639
1661
  };
1640
- A.styles = Se;
1641
- oe([
1662
+ k.styles = Ve;
1663
+ ie([
1642
1664
  n()
1643
- ], A.prototype, "type", 2);
1644
- oe([
1665
+ ], k.prototype, "type", 2);
1666
+ ie([
1645
1667
  n()
1646
- ], A.prototype, "value", 2);
1647
- oe([
1668
+ ], k.prototype, "value", 2);
1669
+ ie([
1648
1670
  n()
1649
- ], A.prototype, "placeholder", 2);
1650
- oe([
1671
+ ], k.prototype, "placeholder", 2);
1672
+ ie([
1651
1673
  n()
1652
- ], A.prototype, "autocomplete", 2);
1653
- oe([
1674
+ ], k.prototype, "autocomplete", 2);
1675
+ ie([
1654
1676
  n({ type: Boolean, reflect: !0 })
1655
- ], A.prototype, "readonly", 2);
1656
- A = oe([
1677
+ ], k.prototype, "readonly", 2);
1678
+ k = ie([
1657
1679
  h("vox-input")
1658
- ], A);
1659
- var ar = Object.getOwnPropertyDescriptor, ir = (r, e, o, s) => {
1660
- for (var t = s > 1 ? void 0 : s ? ar(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1661
- (i = r[a]) && (t = i(t) || t);
1680
+ ], k);
1681
+ var ar = Object.getOwnPropertyDescriptor, ir = (o, e, r, s) => {
1682
+ for (var t = s > 1 ? void 0 : s ? ar(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1683
+ (i = o[a]) && (t = i(t) || t);
1662
1684
  return t;
1663
1685
  };
1664
1686
  let ft = class extends p {
1665
- handleSlotChange(r) {
1666
- const e = r.target.assignedElements();
1667
- e.forEach((o, s) => {
1687
+ handleSlotChange(o) {
1688
+ const e = o.target.assignedElements();
1689
+ e.forEach((r, s) => {
1668
1690
  const t = s === 0 ? "start" : s === e.length - 1 ? "end" : "middle";
1669
- o.setAttribute("data-vox-group", t);
1691
+ r.setAttribute("data-vox-group", t);
1670
1692
  });
1671
1693
  }
1672
1694
  render() {
@@ -1722,12 +1744,12 @@ ft.styles = d`
1722
1744
  ft = ir([
1723
1745
  h("vox-input-group")
1724
1746
  ], ft);
1725
- var nr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, it = (r, e, o, s) => {
1726
- for (var t = s > 1 ? void 0 : s ? lr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1727
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1728
- return s && t && nr(e, o, t), t;
1747
+ var nr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, it = (o, e, r, s) => {
1748
+ for (var t = s > 1 ? void 0 : s ? lr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1749
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1750
+ return s && t && nr(e, r, t), t;
1729
1751
  };
1730
- let W = class extends p {
1752
+ let J = class extends p {
1731
1753
  constructor() {
1732
1754
  super(...arguments), this.value = "", this.checked = !1, this.disabled = !1;
1733
1755
  }
@@ -1736,8 +1758,8 @@ let W = class extends p {
1736
1758
  new CustomEvent("vox-radio-select", { bubbles: !0, composed: !0 })
1737
1759
  );
1738
1760
  }
1739
- handleKeydown(r) {
1740
- (r.key === " " || r.key === "Enter") && (r.preventDefault(), this.select());
1761
+ handleKeydown(o) {
1762
+ (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.select());
1741
1763
  }
1742
1764
  render() {
1743
1765
  return c`
@@ -1756,7 +1778,7 @@ let W = class extends p {
1756
1778
  `;
1757
1779
  }
1758
1780
  };
1759
- W.styles = d`
1781
+ J.styles = d`
1760
1782
  :host {
1761
1783
  display: block;
1762
1784
  font-family: var(--vox-font-family-base);
@@ -1807,22 +1829,22 @@ W.styles = d`
1807
1829
  `;
1808
1830
  it([
1809
1831
  n()
1810
- ], W.prototype, "value", 2);
1832
+ ], J.prototype, "value", 2);
1811
1833
  it([
1812
1834
  n({ type: Boolean, reflect: !0 })
1813
- ], W.prototype, "checked", 2);
1835
+ ], J.prototype, "checked", 2);
1814
1836
  it([
1815
1837
  n({ type: Boolean, reflect: !0 })
1816
- ], W.prototype, "disabled", 2);
1817
- W = it([
1838
+ ], J.prototype, "disabled", 2);
1839
+ J = it([
1818
1840
  h("vox-radio")
1819
- ], W);
1820
- var cr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, vo = (r, e, o, s) => {
1821
- for (var t = s > 1 ? void 0 : s ? dr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1822
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1823
- return s && t && cr(e, o, t), t;
1841
+ ], J);
1842
+ var cr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, vo = (o, e, r, s) => {
1843
+ for (var t = s > 1 ? void 0 : s ? dr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1844
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1845
+ return s && t && cr(e, r, t), t;
1824
1846
  };
1825
- let Ze = class extends y {
1847
+ let Ke = class extends y {
1826
1848
  constructor() {
1827
1849
  super(...arguments), this.value = "";
1828
1850
  }
@@ -1833,43 +1855,50 @@ let Ze = class extends y {
1833
1855
  this.value = "";
1834
1856
  }
1835
1857
  updated() {
1836
- this.internals.setFormValue(this.value || null), this.internals.setValidity(
1837
- this.required && !this.value ? { valueMissing: !0 } : {},
1858
+ this.internals.setFormValue(this.value || null), this.invalid = this.required && !this.value, this.internals.setValidity(
1859
+ this.invalid ? { valueMissing: !0 } : {},
1838
1860
  "Please select an option.",
1839
1861
  this
1840
1862
  ), this.syncRadios();
1841
1863
  }
1842
1864
  syncRadios() {
1843
- const r = this.radios, e = r.some((o) => o.value === this.value && this.value !== "");
1844
- r.forEach((o, s) => {
1865
+ const o = this.radios, e = o.some((s) => s.value === this.value && this.value !== ""), r = o.find((s) => !s.disabled);
1866
+ o.forEach((s) => {
1845
1867
  var a, i;
1846
- o.checked = this.value !== "" && o.value === this.value;
1847
- const t = e ? o.checked : s === 0;
1848
- (i = (a = o.shadowRoot) == null ? void 0 : a.querySelector(".radio")) == null || i.setAttribute("tabindex", t ? "0" : "-1");
1868
+ s.checked = this.value !== "" && s.value === this.value;
1869
+ const t = e ? s.checked : s === r;
1870
+ (i = (a = s.shadowRoot) == null ? void 0 : a.querySelector(".radio")) == null || i.setAttribute("tabindex", t ? "0" : "-1");
1849
1871
  });
1850
1872
  }
1851
- handleSelect(r) {
1852
- const e = r.target;
1853
- !(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (r.stopPropagation(), this.value !== e.value && (this.value = e.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
1873
+ handleSelect(o) {
1874
+ const e = o.target;
1875
+ !(e instanceof HTMLElement) || e.tagName !== "VOX-RADIO" || (o.stopPropagation(), this.value !== e.value && (this.value = e.value, this.dispatchEvent(new Event("change", { bubbles: !0 }))));
1854
1876
  }
1855
- handleKeydown(r) {
1856
- var u, v;
1857
- const o = {
1877
+ handleKeydown(o) {
1878
+ var x, v;
1879
+ const r = {
1858
1880
  ArrowDown: 1,
1859
1881
  ArrowRight: 1,
1860
1882
  ArrowUp: -1,
1861
1883
  ArrowLeft: -1
1862
- }[r.key];
1863
- if (!o) return;
1864
- r.preventDefault();
1884
+ }[o.key];
1885
+ if (!r) return;
1886
+ o.preventDefault();
1865
1887
  const s = this.radios.filter((f) => !f.disabled);
1866
1888
  if (s.length === 0) return;
1867
- const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) + o + s.length) % s.length, i = s[a];
1868
- i.select(), (v = (u = i.shadowRoot) == null ? void 0 : u.querySelector(".radio")) == null || v.focus();
1889
+ const t = s.findIndex((f) => f.checked), a = (Math.max(t, 0) + r + s.length) % s.length, i = s[a];
1890
+ i.select(), (v = (x = i.shadowRoot) == null ? void 0 : x.querySelector(".radio")) == null || v.focus();
1869
1891
  }
1870
1892
  render() {
1871
1893
  return c`
1872
- <div class="field" role="radiogroup" aria-label=${this.label}>
1894
+ <div
1895
+ class="field"
1896
+ role="radiogroup"
1897
+ aria-label=${this.label || u}
1898
+ aria-describedby=${$(this.noteId)}
1899
+ aria-invalid=${this.invalid ? "true" : "false"}
1900
+ aria-required=${this.required ? "true" : "false"}
1901
+ >
1873
1902
  ${this.label ? c`<span class="label">
1874
1903
  ${this.label}${this.required ? c`<span class="required-mark" aria-hidden="true"> *</span>` : ""}
1875
1904
  </span>` : ""}
@@ -1885,8 +1914,8 @@ let Ze = class extends y {
1885
1914
  `;
1886
1915
  }
1887
1916
  };
1888
- Ze.styles = [
1889
- Se,
1917
+ Ke.styles = [
1918
+ Ve,
1890
1919
  d`
1891
1920
  .options {
1892
1921
  display: flex;
@@ -1898,16 +1927,16 @@ Ze.styles = [
1898
1927
  ];
1899
1928
  vo([
1900
1929
  n()
1901
- ], Ze.prototype, "value", 2);
1902
- Ze = vo([
1930
+ ], Ke.prototype, "value", 2);
1931
+ Ke = vo([
1903
1932
  h("vox-radio-group")
1904
- ], Ze);
1905
- var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, Lt = (r, e, o, s) => {
1906
- for (var t = s > 1 ? void 0 : s ? pr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1907
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1908
- return s && t && hr(e, o, t), t;
1933
+ ], Ke);
1934
+ var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, Lt = (o, e, r, s) => {
1935
+ for (var t = s > 1 ? void 0 : s ? pr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
1936
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
1937
+ return s && t && hr(e, r, t), t;
1909
1938
  };
1910
- let he = class extends y {
1939
+ let xe = class extends y {
1911
1940
  constructor() {
1912
1941
  super(...arguments), this.value = "";
1913
1942
  }
@@ -1919,9 +1948,9 @@ let he = class extends y {
1919
1948
  }
1920
1949
  syncOptions() {
1921
1950
  if (!this.selectEl) return;
1922
- const r = this.renderRoot.querySelector("slot");
1923
- r && (this.selectEl.replaceChildren(
1924
- ...r.assignedElements().filter((e) => e instanceof HTMLOptionElement || e instanceof HTMLOptGroupElement).map((e) => e.cloneNode(!0))
1951
+ const o = this.renderRoot.querySelector("slot");
1952
+ o && (this.selectEl.replaceChildren(
1953
+ ...o.assignedElements().filter((e) => e instanceof HTMLOptionElement || e instanceof HTMLOptGroupElement).map((e) => e.cloneNode(!0))
1925
1954
  ), this.value && (this.selectEl.value = this.value), this.value = this.selectEl.value);
1926
1955
  }
1927
1956
  handleChange() {
@@ -1936,6 +1965,8 @@ let he = class extends y {
1936
1965
  class="control"
1937
1966
  ?required=${this.required}
1938
1967
  ?disabled=${this.disabled}
1968
+ aria-describedby=${$(this.noteId)}
1969
+ aria-invalid=${this.invalid ? "true" : "false"}
1939
1970
  @change=${this.handleChange}
1940
1971
  ></select>
1941
1972
  ${this.renderNote()}
@@ -1944,8 +1975,8 @@ let he = class extends y {
1944
1975
  `;
1945
1976
  }
1946
1977
  };
1947
- he.styles = [
1948
- Se,
1978
+ xe.styles = [
1979
+ Ve,
1949
1980
  d`
1950
1981
  select.control {
1951
1982
  appearance: none;
@@ -1959,19 +1990,19 @@ he.styles = [
1959
1990
  ];
1960
1991
  Lt([
1961
1992
  n()
1962
- ], he.prototype, "value", 2);
1993
+ ], xe.prototype, "value", 2);
1963
1994
  Lt([
1964
1995
  Pt("select")
1965
- ], he.prototype, "selectEl", 2);
1966
- he = Lt([
1996
+ ], xe.prototype, "selectEl", 2);
1997
+ xe = Lt([
1967
1998
  h("vox-select")
1968
- ], he);
1969
- var vr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Et = (r, e, o, s) => {
1970
- for (var t = s > 1 ? void 0 : s ? ur(e, o) : e, a = r.length - 1, i; a >= 0; a--)
1971
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
1972
- return s && t && vr(e, o, t), t;
1999
+ ], xe);
2000
+ var vr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Et = (o, e, r, s) => {
2001
+ for (var t = s > 1 ? void 0 : s ? ur(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2002
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2003
+ return s && t && vr(e, r, t), t;
1973
2004
  };
1974
- let pe = class extends y {
2005
+ let fe = class extends y {
1975
2006
  constructor() {
1976
2007
  super(...arguments), this.checked = !1, this.value = "on";
1977
2008
  }
@@ -1981,8 +2012,8 @@ let pe = class extends y {
1981
2012
  updated() {
1982
2013
  this.internals.setFormValue(this.checked ? this.value : null);
1983
2014
  }
1984
- handleChange(r) {
1985
- this.checked = r.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
2015
+ handleChange(o) {
2016
+ this.checked = o.target.checked, this.dispatchEvent(new Event("change", { bubbles: !0 }));
1986
2017
  }
1987
2018
  render() {
1988
2019
  return c`
@@ -2000,7 +2031,7 @@ let pe = class extends y {
2000
2031
  `;
2001
2032
  }
2002
2033
  };
2003
- pe.styles = [
2034
+ fe.styles = [
2004
2035
  ho,
2005
2036
  d`
2006
2037
  .track {
@@ -2042,19 +2073,19 @@ pe.styles = [
2042
2073
  ];
2043
2074
  Et([
2044
2075
  n({ type: Boolean, reflect: !0 })
2045
- ], pe.prototype, "checked", 2);
2076
+ ], fe.prototype, "checked", 2);
2046
2077
  Et([
2047
2078
  n()
2048
- ], pe.prototype, "value", 2);
2049
- pe = Et([
2079
+ ], fe.prototype, "value", 2);
2080
+ fe = Et([
2050
2081
  h("vox-switch")
2051
- ], pe);
2052
- var xr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Ve = (r, e, o, s) => {
2053
- for (var t = s > 1 ? void 0 : s ? fr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2054
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2055
- return s && t && xr(e, o, t), t;
2082
+ ], fe);
2083
+ var xr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, je = (o, e, r, s) => {
2084
+ for (var t = s > 1 ? void 0 : s ? fr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2085
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2086
+ return s && t && xr(e, r, t), t;
2056
2087
  };
2057
- let D = class extends y {
2088
+ let H = class extends y {
2058
2089
  constructor() {
2059
2090
  super(...arguments), this.value = "", this.rows = 4, this.readonly = !1;
2060
2091
  }
@@ -2063,15 +2094,15 @@ let D = class extends y {
2063
2094
  }
2064
2095
  updated() {
2065
2096
  this.internals.setFormValue(this.value);
2066
- const r = this.renderRoot.querySelector("textarea");
2067
- r && this.syncValidity(r);
2097
+ const o = this.renderRoot.querySelector("textarea");
2098
+ o && this.syncValidity(o);
2068
2099
  }
2069
- focus(r) {
2100
+ focus(o) {
2070
2101
  var e;
2071
- (e = this.renderRoot.querySelector("textarea")) == null || e.focus(r);
2102
+ (e = this.renderRoot.querySelector("textarea")) == null || e.focus(o);
2072
2103
  }
2073
- handleInput(r) {
2074
- this.value = r.target.value;
2104
+ handleInput(o) {
2105
+ this.value = o.target.value;
2075
2106
  }
2076
2107
  handleChange() {
2077
2108
  this.dispatchEvent(new Event("change", { bubbles: !0 }));
@@ -2085,10 +2116,12 @@ let D = class extends y {
2085
2116
  class="control"
2086
2117
  rows=${this.rows}
2087
2118
  .value=${po(this.value)}
2088
- placeholder=${Z(this.placeholder)}
2119
+ placeholder=${$(this.placeholder)}
2089
2120
  ?required=${this.required}
2090
2121
  ?readonly=${this.readonly}
2091
2122
  ?disabled=${this.disabled}
2123
+ aria-describedby=${$(this.noteId)}
2124
+ aria-invalid=${this.invalid ? "true" : "false"}
2092
2125
  @input=${this.handleInput}
2093
2126
  @change=${this.handleChange}
2094
2127
  ></textarea>
@@ -2097,8 +2130,8 @@ let D = class extends y {
2097
2130
  `;
2098
2131
  }
2099
2132
  };
2100
- D.styles = [
2101
- Se,
2133
+ H.styles = [
2134
+ Ve,
2102
2135
  d`
2103
2136
  textarea.control {
2104
2137
  resize: vertical;
@@ -2106,39 +2139,44 @@ D.styles = [
2106
2139
  }
2107
2140
  `
2108
2141
  ];
2109
- Ve([
2142
+ je([
2110
2143
  n()
2111
- ], D.prototype, "value", 2);
2112
- Ve([
2144
+ ], H.prototype, "value", 2);
2145
+ je([
2113
2146
  n()
2114
- ], D.prototype, "placeholder", 2);
2115
- Ve([
2147
+ ], H.prototype, "placeholder", 2);
2148
+ je([
2116
2149
  n({ type: Number })
2117
- ], D.prototype, "rows", 2);
2118
- Ve([
2150
+ ], H.prototype, "rows", 2);
2151
+ je([
2119
2152
  n({ type: Boolean, reflect: !0 })
2120
- ], D.prototype, "readonly", 2);
2121
- D = Ve([
2153
+ ], H.prototype, "readonly", 2);
2154
+ H = je([
2122
2155
  h("vox-textarea")
2123
- ], D);
2124
- var gr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, je = (r, e, o, s) => {
2125
- for (var t = s > 1 ? void 0 : s ? br(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2126
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2127
- return s && t && gr(e, o, t), t;
2156
+ ], H);
2157
+ var gr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, De = (o, e, r, s) => {
2158
+ for (var t = s > 1 ? void 0 : s ? br(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2159
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2160
+ return s && t && gr(e, r, t), t;
2128
2161
  };
2129
- let H = class extends p {
2162
+ let z = class extends p {
2130
2163
  constructor() {
2131
2164
  super(...arguments), this.alt = "", this.initials = "", this.size = "md";
2132
2165
  }
2133
2166
  render() {
2167
+ const o = !this.src && this.alt;
2134
2168
  return c`
2135
- <span class="avatar" role=${this.src ? "presentation" : "img"} aria-label=${this.alt}>
2169
+ <span
2170
+ class="avatar"
2171
+ role=${o ? "img" : u}
2172
+ aria-label=${o ? this.alt : u}
2173
+ >
2136
2174
  ${this.src ? c`<img src=${this.src} alt=${this.alt} />` : this.initials}
2137
2175
  </span>
2138
2176
  `;
2139
2177
  }
2140
2178
  };
2141
- H.styles = d`
2179
+ z.styles = d`
2142
2180
  :host {
2143
2181
  display: inline-block;
2144
2182
  }
@@ -2186,32 +2224,32 @@ H.styles = d`
2186
2224
  font-size: 28px;
2187
2225
  }
2188
2226
  `;
2189
- je([
2227
+ De([
2190
2228
  n()
2191
- ], H.prototype, "src", 2);
2192
- je([
2229
+ ], z.prototype, "src", 2);
2230
+ De([
2193
2231
  n()
2194
- ], H.prototype, "alt", 2);
2195
- je([
2232
+ ], z.prototype, "alt", 2);
2233
+ De([
2196
2234
  n()
2197
- ], H.prototype, "initials", 2);
2198
- je([
2235
+ ], z.prototype, "initials", 2);
2236
+ De([
2199
2237
  n({ reflect: !0 })
2200
- ], H.prototype, "size", 2);
2201
- H = je([
2238
+ ], z.prototype, "size", 2);
2239
+ z = De([
2202
2240
  h("vox-avatar")
2203
- ], H);
2204
- var yr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, St = (r, e, o, s) => {
2205
- for (var t = s > 1 ? void 0 : s ? mr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2206
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2207
- return s && t && yr(e, o, t), t;
2241
+ ], z);
2242
+ var yr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, St = (o, e, r, s) => {
2243
+ for (var t = s > 1 ? void 0 : s ? mr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2244
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2245
+ return s && t && yr(e, r, t), t;
2208
2246
  };
2209
- let ve = class extends p {
2247
+ let ge = class extends p {
2210
2248
  constructor() {
2211
2249
  super(...arguments), this.heading = "", this.reverse = !1, this.hasActions = !1;
2212
2250
  }
2213
- handleActionsSlotChange(r) {
2214
- const e = r.target;
2251
+ handleActionsSlotChange(o) {
2252
+ const e = o.target;
2215
2253
  this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
2216
2254
  }
2217
2255
  render() {
@@ -2229,7 +2267,7 @@ let ve = class extends p {
2229
2267
  `;
2230
2268
  }
2231
2269
  };
2232
- ve.styles = d`
2270
+ ge.styles = d`
2233
2271
  :host {
2234
2272
  display: block;
2235
2273
  font-family: var(--vox-font-family-base);
@@ -2293,16 +2331,16 @@ ve.styles = d`
2293
2331
  `;
2294
2332
  St([
2295
2333
  n()
2296
- ], ve.prototype, "heading", 2);
2334
+ ], ge.prototype, "heading", 2);
2297
2335
  St([
2298
2336
  n({ type: Boolean, reflect: !0 })
2299
- ], ve.prototype, "reverse", 2);
2300
- ve = St([
2337
+ ], ge.prototype, "reverse", 2);
2338
+ ge = St([
2301
2339
  h("vox-billboard")
2302
- ], ve);
2303
- var $r = Object.getOwnPropertyDescriptor, wr = (r, e, o, s) => {
2304
- for (var t = s > 1 ? void 0 : s ? $r(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2305
- (i = r[a]) && (t = i(t) || t);
2340
+ ], ge);
2341
+ var $r = Object.getOwnPropertyDescriptor, wr = (o, e, r, s) => {
2342
+ for (var t = s > 1 ? void 0 : s ? $r(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2343
+ (i = o[a]) && (t = i(t) || t);
2306
2344
  return t;
2307
2345
  };
2308
2346
  let gt = class extends p {
@@ -2351,18 +2389,21 @@ gt.styles = d`
2351
2389
  gt = wr([
2352
2390
  h("vox-breadcrumbs")
2353
2391
  ], gt);
2354
- var _r = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, nt = (r, e, o, s) => {
2355
- for (var t = s > 1 ? void 0 : s ? Cr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2356
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2357
- return s && t && _r(e, o, t), t;
2392
+ var _r = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, nt = (o, e, r, s) => {
2393
+ for (var t = s > 1 ? void 0 : s ? Cr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2394
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2395
+ return s && t && _r(e, r, t), t;
2358
2396
  };
2359
- let X = class extends p {
2397
+ let Q = class extends p {
2360
2398
  constructor() {
2361
- super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
2362
- this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
2363
- }, this.handleKeydown = (r) => {
2399
+ super(...arguments), this.siteTitle = "", this.href = "/", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
2400
+ this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
2401
+ }, this.handleFocusOut = (o) => {
2402
+ const e = o.relatedTarget;
2403
+ this.mobileOpen && !(e && this.contains(e)) && (this.mobileOpen = !1);
2404
+ }, this.handleKeydown = (o) => {
2364
2405
  var e;
2365
- r.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".menu-toggle")) == null || e.focus());
2406
+ o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".menu-toggle")) == null || e.focus());
2366
2407
  }, this.toggleMobileMenu = () => {
2367
2408
  this.mobileOpen = !this.mobileOpen;
2368
2409
  }, this.closeMobileMenu = () => {
@@ -2370,17 +2411,17 @@ let X = class extends p {
2370
2411
  };
2371
2412
  }
2372
2413
  connectedCallback() {
2373
- super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
2414
+ super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("focusout", this.handleFocusOut);
2374
2415
  }
2375
2416
  disconnectedCallback() {
2376
- super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
2417
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown), this.removeEventListener("focusout", this.handleFocusOut);
2377
2418
  }
2378
2419
  render() {
2379
2420
  return c`
2380
2421
  <header class="header">
2381
2422
  <a class="brand" href=${this.href}>
2382
2423
  <slot name="logo"></slot>
2383
- ${this.siteTitle ? c`<span>${this.siteTitle}</span>` : x}
2424
+ ${this.siteTitle ? c`<span>${this.siteTitle}</span>` : u}
2384
2425
  </a>
2385
2426
  <button
2386
2427
  type="button"
@@ -2400,7 +2441,7 @@ let X = class extends p {
2400
2441
  stroke-linejoin="round"
2401
2442
  aria-hidden="true"
2402
2443
  >
2403
- ${this.mobileOpen ? j.close : j.menu}
2444
+ ${this.mobileOpen ? D.close : D.menu}
2404
2445
  </svg>
2405
2446
  </button>
2406
2447
  <div id="nav-wrap" class="nav-wrap${this.mobileOpen ? " open" : ""}">
@@ -2415,7 +2456,7 @@ let X = class extends p {
2415
2456
  `;
2416
2457
  }
2417
2458
  };
2418
- X.styles = d`
2459
+ Q.styles = d`
2419
2460
  :host {
2420
2461
  display: block;
2421
2462
  font-family: var(--vox-font-family-base);
@@ -2547,22 +2588,22 @@ X.styles = d`
2547
2588
  `;
2548
2589
  nt([
2549
2590
  n({ attribute: "site-title" })
2550
- ], X.prototype, "siteTitle", 2);
2591
+ ], Q.prototype, "siteTitle", 2);
2551
2592
  nt([
2552
2593
  n()
2553
- ], X.prototype, "href", 2);
2594
+ ], Q.prototype, "href", 2);
2554
2595
  nt([
2555
- rt()
2556
- ], X.prototype, "mobileOpen", 2);
2557
- X = nt([
2596
+ Se()
2597
+ ], Q.prototype, "mobileOpen", 2);
2598
+ Q = nt([
2558
2599
  h("vox-header")
2559
- ], X);
2560
- var Or = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, De = (r, e, o, s) => {
2561
- for (var t = s > 1 ? void 0 : s ? Mr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2562
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2563
- return s && t && Or(e, o, t), t;
2600
+ ], Q);
2601
+ var Or = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, He = (o, e, r, s) => {
2602
+ for (var t = s > 1 ? void 0 : s ? Mr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2603
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2604
+ return s && t && Or(e, r, t), t;
2564
2605
  };
2565
- let z = class extends p {
2606
+ let T = class extends p {
2566
2607
  constructor() {
2567
2608
  super(...arguments), this.previousLabel = "", this.nextLabel = "";
2568
2609
  }
@@ -2574,18 +2615,18 @@ let z = class extends p {
2574
2615
  <span class="direction">← Previous</span>
2575
2616
  <span class="title">${this.previousLabel}</span>
2576
2617
  </a>
2577
- ` : x}
2618
+ ` : u}
2578
2619
  ${this.nextHref ? c`
2579
2620
  <a class="next" href=${this.nextHref} rel="next">
2580
2621
  <span class="direction">Next →</span>
2581
2622
  <span class="title">${this.nextLabel}</span>
2582
2623
  </a>
2583
- ` : x}
2624
+ ` : u}
2584
2625
  </nav>
2585
2626
  `;
2586
2627
  }
2587
2628
  };
2588
- z.styles = d`
2629
+ T.styles = d`
2589
2630
  :host {
2590
2631
  display: block;
2591
2632
  font-family: var(--vox-font-family-base);
@@ -2635,44 +2676,47 @@ z.styles = d`
2635
2676
  color: var(--vox-color-brand-1);
2636
2677
  }
2637
2678
  `;
2638
- De([
2679
+ He([
2639
2680
  n({ attribute: "previous-href" })
2640
- ], z.prototype, "previousHref", 2);
2641
- De([
2681
+ ], T.prototype, "previousHref", 2);
2682
+ He([
2642
2683
  n({ attribute: "previous-label" })
2643
- ], z.prototype, "previousLabel", 2);
2644
- De([
2684
+ ], T.prototype, "previousLabel", 2);
2685
+ He([
2645
2686
  n({ attribute: "next-href" })
2646
- ], z.prototype, "nextHref", 2);
2647
- De([
2687
+ ], T.prototype, "nextHref", 2);
2688
+ He([
2648
2689
  n({ attribute: "next-label" })
2649
- ], z.prototype, "nextLabel", 2);
2650
- z = De([
2690
+ ], T.prototype, "nextLabel", 2);
2691
+ T = He([
2651
2692
  h("vox-series-nav")
2652
- ], z);
2653
- var Pr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, $ = (r, e, o, s) => {
2654
- for (var t = s > 1 ? void 0 : s ? Ar(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2655
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2656
- return s && t && Pr(e, o, t), t;
2693
+ ], T);
2694
+ var Pr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, w = (o, e, r, s) => {
2695
+ for (var t = s > 1 ? void 0 : s ? Ar(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2696
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2697
+ return s && t && Pr(e, r, t), t;
2657
2698
  };
2658
- let Y = class extends p {
2699
+ let ee = class extends p {
2659
2700
  constructor() {
2660
- super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (r) => {
2661
- this.mobileOpen && !r.composedPath().includes(this) && (this.mobileOpen = !1);
2662
- }, this.handleKeydown = (r) => {
2701
+ super(...arguments), this.label = "Section", this.toggleLabel = "Menu", this.mobileOpen = !1, this.handleOutsideClick = (o) => {
2702
+ this.mobileOpen && !o.composedPath().includes(this) && (this.mobileOpen = !1);
2703
+ }, this.handleFocusOut = (o) => {
2704
+ const e = o.relatedTarget;
2705
+ this.mobileOpen && !(e && this.contains(e)) && (this.mobileOpen = !1);
2706
+ }, this.handleKeydown = (o) => {
2663
2707
  var e;
2664
- r.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".toggle")) == null || e.focus());
2708
+ o.key === "Escape" && this.mobileOpen && (this.mobileOpen = !1, (e = this.renderRoot.querySelector(".toggle")) == null || e.focus());
2665
2709
  }, this.toggleMobile = () => {
2666
2710
  this.mobileOpen = !this.mobileOpen;
2667
- }, this.handleNavClick = (r) => {
2668
- r.composedPath().some((e) => e instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
2711
+ }, this.handleNavClick = (o) => {
2712
+ o.composedPath().some((e) => e instanceof HTMLAnchorElement) && (this.mobileOpen = !1);
2669
2713
  };
2670
2714
  }
2671
2715
  connectedCallback() {
2672
- super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
2716
+ super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("focusout", this.handleFocusOut);
2673
2717
  }
2674
2718
  disconnectedCallback() {
2675
- super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
2719
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown), this.removeEventListener("focusout", this.handleFocusOut);
2676
2720
  }
2677
2721
  render() {
2678
2722
  return c`
@@ -2694,7 +2738,7 @@ let Y = class extends p {
2694
2738
  stroke-linejoin="round"
2695
2739
  aria-hidden="true"
2696
2740
  >
2697
- ${this.mobileOpen ? j.close : j.menu}
2741
+ ${this.mobileOpen ? D.close : D.menu}
2698
2742
  </svg>
2699
2743
  </button>
2700
2744
  <nav
@@ -2708,7 +2752,7 @@ let Y = class extends p {
2708
2752
  `;
2709
2753
  }
2710
2754
  };
2711
- Y.styles = d`
2755
+ ee.styles = d`
2712
2756
  :host {
2713
2757
  display: block;
2714
2758
  font-family: var(--vox-font-family-base);
@@ -2768,21 +2812,21 @@ Y.styles = d`
2768
2812
  }
2769
2813
  }
2770
2814
  `;
2771
- $([
2815
+ w([
2772
2816
  n()
2773
- ], Y.prototype, "label", 2);
2774
- $([
2817
+ ], ee.prototype, "label", 2);
2818
+ w([
2775
2819
  n({ attribute: "toggle-label" })
2776
- ], Y.prototype, "toggleLabel", 2);
2777
- $([
2778
- rt()
2779
- ], Y.prototype, "mobileOpen", 2);
2780
- Y = $([
2820
+ ], ee.prototype, "toggleLabel", 2);
2821
+ w([
2822
+ Se()
2823
+ ], ee.prototype, "mobileOpen", 2);
2824
+ ee = w([
2781
2825
  h("vox-sidenav")
2782
- ], Y);
2783
- let ue = class extends p {
2826
+ ], ee);
2827
+ let I = class extends p {
2784
2828
  constructor() {
2785
- super(...arguments), this.heading = "", this.open = !1;
2829
+ super(...arguments), this.heading = "", this.open = !1, this.itemsId = `vox-sidenav-group-items-${I.nextId++}`;
2786
2830
  }
2787
2831
  toggle() {
2788
2832
  this.open = !this.open;
@@ -2792,6 +2836,7 @@ let ue = class extends p {
2792
2836
  <button
2793
2837
  class="trigger"
2794
2838
  aria-expanded=${this.open ? "true" : "false"}
2839
+ aria-controls=${this.itemsId}
2795
2840
  @click=${this.toggle}
2796
2841
  >
2797
2842
  ${this.heading}
@@ -2799,11 +2844,12 @@ let ue = class extends p {
2799
2844
  <path d="m9 6 6 6-6 6" />
2800
2845
  </svg>
2801
2846
  </button>
2802
- <div class="items"><slot></slot></div>
2847
+ <div id=${this.itemsId} class="items"><slot></slot></div>
2803
2848
  `;
2804
2849
  }
2805
2850
  };
2806
- ue.styles = d`
2851
+ I.nextId = 0;
2852
+ I.styles = d`
2807
2853
  :host {
2808
2854
  display: block;
2809
2855
  font-family: var(--vox-font-family-base);
@@ -2860,21 +2906,21 @@ ue.styles = d`
2860
2906
  display: flex;
2861
2907
  }
2862
2908
  `;
2863
- $([
2909
+ w([
2864
2910
  n()
2865
- ], ue.prototype, "heading", 2);
2866
- $([
2911
+ ], I.prototype, "heading", 2);
2912
+ w([
2867
2913
  n({ type: Boolean, reflect: !0 })
2868
- ], ue.prototype, "open", 2);
2869
- ue = $([
2914
+ ], I.prototype, "open", 2);
2915
+ I = w([
2870
2916
  h("vox-sidenav-group")
2871
- ], ue);
2872
- let xe = class extends p {
2917
+ ], I);
2918
+ let be = class extends p {
2873
2919
  constructor() {
2874
2920
  super(...arguments), this.href = "#", this.current = !1, this.hasIcon = !1;
2875
2921
  }
2876
- handleIconSlotChange(r) {
2877
- const e = r.target;
2922
+ handleIconSlotChange(o) {
2923
+ const e = o.target;
2878
2924
  this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
2879
2925
  }
2880
2926
  render() {
@@ -2888,7 +2934,7 @@ let xe = class extends p {
2888
2934
  `;
2889
2935
  }
2890
2936
  };
2891
- xe.styles = d`
2937
+ be.styles = d`
2892
2938
  :host {
2893
2939
  display: block;
2894
2940
  font-family: var(--vox-font-family-base);
@@ -2932,21 +2978,21 @@ xe.styles = d`
2932
2978
  display: none;
2933
2979
  }
2934
2980
  `;
2935
- $([
2981
+ w([
2936
2982
  n()
2937
- ], xe.prototype, "href", 2);
2938
- $([
2983
+ ], be.prototype, "href", 2);
2984
+ w([
2939
2985
  n({ type: Boolean, reflect: !0 })
2940
- ], xe.prototype, "current", 2);
2941
- xe = $([
2986
+ ], be.prototype, "current", 2);
2987
+ be = w([
2942
2988
  h("vox-sidenav-item")
2943
- ], xe);
2944
- var kr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, uo = (r, e, o, s) => {
2945
- for (var t = s > 1 ? void 0 : s ? Lr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
2946
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
2947
- return s && t && kr(e, o, t), t;
2989
+ ], be);
2990
+ var kr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, uo = (o, e, r, s) => {
2991
+ for (var t = s > 1 ? void 0 : s ? Lr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
2992
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
2993
+ return s && t && kr(e, r, t), t;
2948
2994
  };
2949
- let Ke = class extends p {
2995
+ let Ge = class extends p {
2950
2996
  constructor() {
2951
2997
  super(...arguments), this.label = "Secondary";
2952
2998
  }
@@ -2958,7 +3004,7 @@ let Ke = class extends p {
2958
3004
  `;
2959
3005
  }
2960
3006
  };
2961
- Ke.styles = d`
3007
+ Ge.styles = d`
2962
3008
  :host {
2963
3009
  display: block;
2964
3010
  font-family: var(--vox-font-family-base);
@@ -2995,14 +3041,14 @@ Ke.styles = d`
2995
3041
  `;
2996
3042
  uo([
2997
3043
  n()
2998
- ], Ke.prototype, "label", 2);
2999
- Ke = uo([
3044
+ ], Ge.prototype, "label", 2);
3045
+ Ge = uo([
3000
3046
  h("vox-subnav")
3001
- ], Ke);
3002
- var Er = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, U = (r, e, o, s) => {
3003
- for (var t = s > 1 ? void 0 : s ? Sr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3004
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3005
- return s && t && Er(e, o, t), t;
3047
+ ], Ge);
3048
+ var Er = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, Z = (o, e, r, s) => {
3049
+ for (var t = s > 1 ? void 0 : s ? Sr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3050
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3051
+ return s && t && Er(e, r, t), t;
3006
3052
  };
3007
3053
  let bt = class extends p {
3008
3054
  get tabs() {
@@ -3012,16 +3058,16 @@ let bt = class extends p {
3012
3058
  return [...this.querySelectorAll("vox-tab-panel")];
3013
3059
  }
3014
3060
  sync() {
3015
- const r = this.tabs;
3016
- r.length > 0 && !r.some((o) => o.selected) && (r[0].selected = !0);
3017
- const e = r.find((o) => o.selected);
3018
- this.panels.forEach((o) => {
3019
- o.active = o.name === (e == null ? void 0 : e.panel);
3061
+ const o = this.tabs;
3062
+ o.length > 0 && !o.some((r) => r.selected) && (o[0].selected = !0);
3063
+ const e = o.find((r) => r.selected);
3064
+ this.panels.forEach((r) => {
3065
+ r.active = r.name === (e == null ? void 0 : e.panel);
3020
3066
  });
3021
3067
  }
3022
- handleSelect(r) {
3023
- const e = r.target;
3024
- e.tagName === "VOX-TAB" && (this.tabs.forEach((o) => o.selected = o === e), this.sync(), this.dispatchEvent(
3068
+ handleSelect(o) {
3069
+ const e = o.target;
3070
+ e.tagName === "VOX-TAB" && (this.tabs.forEach((r) => r.selected = r === e), this.sync(), this.dispatchEvent(
3025
3071
  new CustomEvent("vox-tab-change", {
3026
3072
  detail: { panel: e.panel },
3027
3073
  bubbles: !0,
@@ -3029,11 +3075,18 @@ let bt = class extends p {
3029
3075
  })
3030
3076
  ));
3031
3077
  }
3032
- handleKeydown(r) {
3033
- const o = { ArrowRight: 1, ArrowLeft: -1 }[r.key];
3034
- if (!o) return;
3035
- r.preventDefault();
3036
- const s = this.tabs, t = s.findIndex((i) => i.selected), a = s[(t + o + s.length) % s.length];
3078
+ handleKeydown(o) {
3079
+ const e = this.tabs;
3080
+ if (o.key === "Home" || o.key === "End") {
3081
+ o.preventDefault();
3082
+ const i = e[o.key === "Home" ? 0 : e.length - 1];
3083
+ i.select(), i.focusTab();
3084
+ return;
3085
+ }
3086
+ const s = { ArrowRight: 1, ArrowLeft: -1 }[o.key];
3087
+ if (!s) return;
3088
+ o.preventDefault();
3089
+ const t = e.findIndex((i) => i.selected), a = e[(t + s + e.length) % e.length];
3037
3090
  a.select(), a.focusTab();
3038
3091
  }
3039
3092
  render() {
@@ -3061,10 +3114,10 @@ bt.styles = d`
3061
3114
  border-bottom: 1px solid var(--vox-color-divider);
3062
3115
  }
3063
3116
  `;
3064
- bt = U([
3117
+ bt = Z([
3065
3118
  h("vox-tabs")
3066
3119
  ], bt);
3067
- let fe = class extends p {
3120
+ let ye = class extends p {
3068
3121
  constructor() {
3069
3122
  super(...arguments), this.panel = "", this.selected = !1;
3070
3123
  }
@@ -3074,15 +3127,17 @@ let fe = class extends p {
3074
3127
  );
3075
3128
  }
3076
3129
  focusTab() {
3077
- var r;
3078
- (r = this.renderRoot.querySelector(".tab")) == null || r.focus();
3130
+ var o;
3131
+ (o = this.renderRoot.querySelector(".tab")) == null || o.focus();
3079
3132
  }
3080
3133
  render() {
3081
3134
  return c`
3082
3135
  <button
3136
+ id="tab-${this.panel}"
3083
3137
  class="tab"
3084
3138
  role="tab"
3085
3139
  aria-selected=${this.selected ? "true" : "false"}
3140
+ aria-controls="panel-${this.panel}"
3086
3141
  tabindex=${this.selected ? "0" : "-1"}
3087
3142
  @click=${this.select}
3088
3143
  >
@@ -3091,7 +3146,7 @@ let fe = class extends p {
3091
3146
  `;
3092
3147
  }
3093
3148
  };
3094
- fe.styles = d`
3149
+ ye.styles = d`
3095
3150
  :host {
3096
3151
  display: block;
3097
3152
  font-family: var(--vox-font-family-base);
@@ -3126,24 +3181,33 @@ fe.styles = d`
3126
3181
  border-bottom-color: var(--vox-color-brand-1);
3127
3182
  }
3128
3183
  `;
3129
- U([
3184
+ Z([
3130
3185
  n()
3131
- ], fe.prototype, "panel", 2);
3132
- U([
3186
+ ], ye.prototype, "panel", 2);
3187
+ Z([
3133
3188
  n({ type: Boolean, reflect: !0 })
3134
- ], fe.prototype, "selected", 2);
3135
- fe = U([
3189
+ ], ye.prototype, "selected", 2);
3190
+ ye = Z([
3136
3191
  h("vox-tab")
3137
- ], fe);
3138
- let ge = class extends p {
3192
+ ], ye);
3193
+ let me = class extends p {
3139
3194
  constructor() {
3140
3195
  super(...arguments), this.name = "", this.active = !1;
3141
3196
  }
3142
3197
  render() {
3143
- return c`<div role="tabpanel"><slot></slot></div>`;
3198
+ return c`
3199
+ <div
3200
+ id="panel-${this.name}"
3201
+ role="tabpanel"
3202
+ aria-labelledby="tab-${this.name}"
3203
+ tabindex="0"
3204
+ >
3205
+ <slot></slot>
3206
+ </div>
3207
+ `;
3144
3208
  }
3145
3209
  };
3146
- ge.styles = d`
3210
+ me.styles = d`
3147
3211
  :host {
3148
3212
  display: none;
3149
3213
  font-family: var(--vox-font-family-base);
@@ -3156,22 +3220,28 @@ ge.styles = d`
3156
3220
  :host([active]) {
3157
3221
  display: block;
3158
3222
  }
3223
+
3224
+ div:focus-visible {
3225
+ outline: 2px solid var(--vox-color-brand-1);
3226
+ outline-offset: 2px;
3227
+ border-radius: var(--vox-radius-sm);
3228
+ }
3159
3229
  `;
3160
- U([
3230
+ Z([
3161
3231
  n()
3162
- ], ge.prototype, "name", 2);
3163
- U([
3232
+ ], me.prototype, "name", 2);
3233
+ Z([
3164
3234
  n({ type: Boolean, reflect: !0 })
3165
- ], ge.prototype, "active", 2);
3166
- ge = U([
3235
+ ], me.prototype, "active", 2);
3236
+ me = Z([
3167
3237
  h("vox-tab-panel")
3168
- ], ge);
3169
- var Vr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, He = (r, e, o, s) => {
3170
- for (var t = s > 1 ? void 0 : s ? jr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3171
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3172
- return s && t && Vr(e, o, t), t;
3238
+ ], me);
3239
+ var Vr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, ze = (o, e, r, s) => {
3240
+ for (var t = s > 1 ? void 0 : s ? jr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3241
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3242
+ return s && t && Vr(e, r, t), t;
3173
3243
  };
3174
- let Ge = class extends p {
3244
+ let We = class extends p {
3175
3245
  constructor() {
3176
3246
  super(...arguments), this.heading = "On this page";
3177
3247
  }
@@ -3184,7 +3254,7 @@ let Ge = class extends p {
3184
3254
  `;
3185
3255
  }
3186
3256
  };
3187
- Ge.styles = d`
3257
+ We.styles = d`
3188
3258
  :host {
3189
3259
  display: block;
3190
3260
  font-family: var(--vox-font-family-base);
@@ -3205,18 +3275,18 @@ Ge.styles = d`
3205
3275
  border-left: 1px solid var(--vox-color-divider);
3206
3276
  }
3207
3277
  `;
3208
- He([
3278
+ ze([
3209
3279
  n()
3210
- ], Ge.prototype, "heading", 2);
3211
- Ge = He([
3280
+ ], We.prototype, "heading", 2);
3281
+ We = ze([
3212
3282
  h("vox-toc")
3213
- ], Ge);
3214
- let be = class extends p {
3283
+ ], We);
3284
+ let $e = class extends p {
3215
3285
  constructor() {
3216
3286
  super(...arguments), this.href = "#", this.current = !1, this.hasChildren = !1;
3217
3287
  }
3218
- handleChildrenSlotChange(r) {
3219
- const e = r.target;
3288
+ handleChildrenSlotChange(o) {
3289
+ const e = o.target;
3220
3290
  this.hasChildren = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
3221
3291
  }
3222
3292
  render() {
@@ -3230,7 +3300,7 @@ let be = class extends p {
3230
3300
  `;
3231
3301
  }
3232
3302
  };
3233
- be.styles = d`
3303
+ $e.styles = d`
3234
3304
  :host {
3235
3305
  display: block;
3236
3306
  font-family: var(--vox-font-family-base);
@@ -3276,21 +3346,21 @@ be.styles = d`
3276
3346
  display: none;
3277
3347
  }
3278
3348
  `;
3279
- He([
3349
+ ze([
3280
3350
  n()
3281
- ], be.prototype, "href", 2);
3282
- He([
3351
+ ], $e.prototype, "href", 2);
3352
+ ze([
3283
3353
  n({ type: Boolean, reflect: !0 })
3284
- ], be.prototype, "current", 2);
3285
- be = He([
3354
+ ], $e.prototype, "current", 2);
3355
+ $e = ze([
3286
3356
  h("vox-toc-item")
3287
- ], be);
3288
- var Dr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, ze = (r, e, o, s) => {
3289
- for (var t = s > 1 ? void 0 : s ? Hr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3290
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3291
- return s && t && Dr(e, o, t), t;
3357
+ ], $e);
3358
+ var Dr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, Te = (o, e, r, s) => {
3359
+ for (var t = s > 1 ? void 0 : s ? Hr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3360
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3361
+ return s && t && Dr(e, r, t), t;
3292
3362
  };
3293
- let T = class extends p {
3363
+ let B = class extends p {
3294
3364
  constructor() {
3295
3365
  super(...arguments), this.heading = "", this.open = !1, this.lightDismiss = !1, this.hasFooter = !1;
3296
3366
  }
@@ -3308,22 +3378,22 @@ let T = class extends p {
3308
3378
  new CustomEvent("vox-close", { bubbles: !0, composed: !0 })
3309
3379
  );
3310
3380
  }
3311
- handleClick(r) {
3312
- this.lightDismiss && r.target === this.dialogEl && this.close();
3381
+ handleClick(o) {
3382
+ this.lightDismiss && o.target === this.dialogEl && this.close();
3313
3383
  }
3314
- handleFooterSlotChange(r) {
3315
- const e = r.target;
3384
+ handleFooterSlotChange(o) {
3385
+ const e = o.target;
3316
3386
  this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
3317
3387
  }
3318
3388
  render() {
3319
3389
  return c`
3320
3390
  <dialog
3321
- aria-label=${this.heading || x}
3391
+ aria-labelledby=${this.heading ? "heading" : u}
3322
3392
  @close=${this.handleNativeClose}
3323
3393
  @click=${this.handleClick}
3324
3394
  >
3325
3395
  <div class="header">
3326
- <h2 class="heading">${this.heading}</h2>
3396
+ <h2 class="heading" id="heading">${this.heading}</h2>
3327
3397
  <button class="close" aria-label="Close dialog" @click=${this.close}>
3328
3398
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
3329
3399
  <path d="M18 6 6 18M6 6l12 12" />
@@ -3338,7 +3408,7 @@ let T = class extends p {
3338
3408
  `;
3339
3409
  }
3340
3410
  };
3341
- T.styles = d`
3411
+ B.styles = d`
3342
3412
  dialog {
3343
3413
  box-sizing: border-box;
3344
3414
  width: min(90vw, 480px);
@@ -3425,29 +3495,29 @@ T.styles = d`
3425
3495
  margin-bottom: 0;
3426
3496
  }
3427
3497
  `;
3428
- ze([
3498
+ Te([
3429
3499
  n()
3430
- ], T.prototype, "heading", 2);
3431
- ze([
3500
+ ], B.prototype, "heading", 2);
3501
+ Te([
3432
3502
  n({ type: Boolean })
3433
- ], T.prototype, "open", 2);
3434
- ze([
3503
+ ], B.prototype, "open", 2);
3504
+ Te([
3435
3505
  n({ type: Boolean, attribute: "light-dismiss" })
3436
- ], T.prototype, "lightDismiss", 2);
3437
- ze([
3506
+ ], B.prototype, "lightDismiss", 2);
3507
+ Te([
3438
3508
  Pt("dialog")
3439
- ], T.prototype, "dialogEl", 2);
3440
- T = ze([
3509
+ ], B.prototype, "dialogEl", 2);
3510
+ B = Te([
3441
3511
  h("vox-dialog")
3442
- ], T);
3443
- var zr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, Vt = (r, e, o, s) => {
3444
- for (var t = s > 1 ? void 0 : s ? Tr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3445
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3446
- return s && t && zr(e, o, t), t;
3512
+ ], B);
3513
+ var zr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, Vt = (o, e, r, s) => {
3514
+ for (var t = s > 1 ? void 0 : s ? Tr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3515
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3516
+ return s && t && zr(e, r, t), t;
3447
3517
  };
3448
- let ye = class extends p {
3518
+ let N = class extends p {
3449
3519
  constructor() {
3450
- super(...arguments), this.summary = "Show details", this.open = !1;
3520
+ super(...arguments), this.summary = "Show details", this.open = !1, this.panelId = `vox-disclosure-panel-${N.nextId++}`;
3451
3521
  }
3452
3522
  toggle() {
3453
3523
  this.open = !this.open, this.dispatchEvent(
@@ -3459,6 +3529,7 @@ let ye = class extends p {
3459
3529
  <button
3460
3530
  class="trigger"
3461
3531
  aria-expanded=${this.open ? "true" : "false"}
3532
+ aria-controls=${this.panelId}
3462
3533
  @click=${this.toggle}
3463
3534
  >
3464
3535
  <svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
@@ -3466,13 +3537,14 @@ let ye = class extends p {
3466
3537
  </svg>
3467
3538
  ${this.summary}
3468
3539
  </button>
3469
- <div class="panel" ?hidden=${!this.open}>
3540
+ <div id=${this.panelId} class="panel" ?hidden=${!this.open}>
3470
3541
  <slot></slot>
3471
3542
  </div>
3472
3543
  `;
3473
3544
  }
3474
3545
  };
3475
- ye.styles = d`
3546
+ N.nextId = 0;
3547
+ N.styles = d`
3476
3548
  :host {
3477
3549
  display: block;
3478
3550
  font-family: var(--vox-font-family-base);
@@ -3526,45 +3598,57 @@ ye.styles = d`
3526
3598
  `;
3527
3599
  Vt([
3528
3600
  n()
3529
- ], ye.prototype, "summary", 2);
3601
+ ], N.prototype, "summary", 2);
3530
3602
  Vt([
3531
3603
  n({ type: Boolean, reflect: !0 })
3532
- ], ye.prototype, "open", 2);
3533
- ye = Vt([
3604
+ ], N.prototype, "open", 2);
3605
+ N = Vt([
3534
3606
  h("vox-disclosure")
3535
- ], ye);
3536
- var Br = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, jt = (r, e, o, s) => {
3537
- for (var t = s > 1 ? void 0 : s ? Nr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3538
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3539
- return s && t && Br(e, o, t), t;
3607
+ ], N);
3608
+ var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, jt = (o, e, r, s) => {
3609
+ for (var t = s > 1 ? void 0 : s ? Br(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3610
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3611
+ return s && t && Ir(e, r, t), t;
3540
3612
  };
3541
- let me = class extends p {
3613
+ let we = class extends p {
3542
3614
  constructor() {
3543
- super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (r) => {
3544
- this.open && !r.composedPath().includes(this) && (this.open = !1);
3545
- }, this.handleKeydown = (r) => {
3615
+ super(...arguments), this.label = "Menu", this.open = !1, this.handleOutsideClick = (o) => {
3616
+ this.open && !o.composedPath().includes(this) && (this.open = !1);
3617
+ }, this.handleFocusOut = (o) => {
3618
+ const e = o.relatedTarget;
3619
+ this.open && !(e && this.contains(e)) && (this.open = !1);
3620
+ }, this.handleKeydown = (o) => {
3546
3621
  var e;
3547
- if (r.key === "Escape" && this.open) {
3622
+ if (o.key === "Escape" && this.open) {
3548
3623
  this.open = !1, (e = this.renderRoot.querySelector(".trigger")) == null || e.focus();
3549
3624
  return;
3550
3625
  }
3551
- if ((r.key === "ArrowDown" || r.key === "ArrowUp") && this.open) {
3552
- r.preventDefault();
3553
- const o = [...this.querySelectorAll("a, button")];
3554
- if (o.length === 0) return;
3555
- const s = document.activeElement, t = o.indexOf(s), a = r.key === "ArrowDown" ? 1 : -1;
3556
- o[(Math.max(t, 0) + a + o.length) % o.length].focus();
3626
+ if (o.key === "ArrowDown" || o.key === "ArrowUp") {
3627
+ o.preventDefault();
3628
+ const r = o.key === "ArrowDown" ? 1 : -1;
3629
+ if (!this.open) {
3630
+ this.open = !0, this.updateComplete.then(
3631
+ () => this.focusItem(o.key === "ArrowDown" ? 0 : -1)
3632
+ );
3633
+ return;
3634
+ }
3635
+ const t = [...this.querySelectorAll("a, button")].indexOf(document.activeElement);
3636
+ this.focusItem(Math.max(t, 0) + r);
3557
3637
  }
3558
3638
  };
3559
3639
  }
3560
3640
  connectedCallback() {
3561
- super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown);
3641
+ super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("focusout", this.handleFocusOut);
3562
3642
  }
3563
3643
  disconnectedCallback() {
3564
- super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown);
3644
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.removeEventListener("keydown", this.handleKeydown), this.removeEventListener("focusout", this.handleFocusOut);
3645
+ }
3646
+ focusItem(o) {
3647
+ const e = [...this.querySelectorAll("a, button")];
3648
+ e.length !== 0 && e[(o + e.length) % e.length].focus();
3565
3649
  }
3566
3650
  toggle() {
3567
- this.open = !this.open;
3651
+ this.open = !this.open, this.open && this.updateComplete.then(() => this.focusItem(0));
3568
3652
  }
3569
3653
  render() {
3570
3654
  return c`
@@ -3572,6 +3656,7 @@ let me = class extends p {
3572
3656
  class="trigger"
3573
3657
  aria-expanded=${this.open ? "true" : "false"}
3574
3658
  aria-haspopup="true"
3659
+ aria-controls="menu"
3575
3660
  @click=${this.toggle}
3576
3661
  >
3577
3662
  ${this.label}
@@ -3579,13 +3664,13 @@ let me = class extends p {
3579
3664
  <path d="m6 9 6 6 6-6" />
3580
3665
  </svg>
3581
3666
  </button>
3582
- <div class="menu">
3667
+ <div id="menu" class="menu">
3583
3668
  <slot @click=${() => this.open = !1}></slot>
3584
3669
  </div>
3585
3670
  `;
3586
3671
  }
3587
3672
  };
3588
- me.styles = d`
3673
+ we.styles = d`
3589
3674
  :host {
3590
3675
  position: relative;
3591
3676
  display: inline-block;
@@ -3686,28 +3771,28 @@ me.styles = d`
3686
3771
  `;
3687
3772
  jt([
3688
3773
  n()
3689
- ], me.prototype, "label", 2);
3774
+ ], we.prototype, "label", 2);
3690
3775
  jt([
3691
3776
  n({ type: Boolean, reflect: !0 })
3692
- ], me.prototype, "open", 2);
3693
- me = jt([
3777
+ ], we.prototype, "open", 2);
3778
+ we = jt([
3694
3779
  h("vox-dropdown")
3695
- ], me);
3696
- var Rr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Te = (r, e, o, s) => {
3697
- for (var t = s > 1 ? void 0 : s ? Ur(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3698
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3699
- return s && t && Rr(e, o, t), t;
3780
+ ], we);
3781
+ var Nr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, Ie = (o, e, r, s) => {
3782
+ for (var t = s > 1 ? void 0 : s ? Rr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3783
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3784
+ return s && t && Nr(e, r, t), t;
3700
3785
  };
3701
- let We = class extends p {
3786
+ let Xe = class extends p {
3702
3787
  constructor() {
3703
3788
  super(...arguments), this.single = !1;
3704
3789
  }
3705
- handleToggle(r) {
3790
+ handleToggle(o) {
3706
3791
  if (!this.single) return;
3707
- const e = r.target;
3792
+ const e = o.target;
3708
3793
  e.open && this.querySelectorAll("vox-accordion-item").forEach(
3709
- (o) => {
3710
- o !== e && (o.open = !1);
3794
+ (r) => {
3795
+ r !== e && (r.open = !1);
3711
3796
  }
3712
3797
  );
3713
3798
  }
@@ -3715,7 +3800,7 @@ let We = class extends p {
3715
3800
  return c`<slot @vox-toggle=${this.handleToggle}></slot>`;
3716
3801
  }
3717
3802
  };
3718
- We.styles = d`
3803
+ Xe.styles = d`
3719
3804
  :host {
3720
3805
  display: block;
3721
3806
  border: 1px solid var(--vox-color-divider);
@@ -3727,15 +3812,15 @@ We.styles = d`
3727
3812
  border-top: 1px solid var(--vox-color-divider);
3728
3813
  }
3729
3814
  `;
3730
- Te([
3815
+ Ie([
3731
3816
  n({ type: Boolean })
3732
- ], We.prototype, "single", 2);
3733
- We = Te([
3817
+ ], Xe.prototype, "single", 2);
3818
+ Xe = Ie([
3734
3819
  h("vox-accordion")
3735
- ], We);
3736
- let $e = class extends p {
3820
+ ], Xe);
3821
+ let R = class extends p {
3737
3822
  constructor() {
3738
- super(...arguments), this.heading = "", this.open = !1;
3823
+ super(...arguments), this.heading = "", this.open = !1, this.panelId = `vox-accordion-panel-${R.nextId++}`;
3739
3824
  }
3740
3825
  toggle() {
3741
3826
  this.open = !this.open, this.dispatchEvent(
@@ -3748,6 +3833,7 @@ let $e = class extends p {
3748
3833
  <button
3749
3834
  class="trigger"
3750
3835
  aria-expanded=${this.open ? "true" : "false"}
3836
+ aria-controls=${this.panelId}
3751
3837
  @click=${this.toggle}
3752
3838
  >
3753
3839
  ${this.heading}
@@ -3756,13 +3842,14 @@ let $e = class extends p {
3756
3842
  </svg>
3757
3843
  </button>
3758
3844
  </h3>
3759
- <div class="panel" ?hidden=${!this.open}>
3845
+ <div id=${this.panelId} class="panel" ?hidden=${!this.open}>
3760
3846
  <slot></slot>
3761
3847
  </div>
3762
3848
  `;
3763
3849
  }
3764
3850
  };
3765
- $e.styles = d`
3851
+ R.nextId = 0;
3852
+ R.styles = d`
3766
3853
  :host {
3767
3854
  display: block;
3768
3855
  font-family: var(--vox-font-family-base);
@@ -3824,19 +3911,19 @@ $e.styles = d`
3824
3911
  margin-bottom: 0;
3825
3912
  }
3826
3913
  `;
3827
- Te([
3914
+ Ie([
3828
3915
  n()
3829
- ], $e.prototype, "heading", 2);
3830
- Te([
3916
+ ], R.prototype, "heading", 2);
3917
+ Ie([
3831
3918
  n({ type: Boolean, reflect: !0 })
3832
- ], $e.prototype, "open", 2);
3833
- $e = Te([
3919
+ ], R.prototype, "open", 2);
3920
+ R = Ie([
3834
3921
  h("vox-accordion-item")
3835
- ], $e);
3836
- var Ir = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, Be = (r, e, o, s) => {
3837
- for (var t = s > 1 ? void 0 : s ? qr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
3838
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
3839
- return s && t && Ir(e, o, t), t;
3922
+ ], R);
3923
+ var Ur = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, Be = (o, e, r, s) => {
3924
+ for (var t = s > 1 ? void 0 : s ? qr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
3925
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
3926
+ return s && t && Ur(e, r, t), t;
3840
3927
  };
3841
3928
  const Fr = {
3842
3929
  info: "info",
@@ -3844,7 +3931,7 @@ const Fr = {
3844
3931
  warning: "warning",
3845
3932
  danger: "x-circle"
3846
3933
  };
3847
- let B = class extends p {
3934
+ let U = class extends p {
3848
3935
  constructor() {
3849
3936
  super(...arguments), this.variant = "info", this.heading = "", this.dismissible = !1, this.open = !0;
3850
3937
  }
@@ -3854,8 +3941,12 @@ let B = class extends p {
3854
3941
  );
3855
3942
  }
3856
3943
  render() {
3944
+ const o = this.variant === "danger" || this.variant === "warning";
3857
3945
  return c`
3858
- <div class="alert ${this.variant}" role="alert">
3946
+ <div
3947
+ class="alert ${this.variant}"
3948
+ role=${o ? "alert" : "status"}
3949
+ >
3859
3950
  <svg
3860
3951
  class="icon"
3861
3952
  viewBox="0 0 48 48"
@@ -3866,10 +3957,10 @@ let B = class extends p {
3866
3957
  stroke-linejoin="round"
3867
3958
  aria-hidden="true"
3868
3959
  >
3869
- ${j[Fr[this.variant]]}
3960
+ ${D[Fr[this.variant]]}
3870
3961
  </svg>
3871
3962
  <div class="body">
3872
- ${this.heading ? c`<p class="heading">${this.heading}</p>` : x}
3963
+ ${this.heading ? c`<p class="heading">${this.heading}</p>` : u}
3873
3964
  <slot></slot>
3874
3965
  </div>
3875
3966
  ${this.dismissible ? c`
@@ -3878,12 +3969,12 @@ let B = class extends p {
3878
3969
  <path d="M18 6 6 18M6 6l12 12" />
3879
3970
  </svg>
3880
3971
  </button>
3881
- ` : x}
3972
+ ` : u}
3882
3973
  </div>
3883
3974
  `;
3884
3975
  }
3885
3976
  };
3886
- B.styles = d`
3977
+ U.styles = d`
3887
3978
  :host {
3888
3979
  display: block;
3889
3980
  font-family: var(--vox-font-family-base);
@@ -4004,25 +4095,25 @@ B.styles = d`
4004
4095
  `;
4005
4096
  Be([
4006
4097
  n()
4007
- ], B.prototype, "variant", 2);
4098
+ ], U.prototype, "variant", 2);
4008
4099
  Be([
4009
4100
  n()
4010
- ], B.prototype, "heading", 2);
4101
+ ], U.prototype, "heading", 2);
4011
4102
  Be([
4012
4103
  n({ type: Boolean })
4013
- ], B.prototype, "dismissible", 2);
4104
+ ], U.prototype, "dismissible", 2);
4014
4105
  Be([
4015
4106
  n({ type: Boolean, reflect: !0 })
4016
- ], B.prototype, "open", 2);
4017
- B = Be([
4107
+ ], U.prototype, "open", 2);
4108
+ U = Be([
4018
4109
  h("vox-alert")
4019
- ], B);
4020
- var Zr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, xo = (r, e, o, s) => {
4021
- for (var t = s > 1 ? void 0 : s ? Kr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4022
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4023
- return s && t && Zr(e, o, t), t;
4110
+ ], U);
4111
+ var Zr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, xo = (o, e, r, s) => {
4112
+ for (var t = s > 1 ? void 0 : s ? Kr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4113
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4114
+ return s && t && Zr(e, r, t), t;
4024
4115
  };
4025
- let Xe = class extends p {
4116
+ let Ye = class extends p {
4026
4117
  constructor() {
4027
4118
  super(...arguments), this.variant = "brand";
4028
4119
  }
@@ -4030,7 +4121,7 @@ let Xe = class extends p {
4030
4121
  return c`<span class="badge ${this.variant}"><slot></slot></span>`;
4031
4122
  }
4032
4123
  };
4033
- Xe.styles = d`
4124
+ Ye.styles = d`
4034
4125
  :host {
4035
4126
  display: inline-block;
4036
4127
  }
@@ -4074,30 +4165,30 @@ Xe.styles = d`
4074
4165
  `;
4075
4166
  xo([
4076
4167
  n()
4077
- ], Xe.prototype, "variant", 2);
4078
- Xe = xo([
4168
+ ], Ye.prototype, "variant", 2);
4169
+ Ye = xo([
4079
4170
  h("vox-badge")
4080
- ], Xe);
4081
- var Gr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Dt = (r, e, o, s) => {
4082
- for (var t = s > 1 ? void 0 : s ? Wr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4083
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4084
- return s && t && Gr(e, o, t), t;
4171
+ ], Ye);
4172
+ var Gr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Dt = (o, e, r, s) => {
4173
+ for (var t = s > 1 ? void 0 : s ? Wr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4174
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4175
+ return s && t && Gr(e, r, t), t;
4085
4176
  };
4086
- let we = class extends p {
4177
+ let _e = class extends p {
4087
4178
  constructor() {
4088
4179
  super(...arguments), this.date = "";
4089
4180
  }
4090
4181
  render() {
4091
- const r = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), e = !Number.isNaN(r.getTime()), o = e ? r.toLocaleString(this.locale, { month: "short" }) : "—", s = e ? r.getDate() : "–";
4182
+ const o = /* @__PURE__ */ new Date(`${this.date}T00:00:00`), e = !Number.isNaN(o.getTime()), r = e ? o.toLocaleString(this.locale, { month: "short" }) : "—", s = e ? o.getDate() : "–";
4092
4183
  return c`
4093
4184
  <time class="tile" datetime=${this.date}>
4094
- <span class="month">${o}</span>
4185
+ <span class="month">${r}</span>
4095
4186
  <span class="day">${s}</span>
4096
4187
  </time>
4097
4188
  `;
4098
4189
  }
4099
4190
  };
4100
- we.styles = d`
4191
+ _e.styles = d`
4101
4192
  :host {
4102
4193
  display: inline-block;
4103
4194
  font-family: var(--vox-font-family-base);
@@ -4135,17 +4226,17 @@ we.styles = d`
4135
4226
  `;
4136
4227
  Dt([
4137
4228
  n()
4138
- ], we.prototype, "date", 2);
4229
+ ], _e.prototype, "date", 2);
4139
4230
  Dt([
4140
4231
  n()
4141
- ], we.prototype, "locale", 2);
4142
- we = Dt([
4232
+ ], _e.prototype, "locale", 2);
4233
+ _e = Dt([
4143
4234
  h("vox-calendar-tile")
4144
- ], we);
4145
- var Xr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Ht = (r, e, o, s) => {
4146
- for (var t = s > 1 ? void 0 : s ? Yr(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4147
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4148
- return s && t && Xr(e, o, t), t;
4235
+ ], _e);
4236
+ var Xr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Ht = (o, e, r, s) => {
4237
+ for (var t = s > 1 ? void 0 : s ? Yr(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4238
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4239
+ return s && t && Xr(e, r, t), t;
4149
4240
  };
4150
4241
  const Jr = {
4151
4242
  info: "Info",
@@ -4158,7 +4249,7 @@ const Jr = {
4158
4249
  warning: "warning",
4159
4250
  danger: "x-circle"
4160
4251
  };
4161
- let _e = class extends p {
4252
+ let Ce = class extends p {
4162
4253
  constructor() {
4163
4254
  super(...arguments), this.variant = "info";
4164
4255
  }
@@ -4175,7 +4266,7 @@ let _e = class extends p {
4175
4266
  stroke-linejoin="round"
4176
4267
  aria-hidden="true"
4177
4268
  >
4178
- ${j[Qr[this.variant]]}
4269
+ ${D[Qr[this.variant]]}
4179
4270
  </svg>
4180
4271
  <div class="content">
4181
4272
  <p class="heading">${this.heading ?? Jr[this.variant]}</p>
@@ -4185,7 +4276,7 @@ let _e = class extends p {
4185
4276
  `;
4186
4277
  }
4187
4278
  };
4188
- _e.styles = d`
4279
+ Ce.styles = d`
4189
4280
  :host {
4190
4281
  display: block;
4191
4282
  }
@@ -4270,40 +4361,40 @@ _e.styles = d`
4270
4361
  `;
4271
4362
  Ht([
4272
4363
  n()
4273
- ], _e.prototype, "variant", 2);
4364
+ ], Ce.prototype, "variant", 2);
4274
4365
  Ht([
4275
4366
  n()
4276
- ], _e.prototype, "heading", 2);
4277
- _e = Ht([
4367
+ ], Ce.prototype, "heading", 2);
4368
+ Ce = Ht([
4278
4369
  h("vox-callout")
4279
- ], _e);
4280
- var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, lt = (r, e, o, s) => {
4281
- for (var t = s > 1 ? void 0 : s ? ts(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4282
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4283
- return s && t && es(e, o, t), t;
4370
+ ], Ce);
4371
+ var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, lt = (o, e, r, s) => {
4372
+ for (var t = s > 1 ? void 0 : s ? ts(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4373
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4374
+ return s && t && es(e, r, t), t;
4284
4375
  };
4285
- let J = class extends p {
4376
+ let te = class extends p {
4286
4377
  constructor() {
4287
4378
  super(...arguments), this.heading = "", this.hasIcon = !1, this.hasBadge = !1, this.hasFooter = !1;
4288
4379
  }
4289
- handleIconSlotChange(r) {
4290
- const e = r.target;
4380
+ handleIconSlotChange(o) {
4381
+ const e = o.target;
4291
4382
  this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4292
4383
  }
4293
- handleBadgeSlotChange(r) {
4294
- const e = r.target;
4384
+ handleBadgeSlotChange(o) {
4385
+ const e = o.target;
4295
4386
  this.hasBadge = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4296
4387
  }
4297
- handleFooterSlotChange(r) {
4298
- const e = r.target;
4388
+ handleFooterSlotChange(o) {
4389
+ const e = o.target;
4299
4390
  this.hasFooter = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4300
4391
  }
4301
4392
  render() {
4302
- const r = c`
4393
+ const o = c`
4303
4394
  <div class="badge ${this.hasBadge ? "has-badge" : ""}">
4304
4395
  <slot name="badge" @slotchange=${this.handleBadgeSlotChange}></slot>
4305
4396
  </div>
4306
- <div class="icon ${this.hasIcon ? "has-icon" : ""}">
4397
+ <div class="icon ${this.hasIcon ? "has-icon" : ""}" aria-hidden="true">
4307
4398
  <slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
4308
4399
  </div>
4309
4400
  <h3 class="heading">${this.heading}</h3>
@@ -4312,10 +4403,10 @@ let J = class extends p {
4312
4403
  <slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
4313
4404
  </div>
4314
4405
  `;
4315
- return this.href !== void 0 ? c`<a class="card" href=${this.href} target=${this.target ?? x}>${r}</a>` : c`<div class="card">${r}</div>`;
4406
+ return this.href !== void 0 ? c`<a class="card" href=${this.href} target=${this.target ?? u}>${o}</a>` : c`<div class="card">${o}</div>`;
4316
4407
  }
4317
4408
  };
4318
- J.styles = d`
4409
+ te.styles = d`
4319
4410
  :host {
4320
4411
  display: block;
4321
4412
  }
@@ -4402,37 +4493,37 @@ J.styles = d`
4402
4493
  `;
4403
4494
  lt([
4404
4495
  n()
4405
- ], J.prototype, "heading", 2);
4496
+ ], te.prototype, "heading", 2);
4406
4497
  lt([
4407
4498
  n()
4408
- ], J.prototype, "href", 2);
4499
+ ], te.prototype, "href", 2);
4409
4500
  lt([
4410
4501
  n()
4411
- ], J.prototype, "target", 2);
4412
- J = lt([
4502
+ ], te.prototype, "target", 2);
4503
+ te = lt([
4413
4504
  h("vox-card")
4414
- ], J);
4415
- var os = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, fo = (r, e, o, s) => {
4416
- for (var t = s > 1 ? void 0 : s ? rs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4417
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4418
- return s && t && os(e, o, t), t;
4505
+ ], te);
4506
+ var os = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, fo = (o, e, r, s) => {
4507
+ for (var t = s > 1 ? void 0 : s ? rs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4508
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4509
+ return s && t && os(e, r, t), t;
4419
4510
  };
4420
- let Ye = class extends p {
4511
+ let Je = class extends p {
4421
4512
  constructor() {
4422
4513
  super(...arguments), this.heading = "", this.hasBody = !1, this.hasActions = !1;
4423
4514
  }
4424
- handleBodySlotChange(r) {
4425
- const e = r.target;
4515
+ handleBodySlotChange(o) {
4516
+ const e = o.target;
4426
4517
  this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4427
4518
  }
4428
- handleActionsSlotChange(r) {
4429
- const e = r.target;
4519
+ handleActionsSlotChange(o) {
4520
+ const e = o.target;
4430
4521
  this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4431
4522
  }
4432
4523
  render() {
4433
4524
  return c`
4434
4525
  <div class="band">
4435
- ${this.heading ? c`<h2 class="heading">${this.heading}</h2>` : x}
4526
+ ${this.heading ? c`<h2 class="heading">${this.heading}</h2>` : u}
4436
4527
  <div class="body ${this.hasBody ? "has-content" : ""}">
4437
4528
  <slot @slotchange=${this.handleBodySlotChange}></slot>
4438
4529
  </div>
@@ -4443,7 +4534,7 @@ let Ye = class extends p {
4443
4534
  `;
4444
4535
  }
4445
4536
  };
4446
- Ye.styles = d`
4537
+ Je.styles = d`
4447
4538
  :host {
4448
4539
  display: block;
4449
4540
  font-family: var(--vox-font-family-base);
@@ -4500,23 +4591,23 @@ Ye.styles = d`
4500
4591
  `;
4501
4592
  fo([
4502
4593
  n()
4503
- ], Ye.prototype, "heading", 2);
4504
- Ye = fo([
4594
+ ], Je.prototype, "heading", 2);
4595
+ Je = fo([
4505
4596
  h("vox-cta-band")
4506
- ], Ye);
4507
- var ss = Object.defineProperty, as = Object.getOwnPropertyDescriptor, go = (r, e, o, s) => {
4508
- for (var t = s > 1 ? void 0 : s ? as(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4509
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4510
- return s && t && ss(e, o, t), t;
4597
+ ], Je);
4598
+ var ss = Object.defineProperty, as = Object.getOwnPropertyDescriptor, go = (o, e, r, s) => {
4599
+ for (var t = s > 1 ? void 0 : s ? as(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4600
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4601
+ return s && t && ss(e, r, t), t;
4511
4602
  };
4512
- let Je = class extends p {
4603
+ let Qe = class extends p {
4513
4604
  constructor() {
4514
4605
  super(...arguments), this.heading = "";
4515
4606
  }
4516
4607
  render() {
4517
4608
  return c`
4518
4609
  <div class="empty">
4519
- <div class="icon"><slot name="icon"></slot></div>
4610
+ <div class="icon" aria-hidden="true"><slot name="icon"></slot></div>
4520
4611
  <h3 class="heading">${this.heading}</h3>
4521
4612
  <div class="body"><slot></slot></div>
4522
4613
  <div class="actions"><slot name="actions"></slot></div>
@@ -4524,7 +4615,7 @@ let Je = class extends p {
4524
4615
  `;
4525
4616
  }
4526
4617
  };
4527
- Je.styles = d`
4618
+ Qe.styles = d`
4528
4619
  :host {
4529
4620
  display: block;
4530
4621
  font-family: var(--vox-font-family-base);
@@ -4570,14 +4661,14 @@ Je.styles = d`
4570
4661
  `;
4571
4662
  go([
4572
4663
  n()
4573
- ], Je.prototype, "heading", 2);
4574
- Je = go([
4664
+ ], Qe.prototype, "heading", 2);
4665
+ Qe = go([
4575
4666
  h("vox-empty-state")
4576
- ], Je);
4577
- var is = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, zt = (r, e, o, s) => {
4578
- for (var t = s > 1 ? void 0 : s ? ns(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4579
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4580
- return s && t && is(e, o, t), t;
4667
+ ], Qe);
4668
+ var is = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, zt = (o, e, r, s) => {
4669
+ for (var t = s > 1 ? void 0 : s ? ns(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4670
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4671
+ return s && t && is(e, r, t), t;
4581
4672
  };
4582
4673
  let yt = class extends p {
4583
4674
  render() {
@@ -4622,7 +4713,7 @@ yt.styles = d`
4622
4713
  yt = zt([
4623
4714
  h("vox-footer")
4624
4715
  ], yt);
4625
- let Qe = class extends p {
4716
+ let et = class extends p {
4626
4717
  constructor() {
4627
4718
  super(...arguments), this.heading = "";
4628
4719
  }
@@ -4633,7 +4724,7 @@ let Qe = class extends p {
4633
4724
  `;
4634
4725
  }
4635
4726
  };
4636
- Qe.styles = d`
4727
+ et.styles = d`
4637
4728
  :host {
4638
4729
  display: block;
4639
4730
  font-family: var(--vox-font-family-base);
@@ -4667,16 +4758,16 @@ Qe.styles = d`
4667
4758
  `;
4668
4759
  zt([
4669
4760
  n()
4670
- ], Qe.prototype, "heading", 2);
4671
- Qe = zt([
4761
+ ], et.prototype, "heading", 2);
4762
+ et = zt([
4672
4763
  h("vox-footer-column")
4673
- ], Qe);
4674
- var ls = Object.defineProperty, cs = Object.getOwnPropertyDescriptor, ct = (r, e, o, s) => {
4675
- for (var t = s > 1 ? void 0 : s ? cs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4676
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4677
- return s && t && ls(e, o, t), t;
4764
+ ], et);
4765
+ var ls = Object.defineProperty, cs = Object.getOwnPropertyDescriptor, ct = (o, e, r, s) => {
4766
+ for (var t = s > 1 ? void 0 : s ? cs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4767
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4768
+ return s && t && ls(e, r, t), t;
4678
4769
  };
4679
- let Q = class extends p {
4770
+ let oe = class extends p {
4680
4771
  constructor() {
4681
4772
  super(...arguments), this.cols = 0, this.min = "240px", this.gap = "md";
4682
4773
  }
@@ -4687,7 +4778,7 @@ let Q = class extends p {
4687
4778
  return c`<slot></slot>`;
4688
4779
  }
4689
4780
  };
4690
- Q.styles = d`
4781
+ oe.styles = d`
4691
4782
  :host {
4692
4783
  display: grid;
4693
4784
  }
@@ -4706,33 +4797,33 @@ Q.styles = d`
4706
4797
  `;
4707
4798
  ct([
4708
4799
  n({ type: Number })
4709
- ], Q.prototype, "cols", 2);
4800
+ ], oe.prototype, "cols", 2);
4710
4801
  ct([
4711
4802
  n()
4712
- ], Q.prototype, "min", 2);
4803
+ ], oe.prototype, "min", 2);
4713
4804
  ct([
4714
4805
  n({ reflect: !0 })
4715
- ], Q.prototype, "gap", 2);
4716
- Q = ct([
4806
+ ], oe.prototype, "gap", 2);
4807
+ oe = ct([
4717
4808
  h("vox-grid")
4718
- ], Q);
4719
- var ds = Object.defineProperty, hs = Object.getOwnPropertyDescriptor, Tt = (r, e, o, s) => {
4720
- for (var t = s > 1 ? void 0 : s ? hs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4721
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4722
- return s && t && ds(e, o, t), t;
4809
+ ], oe);
4810
+ var ds = Object.defineProperty, hs = Object.getOwnPropertyDescriptor, Tt = (o, e, r, s) => {
4811
+ for (var t = s > 1 ? void 0 : s ? hs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4812
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4813
+ return s && t && ds(e, r, t), t;
4723
4814
  };
4724
- let Ce = class extends p {
4815
+ let Oe = class extends p {
4725
4816
  constructor() {
4726
4817
  super(...arguments), this.eyebrow = "", this.heading = "", this.hasActions = !1;
4727
4818
  }
4728
- handleActionsSlotChange(r) {
4729
- const e = r.target;
4819
+ handleActionsSlotChange(o) {
4820
+ const e = o.target;
4730
4821
  this.hasActions = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4731
4822
  }
4732
4823
  render() {
4733
4824
  return c`
4734
4825
  <header class="hero">
4735
- ${this.eyebrow ? c`<p class="eyebrow">${this.eyebrow}</p>` : x}
4826
+ ${this.eyebrow ? c`<p class="eyebrow">${this.eyebrow}</p>` : u}
4736
4827
  <h1 class="heading">${this.heading}</h1>
4737
4828
  <div class="body"><slot></slot></div>
4738
4829
  <div class="actions ${this.hasActions ? "has-content" : ""}">
@@ -4742,7 +4833,7 @@ let Ce = class extends p {
4742
4833
  `;
4743
4834
  }
4744
4835
  };
4745
- Ce.styles = d`
4836
+ Oe.styles = d`
4746
4837
  :host {
4747
4838
  display: block;
4748
4839
  font-family: var(--vox-font-family-base);
@@ -4801,17 +4892,17 @@ Ce.styles = d`
4801
4892
  `;
4802
4893
  Tt([
4803
4894
  n()
4804
- ], Ce.prototype, "eyebrow", 2);
4895
+ ], Oe.prototype, "eyebrow", 2);
4805
4896
  Tt([
4806
4897
  n()
4807
- ], Ce.prototype, "heading", 2);
4808
- Ce = Tt([
4898
+ ], Oe.prototype, "heading", 2);
4899
+ Oe = Tt([
4809
4900
  h("vox-hero")
4810
- ], Ce);
4811
- var ps = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, dt = (r, e, o, s) => {
4812
- for (var t = s > 1 ? void 0 : s ? vs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4813
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4814
- return s && t && ps(e, o, t), t;
4901
+ ], Oe);
4902
+ var ps = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, dt = (o, e, r, s) => {
4903
+ for (var t = s > 1 ? void 0 : s ? vs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
4904
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
4905
+ return s && t && ps(e, r, t), t;
4815
4906
  };
4816
4907
  let mt = class extends p {
4817
4908
  render() {
@@ -4828,19 +4919,19 @@ mt.styles = d`
4828
4919
  mt = dt([
4829
4920
  h("vox-link-hub")
4830
4921
  ], mt);
4831
- let Oe = class extends p {
4922
+ let Me = class extends p {
4832
4923
  constructor() {
4833
4924
  super(...arguments), this.href = "#", this.heading = "", this.hasIcon = !1;
4834
4925
  }
4835
- handleIconSlotChange(r) {
4836
- const e = r.target;
4926
+ handleIconSlotChange(o) {
4927
+ const e = o.target;
4837
4928
  this.hasIcon = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
4838
4929
  }
4839
4930
  render() {
4840
4931
  return c`
4841
4932
  <a href=${this.href}>
4842
4933
  <span class="heading">
4843
- <span class="icon ${this.hasIcon ? "has-icon" : ""}">
4934
+ <span class="icon ${this.hasIcon ? "has-icon" : ""}" aria-hidden="true">
4844
4935
  <slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
4845
4936
  </span>
4846
4937
  ${this.heading}
@@ -4854,7 +4945,7 @@ let Oe = class extends p {
4854
4945
  `;
4855
4946
  }
4856
4947
  };
4857
- Oe.styles = d`
4948
+ Me.styles = d`
4858
4949
  :host {
4859
4950
  display: block;
4860
4951
  font-family: var(--vox-font-family-base);
@@ -4917,19 +5008,19 @@ Oe.styles = d`
4917
5008
  `;
4918
5009
  dt([
4919
5010
  n()
4920
- ], Oe.prototype, "href", 2);
5011
+ ], Me.prototype, "href", 2);
4921
5012
  dt([
4922
5013
  n()
4923
- ], Oe.prototype, "heading", 2);
4924
- Oe = dt([
5014
+ ], Me.prototype, "heading", 2);
5015
+ Me = dt([
4925
5016
  h("vox-link-hub-item")
4926
- ], Oe);
4927
- var us = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, Bt = (r, e, o, s) => {
4928
- for (var t = s > 1 ? void 0 : s ? xs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
4929
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
4930
- return s && t && us(e, o, t), t;
5017
+ ], Me);
5018
+ var us = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, It = (o, e, r, s) => {
5019
+ for (var t = s > 1 ? void 0 : s ? xs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5020
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5021
+ return s && t && us(e, r, t), t;
4931
5022
  };
4932
- let Me = class extends p {
5023
+ let Pe = class extends p {
4933
5024
  constructor() {
4934
5025
  super(...arguments), this.size = "md", this.label = "Loading";
4935
5026
  }
@@ -4942,7 +5033,7 @@ let Me = class extends p {
4942
5033
  `;
4943
5034
  }
4944
5035
  };
4945
- Me.styles = d`
5036
+ Pe.styles = d`
4946
5037
  :host {
4947
5038
  display: inline-block;
4948
5039
  }
@@ -4995,21 +5086,21 @@ Me.styles = d`
4995
5086
  white-space: nowrap;
4996
5087
  }
4997
5088
  `;
4998
- Bt([
5089
+ It([
4999
5090
  n({ reflect: !0 })
5000
- ], Me.prototype, "size", 2);
5001
- Bt([
5091
+ ], Pe.prototype, "size", 2);
5092
+ It([
5002
5093
  n()
5003
- ], Me.prototype, "label", 2);
5004
- Me = Bt([
5094
+ ], Pe.prototype, "label", 2);
5095
+ Pe = It([
5005
5096
  h("vox-loader")
5006
- ], Me);
5007
- var fs = Object.defineProperty, gs = Object.getOwnPropertyDescriptor, bo = (r, e, o, s) => {
5008
- for (var t = s > 1 ? void 0 : s ? gs(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5009
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5010
- return s && t && fs(e, o, t), t;
5097
+ ], Pe);
5098
+ var fs = Object.defineProperty, gs = Object.getOwnPropertyDescriptor, bo = (o, e, r, s) => {
5099
+ for (var t = s > 1 ? void 0 : s ? gs(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5100
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5101
+ return s && t && fs(e, r, t), t;
5011
5102
  };
5012
- let et = class extends p {
5103
+ let tt = class extends p {
5013
5104
  constructor() {
5014
5105
  super(...arguments), this.label = "Pagination";
5015
5106
  }
@@ -5021,7 +5112,7 @@ let et = class extends p {
5021
5112
  `;
5022
5113
  }
5023
5114
  };
5024
- et.styles = d`
5115
+ tt.styles = d`
5025
5116
  :host {
5026
5117
  display: block;
5027
5118
  font-family: var(--vox-font-family-base);
@@ -5033,7 +5124,8 @@ et.styles = d`
5033
5124
  flex-wrap: wrap;
5034
5125
  }
5035
5126
 
5036
- ::slotted(a) {
5127
+ ::slotted(a),
5128
+ ::slotted(span) {
5037
5129
  display: inline-flex;
5038
5130
  align-items: center;
5039
5131
  justify-content: center;
@@ -5055,7 +5147,7 @@ et.styles = d`
5055
5147
  background-color: var(--vox-color-brand-soft);
5056
5148
  }
5057
5149
 
5058
- ::slotted(a[aria-current='page']) {
5150
+ ::slotted([aria-current='page']) {
5059
5151
  background-color: var(--vox-color-brand-3);
5060
5152
  color: var(--vox-color-text-inverse);
5061
5153
  font-weight: 600;
@@ -5063,16 +5155,16 @@ et.styles = d`
5063
5155
  `;
5064
5156
  bo([
5065
5157
  n()
5066
- ], et.prototype, "label", 2);
5067
- et = bo([
5158
+ ], tt.prototype, "label", 2);
5159
+ tt = bo([
5068
5160
  h("vox-pagination")
5069
- ], et);
5070
- var bs = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, Nt = (r, e, o, s) => {
5071
- for (var t = s > 1 ? void 0 : s ? ys(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5072
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5073
- return s && t && bs(e, o, t), t;
5161
+ ], tt);
5162
+ var bs = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, Bt = (o, e, r, s) => {
5163
+ for (var t = s > 1 ? void 0 : s ? ys(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5164
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5165
+ return s && t && bs(e, r, t), t;
5074
5166
  };
5075
- let Pe = class extends p {
5167
+ let Ae = class extends p {
5076
5168
  constructor() {
5077
5169
  super(...arguments), this.attribution = "", this.detail = "";
5078
5170
  }
@@ -5083,14 +5175,14 @@ let Pe = class extends p {
5083
5175
  ${this.attribution ? c`
5084
5176
  <footer>
5085
5177
  <span class="attribution">${this.attribution}</span>
5086
- ${this.detail ? c`<span class="detail"> — ${this.detail}</span>` : x}
5178
+ ${this.detail ? c`<span class="detail"> — ${this.detail}</span>` : u}
5087
5179
  </footer>
5088
- ` : x}
5180
+ ` : u}
5089
5181
  </blockquote>
5090
5182
  `;
5091
5183
  }
5092
5184
  };
5093
- Pe.styles = d`
5185
+ Ae.styles = d`
5094
5186
  :host {
5095
5187
  display: block;
5096
5188
  font-family: var(--vox-font-family-base);
@@ -5132,26 +5224,26 @@ Pe.styles = d`
5132
5224
  color: var(--vox-color-text-2);
5133
5225
  }
5134
5226
  `;
5135
- Nt([
5227
+ Bt([
5136
5228
  n()
5137
- ], Pe.prototype, "attribution", 2);
5138
- Nt([
5229
+ ], Ae.prototype, "attribution", 2);
5230
+ Bt([
5139
5231
  n()
5140
- ], Pe.prototype, "detail", 2);
5141
- Pe = Nt([
5232
+ ], Ae.prototype, "detail", 2);
5233
+ Ae = Bt([
5142
5234
  h("vox-quote")
5143
- ], Pe);
5144
- var ms = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, I = (r, e, o, s) => {
5145
- for (var t = s > 1 ? void 0 : s ? $s(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5146
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5147
- return s && t && ms(e, o, t), t;
5235
+ ], Ae);
5236
+ var ms = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, K = (o, e, r, s) => {
5237
+ for (var t = s > 1 ? void 0 : s ? $s(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5238
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5239
+ return s && t && ms(e, r, t), t;
5148
5240
  };
5149
- let tt = class extends p {
5241
+ let ot = class extends p {
5150
5242
  constructor() {
5151
5243
  super(...arguments), this.heading = "", this.hasDescription = !1;
5152
5244
  }
5153
- handleDescriptionSlotChange(r) {
5154
- const e = r.target;
5245
+ handleDescriptionSlotChange(o) {
5246
+ const e = o.target;
5155
5247
  this.hasDescription = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
5156
5248
  }
5157
5249
  render() {
@@ -5169,7 +5261,7 @@ let tt = class extends p {
5169
5261
  `;
5170
5262
  }
5171
5263
  };
5172
- tt.styles = d`
5264
+ ot.styles = d`
5173
5265
  :host {
5174
5266
  display: block;
5175
5267
  font-family: var(--vox-font-family-base);
@@ -5201,24 +5293,24 @@ tt.styles = d`
5201
5293
  margin-top: var(--vox-space-6);
5202
5294
  }
5203
5295
  `;
5204
- I([
5296
+ K([
5205
5297
  n()
5206
- ], tt.prototype, "heading", 2);
5207
- tt = I([
5298
+ ], ot.prototype, "heading", 2);
5299
+ ot = K([
5208
5300
  h("vox-sponsor-tier")
5209
- ], tt);
5210
- let N = class extends p {
5301
+ ], ot);
5302
+ let q = class extends p {
5211
5303
  constructor() {
5212
5304
  super(...arguments), this.name = "", this.hasBody = !1;
5213
5305
  }
5214
- handleBodySlotChange(r) {
5215
- const e = r.target;
5306
+ handleBodySlotChange(o) {
5307
+ const e = o.target;
5216
5308
  this.hasBody = e.assignedNodes({ flatten: !0 }).length > 0, this.requestUpdate();
5217
5309
  }
5218
5310
  render() {
5219
- const r = c`
5311
+ const o = c`
5220
5312
  <div class="logo ${this.logo ? "has-logo" : ""}">
5221
- ${this.logo ? c`<img src=${this.logo} alt=${this.name} />` : x}
5313
+ ${this.logo ? c`<img src=${this.logo} alt=${this.name} />` : u}
5222
5314
  </div>
5223
5315
  <span class="name">${this.name}</span>
5224
5316
  <div class="body ${this.hasBody ? "has-content" : ""}">
@@ -5228,12 +5320,12 @@ let N = class extends p {
5228
5320
  return this.href !== void 0 ? c`<a
5229
5321
  class="sponsor"
5230
5322
  href=${this.href}
5231
- target=${this.target ?? x}
5232
- >${r}</a
5233
- >` : c`<div class="sponsor">${r}</div>`;
5323
+ target=${this.target ?? u}
5324
+ >${o}</a
5325
+ >` : c`<div class="sponsor">${o}</div>`;
5234
5326
  }
5235
5327
  };
5236
- N.styles = d`
5328
+ q.styles = d`
5237
5329
  :host {
5238
5330
  display: block;
5239
5331
  }
@@ -5299,27 +5391,27 @@ N.styles = d`
5299
5391
  display: none;
5300
5392
  }
5301
5393
  `;
5302
- I([
5394
+ K([
5303
5395
  n()
5304
- ], N.prototype, "name", 2);
5305
- I([
5396
+ ], q.prototype, "name", 2);
5397
+ K([
5306
5398
  n()
5307
- ], N.prototype, "href", 2);
5308
- I([
5399
+ ], q.prototype, "href", 2);
5400
+ K([
5309
5401
  n()
5310
- ], N.prototype, "logo", 2);
5311
- I([
5402
+ ], q.prototype, "logo", 2);
5403
+ K([
5312
5404
  n()
5313
- ], N.prototype, "target", 2);
5314
- N = I([
5405
+ ], q.prototype, "target", 2);
5406
+ q = K([
5315
5407
  h("vox-sponsor")
5316
- ], N);
5317
- var ws = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Rt = (r, e, o, s) => {
5318
- for (var t = s > 1 ? void 0 : s ? _s(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5319
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5320
- return s && t && ws(e, o, t), t;
5408
+ ], q);
5409
+ var ws = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Nt = (o, e, r, s) => {
5410
+ for (var t = s > 1 ? void 0 : s ? _s(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5411
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5412
+ return s && t && ws(e, r, t), t;
5321
5413
  };
5322
- let Ae = class extends p {
5414
+ let ke = class extends p {
5323
5415
  constructor() {
5324
5416
  super(...arguments), this.value = "", this.label = "";
5325
5417
  }
@@ -5331,7 +5423,7 @@ let Ae = class extends p {
5331
5423
  `;
5332
5424
  }
5333
5425
  };
5334
- Ae.styles = d`
5426
+ ke.styles = d`
5335
5427
  :host {
5336
5428
  display: block;
5337
5429
  font-family: var(--vox-font-family-base);
@@ -5358,24 +5450,24 @@ Ae.styles = d`
5358
5450
  color: var(--vox-color-text-2);
5359
5451
  }
5360
5452
  `;
5361
- Rt([
5453
+ Nt([
5362
5454
  n()
5363
- ], Ae.prototype, "value", 2);
5364
- Rt([
5455
+ ], ke.prototype, "value", 2);
5456
+ Nt([
5365
5457
  n()
5366
- ], Ae.prototype, "label", 2);
5367
- Ae = Rt([
5458
+ ], ke.prototype, "label", 2);
5459
+ ke = Nt([
5368
5460
  h("vox-stat")
5369
- ], Ae);
5370
- var Cs = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, Ne = (r, e, o, s) => {
5371
- for (var t = s > 1 ? void 0 : s ? Os(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5372
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5373
- return s && t && Cs(e, o, t), t;
5461
+ ], ke);
5462
+ var Cs = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, Ne = (o, e, r, s) => {
5463
+ for (var t = s > 1 ? void 0 : s ? Os(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5464
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5465
+ return s && t && Cs(e, r, t), t;
5374
5466
  };
5375
5467
  let $t = class extends p {
5376
5468
  numberSteps() {
5377
- this.querySelectorAll("vox-step").forEach((r, e) => {
5378
- r.number = e + 1;
5469
+ this.querySelectorAll("vox-step").forEach((o, e) => {
5470
+ o.number = e + 1;
5379
5471
  });
5380
5472
  }
5381
5473
  render() {
@@ -5403,7 +5495,7 @@ $t.styles = d`
5403
5495
  $t = Ne([
5404
5496
  h("vox-step-indicator")
5405
5497
  ], $t);
5406
- let ee = class extends p {
5498
+ let re = class extends p {
5407
5499
  constructor() {
5408
5500
  super(...arguments), this.label = "", this.state = "upcoming", this.number = 1;
5409
5501
  }
@@ -5419,12 +5511,15 @@ let ee = class extends p {
5419
5511
  <path d="m4 12 5 5L20 6" />
5420
5512
  </svg>` : this.number}
5421
5513
  </span>
5422
- <span class="label">${this.label}</span>
5514
+ <span class="label">
5515
+ ${this.label}
5516
+ ${this.state !== "current" ? c`<span class="visually-hidden"> (${this.state})</span>` : u}
5517
+ </span>
5423
5518
  </div>
5424
5519
  `;
5425
5520
  }
5426
5521
  };
5427
- ee.styles = d`
5522
+ re.styles = d`
5428
5523
  :host {
5429
5524
  display: block;
5430
5525
  font-family: var(--vox-font-family-base);
@@ -5497,23 +5592,32 @@ ee.styles = d`
5497
5592
  font-weight: 600;
5498
5593
  color: var(--vox-color-text-1);
5499
5594
  }
5595
+
5596
+ .visually-hidden {
5597
+ position: absolute;
5598
+ width: 1px;
5599
+ height: 1px;
5600
+ overflow: hidden;
5601
+ clip: rect(0 0 0 0);
5602
+ white-space: nowrap;
5603
+ }
5500
5604
  `;
5501
5605
  Ne([
5502
5606
  n()
5503
- ], ee.prototype, "label", 2);
5607
+ ], re.prototype, "label", 2);
5504
5608
  Ne([
5505
5609
  n({ reflect: !0 })
5506
- ], ee.prototype, "state", 2);
5610
+ ], re.prototype, "state", 2);
5507
5611
  Ne([
5508
5612
  n({ type: Number })
5509
- ], ee.prototype, "number", 2);
5510
- ee = Ne([
5613
+ ], re.prototype, "number", 2);
5614
+ re = Ne([
5511
5615
  h("vox-step")
5512
- ], ee);
5513
- var Ms = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, ht = (r, e, o, s) => {
5514
- for (var t = s > 1 ? void 0 : s ? Ps(e, o) : e, a = r.length - 1, i; a >= 0; a--)
5515
- (i = r[a]) && (t = (s ? i(e, o, t) : i(t)) || t);
5516
- return s && t && Ms(e, o, t), t;
5616
+ ], re);
5617
+ var Ms = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, ht = (o, e, r, s) => {
5618
+ for (var t = s > 1 ? void 0 : s ? Ps(e, r) : e, a = o.length - 1, i; a >= 0; a--)
5619
+ (i = o[a]) && (t = (s ? i(e, r, t) : i(t)) || t);
5620
+ return s && t && Ms(e, r, t), t;
5517
5621
  };
5518
5622
  let wt = class extends p {
5519
5623
  render() {
@@ -5528,7 +5632,7 @@ wt.styles = d`
5528
5632
  wt = ht([
5529
5633
  h("vox-timeline")
5530
5634
  ], wt);
5531
- let ke = class extends p {
5635
+ let Le = class extends p {
5532
5636
  constructor() {
5533
5637
  super(...arguments), this.heading = "", this.date = "";
5534
5638
  }
@@ -5536,14 +5640,14 @@ let ke = class extends p {
5536
5640
  return c`
5537
5641
  <div class="item">
5538
5642
  <span class="dot" aria-hidden="true"></span>
5539
- ${this.date ? c`<div class="date">${this.date}</div>` : x}
5643
+ ${this.date ? c`<div class="date">${this.date}</div>` : u}
5540
5644
  <h3 class="heading">${this.heading}</h3>
5541
5645
  <div class="body"><slot></slot></div>
5542
5646
  </div>
5543
5647
  `;
5544
5648
  }
5545
5649
  };
5546
- ke.styles = d`
5650
+ Le.styles = d`
5547
5651
  :host {
5548
5652
  display: block;
5549
5653
  font-family: var(--vox-font-family-base);
@@ -5595,67 +5699,67 @@ ke.styles = d`
5595
5699
  `;
5596
5700
  ht([
5597
5701
  n()
5598
- ], ke.prototype, "heading", 2);
5702
+ ], Le.prototype, "heading", 2);
5599
5703
  ht([
5600
5704
  n()
5601
- ], ke.prototype, "date", 2);
5602
- ke = ht([
5705
+ ], Le.prototype, "date", 2);
5706
+ Le = ht([
5603
5707
  h("vox-timeline-item")
5604
- ], ke);
5708
+ ], Le);
5605
5709
  export {
5606
- We as VoxAccordion,
5607
- $e as VoxAccordionItem,
5608
- B as VoxAlert,
5609
- H as VoxAvatar,
5610
- Xe as VoxBadge,
5611
- ve as VoxBillboard,
5710
+ Xe as VoxAccordion,
5711
+ R as VoxAccordionItem,
5712
+ U as VoxAlert,
5713
+ z as VoxAvatar,
5714
+ Ye as VoxBadge,
5715
+ ge as VoxBillboard,
5612
5716
  gt as VoxBreadcrumbs,
5613
- _ as VoxButton,
5614
- we as VoxCalendarTile,
5615
- _e as VoxCallout,
5616
- J as VoxCard,
5617
- de as VoxCheckbox,
5618
- ce as VoxCta,
5619
- Ye as VoxCtaBand,
5620
- T as VoxDialog,
5621
- ye as VoxDisclosure,
5622
- me as VoxDropdown,
5623
- Je as VoxEmptyState,
5624
- P as VoxFileInput,
5717
+ C as VoxButton,
5718
+ _e as VoxCalendarTile,
5719
+ Ce as VoxCallout,
5720
+ te as VoxCard,
5721
+ ue as VoxCheckbox,
5722
+ ve as VoxCta,
5723
+ Je as VoxCtaBand,
5724
+ B as VoxDialog,
5725
+ N as VoxDisclosure,
5726
+ we as VoxDropdown,
5727
+ Qe as VoxEmptyState,
5728
+ A as VoxFileInput,
5625
5729
  yt as VoxFooter,
5626
- Qe as VoxFooterColumn,
5627
- Q as VoxGrid,
5628
- X as VoxHeader,
5629
- Ce as VoxHero,
5630
- G as VoxIcon,
5631
- A as VoxInput,
5730
+ et as VoxFooterColumn,
5731
+ oe as VoxGrid,
5732
+ Q as VoxHeader,
5733
+ Oe as VoxHero,
5734
+ Y as VoxIcon,
5735
+ k as VoxInput,
5632
5736
  ft as VoxInputGroup,
5633
5737
  mt as VoxLinkHub,
5634
- Oe as VoxLinkHubItem,
5635
- Me as VoxLoader,
5636
- et as VoxPagination,
5637
- Pe as VoxQuote,
5638
- W as VoxRadio,
5639
- Ze as VoxRadioGroup,
5640
- he as VoxSelect,
5641
- z as VoxSeriesNav,
5642
- Y as VoxSidenav,
5643
- ue as VoxSidenavGroup,
5644
- xe as VoxSidenavItem,
5645
- N as VoxSponsor,
5646
- tt as VoxSponsorTier,
5647
- Ae as VoxStat,
5648
- ee as VoxStep,
5738
+ Me as VoxLinkHubItem,
5739
+ Pe as VoxLoader,
5740
+ tt as VoxPagination,
5741
+ Ae as VoxQuote,
5742
+ J as VoxRadio,
5743
+ Ke as VoxRadioGroup,
5744
+ xe as VoxSelect,
5745
+ T as VoxSeriesNav,
5746
+ ee as VoxSidenav,
5747
+ I as VoxSidenavGroup,
5748
+ be as VoxSidenavItem,
5749
+ q as VoxSponsor,
5750
+ ot as VoxSponsorTier,
5751
+ ke as VoxStat,
5752
+ re as VoxStep,
5649
5753
  $t as VoxStepIndicator,
5650
- Ke as VoxSubnav,
5651
- pe as VoxSwitch,
5652
- fe as VoxTab,
5653
- ge as VoxTabPanel,
5754
+ Ge as VoxSubnav,
5755
+ fe as VoxSwitch,
5756
+ ye as VoxTab,
5757
+ me as VoxTabPanel,
5654
5758
  bt as VoxTabs,
5655
- D as VoxTextarea,
5656
- K as VoxThemeToggle,
5759
+ H as VoxTextarea,
5760
+ X as VoxThemeToggle,
5657
5761
  wt as VoxTimeline,
5658
- ke as VoxTimelineItem,
5659
- Ge as VoxToc,
5660
- be as VoxTocItem
5762
+ Le as VoxTimelineItem,
5763
+ We as VoxToc,
5764
+ $e as VoxTocItem
5661
5765
  };