@duyluonganduin/acl-web-components 0.0.66 → 0.0.68

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.
@@ -3,8 +3,8 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const $2 = globalThis, N5 = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j5 = Symbol(), y4 = /* @__PURE__ */ new WeakMap();
7
- let o3 = class {
6
+ const $2 = globalThis, N5 = $2.ShadowRoot && ($2.ShadyCSS === void 0 || $2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j5 = Symbol(), _t = /* @__PURE__ */ new WeakMap();
7
+ let o4 = class {
8
8
  constructor(e, t, o) {
9
9
  if (this._$cssResult$ = !0, o !== j5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = e, this.t = t;
@@ -14,7 +14,7 @@ let o3 = class {
14
14
  const t = this.t;
15
15
  if (N5 && e === void 0) {
16
16
  const o = t !== void 0 && t.length === 1;
17
- o && (e = y4.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && y4.set(t, e));
17
+ o && (e = _t.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && _t.set(t, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,33 +22,33 @@ let o3 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const n3 = (r) => new o3(typeof r == "string" ? r : r + "", void 0, j5), g = (r, ...e) => {
25
+ const n4 = (r) => new o4(typeof r == "string" ? r : r + "", void 0, j5), g = (r, ...e) => {
26
26
  const t = r.length === 1 ? r[0] : e.reduce((o, i, n) => o + ((l) => {
27
27
  if (l._$cssResult$ === !0) return l.cssText;
28
28
  if (typeof l == "number") return l;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(i) + r[n + 1], r[0]);
31
- return new o3(t, r, j5);
32
- }, S3 = (r, e) => {
31
+ return new o4(t, r, j5);
32
+ }, S4 = (r, e) => {
33
33
  if (N5) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
34
  else for (const t of e) {
35
35
  const o = document.createElement("style"), i = $2.litNonce;
36
36
  i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
37
37
  }
38
- }, L4 = N5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
38
+ }, Lt = N5 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const o of e.cssRules) t += o.cssText;
41
- return n3(t);
41
+ return n4(t);
42
42
  })(r) : r;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: I3 } = Object, h1 = globalThis, V4 = h1.trustedTypes, O3 = V4 ? V4.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
48
+ const { is: A4, defineProperty: D4, getOwnPropertyDescriptor: P4, getOwnPropertyNames: B4, getOwnPropertySymbols: T4, getPrototypeOf: F4 } = Object, h1 = globalThis, Vt = h1.trustedTypes, I4 = Vt ? Vt.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- r = r ? O3 : null;
51
+ r = r ? I4 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,23 +73,23 @@ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, U5 = (r, e) => !A3(r, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
76
+ } }, U5 = (r, e) => !A4(r, e), xt = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h1.litPropertyMetadata ?? (h1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let I1 = class extends HTMLElement {
78
+ let F1 = 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, t = x4) {
85
+ static createProperty(e, t = xt) {
86
86
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
87
87
  const o = Symbol(), i = this.getPropertyDescriptor(e, o, t);
88
- i !== void 0 && D3(this.prototype, e, i);
88
+ i !== void 0 && D4(this.prototype, e, i);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, o) {
92
- const { get: i, set: n } = P3(this.prototype, e) ?? { get() {
92
+ const { get: i, set: n } = P4(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
94
  }, set(l) {
95
95
  this[t] = l;
@@ -100,17 +100,17 @@ let I1 = class extends HTMLElement {
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
103
- return this.elementProperties.get(e) ?? x4;
103
+ return this.elementProperties.get(e) ?? xt;
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(s2("elementProperties"))) return;
107
- const e = I3(this);
107
+ const e = F4(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
111
  if (this.hasOwnProperty(s2("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(s2("properties"))) {
113
- const t = this.properties, o = [...B3(t), ...F3(t)];
113
+ const t = this.properties, o = [...B4(t), ...T4(t)];
114
114
  for (const i of o) this.createProperty(i, t[i]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let I1 = class extends HTMLElement {
129
129
  const t = [];
130
130
  if (Array.isArray(e)) {
131
131
  const o = new Set(e.flat(1 / 0).reverse());
132
- for (const i of o) t.unshift(L4(i));
133
- } else e !== void 0 && t.push(L4(e));
132
+ for (const i of o) t.unshift(Lt(i));
133
+ } else e !== void 0 && t.push(Lt(e));
134
134
  return t;
135
135
  }
136
136
  static _$Eu(e, t) {
@@ -159,7 +159,7 @@ let I1 = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return S3(e, this.constructor.elementStyles), e;
162
+ return S4(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
@@ -278,48 +278,48 @@ let I1 = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- I1.elementStyles = [], I1.shadowRootOptions = { mode: "open" }, I1[s2("elementProperties")] = /* @__PURE__ */ new Map(), I1[s2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: I1 }), (h1.reactiveElementVersions ?? (h1.reactiveElementVersions = [])).push("2.1.2");
281
+ F1.elementStyles = [], F1.shadowRootOptions = { mode: "open" }, F1[s2("elementProperties")] = /* @__PURE__ */ new Map(), F1[s2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: F1 }), (h1.reactiveElementVersions ?? (h1.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 a2 = globalThis, w4 = (r) => r, z2 = a2.trustedTypes, M4 = z2 ? z2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, r3 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l3 = "?" + p1, T3 = `<${l3}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (r) => r === null || typeof r != "object" && typeof r != "function", G5 = Array.isArray, N3 = (r) => G5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", q2 = `[
288
- \f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z4 = /-->/g, k4 = />/g, V1 = RegExp(`>|${q2}(?:([^\\s"'>=/]+)(${q2}*=${q2}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), R4 = /'/g, $4 = /"/g, s3 = /^(?:script|style|textarea|title)$/i, a3 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), a = a3(1), u2 = a3(2), R1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), E4 = /* @__PURE__ */ new WeakMap(), w1 = k1.createTreeWalker(k1, 129);
290
- function d3(r, e) {
287
+ const a2 = globalThis, wt = (r) => r, z2 = a2.trustedTypes, Mt = z2 ? z2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, r4 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l4 = "?" + p1, O4 = `<${l4}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (r) => r === null || typeof r != "object" && typeof r != "function", G5 = Array.isArray, N4 = (r) => G5(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", q2 = `[
288
+ \f\r]`, e2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zt = /-->/g, kt = />/g, V1 = RegExp(`>|${q2}(?:([^\\s"'>=/]+)(${q2}*=${q2}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, $t = /"/g, s4 = /^(?:script|style|textarea|title)$/i, a4 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), a = a4(1), u2 = a4(2), R1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Et = /* @__PURE__ */ new WeakMap(), w1 = k1.createTreeWalker(k1, 129);
290
+ function d4(r, e) {
291
291
  if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
- return M4 !== void 0 ? M4.createHTML(e) : e;
292
+ return Mt !== void 0 ? Mt.createHTML(e) : e;
293
293
  }
294
- const j3 = (r, e) => {
294
+ const j4 = (r, e) => {
295
295
  const t = r.length - 1, o = [];
296
296
  let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
297
297
  for (let d = 0; d < t; d++) {
298
298
  const c = r[d];
299
299
  let C, p, f = -1, H = 0;
300
- for (; H < c.length && (l.lastIndex = H, p = l.exec(c), p !== null); ) H = l.lastIndex, l === e2 ? p[1] === "!--" ? l = Z4 : p[1] !== void 0 ? l = k4 : p[2] !== void 0 ? (s3.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = V1) : p[3] !== void 0 && (l = V1) : l === V1 ? p[0] === ">" ? (l = i ?? e2, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? V1 : p[3] === '"' ? $4 : R4) : l === $4 || l === R4 ? l = V1 : l === Z4 || l === k4 ? l = e2 : (l = V1, i = void 0);
300
+ for (; H < c.length && (l.lastIndex = H, p = l.exec(c), p !== null); ) H = l.lastIndex, l === e2 ? p[1] === "!--" ? l = Zt : p[1] !== void 0 ? l = kt : p[2] !== void 0 ? (s4.test(p[2]) && (i = RegExp("</" + p[2], "g")), l = V1) : p[3] !== void 0 && (l = V1) : l === V1 ? p[0] === ">" ? (l = i ?? e2, f = -1) : p[1] === void 0 ? f = -2 : (f = l.lastIndex - p[2].length, C = p[1], l = p[3] === void 0 ? V1 : p[3] === '"' ? $t : Rt) : l === $t || l === Rt ? l = V1 : l === Zt || l === kt ? l = e2 : (l = V1, i = void 0);
301
301
  const m = l === V1 && r[d + 1].startsWith("/>") ? " " : "";
302
- n += l === e2 ? c + T3 : f >= 0 ? (o.push(C), c.slice(0, f) + r3 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
302
+ n += l === e2 ? c + O4 : f >= 0 ? (o.push(C), c.slice(0, f) + r4 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
303
303
  }
304
- return [d3(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
304
+ return [d4(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
305
305
  };
306
306
  class p2 {
307
307
  constructor({ strings: e, _$litType$: t }, o) {
308
308
  let i;
309
309
  this.parts = [];
310
310
  let n = 0, l = 0;
311
- const d = e.length - 1, c = this.parts, [C, p] = j3(e, t);
311
+ const d = e.length - 1, c = this.parts, [C, p] = j4(e, t);
312
312
  if (this.el = p2.createElement(C, o), w1.currentNode = this.el.content, t === 2 || t === 3) {
313
313
  const f = this.el.content.firstChild;
314
314
  f.replaceWith(...f.childNodes);
315
315
  }
316
316
  for (; (i = w1.nextNode()) !== null && c.length < d; ) {
317
317
  if (i.nodeType === 1) {
318
- if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(r3)) {
318
+ if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(r4)) {
319
319
  const H = p[l++], m = i.getAttribute(f).split(p1), V = /([.?@])?(.*)/.exec(H);
320
- c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? G3 : V[1] === "?" ? K3 : V[1] === "@" ? W3 : K2 }), i.removeAttribute(f);
320
+ c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? G4 : V[1] === "?" ? K4 : V[1] === "@" ? W4 : K2 }), i.removeAttribute(f);
321
321
  } else f.startsWith(p1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
322
- if (s3.test(i.tagName)) {
322
+ if (s4.test(i.tagName)) {
323
323
  const f = i.textContent.split(p1), H = f.length - 1;
324
324
  if (H > 0) {
325
325
  i.textContent = z2 ? z2.emptyScript : "";
@@ -327,7 +327,7 @@ class p2 {
327
327
  i.append(f[H], c2());
328
328
  }
329
329
  }
330
- } else if (i.nodeType === 8) if (i.data === l3) c.push({ type: 2, index: n });
330
+ } else if (i.nodeType === 8) if (i.data === l4) c.push({ type: 2, index: n });
331
331
  else {
332
332
  let f = -1;
333
333
  for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += p1.length - 1;
@@ -340,14 +340,14 @@ class p2 {
340
340
  return o.innerHTML = e, o;
341
341
  }
342
342
  }
343
- function T1(r, e, t = r, o) {
343
+ function O1(r, e, t = r, o) {
344
344
  var l, d;
345
345
  if (e === R1) return e;
346
346
  let i = o !== void 0 ? (l = t._$Co) == null ? void 0 : l[o] : t._$Cl;
347
347
  const n = C2(e) ? void 0 : e._$litDirective$;
348
- return (i == null ? void 0 : i.constructor) !== n && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = T1(r, i._$AS(r, e.values), i, o)), e;
348
+ return (i == null ? void 0 : i.constructor) !== n && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = O1(r, i._$AS(r, e.values), i, o)), e;
349
349
  }
350
- class U3 {
350
+ class U4 {
351
351
  constructor(e, t) {
352
352
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
353
353
  }
@@ -364,7 +364,7 @@ class U3 {
364
364
  for (; c !== void 0; ) {
365
365
  if (l === c.index) {
366
366
  let C;
367
- c.type === 2 ? C = new k2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Y3(n, this, e)), this._$AV.push(C), c = o[++d];
367
+ c.type === 2 ? C = new k2(n, n.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, e) : c.type === 6 && (C = new Y4(n, this, e)), this._$AV.push(C), c = o[++d];
368
368
  }
369
369
  l !== (c == null ? void 0 : c.index) && (n = w1.nextNode(), l++);
370
370
  }
@@ -395,7 +395,7 @@ class k2 {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(e, t = this) {
398
- e = T1(this, e, t), C2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== R1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : N3(e) ? this.k(e) : this._(e);
398
+ e = O1(this, e, t), C2(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== R1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : N4(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -408,16 +408,16 @@ class k2 {
408
408
  }
409
409
  $(e) {
410
410
  var n;
411
- const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = p2.createElement(d3(o.h, o.h[0]), this.options)), o);
411
+ const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = p2.createElement(d4(o.h, o.h[0]), this.options)), o);
412
412
  if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(t);
413
413
  else {
414
- const l = new U3(i, this), d = l.u(this.options);
414
+ const l = new U4(i, this), d = l.u(this.options);
415
415
  l.p(t), this.T(d), this._$AH = l;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let t = E4.get(e.strings);
420
- return t === void 0 && E4.set(e.strings, t = new p2(e)), t;
419
+ let t = Et.get(e.strings);
420
+ return t === void 0 && Et.set(e.strings, t = new p2(e)), t;
421
421
  }
422
422
  k(e) {
423
423
  G5(this._$AH) || (this._$AH = [], this._$AR());
@@ -429,8 +429,8 @@ class k2 {
429
429
  _$AR(e = this._$AA.nextSibling, t) {
430
430
  var o;
431
431
  for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, t); e !== this._$AB; ) {
432
- const i = w4(e).nextSibling;
433
- w4(e).remove(), e = i;
432
+ const i = wt(e).nextSibling;
433
+ wt(e).remove(), e = i;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
@@ -451,11 +451,11 @@ class K2 {
451
451
  _$AI(e, t = this, o, i) {
452
452
  const n = this.strings;
453
453
  let l = !1;
454
- if (n === void 0) e = T1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
454
+ if (n === void 0) e = O1(this, e, t, 0), l = !C2(e) || e !== this._$AH && e !== R1, l && (this._$AH = e);
455
455
  else {
456
456
  const d = e;
457
457
  let c, C;
458
- for (e = n[0], c = 0; c < n.length - 1; c++) C = T1(this, d[o + c], t, c), C === R1 && (C = this._$AH[c]), l || (l = !C2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
458
+ for (e = n[0], c = 0; c < n.length - 1; c++) C = O1(this, d[o + c], t, c), C === R1 && (C = this._$AH[c]), l || (l = !C2(C) || C !== this._$AH[c]), C === u ? e = u : e !== u && (e += (C ?? "") + n[c + 1]), this._$AH[c] = C;
459
459
  }
460
460
  l && !i && this.j(e);
461
461
  }
@@ -463,7 +463,7 @@ class K2 {
463
463
  e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class G3 extends K2 {
466
+ class G4 extends K2 {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
@@ -471,7 +471,7 @@ class G3 extends K2 {
471
471
  this.element[this.name] = e === u ? void 0 : e;
472
472
  }
473
473
  }
474
- class K3 extends K2 {
474
+ class K4 extends K2 {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
@@ -479,12 +479,12 @@ class K3 extends K2 {
479
479
  this.element.toggleAttribute(this.name, !!e && e !== u);
480
480
  }
481
481
  }
482
- class W3 extends K2 {
482
+ class W4 extends K2 {
483
483
  constructor(e, t, o, i, n) {
484
484
  super(e, t, o, i, n), this.type = 5;
485
485
  }
486
486
  _$AI(e, t = this) {
487
- if ((e = T1(this, e, t, 0) ?? u) === R1) return;
487
+ if ((e = O1(this, e, t, 0) ?? u) === R1) return;
488
488
  const o = this._$AH, i = e === u && o !== u || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, n = e !== u && (o === u || i);
489
489
  i && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
@@ -493,7 +493,7 @@ class W3 extends K2 {
493
493
  typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
494
494
  }
495
495
  }
496
- class Y3 {
496
+ class Y4 {
497
497
  constructor(e, t, o) {
498
498
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
499
499
  }
@@ -501,12 +501,12 @@ class Y3 {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(e) {
504
- T1(this, e);
504
+ O1(this, e);
505
505
  }
506
506
  }
507
507
  const X2 = a2.litHtmlPolyfillSupport;
508
508
  X2 == null || X2(p2, k2), (a2.litHtmlVersions ?? (a2.litHtmlVersions = [])).push("3.3.2");
509
- const q3 = (r, e, t) => {
509
+ const q4 = (r, e, t) => {
510
510
  const o = (t == null ? void 0 : t.renderBefore) ?? e;
511
511
  let i = o._$litPart$;
512
512
  if (i === void 0) {
@@ -521,7 +521,7 @@ const q3 = (r, e, t) => {
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
523
  const Z1 = globalThis;
524
- let h = class extends I1 {
524
+ let h = class extends F1 {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
527
  }
@@ -532,7 +532,7 @@ let h = class extends I1 {
532
532
  }
533
533
  update(e) {
534
534
  const t = this.render();
535
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = q3(t, this.renderRoot, this.renderOptions);
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = q4(t, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -546,8 +546,8 @@ let h = class extends I1 {
546
546
  return R1;
547
547
  }
548
548
  };
549
- var i3;
550
- h._$litElement$ = !0, h.finalized = !0, (i3 = Z1.litElementHydrateSupport) == null || i3.call(Z1, { LitElement: h });
549
+ var i4;
550
+ h._$litElement$ = !0, h.finalized = !0, (i4 = Z1.litElementHydrateSupport) == null || i4.call(Z1, { LitElement: h });
551
551
  const J2 = Z1.litElementPolyfillSupport;
552
552
  J2 == null || J2({ LitElement: h });
553
553
  (Z1.litElementVersions ?? (Z1.litElementVersions = [])).push("4.2.2");
@@ -556,7 +556,7 @@ J2 == null || J2({ LitElement: h });
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J3 = (r = X3, e, t) => {
559
+ const X4 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J4 = (r = X4, e, t) => {
560
560
  const { kind: o, metadata: i } = t;
561
561
  let n = globalThis.litPropertyMetadata.get(i);
562
562
  if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), o === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(t.name, r), o === "accessor") {
@@ -578,7 +578,7 @@ const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged
578
578
  throw Error("Unsupported decorator location: " + o);
579
579
  };
580
580
  function s(r) {
581
- return (e, t) => typeof t == "object" ? J3(r, e, t) : ((o, i, n) => {
581
+ return (e, t) => typeof t == "object" ? J4(r, e, t) : ((o, i, n) => {
582
582
  const l = i.hasOwnProperty(n);
583
583
  return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
584
584
  })(r, e, t);
@@ -596,27 +596,27 @@ function b(r) {
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const Q3 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
599
+ const Q4 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
600
600
  /**
601
601
  * @license
602
602
  * Copyright 2017 Google LLC
603
603
  * SPDX-License-Identifier: BSD-3-Clause
604
604
  */
605
- function k(r, e) {
605
+ function R(r, e) {
606
606
  return (t, o, i) => {
607
607
  const n = (l) => {
608
608
  var d;
609
609
  return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
610
610
  };
611
- return Q3(t, o, { get() {
611
+ return Q4(t, o, { get() {
612
612
  return n(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var et = Object.defineProperty, c3 = (r, e, t, o) => {
616
+ var e3 = Object.defineProperty, c4 = (r, e, t, o) => {
617
617
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
618
618
  (l = r[n]) && (i = l(e, t, i) || i);
619
- return i && et(e, t, i), i;
619
+ return i && e3(e, t, i), i;
620
620
  };
621
621
  const X5 = class X5 extends h {
622
622
  constructor() {
@@ -681,24 +681,24 @@ X5.styles = g`
681
681
  @keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
682
682
  `;
683
683
  let h2 = X5;
684
- c3([
684
+ c4([
685
685
  s()
686
686
  ], h2.prototype, "size");
687
- c3([
687
+ c4([
688
688
  s()
689
689
  ], h2.prototype, "percent");
690
690
  customElements.get("anduin-spinner") || customElements.define("anduin-spinner", h2);
691
- var tt = Object.defineProperty, C3 = (r, e, t, o) => {
691
+ var t3 = Object.defineProperty, C4 = (r, e, t, o) => {
692
692
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
693
693
  (l = r[n]) && (i = l(e, t, i) || i);
694
- return i && tt(e, t, i), i;
694
+ return i && t3(e, t, i), i;
695
695
  };
696
- const z4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", it = { small: 16, medium: 24, large: 32 }, J5 = class J5 extends h {
696
+ const zt = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", i3 = { small: 16, medium: 24, large: 32 }, J5 = class J5 extends h {
697
697
  constructor() {
698
698
  super(...arguments), this.size = "small", this.color = "default";
699
699
  }
700
700
  render() {
701
- const e = it[this.size] ?? 16;
701
+ const e = i3[this.size] ?? 16;
702
702
  return u2`
703
703
  <svg
704
704
  xmlns="http://www.w3.org/2000/svg"
@@ -708,8 +708,8 @@ const z4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.635
708
708
  fill="currentColor"
709
709
  overflow="visible"
710
710
  >
711
- <path class="star" d="${z4}"/>
712
- <path class="star star-2" d="${z4}"/>
711
+ <path class="star" d="${zt}"/>
712
+ <path class="star star-2" d="${zt}"/>
713
713
  </svg>
714
714
  `;
715
715
  }
@@ -754,19 +754,19 @@ J5.styles = g`
754
754
  }
755
755
  `;
756
756
  let g2 = J5;
757
- C3([
757
+ C4([
758
758
  s({ reflect: !0 })
759
759
  ], g2.prototype, "size");
760
- C3([
760
+ C4([
761
761
  s({ reflect: !0 })
762
762
  ], g2.prototype, "color");
763
763
  customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", g2);
764
- var ot = Object.defineProperty, K5 = (r, e, t, o) => {
764
+ var o3 = Object.defineProperty, K5 = (r, e, t, o) => {
765
765
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
766
766
  (l = r[n]) && (i = l(e, t, i) || i);
767
- return i && ot(e, t, i), i;
767
+ return i && o3(e, t, i), i;
768
768
  };
769
- const u3 = [
769
+ const u4 = [
770
770
  {
771
771
  index: 1,
772
772
  d: "M62.5473 18.7416L54.9042 14.3289L44.2017 19.8592L44.1897 8.14288L40.4782 6L36.7581 8.1621L36.7873 32.0482L62.5473 18.7416Z",
@@ -809,7 +809,7 @@ const u3 = [
809
809
  originY: 39.0175,
810
810
  delay: -0.97
811
811
  }
812
- ], S4 = 20, A4 = 5, nt = 900, rt = 160, D4 = 2, lt = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", M1 = "ai-spinner__segment", st = u3.map(
812
+ ], St = 20, At = 5, n3 = 900, r3 = 160, Dt = 2, l3 = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", n2 = "ai-spinner--settling", M1 = "ai-spinner__segment", s3 = u4.map(
813
813
  (r) => `
814
814
  .${M1}--${r.index} {
815
815
  transform-origin: ${r.originX}px ${r.originY}px;
@@ -823,10 +823,10 @@ const u3 = [
823
823
  ).join(`
824
824
  `), Q5 = class Q5 extends h {
825
825
  constructor() {
826
- super(...arguments), this.state = "loading", this.size = S4;
826
+ super(...arguments), this.state = "loading", this.size = St;
827
827
  }
828
828
  render() {
829
- const e = this.size > 0 ? this.size : S4;
829
+ const e = this.size > 0 ? this.size : St;
830
830
  return a`
831
831
  <div class="ai-spinner">
832
832
  <svg
@@ -838,7 +838,7 @@ const u3 = [
838
838
  fill="none"
839
839
  aria-hidden="true"
840
840
  >
841
- ${u3.map(
841
+ ${u4.map(
842
842
  (t) => u2`
843
843
  <path
844
844
  class="${M1} ${M1}--${t.index}"
@@ -862,7 +862,7 @@ const u3 = [
862
862
  const t = this.wrapper;
863
863
  if (!t) return;
864
864
  const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(n2);
865
- e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >= D4 ? t.style.setProperty("animation-delay", `${-(o / 360 * A4)}s`) : t.style.removeProperty("animation-delay"), t.classList.add(o2)) : i && (o !== null && 360 - o >= D4 ? (this.cancelSettle(t), t.classList.remove(o2), this.startSettle(t, o)) : this.restSegments(t));
865
+ e ? (this.cancelSettle(t), this.cancelSegmentRest(t), o !== null && o >= Dt ? t.style.setProperty("animation-delay", `${-(o / 360 * At)}s`) : t.style.removeProperty("animation-delay"), t.classList.add(o2)) : i && (o !== null && 360 - o >= Dt ? (this.cancelSettle(t), t.classList.remove(o2), this.startSettle(t, o)) : this.restSegments(t));
866
866
  }
867
867
  /** The mark's current rotation in [0, 360), or null when it is not rotating (static, or reduced motion). */
868
868
  currentRotationDegrees(e) {
@@ -874,8 +874,8 @@ const u3 = [
874
874
  return i < 0 ? i + 360 : i;
875
875
  }
876
876
  startSettle(e, t) {
877
- const o = 360 - t, i = Math.max(rt, o / 360 * nt);
878
- e.classList.add(n2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${lt}`), e.style.setProperty("transform", "rotate(360deg)"), this.settleListener = (n) => {
877
+ const o = 360 - t, i = Math.max(r3, o / 360 * n3);
878
+ e.classList.add(n2), e.style.setProperty("transition", "none"), e.style.setProperty("transform", `rotate(${t}deg)`), e.offsetHeight, e.style.setProperty("transition", `transform ${i}ms ${l3}`), e.style.setProperty("transform", "rotate(360deg)"), this.settleListener = (n) => {
879
879
  n.target === e && n.propertyName === "transform" && this.restSegments(e);
880
880
  }, e.addEventListener("transitionend", this.settleListener);
881
881
  }
@@ -947,7 +947,7 @@ Q5.styles = g`
947
947
  }
948
948
 
949
949
  .ai-spinner--loading {
950
- animation: ai-spinner-spin ${A4}s linear infinite;
950
+ animation: ai-spinner-spin ${At}s linear infinite;
951
951
  will-change: transform;
952
952
  }
953
953
 
@@ -960,7 +960,7 @@ Q5.styles = g`
960
960
  animation: ai-spinner-pulse 1.52s linear infinite;
961
961
  }
962
962
 
963
- ${n3(st)}
963
+ ${n4(s3)}
964
964
 
965
965
  @keyframes ai-spinner-spin {
966
966
  to {
@@ -1007,10 +1007,10 @@ K5([
1007
1007
  s({ type: Number, reflect: !0 })
1008
1008
  ], N1.prototype, "size");
1009
1009
  K5([
1010
- k(".ai-spinner")
1010
+ R(".ai-spinner")
1011
1011
  ], N1.prototype, "wrapper");
1012
1012
  customElements.get("anduin-ai-spinner") || customElements.define("anduin-ai-spinner", N1);
1013
- const P4 = {
1013
+ const Pt = {
1014
1014
  access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
1015
1015
  alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
1016
1016
  alignJustify: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM1 6C1 5.44772 1.44772 5 2 5H14C14.5523 5 15 5.44772 15 6C15 6.55228 14.5523 7 14 7H2C1.44772 7 1 6.55228 1 6ZM2 13C1.44772 13 1 13.4477 1 14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14C15 13.4477 14.5523 13 14 13H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
@@ -1372,17 +1372,17 @@ const P4 = {
1372
1372
  zoomOut: [{ d: "M4.5 6.25C4.08579 6.25 3.75 6.58579 3.75 7C3.75 7.41421 4.08579 7.75 4.5 7.75H9.5C9.91421 7.75 10.25 7.41421 10.25 7C10.25 6.58579 9.91421 6.25 9.5 6.25H4.5ZM7 14C8.57591 14 10.0302 13.4792 11.2001 12.6004C11.2281 12.6376 11.259 12.6733 11.2929 12.7071L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.7071 11.2929C12.6733 11.259 12.6376 11.2281 12.6004 11.2001C13.4792 10.0302 14 8.57591 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 12.5C10.0376 12.5 12.5 10.0376 12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C3.96243 1.5 1.5 3.96243 1.5 7C1.5 10.0376 3.96243 12.5 7 12.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
1373
1373
  zz: [{ d: "M9.75 1.02686C9.33579 1.02686 9 1.36264 9 1.77686C9 2.19107 9.33579 2.52686 9.75 2.52686H12.8186L9.13336 7.84995C8.97457 8.07931 8.9562 8.37784 9.08567 8.62494C9.21513 8.87203 9.47104 9.02686 9.75 9.02686H14.25C14.6642 9.02686 15 8.69107 15 8.27686C15 7.86264 14.6642 7.52686 14.25 7.52686H11.1814L14.8666 2.20376C15.0254 1.97441 15.0438 1.67587 14.9143 1.42878C14.7849 1.18168 14.529 1.02686 14.25 1.02686H9.75ZM1.75 7.02686C1.33579 7.02686 1 7.36264 1 7.77686C1 8.19107 1.33579 8.52686 1.75 8.52686H4.81858L1.13336 13.8499C0.974572 14.0793 0.956201 14.3778 1.08567 14.6249C1.21513 14.872 1.47104 15.0269 1.75 15.0269H6.25C6.66422 15.0269 7 14.6911 7 14.2769C7 13.8626 6.66422 13.5269 6.25 13.5269H3.18143L6.86665 8.20376C7.02543 7.97441 7.0438 7.67587 6.91434 7.42878C6.78487 7.18168 6.52896 7.02686 6.25 7.02686H1.75Z", fillRule: "evenodd", clipRule: "evenodd" }]
1374
1374
  };
1375
- var at = Object.defineProperty, p3 = (r, e, t, o) => {
1375
+ var a3 = Object.defineProperty, p4 = (r, e, t, o) => {
1376
1376
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1377
1377
  (l = r[n]) && (i = l(e, t, i) || i);
1378
- return i && at(e, t, i), i;
1378
+ return i && a3(e, t, i), i;
1379
1379
  };
1380
1380
  const ee = class ee extends h {
1381
1381
  constructor() {
1382
1382
  super(...arguments), this.name = "", this.size = 16;
1383
1383
  }
1384
1384
  render() {
1385
- const e = this.name && P4[this.name] ? P4[this.name] : [], t = !this.name;
1385
+ const e = this.name && Pt[this.name] ? Pt[this.name] : [], t = !this.name;
1386
1386
  return u2`
1387
1387
  <svg
1388
1388
  class=${t ? "icon--hidden" : ""}
@@ -1410,19 +1410,19 @@ ee.styles = g`
1410
1410
  .icon--hidden { display: none; }
1411
1411
  `;
1412
1412
  let f2 = ee;
1413
- p3([
1413
+ p4([
1414
1414
  s()
1415
1415
  ], f2.prototype, "name");
1416
- p3([
1416
+ p4([
1417
1417
  s({ type: Number })
1418
1418
  ], f2.prototype, "size");
1419
1419
  customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
1420
- var dt = Object.defineProperty, ct = (r, e, t, o) => {
1420
+ var d3 = Object.defineProperty, c3 = (r, e, t, o) => {
1421
1421
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1422
1422
  (l = r[n]) && (i = l(e, t, i) || i);
1423
- return i && dt(e, t, i), i;
1423
+ return i && d3(e, t, i), i;
1424
1424
  };
1425
- const h3 = g`
1425
+ const h4 = g`
1426
1426
  :host { display: inline-block; font-family: var(--font-sans); }
1427
1427
  .badge {
1428
1428
  border-radius: 9999px;
@@ -1450,7 +1450,7 @@ const h3 = g`
1450
1450
  .badge--bold-warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1451
1451
  .badge--hidden { display: none; }
1452
1452
  `;
1453
- function g3(r) {
1453
+ function g4(r) {
1454
1454
  return {
1455
1455
  gray: "badge--light-gray",
1456
1456
  primary: "badge--light-primary",
@@ -1469,20 +1469,20 @@ const te = class te extends h {
1469
1469
  super(...arguments), this.variant = "gray";
1470
1470
  }
1471
1471
  render() {
1472
- const e = g3(this.variant);
1472
+ const e = g4(this.variant);
1473
1473
  return a`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1474
1474
  }
1475
1475
  };
1476
- te.styles = [h3];
1476
+ te.styles = [h4];
1477
1477
  let S2 = te;
1478
- ct([
1478
+ c3([
1479
1479
  s()
1480
1480
  ], S2.prototype, "variant");
1481
1481
  customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
1482
- var Ct = Object.defineProperty, f3 = (r, e, t, o) => {
1482
+ var C3 = Object.defineProperty, f4 = (r, e, t, o) => {
1483
1483
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1484
1484
  (l = r[n]) && (i = l(e, t, i) || i);
1485
- return i && Ct(e, t, i), i;
1485
+ return i && C3(e, t, i), i;
1486
1486
  };
1487
1487
  const ie = class ie extends h {
1488
1488
  constructor() {
@@ -1492,7 +1492,7 @@ const ie = class ie extends h {
1492
1492
  return e > 99 ? "99+" : e.toString();
1493
1493
  }
1494
1494
  render() {
1495
- const e = g3(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
1495
+ const e = g4(this.variant), t = this.count === 0, o = this.count > 0 && this.count < 10, i = [
1496
1496
  "badge",
1497
1497
  e,
1498
1498
  t ? "badge--hidden" : "",
@@ -1501,21 +1501,21 @@ const ie = class ie extends h {
1501
1501
  return a`<div class="${i}" part="badge">${this.formatCount(this.count)}</div>`;
1502
1502
  }
1503
1503
  };
1504
- ie.styles = [h3];
1504
+ ie.styles = [h4];
1505
1505
  let v2 = ie;
1506
- f3([
1506
+ f4([
1507
1507
  s()
1508
1508
  ], v2.prototype, "variant");
1509
- f3([
1509
+ f4([
1510
1510
  s({ type: Number })
1511
1511
  ], v2.prototype, "count");
1512
1512
  customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
1513
- var ut = Object.defineProperty, F = (r, e, t, o) => {
1513
+ var u3 = Object.defineProperty, I = (r, e, t, o) => {
1514
1514
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1515
1515
  (l = r[n]) && (i = l(e, t, i) || i);
1516
- return i && ut(e, t, i), i;
1516
+ return i && u3(e, t, i), i;
1517
1517
  };
1518
- function pt(r) {
1518
+ function p3(r) {
1519
1519
  return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1520
1520
  }
1521
1521
  const oe = class oe extends h {
@@ -1535,7 +1535,7 @@ const oe = class oe extends h {
1535
1535
  return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
1536
1536
  }
1537
1537
  getSizeKebab() {
1538
- return pt(this.size);
1538
+ return p3(this.size);
1539
1539
  }
1540
1540
  iconSize() {
1541
1541
  return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
@@ -1695,57 +1695,57 @@ oe.styles = g`
1695
1695
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1696
1696
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1697
1697
  `;
1698
- let $ = oe;
1699
- F([
1698
+ let E = oe;
1699
+ I([
1700
1700
  b()
1701
- ], $.prototype, "iconOnly");
1702
- F([
1701
+ ], E.prototype, "iconOnly");
1702
+ I([
1703
1703
  s({ converter: (r) => r || "filled" })
1704
- ], $.prototype, "appearance");
1705
- F([
1704
+ ], E.prototype, "appearance");
1705
+ I([
1706
1706
  s()
1707
- ], $.prototype, "variant");
1708
- F([
1707
+ ], E.prototype, "variant");
1708
+ I([
1709
1709
  s()
1710
- ], $.prototype, "size");
1711
- F([
1710
+ ], E.prototype, "size");
1711
+ I([
1712
1712
  s({ type: Boolean })
1713
- ], $.prototype, "disabled");
1714
- F([
1713
+ ], E.prototype, "disabled");
1714
+ I([
1715
1715
  s({ type: Boolean })
1716
- ], $.prototype, "loading");
1717
- F([
1716
+ ], E.prototype, "loading");
1717
+ I([
1718
1718
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
1719
- ], $.prototype, "fullWidth");
1720
- F([
1719
+ ], E.prototype, "fullWidth");
1720
+ I([
1721
1721
  s({ type: Boolean })
1722
- ], $.prototype, "pill");
1723
- F([
1722
+ ], E.prototype, "pill");
1723
+ I([
1724
1724
  s({ type: Boolean })
1725
- ], $.prototype, "selected");
1726
- F([
1725
+ ], E.prototype, "selected");
1726
+ I([
1727
1727
  s()
1728
- ], $.prototype, "href");
1729
- F([
1728
+ ], E.prototype, "href");
1729
+ I([
1730
1730
  s({ type: Boolean, attribute: "open-new-tab" })
1731
- ], $.prototype, "openNewTab");
1732
- F([
1731
+ ], E.prototype, "openNewTab");
1732
+ I([
1733
1733
  s()
1734
- ], $.prototype, "download");
1735
- F([
1734
+ ], E.prototype, "download");
1735
+ I([
1736
1736
  s({ attribute: "start-icon" })
1737
- ], $.prototype, "startIcon");
1738
- F([
1737
+ ], E.prototype, "startIcon");
1738
+ I([
1739
1739
  s({ attribute: "end-icon" })
1740
- ], $.prototype, "endIcon");
1741
- F([
1740
+ ], E.prototype, "endIcon");
1741
+ I([
1742
1742
  s()
1743
- ], $.prototype, "label");
1744
- customElements.get("anduin-button") || customElements.define("anduin-button", $);
1745
- var ht = Object.defineProperty, gt = (r, e, t, o) => {
1743
+ ], E.prototype, "label");
1744
+ customElements.get("anduin-button") || customElements.define("anduin-button", E);
1745
+ var h3 = Object.defineProperty, g3 = (r, e, t, o) => {
1746
1746
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1747
1747
  (l = r[n]) && (i = l(e, t, i) || i);
1748
- return i && ht(e, t, i), i;
1748
+ return i && h3(e, t, i), i;
1749
1749
  };
1750
1750
  const ne = class ne extends h {
1751
1751
  constructor() {
@@ -1773,14 +1773,14 @@ ne.styles = g`
1773
1773
  .callout--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1774
1774
  `;
1775
1775
  let A2 = ne;
1776
- gt([
1776
+ g3([
1777
1777
  s()
1778
1778
  ], A2.prototype, "variant");
1779
1779
  customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
1780
- var ft = Object.defineProperty, v3 = (r, e, t, o) => {
1780
+ var f3 = Object.defineProperty, v4 = (r, e, t, o) => {
1781
1781
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1782
1782
  (l = r[n]) && (i = l(e, t, i) || i);
1783
- return i && ft(e, t, i), i;
1783
+ return i && f3(e, t, i), i;
1784
1784
  };
1785
1785
  const re = class re extends h {
1786
1786
  constructor() {
@@ -1824,17 +1824,17 @@ re.styles = g`
1824
1824
  .divider__line--vertical { border-left: 1px solid var(--color-border); justify-self: center; }
1825
1825
  `;
1826
1826
  let b2 = re;
1827
- v3([
1827
+ v4([
1828
1828
  s({ reflect: !0 })
1829
1829
  ], b2.prototype, "direction");
1830
- v3([
1830
+ v4([
1831
1831
  b()
1832
1832
  ], b2.prototype, "hasContent");
1833
1833
  customElements.get("anduin-divider") || customElements.define("anduin-divider", b2);
1834
- var vt = Object.defineProperty, bt = (r, e, t, o) => {
1834
+ var v3 = Object.defineProperty, b3 = (r, e, t, o) => {
1835
1835
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1836
1836
  (l = r[n]) && (i = l(e, t, i) || i);
1837
- return i && vt(e, t, i), i;
1837
+ return i && v3(e, t, i), i;
1838
1838
  };
1839
1839
  const le = class le extends h {
1840
1840
  constructor() {
@@ -1855,14 +1855,14 @@ le.styles = g`
1855
1855
  .dot--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1856
1856
  `;
1857
1857
  let D2 = le;
1858
- bt([
1858
+ b3([
1859
1859
  s()
1860
1860
  ], D2.prototype, "variant");
1861
1861
  customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
1862
- var mt = Object.defineProperty, b3 = (r, e, t, o) => {
1862
+ var m3 = Object.defineProperty, b4 = (r, e, t, o) => {
1863
1863
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1864
1864
  (l = r[n]) && (i = l(e, t, i) || i);
1865
- return i && mt(e, t, i), i;
1865
+ return i && m3(e, t, i), i;
1866
1866
  };
1867
1867
  const se = class se extends h {
1868
1868
  constructor() {
@@ -1897,17 +1897,17 @@ se.styles = g`
1897
1897
  }
1898
1898
  `;
1899
1899
  let m2 = se;
1900
- b3([
1900
+ b4([
1901
1901
  s()
1902
1902
  ], m2.prototype, "percent");
1903
- b3([
1903
+ b4([
1904
1904
  s()
1905
1905
  ], m2.prototype, "height");
1906
1906
  customElements.get("anduin-progress") || customElements.define("anduin-progress", m2);
1907
- var Ht = Object.defineProperty, q1 = (r, e, t, o) => {
1907
+ var H3 = Object.defineProperty, q1 = (r, e, t, o) => {
1908
1908
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1909
1909
  (l = r[n]) && (i = l(e, t, i) || i);
1910
- return i && Ht(e, t, i), i;
1910
+ return i && H3(e, t, i), i;
1911
1911
  };
1912
1912
  const ae = class ae extends h {
1913
1913
  constructor() {
@@ -1967,10 +1967,10 @@ q1([
1967
1967
  s({ attribute: "font-size" })
1968
1968
  ], r1.prototype, "fontSize");
1969
1969
  customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
1970
- var _t = Object.defineProperty, yt = (r, e, t, o) => {
1970
+ var y3 = Object.defineProperty, _3 = (r, e, t, o) => {
1971
1971
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1972
1972
  (l = r[n]) && (i = l(e, t, i) || i);
1973
- return i && _t(e, t, i), i;
1973
+ return i && y3(e, t, i), i;
1974
1974
  };
1975
1975
  const de = class de extends h {
1976
1976
  constructor() {
@@ -1994,21 +1994,21 @@ de.styles = g`
1994
1994
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-subtle-foreground); }
1995
1995
  `;
1996
1996
  let P2 = de;
1997
- yt([
1997
+ _3([
1998
1998
  s()
1999
1999
  ], P2.prototype, "height");
2000
2000
  customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
2001
- var Lt = Object.defineProperty, W5 = (r, e, t, o) => {
2001
+ var L3 = Object.defineProperty, W5 = (r, e, t, o) => {
2002
2002
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2003
2003
  (l = r[n]) && (i = l(e, t, i) || i);
2004
- return i && Lt(e, t, i), i;
2004
+ return i && L3(e, t, i), i;
2005
2005
  };
2006
- const m3 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
2006
+ const m4 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
2007
2007
  constructor() {
2008
2008
  super(...arguments), this.orientation = "vertical";
2009
2009
  }
2010
2010
  connectedCallback() {
2011
- super.connectedCallback(), this.addEventListener(m3, (e) => {
2011
+ super.connectedCallback(), this.addEventListener(m4, (e) => {
2012
2012
  const t = e;
2013
2013
  this.dispatchEvent(new CustomEvent(f1, {
2014
2014
  detail: t.detail,
@@ -2044,7 +2044,7 @@ const Ce = class Ce extends h {
2044
2044
  super.connectedCallback();
2045
2045
  }
2046
2046
  onLabelClick(e) {
2047
- this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(m3, {
2047
+ this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(m4, {
2048
2048
  detail: this.htmlfor,
2049
2049
  bubbles: !0,
2050
2050
  composed: !0
@@ -2110,12 +2110,12 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
2110
2110
  customElements.get("anduin-field-description") || customElements.define("anduin-field-description", a5);
2111
2111
  customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
2112
2112
  customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
2113
- var Vt = Object.defineProperty, R2 = (r, e, t, o) => {
2113
+ var V3 = Object.defineProperty, R2 = (r, e, t, o) => {
2114
2114
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2115
2115
  (l = r[n]) && (i = l(e, t, i) || i);
2116
- return i && Vt(e, t, i), i;
2116
+ return i && V3(e, t, i), i;
2117
2117
  };
2118
- const xt = "anduin-checkbox:change", ge = class ge extends h {
2118
+ const x3 = "anduin-checkbox:change", ge = class ge extends h {
2119
2119
  constructor() {
2120
2120
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
2121
2121
  }
@@ -2128,7 +2128,7 @@ const xt = "anduin-checkbox:change", ge = class ge extends h {
2128
2128
  });
2129
2129
  }
2130
2130
  toggle() {
2131
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(xt, {
2131
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(x3, {
2132
2132
  detail: this.checked,
2133
2133
  bubbles: !0,
2134
2134
  composed: !0
@@ -2224,17 +2224,87 @@ R2([
2224
2224
  s()
2225
2225
  ], v1.prototype, "inputid");
2226
2226
  customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
2227
- var wt = Object.defineProperty, Y = (r, e, t, o) => {
2227
+ var w3 = Object.defineProperty, z = (r, e, t, o) => {
2228
2228
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2229
2229
  (l = r[n]) && (i = l(e, t, i) || i);
2230
- return i && wt(e, t, i), i;
2230
+ return i && w3(e, t, i), i;
2231
2231
  };
2232
- const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 extends h {
2232
+ const Bt = "anduin-input:change", M3 = "anduin-input:clear", j2 = class j2 extends h {
2233
2233
  constructor() {
2234
- super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
2234
+ super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.type = "text", this.autocomplete = "", this.name = "", this.revealable = !1, this._revealed = !1, this._slotted = null, this._slottedType = "text", this._slottedTypeAttr = null, this._slottedFresh = !1, this._written = /* @__PURE__ */ new Map(), this._onSlottedInput = () => this.onInput(), this._onSlottedChange = () => {
2235
+ this._slotted && this._slotted.value !== this.value && this.onInput();
2236
+ };
2237
+ }
2238
+ /** The `<input>` everything acts on: the slotted one if present, else the inner one. */
2239
+ get inputEl() {
2240
+ return this._slotted ?? this._innerInput ?? void 0;
2241
+ }
2242
+ _findSlotted() {
2243
+ for (const e of Array.from(this.children))
2244
+ if (e.localName === "input" && e.getAttribute("slot") === "input") return e;
2245
+ return null;
2246
+ }
2247
+ /**
2248
+ * Adopts (or lets go of) a consumer's native `<input slot="input">`.
2249
+ *
2250
+ * The reason this exists: the inner `<input>` lives in a shadow root, and
2251
+ * Safari's AutoFill (iCloud Keychain) — and other password managers to
2252
+ * varying degrees — do not reliably find, fill, save or suggest passwords
2253
+ * for a field there. They look for a light-DOM input, ideally inside a
2254
+ * <form> next to a username field. `type`, `autocomplete` and `name` (0.0.67)
2255
+ * reach the inner input but cannot fix that, so a sign-in form slots its own.
2256
+ *
2257
+ * On adoption the value is reconciled once: a non-empty host value wins (it
2258
+ * is what a controlled React `value` says), otherwise the input's own value —
2259
+ * typed before upgrade, or already autofilled — becomes the host's, quietly.
2260
+ */
2261
+ _setSlotted(e) {
2262
+ if (e === this._slotted) return;
2263
+ const t = this._slotted;
2264
+ if (t) {
2265
+ t.removeEventListener("input", this._onSlottedInput), t.removeEventListener("change", this._onSlottedChange);
2266
+ for (const [o, i] of this._written)
2267
+ t.getAttribute(o) === i && t.removeAttribute(o);
2268
+ t.getAttribute("type") !== this._slottedTypeAttr && (this._slottedTypeAttr === null ? t.removeAttribute("type") : t.setAttribute("type", this._slottedTypeAttr));
2269
+ }
2270
+ this._written = /* @__PURE__ */ new Map(), this._revealed = !1, this._slotted = e, e && (e.addEventListener("input", this._onSlottedInput), e.addEventListener("change", this._onSlottedChange), this._slottedTypeAttr = e.getAttribute("type"), this._slottedType = (this._slottedTypeAttr || "text").toLowerCase(), this.value ? e.value = this.value : e.value && (this.value = e.value), this._slottedFresh = !0);
2271
+ }
2272
+ onSlotChange() {
2273
+ this._setSlotted(this._findSlotted());
2274
+ }
2275
+ /** The type the field has when not revealed. */
2276
+ get _baseType() {
2277
+ return this.type && this.type !== "text" ? this.type : this._slotted ? this._slottedType : "text";
2278
+ }
2279
+ /**
2280
+ * Writes a host prop onto the slotted input as an attribute: only when the
2281
+ * prop is non-empty (or `true`), and never over an attribute the consumer
2282
+ * set. Clearing a prop removes only an attribute this element wrote.
2283
+ */
2284
+ _writeAttr(e, t, o) {
2285
+ const i = e.getAttribute(t), n = this._written.get(t);
2286
+ if (i !== null && i !== n) return;
2287
+ const l = o === !0 ? "" : o || null;
2288
+ l === null ? (i !== null && e.removeAttribute(t), this._written.delete(t)) : (i !== l && e.setAttribute(t, l), this._written.set(t, l));
2289
+ }
2290
+ _syncSlotted(e, t) {
2291
+ const o = this._slottedFresh;
2292
+ this._slottedFresh = !1;
2293
+ const i = [
2294
+ ["inputid", "id", this.inputid],
2295
+ ["name", "name", this.name],
2296
+ ["autocomplete", "autocomplete", this.autocomplete],
2297
+ ["placeholder", "placeholder", this.placeholder],
2298
+ ["disabled", "disabled", this.disabled],
2299
+ ["readonly", "readonly", this.readonly]
2300
+ ];
2301
+ for (const [d, c, C] of i)
2302
+ (o || t.has(d)) && this._writeAttr(e, c, C);
2303
+ const l = this._baseType === "password" && this.revealable && this._revealed ? "text" : this._baseType;
2304
+ e.type !== l && (e.type = l), (o || t.has("value")) && e.value !== this.value && (e.value = this.value);
2235
2305
  }
2236
2306
  connectedCallback() {
2237
- super.connectedCallback();
2307
+ super.connectedCallback(), this._setSlotted(this._findSlotted());
2238
2308
  const e = this.closest("anduin-field");
2239
2309
  e && e.addEventListener(f1, (t) => {
2240
2310
  var i;
@@ -2242,7 +2312,14 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2242
2312
  this.inputid && this.inputid === o.detail && ((i = this.inputEl) == null || i.focus());
2243
2313
  });
2244
2314
  }
2245
- updated() {
2315
+ willUpdate(e) {
2316
+ ((e.has("type") || e.has("_slottedType")) && this._baseType !== "password" || e.has("revealable") && !this.revealable) && (this._revealed = !1);
2317
+ }
2318
+ updated(e) {
2319
+ if (this._slotted) {
2320
+ this._syncSlotted(this._slotted, e);
2321
+ return;
2322
+ }
2246
2323
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
2247
2324
  }
2248
2325
  /**
@@ -2261,7 +2338,7 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2261
2338
  * unfocusable, as a native one is.
2262
2339
  */
2263
2340
  focus(e) {
2264
- this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
2341
+ this._slotted ? this._slotted.focus(e) : this.inputEl ? super.focus(e) : this.updateComplete.then(() => super.focus(e));
2265
2342
  }
2266
2343
  /**
2267
2344
  * Selects the whole value so the next keystroke replaces it — e.g. from an
@@ -2275,51 +2352,119 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2275
2352
  this._withInput((i) => i.setSelectionRange(e, t, o));
2276
2353
  }
2277
2354
  onInput() {
2278
- this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(B4, {
2355
+ this.inputEl && (this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(Bt, {
2279
2356
  detail: this.value,
2280
2357
  bubbles: !0,
2281
2358
  composed: !0
2282
- }));
2359
+ })));
2283
2360
  }
2284
2361
  onClear() {
2285
2362
  var e;
2286
- this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(B4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(Mt, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
2363
+ this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(Bt, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(M3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
2364
+ }
2365
+ /**
2366
+ * Pointer presses on the reveal button must not move focus off the input:
2367
+ * someone typing a password clicks the eye to check it and keeps typing.
2368
+ * Keyboard users still reach the button with Tab, and pressing it there
2369
+ * leaves focus on the button, as any toggle does.
2370
+ */
2371
+ onRevealPointerDown(e) {
2372
+ e.preventDefault();
2373
+ }
2374
+ /**
2375
+ * Swapping `type` between `password` and `text` keeps the value (the value
2376
+ * mode is the same), but not the caret. Measured in Chromium with a real
2377
+ * pointer click: `selectionStart` still reads right after Lit commits the
2378
+ * new type, then drops to 0 at the next frame, when layout rebuilds the
2379
+ * input's inner editor. Setting the range back straight after the commit
2380
+ * did not stick — layout reset it anyway. Forcing that layout first and
2381
+ * only then restoring the range does stick, measured at the next frame and
2382
+ * 100ms later. The layout is forced with `getBoundingClientRect()`, a call:
2383
+ * a bare `void el.offsetWidth` read is dropped by the minifier as unused,
2384
+ * which is how the first version of this shipped nothing to the browser.
2385
+ *
2386
+ * Restored only while the input still has focus: an unfocused
2387
+ * `setSelectionRange` can pull focus in some engines, and a keyboard user
2388
+ * pressing the button is sitting on the button, not the input. "Has focus"
2389
+ * is asked of the input's own root: the shadow root for the inner input,
2390
+ * the document (or an enclosing shadow root) for a slotted one.
2391
+ */
2392
+ onRevealToggle() {
2393
+ const e = this.inputEl, t = (e == null ? void 0 : e.selectionStart) ?? null, o = (e == null ? void 0 : e.selectionEnd) ?? null, i = (e == null ? void 0 : e.selectionDirection) ?? void 0;
2394
+ this._revealed = !this._revealed, this.updateComplete.then(() => {
2395
+ const n = e == null ? void 0 : e.getRootNode();
2396
+ e && t !== null && o !== null && (n == null ? void 0 : n.activeElement) === e && (e.getBoundingClientRect(), e.setSelectionRange(t, o, i ?? void 0));
2397
+ });
2287
2398
  }
2288
2399
  render() {
2289
- const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = !!this.endIcon || this.clearable && !!this.value, n = this.clearable && !!this.value && !this.disabled && !this.readonly, l = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", d = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
2400
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", o = !!this.startIcon, i = this._baseType === "password" && this.revealable, n = !!this.endIcon || this.clearable && !!this.value || i, l = this.clearable && !!this.value && !this.disabled && !this.readonly, d = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", c = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", C = i && this._revealed ? "text" : this._baseType, p = i ? (l ? Number(c) + 2 : 0) + (this.endIcon ? Number(d) + 2 : 0) : 0;
2290
2401
  return a`
2291
2402
  <div class="input-wrapper">
2292
2403
  ${o ? a`
2293
2404
  <span class="input__start">
2294
- <anduin-icon name=${this.startIcon} size=${l}></anduin-icon>
2405
+ <anduin-icon name=${this.startIcon} size=${d}></anduin-icon>
2295
2406
  </span>
2296
2407
  ` : u}
2297
2408
 
2298
- <input
2409
+ <!--
2410
+ Always rendered, so a native input slotted later is still seen
2411
+ (slotchange). Empty, it is display: contents and draws nothing, so
2412
+ an element with no slotted input lays out exactly as before.
2413
+ -->
2414
+ <slot
2415
+ name="input"
2416
+ class="input-slot ${e}
2417
+ ${o ? "input--has-start" : ""}
2418
+ ${n ? "input--has-end" : ""}
2419
+ ${this.disabled ? "input--disabled" : ""}
2420
+ ${this.readonly ? "input--readonly" : ""}
2421
+ ${t}"
2422
+ style=${p && this._slotted ? `--_end-extra: ${p}px` : u}
2423
+ @slotchange=${this.onSlotChange}
2424
+ ></slot>
2425
+
2426
+ ${this._slotted ? u : a`<input
2299
2427
  class="input ${e}
2300
2428
  ${o ? "input--has-start" : ""}
2301
- ${i ? "input--has-end" : ""}
2429
+ ${n ? "input--has-end" : ""}
2302
2430
  ${this.disabled ? "input--disabled" : ""}
2303
2431
  ${this.readonly ? "input--readonly" : ""}
2304
2432
  ${t}"
2305
- type="text"
2433
+ type=${C}
2434
+ autocomplete=${this.autocomplete || u}
2435
+ name=${this.name || u}
2436
+ style=${p ? `--_end-extra: ${p}px` : u}
2306
2437
  ?disabled=${this.disabled}
2307
2438
  ?readonly=${this.readonly}
2308
2439
  id=${this.inputid || ""}
2309
2440
  placeholder=${this.placeholder || ""}
2310
2441
  part="input"
2311
2442
  @input=${this.onInput}
2312
- />
2443
+ />`}
2313
2444
 
2314
- ${i ? a`
2445
+ ${n ? a`
2315
2446
  <span class="input__end">
2316
- ${n ? a`
2447
+ ${l ? a`
2317
2448
  <button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
2318
- <anduin-icon name="cross" size=${d}></anduin-icon>
2449
+ <anduin-icon name="cross" size=${c}></anduin-icon>
2450
+ </button>
2451
+ ` : u}
2452
+ ${i ? a`
2453
+ <button
2454
+ class="input__reveal"
2455
+ type="button"
2456
+ part="reveal"
2457
+ aria-label=${this._revealed ? "Hide password" : "Show password"}
2458
+ aria-pressed=${this._revealed ? "true" : "false"}
2459
+ ?disabled=${this.disabled}
2460
+ @mousedown=${this.onRevealPointerDown}
2461
+ @click=${this.onRevealToggle}
2462
+ >
2463
+ <anduin-icon name=${this._revealed ? "eyeOff" : "eye"} size=${d}></anduin-icon>
2319
2464
  </button>
2320
2465
  ` : u}
2321
2466
  ${this.endIcon ? a`
2322
- <anduin-icon name=${this.endIcon} size=${l}></anduin-icon>
2467
+ <anduin-icon name=${this.endIcon} size=${d}></anduin-icon>
2323
2468
  ` : u}
2324
2469
  </span>
2325
2470
  ` : u}
@@ -2350,9 +2495,15 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2350
2495
  .input--has-start.input--default { padding-left: 32px; }
2351
2496
  .input--has-start.input--large { padding-left: 42px; }
2352
2497
 
2353
- .input--has-end.input--small { padding-right: 26px; }
2354
- .input--has-end.input--default { padding-right: 32px; }
2355
- .input--has-end.input--large { padding-right: 42px; }
2498
+ /*
2499
+ * One end item fits the base padding. --_end-extra is the width of any
2500
+ * further items beside the password reveal button; it is set only when that
2501
+ * button is rendered, so every combination that existed before it (one end
2502
+ * icon, the clear button, or both) keeps exactly the padding it had.
2503
+ */
2504
+ .input--has-end.input--small { padding-right: calc(26px + var(--_end-extra, 0px)); }
2505
+ .input--has-end.input--default { padding-right: calc(32px + var(--_end-extra, 0px)); }
2506
+ .input--has-end.input--large { padding-right: calc(42px + var(--_end-extra, 0px)); }
2356
2507
 
2357
2508
  .input--disabled { color: var(--color-muted-foreground); background-color: var(--color-disabled); cursor: not-allowed; }
2358
2509
  .input--readonly { background-color: var(--color-secondary); }
@@ -2372,7 +2523,8 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2372
2523
  .input__start { left: 8px; }
2373
2524
  .input__end { right: 8px; gap: 2px; }
2374
2525
 
2375
- .input__clear {
2526
+ .input__clear,
2527
+ .input__reveal {
2376
2528
  display: flex; align-items: center; justify-content: center;
2377
2529
  pointer-events: auto; cursor: pointer;
2378
2530
  background: none; border: none; padding: 0;
@@ -2380,49 +2532,147 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2380
2532
  border-radius: 3px;
2381
2533
  line-height: 0;
2382
2534
  }
2383
- .input__clear:hover { color: var(--color-muted-foreground); }
2535
+ .input__clear:hover,
2536
+ .input__reveal:hover { color: var(--color-muted-foreground); }
2537
+ /* The reveal button is a Tab stop. Ring it on keyboard focus only, so a
2538
+ pointer press (which keeps focus in the input anyway) draws nothing. */
2539
+ .input__reveal:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 1px; }
2540
+ .input__reveal:disabled { cursor: not-allowed; }
2541
+
2542
+ /*
2543
+ * A native <input slot="input"> from the consumer, drawn the same as the
2544
+ * inner one above. Every rule mirrors one of the .input rules, keyed off
2545
+ * classes on the <slot> (the host's state) instead of on the input, so
2546
+ * nothing is ever written into the consumer's class attribute.
2547
+ *
2548
+ * Everything here is !important, and that is the point rather than a
2549
+ * shortcut. A slotted input is styled by both trees, and for normal
2550
+ * declarations the outer tree wins over ::slotted() whatever the
2551
+ * specificity or layer — so a page's reset (Tailwind's preflight sets
2552
+ * font: inherit, padding: 0, border: 0 solid, border-radius: 0 and a
2553
+ * transparent background on every input) would flatten the field. For
2554
+ * !important declarations the order flips and the shadow tree wins, which
2555
+ * is what makes the slotted field look like the inner one on any page.
2556
+ * The cost is that page CSS cannot restyle it, which is also true of the
2557
+ * inner input (it is reachable only through ::part(input)).
2558
+ *
2559
+ * Specificities are kept in the same order as the .input rules: base <
2560
+ * size < icon padding, then disabled / readonly / status, then :focus and
2561
+ * :active last at equal specificity, so a focused invalid field shows the
2562
+ * ring colour exactly as the inner input does.
2563
+ *
2564
+ * The UA styles the inner input with font-weight 400, no margin, normal
2565
+ * letter-spacing and no shadow; a page's input rules can change all of
2566
+ * those on a light-DOM input, so they are pinned here too.
2567
+ */
2568
+ .input-slot::slotted(input) {
2569
+ display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important;
2570
+ border: 1px solid var(--color-input) !important; border-radius: 4px !important;
2571
+ transition: all 0.1s, box-shadow 0.3s ease !important; line-height: 20px !important;
2572
+ color: var(--color-foreground) !important; background-color: var(--color-background) !important;
2573
+ box-sizing: border-box !important; font-family: var(--font-sans) !important;
2574
+ font-weight: 400 !important; font-style: normal !important; letter-spacing: normal !important;
2575
+ text-transform: none !important; text-indent: 0 !important; box-shadow: none !important; opacity: 1 !important;
2576
+ }
2577
+
2578
+ .input-slot.input--small::slotted(input) { height: 24px !important; padding: 0 6px !important; font-size: 11px !important; }
2579
+ .input-slot.input--default::slotted(input) { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
2580
+ .input-slot.input--large::slotted(input) { height: 40px !important; padding: 0 16px !important; font-size: 15px !important; }
2581
+
2582
+ .input--has-start.input--small::slotted(input) { padding-left: 26px !important; }
2583
+ .input--has-start.input--default::slotted(input) { padding-left: 32px !important; }
2584
+ .input--has-start.input--large::slotted(input) { padding-left: 42px !important; }
2585
+
2586
+ /* --_end-extra is set on the <slot>; the slotted input inherits it there. */
2587
+ .input--has-end.input--small::slotted(input) { padding-right: calc(26px + var(--_end-extra, 0px)) !important; }
2588
+ .input--has-end.input--default::slotted(input) { padding-right: calc(32px + var(--_end-extra, 0px)) !important; }
2589
+ .input--has-end.input--large::slotted(input) { padding-right: calc(42px + var(--_end-extra, 0px)) !important; }
2590
+
2591
+ /* :disabled as well as the host's flag, so an input the consumer disables
2592
+ directly greys out too. */
2593
+ .input-slot.input--disabled::slotted(input),
2594
+ .input-slot::slotted(input:disabled) { color: var(--color-muted-foreground) !important; background-color: var(--color-disabled) !important; cursor: not-allowed !important; }
2595
+ .input-slot.input--readonly::slotted(input),
2596
+ .input-slot::slotted(input[readonly]) { background-color: var(--color-secondary) !important; }
2597
+ .input-slot.input--valid::slotted(input) { border-color: var(--color-success) !important; }
2598
+ .input-slot.input--invalid::slotted(input) { border-color: var(--color-destructive) !important; }
2599
+ .input-slot.input--warning::slotted(input) { border-color: var(--color-warning-active) !important; }
2600
+ .input-slot.input--loading::slotted(input) { border-color: var(--color-input) !important; }
2601
+
2602
+ /*
2603
+ * The inner input sets no placeholder colour, so it shows the browser's
2604
+ * own. A page's reset usually restyles ::placeholder on light-DOM inputs
2605
+ * (Tailwind's makes it 50% of currentColor), so the slotted one is
2606
+ * reverted to the user-agent value — whatever this browser draws for the
2607
+ * inner input — rather than to a guessed grey.
2608
+ */
2609
+ .input-slot::slotted(input)::placeholder { color: revert !important; opacity: revert !important; }
2610
+
2611
+ .input-slot::slotted(input:focus) { outline: none !important; border-color: var(--color-ring) !important; }
2612
+ .input-slot::slotted(input:active) { box-shadow: 0 0 0 2px var(--color-ring-subtle) !important; }
2384
2613
  `;
2385
- let I = j2;
2386
- Y([
2614
+ let M = j2;
2615
+ z([
2387
2616
  s()
2388
- ], I.prototype, "value");
2389
- Y([
2617
+ ], M.prototype, "value");
2618
+ z([
2390
2619
  s()
2391
- ], I.prototype, "size");
2392
- Y([
2620
+ ], M.prototype, "size");
2621
+ z([
2393
2622
  s({ type: Boolean })
2394
- ], I.prototype, "disabled");
2395
- Y([
2623
+ ], M.prototype, "disabled");
2624
+ z([
2396
2625
  s({ type: Boolean })
2397
- ], I.prototype, "readonly");
2398
- Y([
2626
+ ], M.prototype, "readonly");
2627
+ z([
2399
2628
  s()
2400
- ], I.prototype, "placeholder");
2401
- Y([
2629
+ ], M.prototype, "placeholder");
2630
+ z([
2402
2631
  s()
2403
- ], I.prototype, "inputid");
2404
- Y([
2632
+ ], M.prototype, "inputid");
2633
+ z([
2405
2634
  s()
2406
- ], I.prototype, "status");
2407
- Y([
2635
+ ], M.prototype, "status");
2636
+ z([
2408
2637
  s({ attribute: "start-icon" })
2409
- ], I.prototype, "startIcon");
2410
- Y([
2638
+ ], M.prototype, "startIcon");
2639
+ z([
2411
2640
  s({ attribute: "end-icon" })
2412
- ], I.prototype, "endIcon");
2413
- Y([
2641
+ ], M.prototype, "endIcon");
2642
+ z([
2643
+ s({ type: Boolean })
2644
+ ], M.prototype, "clearable");
2645
+ z([
2646
+ s()
2647
+ ], M.prototype, "type");
2648
+ z([
2649
+ s()
2650
+ ], M.prototype, "autocomplete");
2651
+ z([
2652
+ s()
2653
+ ], M.prototype, "name");
2654
+ z([
2414
2655
  s({ type: Boolean })
2415
- ], I.prototype, "clearable");
2416
- Y([
2417
- k("input")
2418
- ], I.prototype, "inputEl");
2419
- customElements.get("anduin-input") || customElements.define("anduin-input", I);
2420
- var Zt = Object.defineProperty, H3 = (r, e, t, o) => {
2656
+ ], M.prototype, "revealable");
2657
+ z([
2658
+ b()
2659
+ ], M.prototype, "_revealed");
2660
+ z([
2661
+ b()
2662
+ ], M.prototype, "_slotted");
2663
+ z([
2664
+ b()
2665
+ ], M.prototype, "_slottedType");
2666
+ z([
2667
+ R("input.input")
2668
+ ], M.prototype, "_innerInput");
2669
+ customElements.get("anduin-input") || customElements.define("anduin-input", M);
2670
+ var Z3 = Object.defineProperty, H4 = (r, e, t, o) => {
2421
2671
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2422
2672
  (l = r[n]) && (i = l(e, t, i) || i);
2423
- return i && Zt(e, t, i), i;
2673
+ return i && Z3(e, t, i), i;
2424
2674
  };
2425
- const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-tooltip:trigger-mounted", L3 = "anduin-tooltip:content-popup-mounted", V3 = "anduin-tooltip:content-popup-unmounted", x3 = "anduin-tooltip:visibility-changed", kt = [
2675
+ const y4 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", _4 = "anduin-tooltip:trigger-mounted", L4 = "anduin-tooltip:content-popup-mounted", V4 = "anduin-tooltip:content-popup-unmounted", x4 = "anduin-tooltip:visibility-changed", k3 = [
2426
2676
  "top-start",
2427
2677
  "top-center",
2428
2678
  "top-end",
@@ -2436,7 +2686,7 @@ const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-toolt
2436
2686
  "left-center",
2437
2687
  "left-end"
2438
2688
  ];
2439
- function F4(r, e, t, o, i) {
2689
+ function Tt(r, e, t, o, i) {
2440
2690
  switch (o) {
2441
2691
  case "top-start":
2442
2692
  return { left: r.left, top: r.top - t - i };
@@ -2466,20 +2716,20 @@ function F4(r, e, t, o, i) {
2466
2716
  return { left: 0, top: 0 };
2467
2717
  }
2468
2718
  }
2469
- function I4(r, e) {
2719
+ function Ft(r, e) {
2470
2720
  return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2471
2721
  }
2472
- function O4(r, e) {
2722
+ function It(r, e) {
2473
2723
  const t = Math.max(r.left, e.left), o = Math.max(r.top, e.top), i = Math.min(r.right, e.right), n = Math.min(r.bottom, e.bottom);
2474
2724
  return i < t || n < o ? 0 : (i - t) * (n - o);
2475
2725
  }
2476
- function Rt(r, e, t, o = 8) {
2726
+ function R3(r, e, t, o = 8) {
2477
2727
  const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
2478
- if (!I4(
2728
+ if (!Ft(
2479
2729
  { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2480
2730
  l
2481
2731
  )) return null;
2482
- const C = F4(r, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(r, d, c, m, o) })).filter(({ off: m }) => I4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2732
+ const C = Tt(r, d, c, t, o), p = k3.map((m) => ({ p: m, off: Tt(r, d, c, m, o) })).filter(({ off: m }) => Ft({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2483
2733
  if (p.length === 0)
2484
2734
  return {
2485
2735
  placement: t,
@@ -2487,10 +2737,10 @@ function Rt(r, e, t, o = 8) {
2487
2737
  top: Math.round(Math.min(Math.max(C.top, 0), n - c))
2488
2738
  };
2489
2739
  p.sort((m, V) => {
2490
- const y = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = O4(y, l), w = O4(v, l);
2740
+ const _ = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = It(_, l), w = It(v, l);
2491
2741
  if (w !== x) return w - x;
2492
- const D = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), K = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
2493
- return D - K;
2742
+ const B = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), W = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
2743
+ return B - W;
2494
2744
  });
2495
2745
  const { p: f, off: H } = p[0];
2496
2746
  return {
@@ -2502,7 +2752,7 @@ function Rt(r, e, t, o = 8) {
2502
2752
  function C5(r) {
2503
2753
  return r.split("-")[0] || "top";
2504
2754
  }
2505
- function $t(r, e, t) {
2755
+ function $3(r, e, t) {
2506
2756
  let o = !1, i = t.length - 1;
2507
2757
  for (let n = 0; n < t.length; n++) {
2508
2758
  const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
@@ -2515,13 +2765,13 @@ const fe = class fe extends h {
2515
2765
  super(...arguments), this.disabled = !1, this.placement = "top-center", this.triggerElement = null, this.contentPopupElement = null, this.containingBlockLeft = 0, this.containingBlockTop = 0, this.rafId = 0, this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN, this.isVisible = !1;
2516
2766
  }
2517
2767
  connectedCallback() {
2518
- super.connectedCallback(), this.addEventListener(y3, (e) => {
2768
+ super.connectedCallback(), this.addEventListener(_4, (e) => {
2519
2769
  e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
2520
- }), this.addEventListener(L3, (e) => {
2770
+ }), this.addEventListener(L4, (e) => {
2521
2771
  e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
2522
- }), this.addEventListener(V3, (e) => {
2772
+ }), this.addEventListener(V4, (e) => {
2523
2773
  e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
2524
- }), this.addEventListener(_3, (e) => {
2774
+ }), this.addEventListener(y4, (e) => {
2525
2775
  e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
2526
2776
  }), this.addEventListener(Y5, (e) => {
2527
2777
  e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
@@ -2554,7 +2804,7 @@ const fe = class fe extends h {
2554
2804
  this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
2555
2805
  }
2556
2806
  positionPopup(e, t, o) {
2557
- const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = Rt(i, n, o, 8);
2807
+ const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = R3(i, n, o, 8);
2558
2808
  if (l) {
2559
2809
  const d = e;
2560
2810
  d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
@@ -2566,7 +2816,7 @@ const fe = class fe extends h {
2566
2816
  }
2567
2817
  }
2568
2818
  broadcastVisibilityChanged(e) {
2569
- this.dispatchEvent(new CustomEvent(x3, { detail: e, bubbles: !1, composed: !1 }));
2819
+ this.dispatchEvent(new CustomEvent(x4, { detail: e, bubbles: !1, composed: !1 }));
2570
2820
  }
2571
2821
  render() {
2572
2822
  return a`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
@@ -2583,19 +2833,19 @@ fe.styles = g`
2583
2833
  :host { display: inline-flex; position: relative; max-width: 100%; font-family: var(--font-sans); }
2584
2834
  .tooltip-root { display: inline-flex; position: relative; max-width: 100%; }
2585
2835
  `;
2586
- let _2 = fe;
2587
- H3([
2836
+ let y2 = fe;
2837
+ H4([
2588
2838
  s({ type: Boolean })
2589
- ], _2.prototype, "disabled");
2590
- H3([
2839
+ ], y2.prototype, "disabled");
2840
+ H4([
2591
2841
  s()
2592
- ], _2.prototype, "placement");
2842
+ ], y2.prototype, "placement");
2593
2843
  const ve = class ve extends h {
2594
2844
  firstUpdated() {
2595
2845
  requestAnimationFrame(() => {
2596
- this.dispatchEvent(new CustomEvent(y3, { detail: this, bubbles: !0, composed: !0 }));
2846
+ this.dispatchEvent(new CustomEvent(_4, { detail: this, bubbles: !0, composed: !0 }));
2597
2847
  }), this.addEventListener("pointerenter", () => {
2598
- this.dispatchEvent(new CustomEvent(_3, { bubbles: !0, composed: !0 }));
2848
+ this.dispatchEvent(new CustomEvent(y4, { bubbles: !0, composed: !0 }));
2599
2849
  }), this.addEventListener("click", () => {
2600
2850
  this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 }));
2601
2851
  });
@@ -2615,7 +2865,7 @@ const be = class be extends h {
2615
2865
  var n, l;
2616
2866
  if (!this.graceArea) return;
2617
2867
  const t = e.target, o = ((n = this.triggerEl) == null ? void 0 : n.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
2618
- o || i ? this.graceArea = null : $t(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 })));
2868
+ o || i ? this.graceArea = null : $3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 })));
2619
2869
  }, this.handleTriggerLeave = (e) => {
2620
2870
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
2621
2871
  }, this.handleContentLeave = (e) => {
@@ -2625,7 +2875,7 @@ const be = class be extends h {
2625
2875
  connectedCallback() {
2626
2876
  super.connectedCallback();
2627
2877
  const e = this.closest("anduin-tooltip");
2628
- e && e.addEventListener(x3, (t) => {
2878
+ e && e.addEventListener(x4, (t) => {
2629
2879
  const o = t.detail;
2630
2880
  o.startsWith("show:") ? this.showPopup(o.slice(5)) : this.hidePopup();
2631
2881
  });
@@ -2664,10 +2914,10 @@ const be = class be extends h {
2664
2914
  const c = d.querySelector("anduin-tooltip-trigger");
2665
2915
  c && this.setupGraceAreaListeners(c, o);
2666
2916
  }
2667
- this.dispatchEvent(new CustomEvent(L3, { detail: o, bubbles: !0, composed: !0 }));
2917
+ this.dispatchEvent(new CustomEvent(L4, { detail: o, bubbles: !0, composed: !0 }));
2668
2918
  }
2669
2919
  hidePopup() {
2670
- this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(V3, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2920
+ this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(V4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2671
2921
  }
2672
2922
  render() {
2673
2923
  return a`<div class="tooltip-content-wrapper"></div>`;
@@ -2698,15 +2948,15 @@ be.styles = g`
2698
2948
  .tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
2699
2949
  `;
2700
2950
  let p5 = be;
2701
- customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", _2);
2951
+ customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", y2);
2702
2952
  customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
2703
2953
  customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
2704
- var Et = Object.defineProperty, B = (r, e, t, o) => {
2954
+ var E3 = Object.defineProperty, F = (r, e, t, o) => {
2705
2955
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2706
2956
  (l = r[n]) && (i = l(e, t, i) || i);
2707
- return i && Et(e, t, i), i;
2957
+ return i && E3(e, t, i), i;
2708
2958
  };
2709
- const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "anduin-inline-edit:edit", me = class me extends h {
2959
+ const z3 = "anduin-inline-edit:save", S3 = "anduin-inline-edit:cancel", A3 = "anduin-inline-edit:edit", me = class me extends h {
2710
2960
  constructor() {
2711
2961
  super(...arguments), this.value = "", this.placeholder = "", this.size = "medium", this.mode = "view", this.disabled = !1, this.clickToEdit = !1, this.hideSwitcher = !1, this.editLabel = "Edit", this._editing = !1, this._draft = "", this._error = "", this._hasSlotted = !1, this._openWidth = 0;
2712
2962
  }
@@ -2722,11 +2972,11 @@ const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "an
2722
2972
  */
2723
2973
  async edit() {
2724
2974
  var e, t, o;
2725
- this.disabled || (this._editing || (this._openWidth = ((e = this._text) == null ? void 0 : e.getBoundingClientRect().width) ?? 0, this._draft = this.value, this._error = this._runValidate(this.value), this._editing = !0, this.dispatchEvent(new CustomEvent(At, { bubbles: !0, composed: !0 }))), await this.updateComplete, (t = this._field) == null || t.focus(), (o = this._field) == null || o.select());
2975
+ this.disabled || (this._editing || (this._openWidth = ((e = this._text) == null ? void 0 : e.getBoundingClientRect().width) ?? 0, this._draft = this.value, this._error = this._runValidate(this.value), this._editing = !0, this.dispatchEvent(new CustomEvent(A3, { bubbles: !0, composed: !0 }))), await this.updateComplete, (t = this._field) == null || t.focus(), (o = this._field) == null || o.select());
2726
2976
  }
2727
2977
  /** Leaves edit mode without saving and fires `anduin-inline-edit:cancel`. A no-op in view mode. */
2728
2978
  cancel() {
2729
- this._editing && (this._exit(), this.dispatchEvent(new CustomEvent(St, { bubbles: !0, composed: !0 })));
2979
+ this._editing && (this._exit(), this.dispatchEvent(new CustomEvent(S3, { bubbles: !0, composed: !0 })));
2730
2980
  }
2731
2981
  /**
2732
2982
  * Saves the draft and returns to view mode, as Enter does. Does nothing while
@@ -2740,7 +2990,7 @@ const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "an
2740
2990
  this.cancel();
2741
2991
  return;
2742
2992
  }
2743
- this.value = e, this._exit(), this.dispatchEvent(new CustomEvent(zt, { detail: e, bubbles: !0, composed: !0 }));
2993
+ this.value = e, this._exit(), this.dispatchEvent(new CustomEvent(z3, { detail: e, bubbles: !0, composed: !0 }));
2744
2994
  }
2745
2995
  _exit() {
2746
2996
  this._editing = !1, this._draft = this.value, this._error = "";
@@ -2913,62 +3163,62 @@ me.styles = g`
2913
3163
  .field--small { min-height: 24px; padding-left: 6px; padding-right: 6px; }
2914
3164
  .field--medium { min-height: 32px; padding-left: 12px; padding-right: 12px; }
2915
3165
  `;
2916
- let R = me;
2917
- B([
3166
+ let $ = me;
3167
+ F([
2918
3168
  s()
2919
- ], R.prototype, "value");
2920
- B([
3169
+ ], $.prototype, "value");
3170
+ F([
2921
3171
  s()
2922
- ], R.prototype, "placeholder");
2923
- B([
3172
+ ], $.prototype, "placeholder");
3173
+ F([
2924
3174
  s()
2925
- ], R.prototype, "size");
2926
- B([
3175
+ ], $.prototype, "size");
3176
+ F([
2927
3177
  s()
2928
- ], R.prototype, "mode");
2929
- B([
3178
+ ], $.prototype, "mode");
3179
+ F([
2930
3180
  s({ type: Boolean, reflect: !0 })
2931
- ], R.prototype, "disabled");
2932
- B([
3181
+ ], $.prototype, "disabled");
3182
+ F([
2933
3183
  s({ type: Boolean, attribute: "click-to-edit", reflect: !0 })
2934
- ], R.prototype, "clickToEdit");
2935
- B([
3184
+ ], $.prototype, "clickToEdit");
3185
+ F([
2936
3186
  s({ type: Boolean, attribute: "hide-switcher", reflect: !0 })
2937
- ], R.prototype, "hideSwitcher");
2938
- B([
3187
+ ], $.prototype, "hideSwitcher");
3188
+ F([
2939
3189
  s({ attribute: "edit-label" })
2940
- ], R.prototype, "editLabel");
2941
- B([
3190
+ ], $.prototype, "editLabel");
3191
+ F([
2942
3192
  s({ attribute: !1 })
2943
- ], R.prototype, "validate");
2944
- B([
3193
+ ], $.prototype, "validate");
3194
+ F([
2945
3195
  b()
2946
- ], R.prototype, "_editing");
2947
- B([
3196
+ ], $.prototype, "_editing");
3197
+ F([
2948
3198
  b()
2949
- ], R.prototype, "_draft");
2950
- B([
3199
+ ], $.prototype, "_draft");
3200
+ F([
2951
3201
  b()
2952
- ], R.prototype, "_error");
2953
- B([
3202
+ ], $.prototype, "_error");
3203
+ F([
2954
3204
  b()
2955
- ], R.prototype, "_hasSlotted");
2956
- B([
3205
+ ], $.prototype, "_hasSlotted");
3206
+ F([
2957
3207
  b()
2958
- ], R.prototype, "_openWidth");
2959
- B([
2960
- k(".field")
2961
- ], R.prototype, "_field");
2962
- B([
2963
- k(".text")
2964
- ], R.prototype, "_text");
2965
- customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", R);
2966
- var Dt = Object.defineProperty, y1 = (r, e, t, o) => {
3208
+ ], $.prototype, "_openWidth");
3209
+ F([
3210
+ R(".field")
3211
+ ], $.prototype, "_field");
3212
+ F([
3213
+ R(".text")
3214
+ ], $.prototype, "_text");
3215
+ customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", $);
3216
+ var D3 = Object.defineProperty, _1 = (r, e, t, o) => {
2967
3217
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2968
3218
  (l = r[n]) && (i = l(e, t, i) || i);
2969
- return i && Dt(e, t, i), i;
3219
+ return i && D3(e, t, i), i;
2970
3220
  };
2971
- const Pt = "anduin-textarea:change", U2 = class U2 extends h {
3221
+ const P3 = "anduin-textarea:change", U2 = class U2 extends h {
2972
3222
  constructor() {
2973
3223
  super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
2974
3224
  }
@@ -3003,7 +3253,7 @@ const Pt = "anduin-textarea:change", U2 = class U2 extends h {
3003
3253
  this._withTextarea((i) => i.setSelectionRange(e, t, o));
3004
3254
  }
3005
3255
  onInput() {
3006
- this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(Pt, {
3256
+ this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(P3, {
3007
3257
  detail: this.value,
3008
3258
  bubbles: !0,
3009
3259
  composed: !0
@@ -3046,46 +3296,46 @@ U2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, U2.styles
3046
3296
  .textarea--warning { border-color: var(--color-warning-active); }
3047
3297
  .textarea--loading { border-color: var(--color-input); }
3048
3298
  `;
3049
- let W = U2;
3050
- y1([
3299
+ let Y = U2;
3300
+ _1([
3051
3301
  s()
3052
- ], W.prototype, "value");
3053
- y1([
3302
+ ], Y.prototype, "value");
3303
+ _1([
3054
3304
  s({ type: Boolean })
3055
- ], W.prototype, "disabled");
3056
- y1([
3305
+ ], Y.prototype, "disabled");
3306
+ _1([
3057
3307
  s({ type: Boolean })
3058
- ], W.prototype, "readonly");
3059
- y1([
3308
+ ], Y.prototype, "readonly");
3309
+ _1([
3060
3310
  s()
3061
- ], W.prototype, "placeholder");
3062
- y1([
3311
+ ], Y.prototype, "placeholder");
3312
+ _1([
3063
3313
  s()
3064
- ], W.prototype, "inputid");
3065
- y1([
3314
+ ], Y.prototype, "inputid");
3315
+ _1([
3066
3316
  s({ type: Number })
3067
- ], W.prototype, "rows");
3068
- y1([
3317
+ ], Y.prototype, "rows");
3318
+ _1([
3069
3319
  s()
3070
- ], W.prototype, "status");
3071
- y1([
3072
- k("textarea")
3073
- ], W.prototype, "textareaEl");
3074
- customElements.get("anduin-textarea") || customElements.define("anduin-textarea", W);
3075
- var Bt = Object.defineProperty, U = (r, e, t, o) => {
3320
+ ], Y.prototype, "status");
3321
+ _1([
3322
+ R("textarea")
3323
+ ], Y.prototype, "textareaEl");
3324
+ customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Y);
3325
+ var B3 = Object.defineProperty, G = (r, e, t, o) => {
3076
3326
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3077
3327
  (l = r[n]) && (i = l(e, t, i) || i);
3078
- return i && Bt(e, t, i), i;
3328
+ return i && B3(e, t, i), i;
3079
3329
  };
3080
- const w3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", Ft = "anduin-tab:change", He = class He extends h {
3330
+ const w4 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", T3 = "anduin-tab:change", He = class He extends h {
3081
3331
  constructor() {
3082
3332
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
3083
3333
  }
3084
3334
  connectedCallback() {
3085
- super.connectedCallback(), this.addEventListener(w3, (e) => {
3335
+ super.connectedCallback(), this.addEventListener(w4, (e) => {
3086
3336
  e.stopPropagation();
3087
3337
  const t = e;
3088
- this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(Ft, { detail: t.detail, bubbles: !0, composed: !0 }));
3338
+ this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(T3, { detail: t.detail, bubbles: !0, composed: !0 }));
3089
3339
  }), requestAnimationFrame(() => {
3090
3340
  const e = this.value || this.defaultValue;
3091
3341
  e && (this.value || (this.value = e), this.broadcastValueChanged(e));
@@ -3111,16 +3361,16 @@ He.styles = g`
3111
3361
  :host([fill]) .tabs { flex: 1; min-height: 0; }
3112
3362
  `;
3113
3363
  let j1 = He;
3114
- U([
3364
+ G([
3115
3365
  s({ attribute: "default-value" })
3116
3366
  ], j1.prototype, "defaultValue");
3117
- U([
3367
+ G([
3118
3368
  s()
3119
3369
  ], j1.prototype, "value");
3120
- U([
3370
+ G([
3121
3371
  s({ type: Boolean, reflect: !0 })
3122
3372
  ], j1.prototype, "fill");
3123
- const _e = class _e extends h {
3373
+ const ye = class ye extends h {
3124
3374
  constructor() {
3125
3375
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
3126
3376
  }
@@ -3164,7 +3414,7 @@ const _e = class _e extends h {
3164
3414
  `;
3165
3415
  }
3166
3416
  };
3167
- _e.styles = g`
3417
+ ye.styles = g`
3168
3418
  :host { display: block; font-family: var(--font-sans); }
3169
3419
  /* Transparent by default so the list picks up whatever it sits on. Set a
3170
3420
  * background via anduin-tabs-list::part(tabs-list) when one is wanted. */
@@ -3181,14 +3431,14 @@ _e.styles = g`
3181
3431
  left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
3182
3432
  }
3183
3433
  `;
3184
- let y2 = _e;
3185
- U([
3434
+ let _2 = ye;
3435
+ G([
3186
3436
  s()
3187
- ], y2.prototype, "alignment");
3188
- U([
3189
- k(".tabs-list__indicator")
3190
- ], y2.prototype, "indicator");
3191
- const ye = class ye extends h {
3437
+ ], _2.prototype, "alignment");
3438
+ G([
3439
+ R(".tabs-list__indicator")
3440
+ ], _2.prototype, "indicator");
3441
+ const _e = class _e extends h {
3192
3442
  constructor() {
3193
3443
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
3194
3444
  }
@@ -3201,7 +3451,7 @@ const ye = class ye extends h {
3201
3451
  });
3202
3452
  }
3203
3453
  onClick() {
3204
- this.dispatchEvent(new CustomEvent(w3, { detail: this.value, bubbles: !0, composed: !0 }));
3454
+ this.dispatchEvent(new CustomEvent(w4, { detail: this.value, bubbles: !0, composed: !0 }));
3205
3455
  }
3206
3456
  render() {
3207
3457
  return a`
@@ -3222,7 +3472,7 @@ const ye = class ye extends h {
3222
3472
  `;
3223
3473
  }
3224
3474
  };
3225
- ye.styles = g`
3475
+ _e.styles = g`
3226
3476
  :host { display: inline-block; font-family: var(--font-sans); }
3227
3477
  .tab-trigger {
3228
3478
  cursor: pointer; background: none; border: none; display: block;
@@ -3245,23 +3495,23 @@ ye.styles = g`
3245
3495
  color: var(--color-neutral-subtle-foreground); white-space: nowrap;
3246
3496
  }
3247
3497
  `;
3248
- let l1 = ye;
3249
- U([
3498
+ let l1 = _e;
3499
+ G([
3250
3500
  s({ reflect: !0 })
3251
3501
  ], l1.prototype, "value");
3252
- U([
3502
+ G([
3253
3503
  s({ attribute: "start-icon" })
3254
3504
  ], l1.prototype, "startIcon");
3255
- U([
3505
+ G([
3256
3506
  s({ type: Boolean })
3257
3507
  ], l1.prototype, "disabled");
3258
- U([
3508
+ G([
3259
3509
  s({ type: Boolean, attribute: "show-badge" })
3260
3510
  ], l1.prototype, "showBadge");
3261
- U([
3511
+ G([
3262
3512
  s({ attribute: "badge-count" })
3263
3513
  ], l1.prototype, "badgeCount");
3264
- U([
3514
+ G([
3265
3515
  b()
3266
3516
  ], l1.prototype, "isActive");
3267
3517
  const Le = class Le extends h {
@@ -3293,22 +3543,22 @@ Le.styles = g`
3293
3543
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
3294
3544
  `;
3295
3545
  let L2 = Le;
3296
- U([
3546
+ G([
3297
3547
  s()
3298
3548
  ], L2.prototype, "value");
3299
- U([
3549
+ G([
3300
3550
  b()
3301
3551
  ], L2.prototype, "isActive");
3302
3552
  customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
3303
- customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y2);
3553
+ customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", _2);
3304
3554
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
3305
3555
  customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
3306
- var It = Object.defineProperty, q5 = (r, e, t, o) => {
3556
+ var F3 = Object.defineProperty, q5 = (r, e, t, o) => {
3307
3557
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3308
3558
  (l = r[n]) && (i = l(e, t, i) || i);
3309
- return i && It(e, t, i), i;
3559
+ return i && F3(e, t, i), i;
3310
3560
  };
3311
- const Ot = "anduin-tag-close:click", Tt = {
3561
+ const I3 = "anduin-tag-close:click", O3 = {
3312
3562
  gray: "tag--light-gray",
3313
3563
  primary: "tag--light-primary",
3314
3564
  success: "tag--light-success",
@@ -3333,7 +3583,7 @@ const Ot = "anduin-tag-close:click", Tt = {
3333
3583
  customYellow: "tag--custom-yellow",
3334
3584
  customYellowGreen: "tag--custom-yellow-green",
3335
3585
  customYellowOrange: "tag--custom-yellow-orange"
3336
- }, Nt = {
3586
+ }, N3 = {
3337
3587
  gray: "tag__icon--light-gray",
3338
3588
  primary: "tag__icon--light-primary",
3339
3589
  success: "tag__icon--light-success",
@@ -3363,7 +3613,7 @@ const Ot = "anduin-tag-close:click", Tt = {
3363
3613
  super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
3364
3614
  }
3365
3615
  render() {
3366
- const e = Tt[this.variant] || "tag--light-gray", t = Nt[this.variant] || "tag__icon--light-gray";
3616
+ const e = O3[this.variant] || "tag--light-gray", t = N3[this.variant] || "tag__icon--light-gray";
3367
3617
  return a`
3368
3618
  <div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
3369
3619
  ${this.icon ? a`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : u}
@@ -3437,7 +3687,7 @@ q5([
3437
3687
  ], U1.prototype, "disabled");
3438
3688
  const xe = class xe extends h {
3439
3689
  onClick() {
3440
- this.dispatchEvent(new CustomEvent(Ot, { bubbles: !0, composed: !0 }));
3690
+ this.dispatchEvent(new CustomEvent(I3, { bubbles: !0, composed: !0 }));
3441
3691
  }
3442
3692
  render() {
3443
3693
  return a`
@@ -3460,12 +3710,12 @@ xe.styles = g`
3460
3710
  let h5 = xe;
3461
3711
  customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
3462
3712
  customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
3463
- var jt = Object.defineProperty, O = (r, e, t, o) => {
3713
+ var j3 = Object.defineProperty, O = (r, e, t, o) => {
3464
3714
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3465
3715
  (l = r[n]) && (i = l(e, t, i) || i);
3466
- return i && jt(e, t, i), i;
3716
+ return i && j3(e, t, i), i;
3467
3717
  };
3468
- const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change", Kt = "anduin-toggle-group-item:select", Wt = "anduin-toggle-group-item:deselect", g5 = "anduin-toggle-group-item:item-click", we = class we extends h {
3718
+ const U3 = "anduin-toggle-group:change", G3 = "anduin-toggle-group-item:change", K3 = "anduin-toggle-group-item:select", W3 = "anduin-toggle-group-item:deselect", g5 = "anduin-toggle-group-item:item-click", we = class we extends h {
3469
3719
  constructor() {
3470
3720
  super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.userInteracted = !1, this.onItemClick = (e) => {
3471
3721
  var c;
@@ -3477,7 +3727,7 @@ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change",
3477
3727
  if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
3478
3728
  for (const C of i)
3479
3729
  (c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
3480
- this.dispatchEvent(new CustomEvent(Ut, {
3730
+ this.dispatchEvent(new CustomEvent(U3, {
3481
3731
  detail: l.join(" "),
3482
3732
  bubbles: !0,
3483
3733
  composed: !0
@@ -3580,11 +3830,11 @@ const Me = class Me extends h {
3580
3830
  }
3581
3831
  /** Called by the parent group when the user's action changes this item's selection. */
3582
3832
  emitSelectionChange(e) {
3583
- this.dispatchEvent(new CustomEvent(Gt, {
3833
+ this.dispatchEvent(new CustomEvent(G3, {
3584
3834
  detail: e,
3585
3835
  bubbles: !0,
3586
3836
  composed: !0
3587
- })), this.dispatchEvent(new CustomEvent(e ? Kt : Wt, {
3837
+ })), this.dispatchEvent(new CustomEvent(e ? K3 : W3, {
3588
3838
  detail: this.value,
3589
3839
  bubbles: !0,
3590
3840
  composed: !0
@@ -3687,12 +3937,12 @@ function e5(r) {
3687
3937
  }
3688
3938
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", X);
3689
3939
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", J);
3690
- var Yt = Object.defineProperty, qt = (r, e, t, o) => {
3940
+ var Y3 = Object.defineProperty, q3 = (r, e, t, o) => {
3691
3941
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3692
3942
  (l = r[n]) && (i = l(e, t, i) || i);
3693
- return i && Yt(e, t, i), i;
3943
+ return i && Y3(e, t, i), i;
3694
3944
  };
3695
- const Xt = "anduin-well-close:click", Ze = class Ze extends h {
3945
+ const X3 = "anduin-well-close:click", Ze = class Ze extends h {
3696
3946
  constructor() {
3697
3947
  super(...arguments), this.variant = "gray";
3698
3948
  }
@@ -3790,14 +4040,14 @@ Ze.styles = g`
3790
4040
  color: var(--color-warning-active);
3791
4041
  }
3792
4042
  `;
3793
- let F2 = Ze;
3794
- qt([
4043
+ let T2 = Ze;
4044
+ q3([
3795
4045
  s()
3796
- ], F2.prototype, "variant");
4046
+ ], T2.prototype, "variant");
3797
4047
  const ke = class ke extends h {
3798
4048
  onClick() {
3799
4049
  this.dispatchEvent(
3800
- new CustomEvent(Xt, { bubbles: !0, composed: !0 })
4050
+ new CustomEvent(X3, { bubbles: !0, composed: !0 })
3801
4051
  );
3802
4052
  }
3803
4053
  render() {
@@ -3838,12 +4088,12 @@ ke.styles = g`
3838
4088
  }
3839
4089
  `;
3840
4090
  let f5 = ke;
3841
- customElements.get("anduin-well") || customElements.define("anduin-well", F2);
4091
+ customElements.get("anduin-well") || customElements.define("anduin-well", T2);
3842
4092
  customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f5);
3843
- var Jt = Object.defineProperty, E1 = (r, e, t, o) => {
4093
+ var J3 = Object.defineProperty, E1 = (r, e, t, o) => {
3844
4094
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3845
4095
  (l = r[n]) && (i = l(e, t, i) || i);
3846
- return i && Jt(e, t, i), i;
4096
+ return i && J3(e, t, i), i;
3847
4097
  };
3848
4098
  const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class Re extends h {
3849
4099
  constructor() {
@@ -3895,10 +4145,10 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
3895
4145
  t.style.transform = i;
3896
4146
  const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
3897
4147
  let f = 0, H = 0, m = "bottom";
3898
- const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, w = v >= l.height, D = V ? x || y >= v : !w && x;
3899
- m = D ? "bottom" : "top", H = D ? o.bottom + d : o.top - l.height - d;
3900
- const K = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3901
- K === "start" ? f = o.left : K === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(H - n.top)}px)`, t.dataset.side = m;
4148
+ const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, w = v >= l.height, B = V ? x || _ >= v : !w && x;
4149
+ m = B ? "bottom" : "top", H = B ? o.bottom + d : o.top - l.height - d;
4150
+ const W = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
4151
+ W === "start" ? f = o.left : W === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), H = Math.max(p, Math.min(H, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(H - n.top)}px)`, t.dataset.side = m;
3902
4152
  }
3903
4153
  render() {
3904
4154
  return a`
@@ -3984,10 +4234,10 @@ E1([
3984
4234
  b()
3985
4235
  ], Q.prototype, "_closing");
3986
4236
  E1([
3987
- k(".popover__trigger")
4237
+ R(".popover__trigger")
3988
4238
  ], Q.prototype, "_triggerEl");
3989
4239
  E1([
3990
- k(".popover__panel")
4240
+ R(".popover__panel")
3991
4241
  ], Q.prototype, "_panelEl");
3992
4242
  customElements.get("anduin-popover") || customElements.define("anduin-popover", Q);
3993
4243
  const $e = class $e extends h {
@@ -4001,10 +4251,10 @@ const $e = class $e extends h {
4001
4251
  $e.styles = g`:host { display: contents; }`;
4002
4252
  let m5 = $e;
4003
4253
  customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", m5);
4004
- var Qt = Object.defineProperty, z1 = (r, e, t, o) => {
4254
+ var Q3 = Object.defineProperty, z1 = (r, e, t, o) => {
4005
4255
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4006
4256
  (l = r[n]) && (i = l(e, t, i) || i);
4007
- return i && Qt(e, t, i), i;
4257
+ return i && Q3(e, t, i), i;
4008
4258
  };
4009
4259
  const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4010
4260
  constructor() {
@@ -4123,10 +4373,10 @@ z1([
4123
4373
  s()
4124
4374
  ], $1.prototype, "placement");
4125
4375
  z1([
4126
- k(".menu__trigger")
4376
+ R(".menu__trigger")
4127
4377
  ], $1.prototype, "_triggerEl");
4128
4378
  z1([
4129
- k(".menu__panel")
4379
+ R(".menu__panel")
4130
4380
  ], $1.prototype, "_panelEl");
4131
4381
  const ze = class ze extends h {
4132
4382
  constructor() {
@@ -4197,13 +4447,13 @@ var e7 = Object.defineProperty, S1 = (r, e, t, o) => {
4197
4447
  (l = r[n]) && (i = l(e, t, i) || i);
4198
4448
  return i && e7(e, t, i), i;
4199
4449
  };
4200
- const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4201
- let d2 = 0, M3 = "";
4450
+ const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, Ot = 250;
4451
+ let d2 = 0, M4 = "";
4202
4452
  function t7() {
4203
- typeof document > "u" || (d2 === 0 && (M3 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
4453
+ typeof document > "u" || (d2 === 0 && (M4 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
4204
4454
  }
4205
- function N4() {
4206
- typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow = M3));
4455
+ function Nt() {
4456
+ typeof document > "u" || d2 !== 0 && (d2--, d2 === 0 && (document.body.style.overflow = M4));
4207
4457
  }
4208
4458
  var g1;
4209
4459
  const L1 = (g1 = class extends h {
@@ -4219,14 +4469,14 @@ const L1 = (g1 = class extends h {
4219
4469
  }
4220
4470
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, t7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
4221
4471
  () => {
4222
- this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, N4()), this.dispatchEvent(
4472
+ this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, Nt()), this.dispatchEvent(
4223
4473
  new CustomEvent(t5, {
4224
4474
  bubbles: !0,
4225
4475
  composed: !0
4226
4476
  })
4227
4477
  );
4228
4478
  },
4229
- Math.max(o5, T4)
4479
+ Math.max(o5, Ot)
4230
4480
  )));
4231
4481
  }
4232
4482
  dispatch(e) {
@@ -4244,7 +4494,7 @@ const L1 = (g1 = class extends h {
4244
4494
  super.connectedCallback(), this.addEventListener(r2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4245
4495
  }
4246
4496
  disconnectedCallback() {
4247
- super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4497
+ super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, Nt());
4248
4498
  }
4249
4499
  render() {
4250
4500
  const e = this._leaving, t = this.fullscreen;
@@ -4362,7 +4612,7 @@ const L1 = (g1 = class extends h {
4362
4612
  forwards;
4363
4613
  }
4364
4614
  .overlay.is-leaving {
4365
- animation: overlayOut ${T4}ms
4615
+ animation: overlayOut ${Ot}ms
4366
4616
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
4367
4617
  }
4368
4618
  .modal-wrapper {
@@ -4523,7 +4773,7 @@ var n7 = Object.defineProperty, d1 = (r, e, t, o) => {
4523
4773
  (l = r[n]) && (i = l(e, t, i) || i);
4524
4774
  return i && n7(e, t, i), i;
4525
4775
  };
4526
- const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
4776
+ const y5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
4527
4777
  constructor() {
4528
4778
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
4529
4779
  }
@@ -4536,7 +4786,7 @@ const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class S
4536
4786
  });
4537
4787
  }
4538
4788
  _select() {
4539
- this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(_5, {
4789
+ this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(y5, {
4540
4790
  detail: this.value,
4541
4791
  bubbles: !0,
4542
4792
  composed: !0
@@ -4683,10 +4933,10 @@ const Ae = class Ae extends h {
4683
4933
  };
4684
4934
  }
4685
4935
  connectedCallback() {
4686
- super.connectedCallback(), this.addEventListener(_5, this._onRadioChange);
4936
+ super.connectedCallback(), this.addEventListener(y5, this._onRadioChange);
4687
4937
  }
4688
4938
  disconnectedCallback() {
4689
- super.disconnectedCallback(), this.removeEventListener(_5, this._onRadioChange);
4939
+ super.disconnectedCallback(), this.removeEventListener(y5, this._onRadioChange);
4690
4940
  }
4691
4941
  render() {
4692
4942
  return a`
@@ -4722,7 +4972,7 @@ var l7 = Object.defineProperty, A1 = (r, e, t, o) => {
4722
4972
  (l = r[n]) && (i = l(e, t, i) || i);
4723
4973
  return i && l7(e, t, i), i;
4724
4974
  };
4725
- const j4 = [
4975
+ const jt = [
4726
4976
  { bg: "#6172F3", text: "#ffffff" },
4727
4977
  { bg: "#B692F6", text: "#ffffff" },
4728
4978
  { bg: "#F670C7", text: "#ffffff" },
@@ -4735,7 +4985,7 @@ const j4 = [
4735
4985
  function s7(r) {
4736
4986
  let e = 0;
4737
4987
  for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4738
- return j4[e % j4.length];
4988
+ return jt[e % jt.length];
4739
4989
  }
4740
4990
  function a7(r, e = 2) {
4741
4991
  var i;
@@ -4850,7 +5100,7 @@ class C7 {
4850
5100
  * Copyright 2017 Google LLC
4851
5101
  * SPDX-License-Identifier: BSD-3-Clause
4852
5102
  */
4853
- class y5 extends C7 {
5103
+ class _5 extends C7 {
4854
5104
  constructor(e) {
4855
5105
  if (super(e), this.it = u, e.type !== d7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4856
5106
  }
@@ -4864,13 +5114,13 @@ class y5 extends C7 {
4864
5114
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
4865
5115
  }
4866
5116
  }
4867
- y5.directiveName = "unsafeHTML", y5.resultType = 1;
5117
+ _5.directiveName = "unsafeHTML", _5.resultType = 1;
4868
5118
  /**
4869
5119
  * @license
4870
5120
  * Copyright 2017 Google LLC
4871
5121
  * SPDX-License-Identifier: BSD-3-Clause
4872
5122
  */
4873
- class L5 extends y5 {
5123
+ class L5 extends _5 {
4874
5124
  }
4875
5125
  L5.directiveName = "unsafeSVG", L5.resultType = 2;
4876
5126
  const u7 = c7(L5), p7 = {
@@ -5126,7 +5376,7 @@ function g7(r, e) {
5126
5376
  if (t[o]) return t[o];
5127
5377
  return null;
5128
5378
  }
5129
- var f7 = Object.defineProperty, Z3 = (r, e, t, o) => {
5379
+ var f7 = Object.defineProperty, Z4 = (r, e, t, o) => {
5130
5380
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5131
5381
  (l = r[n]) && (i = l(e, t, i) || i);
5132
5382
  return i && f7(e, t, i), i;
@@ -5157,10 +5407,10 @@ Pe.styles = g`
5157
5407
  svg { display: block; }
5158
5408
  `;
5159
5409
  let V2 = Pe;
5160
- Z3([
5410
+ Z4([
5161
5411
  s()
5162
5412
  ], V2.prototype, "type");
5163
- Z3([
5413
+ Z4([
5164
5414
  s({ type: Number })
5165
5415
  ], V2.prototype, "size");
5166
5416
  customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
@@ -5169,7 +5419,7 @@ var v7 = Object.defineProperty, D1 = (r, e, t, o) => {
5169
5419
  (l = r[n]) && (i = l(e, t, i) || i);
5170
5420
  return i && v7(e, t, i), i;
5171
5421
  };
5172
- const U4 = {
5422
+ const Ut = {
5173
5423
  gray: "info",
5174
5424
  primary: "infoCircleLine",
5175
5425
  success: "checkCircle",
@@ -5195,7 +5445,7 @@ const U4 = {
5195
5445
  this.dismiss();
5196
5446
  }
5197
5447
  render() {
5198
- const e = U4[this.variant] ?? U4.gray;
5448
+ const e = Ut[this.variant] ?? Ut.gray;
5199
5449
  return a`
5200
5450
  <div
5201
5451
  class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
@@ -5364,10 +5614,10 @@ D1([
5364
5614
  b()
5365
5615
  ], b1.prototype, "_dismissing");
5366
5616
  D1([
5367
- k(".toast")
5617
+ R(".toast")
5368
5618
  ], b1.prototype, "_toastEl");
5369
5619
  customElements.get("anduin-toast") || customElements.define("anduin-toast", b1);
5370
- const Fe = class Fe extends h {
5620
+ const Te = class Te extends h {
5371
5621
  constructor() {
5372
5622
  super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
5373
5623
  }
@@ -5411,7 +5661,7 @@ const Fe = class Fe extends h {
5411
5661
  `;
5412
5662
  }
5413
5663
  };
5414
- Fe.styles = g`
5664
+ Te.styles = g`
5415
5665
  :host {
5416
5666
  display: contents;
5417
5667
  pointer-events: none;
@@ -5458,7 +5708,7 @@ Fe.styles = g`
5458
5708
  align-items: flex-end;
5459
5709
  }
5460
5710
  `;
5461
- let x2 = Fe;
5711
+ let x2 = Te;
5462
5712
  D1([
5463
5713
  s()
5464
5714
  ], x2.prototype, "position");
@@ -5491,17 +5741,17 @@ function m7(r = "bottom-left") {
5491
5741
  const e = document.createElement("anduin-toaster");
5492
5742
  return e.position = r, document.body.appendChild(e), n5.set(r, e), e;
5493
5743
  }
5494
- var H7 = Object.defineProperty, k3 = (r, e, t, o) => {
5744
+ var H7 = Object.defineProperty, k4 = (r, e, t, o) => {
5495
5745
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5496
5746
  (l = r[n]) && (i = l(e, t, i) || i);
5497
5747
  return i && H7(e, t, i), i;
5498
5748
  };
5499
- const _7 = "anduin-switcher:change", Ie = class Ie extends h {
5749
+ const y7 = "anduin-switcher:change", Fe = class Fe extends h {
5500
5750
  constructor() {
5501
5751
  super(...arguments), this.checked = !1, this.disabled = !1;
5502
5752
  }
5503
5753
  onChange() {
5504
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(_7, {
5754
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(y7, {
5505
5755
  detail: this.checked,
5506
5756
  bubbles: !0,
5507
5757
  composed: !0
@@ -5525,7 +5775,7 @@ const _7 = "anduin-switcher:change", Ie = class Ie extends h {
5525
5775
  `;
5526
5776
  }
5527
5777
  };
5528
- Ie.styles = g`
5778
+ Fe.styles = g`
5529
5779
  :host { display: inline-flex; font-family: var(--font-sans); }
5530
5780
 
5531
5781
  label {
@@ -5589,20 +5839,20 @@ Ie.styles = g`
5589
5839
  line-height: 20px;
5590
5840
  }
5591
5841
  `;
5592
- let w2 = Ie;
5593
- k3([
5842
+ let w2 = Fe;
5843
+ k4([
5594
5844
  s({ type: Boolean })
5595
5845
  ], w2.prototype, "checked");
5596
- k3([
5846
+ k4([
5597
5847
  s({ type: Boolean })
5598
5848
  ], w2.prototype, "disabled");
5599
5849
  customElements.get("anduin-switcher") || customElements.define("anduin-switcher", w2);
5600
- var y7 = Object.defineProperty, E = (r, e, t, o) => {
5850
+ var _7 = Object.defineProperty, S = (r, e, t, o) => {
5601
5851
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5602
5852
  (l = r[n]) && (i = l(e, t, i) || i);
5603
- return i && y7(e, t, i), i;
5853
+ return i && _7(e, t, i), i;
5604
5854
  };
5605
- const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5855
+ const Gt = "anduin-dropdown:change", Ie = class Ie extends h {
5606
5856
  constructor() {
5607
5857
  super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this.clearable = !0, this._open = !1, this._query = "", this._activeIndex = -1, this._onOutsideClick = (e) => {
5608
5858
  var t;
@@ -5661,14 +5911,14 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5661
5911
  }
5662
5912
  }
5663
5913
  _onClear(e) {
5664
- e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(G4, {
5914
+ e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(Gt, {
5665
5915
  detail: "",
5666
5916
  bubbles: !0,
5667
5917
  composed: !0
5668
5918
  })));
5669
5919
  }
5670
5920
  _selectOption(e) {
5671
- e.disabled || (this.value = e.value, this._open = !1, this._query = "", this._activeIndex = -1, this.dispatchEvent(new CustomEvent(G4, {
5921
+ e.disabled || (this.value = e.value, this._open = !1, this._query = "", this._activeIndex = -1, this.dispatchEvent(new CustomEvent(Gt, {
5672
5922
  detail: e.value,
5673
5923
  bubbles: !0,
5674
5924
  composed: !0
@@ -5683,10 +5933,10 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5683
5933
  t.style.transform = i;
5684
5934
  const l = t.querySelector(".panel__inner");
5685
5935
  l && (l.style.minWidth = `${o.width}px`);
5686
- const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, y = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
5936
+ const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, _ = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
5687
5937
  let v = o.left;
5688
5938
  this.placement === "bottom-end" ? v = o.right - d.width : this.placement === "bottom" && (v = o.left + o.width / 2 - d.width / 2), v = Math.max(f, Math.min(v, C - d.width - f));
5689
- const x = Math.max(f, Math.min(y, p - d.height - f));
5939
+ const x = Math.max(f, Math.min(_, p - d.height - f));
5690
5940
  t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
5691
5941
  }
5692
5942
  get _filteredOptions() {
@@ -5761,7 +6011,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5761
6011
  `;
5762
6012
  }
5763
6013
  };
5764
- Oe.styles = g`
6014
+ Ie.styles = g`
5765
6015
  :host { display: inline-block; font-family: var(--font-sans); }
5766
6016
  :host([full-width]) { display: block; width: 100%; }
5767
6017
  :host([full-width]) .trigger { width: 100%; }
@@ -6008,73 +6258,73 @@ Oe.styles = g`
6008
6258
  text-align: center;
6009
6259
  }
6010
6260
  `;
6011
- let M = Oe;
6012
- E([
6261
+ let Z = Ie;
6262
+ S([
6013
6263
  s()
6014
- ], M.prototype, "value");
6015
- E([
6264
+ ], Z.prototype, "value");
6265
+ S([
6016
6266
  s()
6017
- ], M.prototype, "placeholder");
6018
- E([
6267
+ ], Z.prototype, "placeholder");
6268
+ S([
6019
6269
  s({ attribute: !1 })
6020
- ], M.prototype, "options");
6021
- E([
6270
+ ], Z.prototype, "options");
6271
+ S([
6022
6272
  s()
6023
- ], M.prototype, "icon");
6024
- E([
6273
+ ], Z.prototype, "icon");
6274
+ S([
6025
6275
  s({ type: Boolean })
6026
- ], M.prototype, "searchable");
6027
- E([
6276
+ ], Z.prototype, "searchable");
6277
+ S([
6028
6278
  s({ type: Boolean })
6029
- ], M.prototype, "disabled");
6030
- E([
6279
+ ], Z.prototype, "disabled");
6280
+ S([
6031
6281
  s()
6032
- ], M.prototype, "placement");
6033
- E([
6282
+ ], Z.prototype, "placement");
6283
+ S([
6034
6284
  s()
6035
- ], M.prototype, "appearance");
6036
- E([
6285
+ ], Z.prototype, "appearance");
6286
+ S([
6037
6287
  s()
6038
- ], M.prototype, "variant");
6039
- E([
6288
+ ], Z.prototype, "variant");
6289
+ S([
6040
6290
  s()
6041
- ], M.prototype, "size");
6042
- E([
6291
+ ], Z.prototype, "size");
6292
+ S([
6043
6293
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
6044
- ], M.prototype, "fullWidth");
6045
- E([
6294
+ ], Z.prototype, "fullWidth");
6295
+ S([
6046
6296
  s({ converter: (r) => r !== "false" })
6047
- ], M.prototype, "clearable");
6048
- E([
6297
+ ], Z.prototype, "clearable");
6298
+ S([
6049
6299
  b()
6050
- ], M.prototype, "_open");
6051
- E([
6300
+ ], Z.prototype, "_open");
6301
+ S([
6052
6302
  b()
6053
- ], M.prototype, "_query");
6054
- E([
6303
+ ], Z.prototype, "_query");
6304
+ S([
6055
6305
  b()
6056
- ], M.prototype, "_activeIndex");
6057
- E([
6058
- k(".trigger")
6059
- ], M.prototype, "_triggerEl");
6060
- E([
6061
- k(".panel")
6062
- ], M.prototype, "_panelEl");
6063
- E([
6064
- k("anduin-input")
6065
- ], M.prototype, "_searchEl");
6066
- customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", M);
6306
+ ], Z.prototype, "_activeIndex");
6307
+ S([
6308
+ R(".trigger")
6309
+ ], Z.prototype, "_triggerEl");
6310
+ S([
6311
+ R(".panel")
6312
+ ], Z.prototype, "_panelEl");
6313
+ S([
6314
+ R("anduin-input")
6315
+ ], Z.prototype, "_searchEl");
6316
+ customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", Z);
6067
6317
  var L7 = Object.defineProperty, c1 = (r, e, t, o) => {
6068
6318
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6069
6319
  (l = r[n]) && (i = l(e, t, i) || i);
6070
6320
  return i && L7(e, t, i), i;
6071
6321
  };
6072
- const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6322
+ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, Kt = 250, x7 = /* @__PURE__ */ new Map([
6073
6323
  ["320", 320],
6074
6324
  ["360", 360],
6075
6325
  ["400", 400],
6076
6326
  ["640", 640]
6077
- ]), Te = class Te extends h {
6327
+ ]), Oe = class Oe extends h {
6078
6328
  constructor() {
6079
6329
  super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.placement = "right", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._stopAtSelf = (e) => {
6080
6330
  e.stopPropagation();
@@ -6105,7 +6355,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6105
6355
  composed: !0
6106
6356
  })
6107
6357
  );
6108
- }, K4)));
6358
+ }, Kt)));
6109
6359
  }
6110
6360
  _dispatch(e) {
6111
6361
  this.dispatchEvent(
@@ -6165,7 +6415,7 @@ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6165
6415
  `;
6166
6416
  }
6167
6417
  };
6168
- Te.styles = g`
6418
+ Oe.styles = g`
6169
6419
  :host {
6170
6420
  display: none;
6171
6421
  font-family: var(--font-sans);
@@ -6239,7 +6489,7 @@ Te.styles = g`
6239
6489
  pointer-events: auto;
6240
6490
  }
6241
6491
  .drawer.is-leaving {
6242
- animation: drawerOut ${K4}ms
6492
+ animation: drawerOut ${Kt}ms
6243
6493
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
6244
6494
  }
6245
6495
  /* placement="left": every rule above that assumes the right edge, flipped.
@@ -6328,35 +6578,35 @@ Te.styles = g`
6328
6578
  border-top: 1px solid var(--color-border);
6329
6579
  }
6330
6580
  `;
6331
- let G = Te;
6581
+ let K = Oe;
6332
6582
  c1([
6333
6583
  s({ type: Boolean, reflect: !0 })
6334
- ], G.prototype, "open");
6584
+ ], K.prototype, "open");
6335
6585
  c1([
6336
6586
  s()
6337
- ], G.prototype, "heading");
6587
+ ], K.prototype, "heading");
6338
6588
  c1([
6339
6589
  s({ type: Boolean, attribute: "hide-header" })
6340
- ], G.prototype, "hideHeader");
6590
+ ], K.prototype, "hideHeader");
6341
6591
  c1([
6342
6592
  s({ type: Boolean, attribute: "hide-footer" })
6343
- ], G.prototype, "hideFooter");
6593
+ ], K.prototype, "hideFooter");
6344
6594
  c1([
6345
6595
  s({ attribute: "default-width" })
6346
- ], G.prototype, "defaultWidth");
6596
+ ], K.prototype, "defaultWidth");
6347
6597
  c1([
6348
6598
  s({ reflect: !0 })
6349
- ], G.prototype, "placement");
6599
+ ], K.prototype, "placement");
6350
6600
  c1([
6351
6601
  s({ type: Boolean, attribute: "allow-interact-outside" })
6352
- ], G.prototype, "allowInteractOutside");
6602
+ ], K.prototype, "allowInteractOutside");
6353
6603
  c1([
6354
6604
  b()
6355
- ], G.prototype, "_leaving");
6605
+ ], K.prototype, "_leaving");
6356
6606
  c1([
6357
6607
  b()
6358
- ], G.prototype, "_width");
6359
- customElements.get("anduin-drawer") || customElements.define("anduin-drawer", G);
6608
+ ], K.prototype, "_width");
6609
+ customElements.get("anduin-drawer") || customElements.define("anduin-drawer", K);
6360
6610
  class w7 extends HTMLElement {
6361
6611
  constructor() {
6362
6612
  super(...arguments), this._onClick = () => {
@@ -6373,7 +6623,7 @@ class w7 extends HTMLElement {
6373
6623
  }
6374
6624
  }
6375
6625
  customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", w7);
6376
- var M7 = Object.defineProperty, z = (r, e, t, o) => {
6626
+ var M7 = Object.defineProperty, A = (r, e, t, o) => {
6377
6627
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6378
6628
  (l = r[n]) && (i = l(e, t, i) || i);
6379
6629
  return i && M7(e, t, i), i;
@@ -6475,10 +6725,10 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6475
6725
  t.style.transform = i;
6476
6726
  const l = t.querySelector(".panel__inner");
6477
6727
  l && (l.style.minWidth = `${o.width}px`);
6478
- const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, y = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
6728
+ const d = t.getBoundingClientRect(), c = 4, C = window.innerWidth, p = window.innerHeight, f = 8, H = p - o.bottom - c, m = o.top - c, _ = d.height <= H || H >= m ? o.bottom + c : o.top - d.height - c;
6479
6729
  let v = o.left;
6480
6730
  v = Math.max(f, Math.min(v, C - d.width - f));
6481
- const x = Math.max(f, Math.min(y, p - d.height - f));
6731
+ const x = Math.max(f, Math.min(_, p - d.height - f));
6482
6732
  t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
6483
6733
  }
6484
6734
  render() {
@@ -6664,62 +6914,62 @@ Ne.styles = g`
6664
6914
  text-align: center;
6665
6915
  }
6666
6916
  `;
6667
- let Z = Ne;
6668
- z([
6917
+ let k = Ne;
6918
+ A([
6669
6919
  s()
6670
- ], Z.prototype, "value");
6671
- z([
6920
+ ], k.prototype, "value");
6921
+ A([
6672
6922
  s()
6673
- ], Z.prototype, "size");
6674
- z([
6923
+ ], k.prototype, "size");
6924
+ A([
6675
6925
  s({ type: Boolean })
6676
- ], Z.prototype, "disabled");
6677
- z([
6926
+ ], k.prototype, "disabled");
6927
+ A([
6678
6928
  s({ type: Boolean })
6679
- ], Z.prototype, "readonly");
6680
- z([
6929
+ ], k.prototype, "readonly");
6930
+ A([
6681
6931
  s()
6682
- ], Z.prototype, "placeholder");
6683
- z([
6932
+ ], k.prototype, "placeholder");
6933
+ A([
6684
6934
  s()
6685
- ], Z.prototype, "inputid");
6686
- z([
6935
+ ], k.prototype, "inputid");
6936
+ A([
6687
6937
  s()
6688
- ], Z.prototype, "status");
6689
- z([
6938
+ ], k.prototype, "status");
6939
+ A([
6690
6940
  s({ attribute: "start-icon" })
6691
- ], Z.prototype, "startIcon");
6692
- z([
6941
+ ], k.prototype, "startIcon");
6942
+ A([
6693
6943
  s({ attribute: "end-icon" })
6694
- ], Z.prototype, "endIcon");
6695
- z([
6944
+ ], k.prototype, "endIcon");
6945
+ A([
6696
6946
  s({ type: Boolean })
6697
- ], Z.prototype, "clearable");
6698
- z([
6947
+ ], k.prototype, "clearable");
6948
+ A([
6699
6949
  s({ attribute: !1 })
6700
- ], Z.prototype, "suggestions");
6701
- z([
6950
+ ], k.prototype, "suggestions");
6951
+ A([
6702
6952
  s({ type: Boolean })
6703
- ], Z.prototype, "filter");
6704
- z([
6953
+ ], k.prototype, "filter");
6954
+ A([
6705
6955
  s({ type: Boolean, attribute: "hide-when-empty" })
6706
- ], Z.prototype, "hideWhenEmpty");
6707
- z([
6956
+ ], k.prototype, "hideWhenEmpty");
6957
+ A([
6708
6958
  s({ attribute: "empty-text" })
6709
- ], Z.prototype, "emptyText");
6710
- z([
6959
+ ], k.prototype, "emptyText");
6960
+ A([
6711
6961
  b()
6712
- ], Z.prototype, "_open");
6713
- z([
6962
+ ], k.prototype, "_open");
6963
+ A([
6714
6964
  b()
6715
- ], Z.prototype, "_activeIndex");
6716
- z([
6717
- k("input")
6718
- ], Z.prototype, "_inputEl");
6719
- z([
6720
- k(".panel")
6721
- ], Z.prototype, "_panelEl");
6722
- customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
6965
+ ], k.prototype, "_activeIndex");
6966
+ A([
6967
+ R("input")
6968
+ ], k.prototype, "_inputEl");
6969
+ A([
6970
+ R(".panel")
6971
+ ], k.prototype, "_panelEl");
6972
+ customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", k);
6723
6973
  var R7 = Object.defineProperty, q = (r, e, t, o) => {
6724
6974
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6725
6975
  (l = r[n]) && (i = l(e, t, i) || i);
@@ -6945,8 +7195,8 @@ var E7 = Object.defineProperty, P1 = (r, e, t, o) => {
6945
7195
  (l = r[n]) && (i = l(e, t, i) || i);
6946
7196
  return i && E7(e, t, i), i;
6947
7197
  };
6948
- const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (r) => !!r && r.tagName.toLowerCase() === R3;
6949
- function Y4(r, e, t) {
7198
+ const z7 = "anduin-resizable:resize", R4 = "anduin-resizable-panel", Wt = (r) => !!r && r.tagName.toLowerCase() === R4;
7199
+ function Yt(r, e, t) {
6950
7200
  const o = (r || "").trim();
6951
7201
  if (!o) return t;
6952
7202
  const i = parseFloat(o);
@@ -6968,7 +7218,7 @@ const Ge = class Ge extends h {
6968
7218
  return this.isVertical ? e.height : e.width;
6969
7219
  }
6970
7220
  get panels() {
6971
- return Array.from(this.querySelectorAll(`:scope > ${R3}`));
7221
+ return Array.from(this.querySelectorAll(`:scope > ${R4}`));
6972
7222
  }
6973
7223
  updated() {
6974
7224
  for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
@@ -7001,10 +7251,10 @@ Ge.styles = g`
7001
7251
  }
7002
7252
  .panel-group--vertical { flex-direction: column; }
7003
7253
  `;
7004
- let I2 = Ge;
7254
+ let F2 = Ge;
7005
7255
  P1([
7006
7256
  s({ reflect: !0 })
7007
- ], I2.prototype, "orientation");
7257
+ ], F2.prototype, "orientation");
7008
7258
  const Ke = class Ke extends h {
7009
7259
  constructor() {
7010
7260
  super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
@@ -7028,10 +7278,10 @@ const Ke = class Ke extends h {
7028
7278
  return e ? t.height : t.width;
7029
7279
  }
7030
7280
  minPx(e) {
7031
- return Y4(this.minSize, e, 0);
7281
+ return Yt(this.minSize, e, 0);
7032
7282
  }
7033
7283
  maxPx(e) {
7034
- return Y4(this.maxSize, e, e);
7284
+ return Yt(this.maxSize, e, e);
7035
7285
  }
7036
7286
  render() {
7037
7287
  return a`<div class="panel" part="panel"><slot></slot></div>`;
@@ -7097,10 +7347,10 @@ const We = class We extends h {
7097
7347
  this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
7098
7348
  }
7099
7349
  get prevPanel() {
7100
- return W4(this.previousElementSibling) ? this.previousElementSibling : null;
7350
+ return Wt(this.previousElementSibling) ? this.previousElementSibling : null;
7101
7351
  }
7102
7352
  get nextPanel() {
7103
- return W4(this.nextElementSibling) ? this.nextElementSibling : null;
7353
+ return Wt(this.nextElementSibling) ? this.nextElementSibling : null;
7104
7354
  }
7105
7355
  endDrag() {
7106
7356
  if (!(!this.dragging && this.activePointerId === null)) {
@@ -7178,7 +7428,7 @@ P1([
7178
7428
  P1([
7179
7429
  b()
7180
7430
  ], Y1.prototype, "dragging");
7181
- customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", I2);
7431
+ customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", F2);
7182
7432
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
7183
7433
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
7184
7434
  var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
@@ -7398,7 +7648,7 @@ X1([
7398
7648
  b()
7399
7649
  ], H1.prototype, "internalValue");
7400
7650
  X1([
7401
- k(".pagination__indicator")
7651
+ R(".pagination__indicator")
7402
7652
  ], H1.prototype, "indicatorEl");
7403
7653
  const qe = class qe extends h {
7404
7654
  constructor() {
@@ -7585,24 +7835,24 @@ Qe.styles = g`
7585
7835
  }
7586
7836
  `;
7587
7837
  let Z5 = Qe;
7588
- const e4 = class e4 extends h {
7838
+ const et = class et extends h {
7589
7839
  render() {
7590
7840
  return a`<div class="title"><slot></slot></div>`;
7591
7841
  }
7592
7842
  };
7593
- e4.styles = g`
7843
+ et.styles = g`
7594
7844
  /* Block-level element inheriting the parent's font size and color. */
7595
7845
  :host {
7596
7846
  display: block;
7597
7847
  }
7598
7848
  `;
7599
- let k5 = e4;
7600
- const t4 = class t4 extends h {
7849
+ let k5 = et;
7850
+ const tt = class tt extends h {
7601
7851
  render() {
7602
7852
  return a`<div class="group__items"><slot></slot></div>`;
7603
7853
  }
7604
7854
  };
7605
- t4.styles = g`
7855
+ tt.styles = g`
7606
7856
  :host {
7607
7857
  display: block;
7608
7858
  }
@@ -7621,13 +7871,13 @@ t4.styles = g`
7621
7871
  flex-direction: column;
7622
7872
  }
7623
7873
  `;
7624
- let R5 = t4;
7625
- const i4 = class i4 extends h {
7874
+ let R5 = tt;
7875
+ const it = class it extends h {
7626
7876
  render() {
7627
7877
  return a`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
7628
7878
  }
7629
7879
  };
7630
- i4.styles = g`
7880
+ it.styles = g`
7631
7881
  /* Sticky positioning keeps the label visible while scrolling. The gray-0
7632
7882
  * background covers content behind it during scroll. z-index: 1 ensures the
7633
7883
  * label sits above item dots and rails. */
@@ -7685,7 +7935,7 @@ i4.styles = g`
7685
7935
  font-weight: 600;
7686
7936
  }
7687
7937
  `;
7688
- let $5 = i4;
7938
+ let $5 = it;
7689
7939
  customElements.get("anduin-timeline") || customElements.define("anduin-timeline", w5);
7690
7940
  customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", M5);
7691
7941
  customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", Z5);
@@ -7697,7 +7947,7 @@ var B7 = Object.defineProperty, B1 = (r, e, t, o) => {
7697
7947
  (l = r[n]) && (i = l(e, t, i) || i);
7698
7948
  return i && B7(e, t, i), i;
7699
7949
  };
7700
- const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
7950
+ const T7 = "anduin-sidebar:select", ot = class ot extends h {
7701
7951
  connectedCallback() {
7702
7952
  super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation");
7703
7953
  }
@@ -7705,7 +7955,7 @@ const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
7705
7955
  return a`<div class="sidebar" part="sidebar"><slot></slot></div>`;
7706
7956
  }
7707
7957
  };
7708
- o4.styles = g`
7958
+ ot.styles = g`
7709
7959
  :host {
7710
7960
  display: flex;
7711
7961
  flex-direction: column;
@@ -7720,13 +7970,13 @@ o4.styles = g`
7720
7970
  min-height: 0;
7721
7971
  }
7722
7972
  `;
7723
- let E5 = o4;
7724
- const n4 = class n4 extends h {
7973
+ let E5 = ot;
7974
+ const nt = class nt extends h {
7725
7975
  render() {
7726
7976
  return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
7727
7977
  }
7728
7978
  };
7729
- n4.styles = g`
7979
+ nt.styles = g`
7730
7980
  :host {
7731
7981
  display: flex;
7732
7982
  flex-direction: column;
@@ -7741,8 +7991,8 @@ n4.styles = g`
7741
7991
  padding: 12px 16px;
7742
7992
  }
7743
7993
  `;
7744
- let z5 = n4;
7745
- const r4 = class r4 extends h {
7994
+ let z5 = nt;
7995
+ const rt = class rt extends h {
7746
7996
  constructor() {
7747
7997
  super(...arguments), this.divider = !1;
7748
7998
  }
@@ -7750,7 +8000,7 @@ const r4 = class r4 extends h {
7750
8000
  return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
7751
8001
  }
7752
8002
  };
7753
- r4.styles = g`
8003
+ rt.styles = g`
7754
8004
  :host {
7755
8005
  display: block;
7756
8006
  flex: 0 0 auto;
@@ -7761,11 +8011,11 @@ r4.styles = g`
7761
8011
  border-bottom: 1px solid var(--color-border);
7762
8012
  }
7763
8013
  `;
7764
- let O2 = r4;
8014
+ let I2 = rt;
7765
8015
  B1([
7766
8016
  s({ type: Boolean, reflect: !0 })
7767
- ], O2.prototype, "divider");
7768
- const l4 = class l4 extends h {
8017
+ ], I2.prototype, "divider");
8018
+ const lt = class lt extends h {
7769
8019
  constructor() {
7770
8020
  super(...arguments), this.divider = !1;
7771
8021
  }
@@ -7773,7 +8023,7 @@ const l4 = class l4 extends h {
7773
8023
  return a`<div class="sidebar-footer" part="footer"><slot></slot></div>`;
7774
8024
  }
7775
8025
  };
7776
- l4.styles = g`
8026
+ lt.styles = g`
7777
8027
  :host {
7778
8028
  display: block;
7779
8029
  flex: 0 0 auto;
@@ -7784,16 +8034,16 @@ l4.styles = g`
7784
8034
  border-top: 1px solid var(--color-border);
7785
8035
  }
7786
8036
  `;
7787
- let T2 = l4;
8037
+ let O2 = lt;
7788
8038
  B1([
7789
8039
  s({ type: Boolean, reflect: !0 })
7790
- ], T2.prototype, "divider");
7791
- const s4 = class s4 extends h {
8040
+ ], O2.prototype, "divider");
8041
+ const st = class st extends h {
7792
8042
  render() {
7793
8043
  return a`<div class="sidebar-group" part="group" role="group"><slot></slot></div>`;
7794
8044
  }
7795
8045
  };
7796
- s4.styles = g`
8046
+ st.styles = g`
7797
8047
  :host {
7798
8048
  display: block;
7799
8049
  }
@@ -7803,8 +8053,8 @@ s4.styles = g`
7803
8053
  gap: 4px;
7804
8054
  }
7805
8055
  `;
7806
- let S5 = s4;
7807
- const a4 = class a4 extends h {
8056
+ let S5 = st;
8057
+ const at = class at extends h {
7808
8058
  render() {
7809
8059
  return a`
7810
8060
  <div class="sidebar-group-label" part="group-label">
@@ -7815,7 +8065,7 @@ const a4 = class a4 extends h {
7815
8065
  `;
7816
8066
  }
7817
8067
  };
7818
- a4.styles = g`
8068
+ at.styles = g`
7819
8069
  :host {
7820
8070
  display: block;
7821
8071
  }
@@ -7847,13 +8097,13 @@ a4.styles = g`
7847
8097
  padding-right: 6px;
7848
8098
  }
7849
8099
  `;
7850
- let A5 = a4;
7851
- const d4 = class d4 extends h {
8100
+ let A5 = at;
8101
+ const dt = class dt extends h {
7852
8102
  render() {
7853
8103
  return a`<div class="sidebar-menu" part="menu"><slot></slot></div>`;
7854
8104
  }
7855
8105
  };
7856
- d4.styles = g`
8106
+ dt.styles = g`
7857
8107
  :host {
7858
8108
  display: block;
7859
8109
  }
@@ -7863,15 +8113,15 @@ d4.styles = g`
7863
8113
  gap: 2px;
7864
8114
  }
7865
8115
  `;
7866
- let D5 = d4;
7867
- const c4 = class c4 extends h {
8116
+ let D5 = dt;
8117
+ const ct = class ct extends h {
7868
8118
  constructor() {
7869
8119
  super(...arguments), this.startIcon = "", this.selected = !1, this.disabled = !1, this.href = "", this.openNewTab = !1, this.onClick = (e) => {
7870
8120
  if (this.disabled) {
7871
8121
  e.preventDefault(), e.stopPropagation();
7872
8122
  return;
7873
8123
  }
7874
- this.dispatchEvent(new CustomEvent(F7, {
8124
+ this.dispatchEvent(new CustomEvent(T7, {
7875
8125
  detail: this,
7876
8126
  bubbles: !0,
7877
8127
  composed: !0
@@ -7920,7 +8170,7 @@ const c4 = class c4 extends h {
7920
8170
  `;
7921
8171
  }
7922
8172
  };
7923
- c4.styles = g`
8173
+ ct.styles = g`
7924
8174
  :host {
7925
8175
  display: block;
7926
8176
  }
@@ -8003,23 +8253,23 @@ c4.styles = g`
8003
8253
  padding-right: 6px;
8004
8254
  }
8005
8255
  `;
8006
- let _1 = c4;
8256
+ let y1 = ct;
8007
8257
  B1([
8008
8258
  s({ attribute: "start-icon" })
8009
- ], _1.prototype, "startIcon");
8259
+ ], y1.prototype, "startIcon");
8010
8260
  B1([
8011
8261
  s({ type: Boolean, reflect: !0 })
8012
- ], _1.prototype, "selected");
8262
+ ], y1.prototype, "selected");
8013
8263
  B1([
8014
8264
  s({ type: Boolean, reflect: !0 })
8015
- ], _1.prototype, "disabled");
8265
+ ], y1.prototype, "disabled");
8016
8266
  B1([
8017
8267
  s()
8018
- ], _1.prototype, "href");
8268
+ ], y1.prototype, "href");
8019
8269
  B1([
8020
8270
  s({ type: Boolean, attribute: "open-new-tab" })
8021
- ], _1.prototype, "openNewTab");
8022
- const C4 = class C4 extends h {
8271
+ ], y1.prototype, "openNewTab");
8272
+ const Ct = class Ct extends h {
8023
8273
  connectedCallback() {
8024
8274
  super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "action");
8025
8275
  }
@@ -8027,7 +8277,7 @@ const C4 = class C4 extends h {
8027
8277
  return a`<div class="sidebar-action" part="action"><slot></slot></div>`;
8028
8278
  }
8029
8279
  };
8030
- C4.styles = g`
8280
+ Ct.styles = g`
8031
8281
  :host {
8032
8282
  display: flex;
8033
8283
  align-items: center;
@@ -8037,8 +8287,8 @@ C4.styles = g`
8037
8287
  align-items: center;
8038
8288
  }
8039
8289
  `;
8040
- let P5 = C4;
8041
- const u4 = class u4 extends h {
8290
+ let P5 = Ct;
8291
+ const ut = class ut extends h {
8042
8292
  connectedCallback() {
8043
8293
  super.connectedCallback(), this.hasAttribute("slot") || this.setAttribute("slot", "badge");
8044
8294
  }
@@ -8046,7 +8296,7 @@ const u4 = class u4 extends h {
8046
8296
  return a`<div class="sidebar-badge" part="badge"><slot></slot></div>`;
8047
8297
  }
8048
8298
  };
8049
- u4.styles = g`
8299
+ ut.styles = g`
8050
8300
  :host {
8051
8301
  display: flex;
8052
8302
  align-items: center;
@@ -8056,8 +8306,8 @@ u4.styles = g`
8056
8306
  align-items: center;
8057
8307
  }
8058
8308
  `;
8059
- let B5 = u4;
8060
- const p4 = class p4 extends h {
8309
+ let B5 = ut;
8310
+ const pt = class pt extends h {
8061
8311
  connectedCallback() {
8062
8312
  super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator");
8063
8313
  }
@@ -8065,7 +8315,7 @@ const p4 = class p4 extends h {
8065
8315
  return a`<div class="sidebar-separator" part="separator"></div>`;
8066
8316
  }
8067
8317
  };
8068
- p4.styles = g`
8318
+ pt.styles = g`
8069
8319
  :host {
8070
8320
  display: block;
8071
8321
  }
@@ -8074,19 +8324,19 @@ p4.styles = g`
8074
8324
  background-color: var(--color-border);
8075
8325
  }
8076
8326
  `;
8077
- let F5 = p4;
8327
+ let T5 = pt;
8078
8328
  customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", E5);
8079
8329
  customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", z5);
8080
- customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", O2);
8081
- customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", T2);
8330
+ customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", I2);
8331
+ customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", O2);
8082
8332
  customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", S5);
8083
8333
  customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", A5);
8084
8334
  customElements.get("anduin-sidebar-menu") || customElements.define("anduin-sidebar-menu", D5);
8085
- customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item", _1);
8335
+ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-sidebar-menu-item", y1);
8086
8336
  customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
8087
8337
  customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
8088
- customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", F5);
8089
- function P(r) {
8338
+ customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", T5);
8339
+ function T(r) {
8090
8340
  if (!r) return null;
8091
8341
  const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
8092
8342
  if (!e) return null;
@@ -8097,7 +8347,7 @@ function x1(r) {
8097
8347
  const e = (t) => String(t).padStart(2, "0");
8098
8348
  return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
8099
8349
  }
8100
- function O1() {
8350
+ function I1() {
8101
8351
  const r = /* @__PURE__ */ new Date();
8102
8352
  return new Date(r.getFullYear(), r.getMonth(), r.getDate());
8103
8353
  }
@@ -8105,15 +8355,15 @@ function u1(r, e) {
8105
8355
  const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8106
8356
  return new Date(t, o, Math.min(r.getDate(), i));
8107
8357
  }
8108
- function I7(r, e) {
8358
+ function F7(r, e) {
8109
8359
  return new Date(r, e + 1, 0).getDate();
8110
8360
  }
8111
- var O7 = Object.defineProperty, i1 = (r, e, t, o) => {
8361
+ var I7 = Object.defineProperty, i1 = (r, e, t, o) => {
8112
8362
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8113
8363
  (l = r[n]) && (i = l(e, t, i) || i);
8114
- return i && O7(e, t, i), i;
8364
+ return i && I7(e, t, i), i;
8115
8365
  };
8116
- const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
8366
+ const Z2 = "anduin-calendar:change", F5 = "anduin-calendar:day-hover", qt = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Xt = [
8117
8367
  "January",
8118
8368
  "February",
8119
8369
  "March",
@@ -8126,17 +8376,17 @@ const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Ja
8126
8376
  "October",
8127
8377
  "November",
8128
8378
  "December"
8129
- ], T7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], J4 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8130
- function F1(r, e) {
8379
+ ], O7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Jt = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8380
+ function T1(r, e) {
8131
8381
  return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
8132
8382
  }
8133
8383
  function N7(r) {
8134
8384
  const e = ["th", "st", "nd", "rd"], t = r % 100;
8135
8385
  return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8136
8386
  }
8137
- const h4 = class h4 extends h {
8387
+ const ht = class ht extends h {
8138
8388
  constructor() {
8139
- super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = O1().getMonth(), this._viewYear = O1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
8389
+ super(...arguments), this.value = "", this.minDate = "", this.maxDate = "", this.rangeStart = "", this.rangeEnd = "", this.rangeMode = !1, this._viewMonth = I1().getMonth(), this._viewYear = I1().getFullYear(), this._focus = "", this._openSelect = null, this._viewSeeded = !1, this._pendingFocus = !1, this._onOutsideClick = (e) => {
8140
8390
  this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
8141
8391
  };
8142
8392
  }
@@ -8148,11 +8398,11 @@ const h4 = class h4 extends h {
8148
8398
  }
8149
8399
  willUpdate(e) {
8150
8400
  if (e.has("value")) {
8151
- const t = P(this.value);
8401
+ const t = T(this.value);
8152
8402
  if (t)
8153
8403
  this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
8154
8404
  else if (!this._viewSeeded) {
8155
- const o = O1();
8405
+ const o = I1();
8156
8406
  this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth();
8157
8407
  }
8158
8408
  }
@@ -8166,10 +8416,10 @@ const h4 = class h4 extends h {
8166
8416
  }
8167
8417
  // ── Constraints ─────────────────────────────────────────────────
8168
8418
  get _min() {
8169
- return P(this.minDate);
8419
+ return T(this.minDate);
8170
8420
  }
8171
8421
  get _max() {
8172
- return P(this.maxDate);
8422
+ return T(this.maxDate);
8173
8423
  }
8174
8424
  _isDisabled(e) {
8175
8425
  const t = this._min, o = this._max;
@@ -8191,27 +8441,27 @@ const h4 = class h4 extends h {
8191
8441
  this._isDisabled(o) || (this._focus = x1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
8192
8442
  }
8193
8443
  _onGridKeyDown(e) {
8194
- const t = P(this._focus) ?? this._defaultFocusDate();
8444
+ const t = T(this._focus) ?? this._defaultFocusDate();
8195
8445
  switch (e.key) {
8196
8446
  // Shift turns the horizontal arrows into month steps and the vertical
8197
8447
  // ones into year steps.
8198
8448
  case "ArrowLeft":
8199
- this._moveFocus(t, e.shiftKey ? u1(t, -1) : F1(t, -1));
8449
+ this._moveFocus(t, e.shiftKey ? u1(t, -1) : T1(t, -1));
8200
8450
  break;
8201
8451
  case "ArrowRight":
8202
- this._moveFocus(t, e.shiftKey ? u1(t, 1) : F1(t, 1));
8452
+ this._moveFocus(t, e.shiftKey ? u1(t, 1) : T1(t, 1));
8203
8453
  break;
8204
8454
  case "ArrowUp":
8205
- this._moveFocus(t, e.shiftKey ? u1(t, -12) : F1(t, -7));
8455
+ this._moveFocus(t, e.shiftKey ? u1(t, -12) : T1(t, -7));
8206
8456
  break;
8207
8457
  case "ArrowDown":
8208
- this._moveFocus(t, e.shiftKey ? u1(t, 12) : F1(t, 7));
8458
+ this._moveFocus(t, e.shiftKey ? u1(t, 12) : T1(t, 7));
8209
8459
  break;
8210
8460
  case "Home":
8211
- this._moveFocus(t, F1(t, -t.getDay()));
8461
+ this._moveFocus(t, T1(t, -t.getDay()));
8212
8462
  break;
8213
8463
  case "End":
8214
- this._moveFocus(t, F1(t, 6 - t.getDay()));
8464
+ this._moveFocus(t, T1(t, 6 - t.getDay()));
8215
8465
  break;
8216
8466
  case "PageUp":
8217
8467
  this._moveFocus(t, u1(t, e.shiftKey ? -12 : -1));
@@ -8234,17 +8484,17 @@ const h4 = class h4 extends h {
8234
8484
  this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(Z2, { detail: t, bubbles: !0, composed: !0 }));
8235
8485
  }
8236
8486
  _emitHover(e) {
8237
- this.dispatchEvent(new CustomEvent(I5, { detail: e, bubbles: !0, composed: !0 }));
8487
+ this.dispatchEvent(new CustomEvent(F5, { detail: e, bubbles: !0, composed: !0 }));
8238
8488
  }
8239
8489
  /** The day that owns `tabindex="0"` when nothing has been focused yet. */
8240
8490
  _defaultFocusDate() {
8241
- const e = P(this._focus);
8491
+ const e = T(this._focus);
8242
8492
  if (e && e.getMonth() === this._viewMonth && e.getFullYear() === this._viewYear)
8243
8493
  return e;
8244
- const t = P(this.value);
8494
+ const t = T(this.value);
8245
8495
  if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
8246
8496
  return t;
8247
- const o = O1();
8497
+ const o = I1();
8248
8498
  return o.getMonth() === this._viewMonth && o.getFullYear() === this._viewYear ? o : this._clamp(new Date(this._viewYear, this._viewMonth, 1));
8249
8499
  }
8250
8500
  // ── Month / year pickers ────────────────────────────────────────
@@ -8293,17 +8543,17 @@ const h4 = class h4 extends h {
8293
8543
  }
8294
8544
  // ── Render ──────────────────────────────────────────────────────
8295
8545
  render() {
8296
- const e = x1(O1()), t = P(this.value), o = P(this.rangeStart), i = P(this.rangeEnd), n = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
8546
+ const e = x1(I1()), t = T(this.value), o = T(this.rangeStart), i = T(this.rangeEnd), n = this.rangeMode || !!(o || i), l = x1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
8297
8547
  ...Array.from({ length: C }, () => null),
8298
- ...Array.from({ length: c }, (y, v) => v + 1)
8548
+ ...Array.from({ length: c }, (_, v) => v + 1)
8299
8549
  ];
8300
8550
  for (; p.length % 7 !== 0; ) p.push(null);
8301
- const f = Array.from({ length: p.length / 7 }, (y, v) => p.slice(v * 7, v * 7 + 7)), H = `${X4[this._viewMonth]} ${this._viewYear}`, m = (() => {
8302
- const y = this._min;
8303
- return y ? new Date(this._viewYear, this._viewMonth, 0).getTime() < y.getTime() : !1;
8551
+ const f = Array.from({ length: p.length / 7 }, (_, v) => p.slice(v * 7, v * 7 + 7)), H = `${Xt[this._viewMonth]} ${this._viewYear}`, m = (() => {
8552
+ const _ = this._min;
8553
+ return _ ? new Date(this._viewYear, this._viewMonth, 0).getTime() < _.getTime() : !1;
8304
8554
  })(), V = (() => {
8305
- const y = this._max;
8306
- return y ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > y.getTime() : !1;
8555
+ const _ = this._max;
8556
+ return _ ? new Date(this._viewYear, this._viewMonth + 1, 1).getTime() > _.getTime() : !1;
8307
8557
  })();
8308
8558
  return a`
8309
8559
  <div class="calendar" part="calendar">
@@ -8319,17 +8569,17 @@ const h4 = class h4 extends h {
8319
8569
  <div class="calendar__header-spacer"></div>
8320
8570
  ${this._renderSelect(
8321
8571
  "month",
8322
- q4[this._viewMonth],
8572
+ qt[this._viewMonth],
8323
8573
  "Choose the month",
8324
- q4.map((y, v) => ({ value: v, label: y, selected: v === this._viewMonth })),
8325
- (y) => this._selectMonth(y)
8574
+ qt.map((_, v) => ({ value: v, label: _, selected: v === this._viewMonth })),
8575
+ (_) => this._selectMonth(_)
8326
8576
  )}
8327
8577
  ${this._renderSelect(
8328
8578
  "year",
8329
8579
  String(this._viewYear),
8330
8580
  "Choose the year",
8331
- this._yearOptions.map((y) => ({ value: y, label: String(y), selected: y === this._viewYear })),
8332
- (y) => this._selectYear(y)
8581
+ this._yearOptions.map((_) => ({ value: _, label: String(_), selected: _ === this._viewYear })),
8582
+ (_) => this._selectYear(_)
8333
8583
  )}
8334
8584
  <div class="calendar__header-spacer"></div>
8335
8585
  <anduin-button
@@ -8353,50 +8603,50 @@ const h4 = class h4 extends h {
8353
8603
  >
8354
8604
  <thead aria-hidden="true">
8355
8605
  <tr>
8356
- ${T7.map((y, v) => a`
8357
- <th class="calendar__day-header" aria-label="${J4[v]}">${y}</th>
8606
+ ${O7.map((_, v) => a`
8607
+ <th class="calendar__day-header" aria-label="${Jt[v]}">${_}</th>
8358
8608
  `)}
8359
8609
  </tr>
8360
8610
  </thead>
8361
8611
  <tbody>
8362
- ${f.map((y) => a`
8612
+ ${f.map((_) => a`
8363
8613
  <tr>
8364
- ${y.map((v) => {
8614
+ ${_.map((v) => {
8365
8615
  if (v === null) return a`<td class="calendar__day-cell"></td>`;
8366
- const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), D = x.getTime(), K = this._isDisabled(x), Q1 = !!o && D === o.getTime(), o1 = !!i && D === i.getTime(), H4 = !!o && !!i && D > o.getTime() && D < i.getTime(), _4 = !n && !!t && D === t.getTime(), E3 = [
8616
+ const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), B = x.getTime(), W = this._isDisabled(x), Q1 = !!o && B === o.getTime(), o1 = !!i && B === i.getTime(), Ht = !!o && !!i && B > o.getTime() && B < i.getTime(), yt = !n && !!t && B === t.getTime(), E4 = [
8367
8617
  "calendar__day-cell",
8368
- H4 ? "calendar__day-cell--in-range" : "",
8618
+ Ht ? "calendar__day-cell--in-range" : "",
8369
8619
  // Only tint the edge cell when it actually opens a span —
8370
8620
  // a lone start marker shouldn't paint a half-rounded block.
8371
8621
  Q1 && i ? "calendar__day-cell--range-start" : "",
8372
8622
  o1 && o ? "calendar__day-cell--range-end" : ""
8373
- ].filter(Boolean).join(" "), z3 = [
8623
+ ].filter(Boolean).join(" "), z4 = [
8374
8624
  "calendar__day-button",
8375
8625
  w === e ? "calendar__day-button--today" : "",
8376
- _4 ? "calendar__day-button--selected" : "",
8626
+ yt ? "calendar__day-button--selected" : "",
8377
8627
  Q1 ? "calendar__day-button--range-start" : "",
8378
8628
  o1 ? "calendar__day-button--range-end" : "",
8379
- H4 ? "calendar__day-button--in-range" : "",
8380
- K ? "calendar__day-button--disabled" : ""
8629
+ Ht ? "calendar__day-button--in-range" : "",
8630
+ W ? "calendar__day-button--disabled" : ""
8381
8631
  ].filter(Boolean).join(" ");
8382
8632
  return a`
8383
8633
  <td
8384
- class="${E3}"
8634
+ class="${E4}"
8385
8635
  role="gridcell"
8386
- aria-selected="${_4 || Q1 || o1}"
8636
+ aria-selected="${yt || Q1 || o1}"
8387
8637
  >
8388
8638
  <button
8389
8639
  type="button"
8390
- class="${z3}"
8640
+ class="${z4}"
8391
8641
  part="day"
8392
- aria-disabled="${K}"
8393
- aria-label="${J4[x.getDay()]}, ${X4[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
8642
+ aria-disabled="${W}"
8643
+ aria-label="${Jt[x.getDay()]}, ${Xt[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
8394
8644
  tabindex="${w === l ? 0 : -1}"
8395
8645
  @click=${() => {
8396
- K || this._pick(x);
8646
+ W || this._pick(x);
8397
8647
  }}
8398
8648
  @mouseenter=${() => {
8399
- K || this._emitHover(w);
8649
+ W || this._emitHover(w);
8400
8650
  }}
8401
8651
  >${v}</button>
8402
8652
  </td>
@@ -8410,7 +8660,7 @@ const h4 = class h4 extends h {
8410
8660
  `;
8411
8661
  }
8412
8662
  };
8413
- h4.styles = g`
8663
+ ht.styles = g`
8414
8664
  :host { display: inline-block; font-family: var(--font-sans); }
8415
8665
 
8416
8666
  .calendar { display: flex; flex-direction: column; font-family: inherit; font-size: 13px; }
@@ -8505,49 +8755,49 @@ h4.styles = g`
8505
8755
  .calendar__day-button--in-range { color: var(--color-primary-subtle-foreground); }
8506
8756
  .calendar__day-button--in-range:hover { background-color: var(--color-primary-subtle-active); }
8507
8757
  `;
8508
- let j = h4;
8758
+ let U = ht;
8509
8759
  i1([
8510
8760
  s({ reflect: !0 })
8511
- ], j.prototype, "value");
8761
+ ], U.prototype, "value");
8512
8762
  i1([
8513
8763
  s({ attribute: "min-date" })
8514
- ], j.prototype, "minDate");
8764
+ ], U.prototype, "minDate");
8515
8765
  i1([
8516
8766
  s({ attribute: "max-date" })
8517
- ], j.prototype, "maxDate");
8767
+ ], U.prototype, "maxDate");
8518
8768
  i1([
8519
8769
  s({ attribute: "range-start" })
8520
- ], j.prototype, "rangeStart");
8770
+ ], U.prototype, "rangeStart");
8521
8771
  i1([
8522
8772
  s({ attribute: "range-end" })
8523
- ], j.prototype, "rangeEnd");
8773
+ ], U.prototype, "rangeEnd");
8524
8774
  i1([
8525
8775
  s({ type: Boolean, attribute: "range-mode" })
8526
- ], j.prototype, "rangeMode");
8776
+ ], U.prototype, "rangeMode");
8527
8777
  i1([
8528
8778
  b()
8529
- ], j.prototype, "_viewMonth");
8779
+ ], U.prototype, "_viewMonth");
8530
8780
  i1([
8531
8781
  b()
8532
- ], j.prototype, "_viewYear");
8782
+ ], U.prototype, "_viewYear");
8533
8783
  i1([
8534
8784
  b()
8535
- ], j.prototype, "_focus");
8785
+ ], U.prototype, "_focus");
8536
8786
  i1([
8537
8787
  b()
8538
- ], j.prototype, "_openSelect");
8539
- customElements.get("anduin-calendar") || customElements.define("anduin-calendar", j);
8788
+ ], U.prototype, "_openSelect");
8789
+ customElements.get("anduin-calendar") || customElements.define("anduin-calendar", U);
8540
8790
  var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
8541
8791
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8542
8792
  (l = r[n]) && (i = l(e, t, i) || i);
8543
8793
  return i && j7(e, t, i), i;
8544
8794
  };
8545
- const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8795
+ const U7 = "anduin-date-range:change", gt = class gt extends h {
8546
8796
  constructor() {
8547
8797
  super(...arguments), this.startDate = "", this.endDate = "", this.minDate = "", this.maxDate = "", this._anchor = null, this._hover = null, this._panels = /* @__PURE__ */ new Map(), this._pushedValue = /* @__PURE__ */ new Map(), this._onCalendarChange = (e) => {
8548
8798
  e.stopPropagation();
8549
8799
  const t = e.detail;
8550
- if (!P(t)) return;
8800
+ if (!T(t)) return;
8551
8801
  if (this._anchor === null) {
8552
8802
  this._anchor = t, this._hover = null;
8553
8803
  return;
@@ -8563,10 +8813,10 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8563
8813
  };
8564
8814
  }
8565
8815
  connectedCallback() {
8566
- super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(I5, this._onCalendarHover);
8816
+ super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(F5, this._onCalendarHover);
8567
8817
  }
8568
8818
  disconnectedCallback() {
8569
- super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(I5, this._onCalendarHover);
8819
+ super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(F5, this._onCalendarHover);
8570
8820
  }
8571
8821
  updated() {
8572
8822
  this._sync();
@@ -8594,7 +8844,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8594
8844
  /** Which month each panel opens on: the start date on the left, the month
8595
8845
  * after it on the right. Falls back to today when there's no range yet. */
8596
8846
  _panelValue(e) {
8597
- const t = P(this.startDate) ?? O1();
8847
+ const t = T(this.startDate) ?? I1();
8598
8848
  return x1(e === "start" ? t : u1(t, 1));
8599
8849
  }
8600
8850
  /** The range the calendars should paint — the live preview while selecting,
@@ -8606,17 +8856,17 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8606
8856
  return [e, t];
8607
8857
  }
8608
8858
  _sorted(e, t) {
8609
- const o = P(e), i = P(t);
8859
+ const o = T(e), i = T(t);
8610
8860
  return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
8611
8861
  }
8612
8862
  render() {
8613
8863
  return a`<div class="date-range" part="date-range"><slot></slot></div>`;
8614
8864
  }
8615
8865
  };
8616
- g4.styles = g`
8866
+ gt.styles = g`
8617
8867
  :host { display: inline-block; font-family: var(--font-sans); }
8618
8868
  `;
8619
- let t1 = g4;
8869
+ let t1 = gt;
8620
8870
  J1([
8621
8871
  s({ attribute: "start-date", reflect: !0 })
8622
8872
  ], t1.prototype, "startDate");
@@ -8635,7 +8885,7 @@ J1([
8635
8885
  J1([
8636
8886
  b()
8637
8887
  ], t1.prototype, "_hover");
8638
- const f4 = class f4 extends h {
8888
+ const ft = class ft extends h {
8639
8889
  constructor() {
8640
8890
  super(...arguments), this._host = null;
8641
8891
  }
@@ -8664,10 +8914,10 @@ const f4 = class f4 extends h {
8664
8914
  return a`<anduin-calendar part="calendar" range-mode></anduin-calendar>`;
8665
8915
  }
8666
8916
  };
8667
- f4.styles = g`
8917
+ ft.styles = g`
8668
8918
  :host { display: inline-block; font-family: var(--font-sans); }
8669
8919
  `;
8670
- let N2 = f4;
8920
+ let N2 = ft;
8671
8921
  class G7 extends N2 {
8672
8922
  constructor() {
8673
8923
  super(...arguments), this.panelRole = "start";
@@ -8678,7 +8928,7 @@ class K7 extends N2 {
8678
8928
  super(...arguments), this.panelRole = "end";
8679
8929
  }
8680
8930
  }
8681
- const v4 = class v4 extends h {
8931
+ const vt = class vt extends h {
8682
8932
  render() {
8683
8933
  return a`
8684
8934
  <div class="date-range-default" part="layout">
@@ -8688,30 +8938,30 @@ const v4 = class v4 extends h {
8688
8938
  `;
8689
8939
  }
8690
8940
  };
8691
- v4.styles = g`
8941
+ vt.styles = g`
8692
8942
  :host { display: inline-block; font-family: var(--font-sans); }
8693
8943
 
8694
8944
  .date-range-default { display: flex; flex-direction: row; gap: 16px; }
8695
8945
  `;
8696
- let O5 = v4;
8946
+ let I5 = vt;
8697
8947
  customElements.get("anduin-date-range") || customElements.define("anduin-date-range", t1);
8698
- customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", O5);
8948
+ customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", I5);
8699
8949
  customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
8700
8950
  customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", K7);
8701
- var W7 = Object.defineProperty, T = (r, e, t, o) => {
8951
+ var W7 = Object.defineProperty, N = (r, e, t, o) => {
8702
8952
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8703
8953
  (l = r[n]) && (i = l(e, t, i) || i);
8704
8954
  return i && W7(e, t, i), i;
8705
8955
  };
8706
- const T5 = "anduin-date-input:change", Q4 = { M: "month", d: "day", y: "year" };
8956
+ const O5 = "anduin-date-input:change", Qt = { M: "month", d: "day", y: "year" };
8707
8957
  function Y7(r) {
8708
8958
  const e = [];
8709
8959
  let t = 0, o = 0;
8710
8960
  for (; o < r.length; ) {
8711
- const i = r[o], n = Q4[i];
8961
+ const i = r[o], n = Qt[i];
8712
8962
  if (!n) {
8713
8963
  let d = "";
8714
- for (; o < r.length && !Q4[r[o]]; ) d += r[o++];
8964
+ for (; o < r.length && !Qt[r[o]]; ) d += r[o++];
8715
8965
  e.push({ literal: d }), t += d.length;
8716
8966
  continue;
8717
8967
  }
@@ -8777,7 +9027,7 @@ const i2 = 1, G2 = class G2 extends h {
8777
9027
  return;
8778
9028
  }
8779
9029
  const o = this._clampToBounds(e);
8780
- this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(T5, {
9030
+ this._digits = o, this.value = this._composeValue(), this.dispatchEvent(new CustomEvent(O5, {
8781
9031
  detail: this.value,
8782
9032
  bubbles: !0,
8783
9033
  composed: !0
@@ -8791,11 +9041,11 @@ const i2 = 1, G2 = class G2 extends h {
8791
9041
  * carries a full date — a partial format like `MM/dd` has no year to compare.
8792
9042
  */
8793
9043
  _clampToBounds(e) {
8794
- const t = P(this.minDate), o = P(this.maxDate);
9044
+ const t = T(this.minDate), o = T(this.maxDate);
8795
9045
  if (!t && !o) return e;
8796
9046
  const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
8797
9047
  if (i < 0 || n < 0 || l < 0) return e;
8798
- const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, I7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
9048
+ const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, F7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8799
9049
  if (!H) {
8800
9050
  if (p === C) return e;
8801
9051
  const V = [...e];
@@ -8991,62 +9241,62 @@ G2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, G2.styles
8991
9241
  .date-input--warning { border-color: var(--color-warning-active); }
8992
9242
  .date-input--loading { border-color: var(--color-input); }
8993
9243
  `;
8994
- let S = G2;
8995
- T([
9244
+ let D = G2;
9245
+ N([
8996
9246
  s()
8997
- ], S.prototype, "format");
8998
- T([
9247
+ ], D.prototype, "format");
9248
+ N([
8999
9249
  s()
9000
- ], S.prototype, "value");
9001
- T([
9250
+ ], D.prototype, "value");
9251
+ N([
9002
9252
  s()
9003
- ], S.prototype, "size");
9004
- T([
9253
+ ], D.prototype, "size");
9254
+ N([
9005
9255
  s({ type: Boolean })
9006
- ], S.prototype, "disabled");
9007
- T([
9256
+ ], D.prototype, "disabled");
9257
+ N([
9008
9258
  s({ type: Boolean })
9009
- ], S.prototype, "readonly");
9010
- T([
9259
+ ], D.prototype, "readonly");
9260
+ N([
9011
9261
  s()
9012
- ], S.prototype, "status");
9013
- T([
9262
+ ], D.prototype, "status");
9263
+ N([
9014
9264
  s({ attribute: "start-icon" })
9015
- ], S.prototype, "startIcon");
9016
- T([
9265
+ ], D.prototype, "startIcon");
9266
+ N([
9017
9267
  s({ attribute: "min-date" })
9018
- ], S.prototype, "minDate");
9019
- T([
9268
+ ], D.prototype, "minDate");
9269
+ N([
9020
9270
  s({ attribute: "max-date" })
9021
- ], S.prototype, "maxDate");
9022
- T([
9271
+ ], D.prototype, "maxDate");
9272
+ N([
9023
9273
  s()
9024
- ], S.prototype, "inputid");
9025
- T([
9274
+ ], D.prototype, "inputid");
9275
+ N([
9026
9276
  b()
9027
- ], S.prototype, "_digits");
9028
- T([
9277
+ ], D.prototype, "_digits");
9278
+ N([
9029
9279
  b()
9030
- ], S.prototype, "_active");
9031
- T([
9280
+ ], D.prototype, "_active");
9281
+ N([
9032
9282
  b()
9033
- ], S.prototype, "_buffer");
9034
- T([
9035
- k("input")
9036
- ], S.prototype, "_inputEl");
9037
- customElements.get("anduin-date-input") || customElements.define("anduin-date-input", S);
9038
- var q7 = Object.defineProperty, N = (r, e, t, o) => {
9283
+ ], D.prototype, "_buffer");
9284
+ N([
9285
+ R("input")
9286
+ ], D.prototype, "_inputEl");
9287
+ customElements.get("anduin-date-input") || customElements.define("anduin-date-input", D);
9288
+ var q7 = Object.defineProperty, j = (r, e, t, o) => {
9039
9289
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9040
9290
  (l = r[n]) && (i = l(e, t, i) || i);
9041
9291
  return i && q7(e, t, i), i;
9042
9292
  };
9043
- const X7 = "anduin-date-picker:change", $3 = { M: "month", d: "day", y: "year" };
9293
+ const X7 = "anduin-date-picker:change", $4 = { M: "month", d: "day", y: "year" };
9044
9294
  function J7(r, e) {
9045
9295
  if (!r) return null;
9046
9296
  const t = {};
9047
9297
  let o = 0, i = 0;
9048
9298
  for (; i < e.length; ) {
9049
- const d = e[i], c = $3[d];
9299
+ const d = e[i], c = $4[d];
9050
9300
  if (!c) {
9051
9301
  i++, o++;
9052
9302
  continue;
@@ -9070,7 +9320,7 @@ function Q7(r, e) {
9070
9320
  };
9071
9321
  let o = "", i = 0;
9072
9322
  for (; i < e.length; ) {
9073
- const n = e[i], l = $3[n];
9323
+ const n = e[i], l = $4[n];
9074
9324
  if (!l) {
9075
9325
  o += n, i++;
9076
9326
  continue;
@@ -9082,7 +9332,7 @@ function Q7(r, e) {
9082
9332
  }
9083
9333
  return o;
9084
9334
  }
9085
- const b4 = class b4 extends h {
9335
+ const bt = class bt extends h {
9086
9336
  constructor() {
9087
9337
  super(...arguments), this.format = "MM/dd/yyyy", this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.status = "", this.startIcon = "", this.minDate = "", this.maxDate = "", this.placement = "bottom-start", this.inputid = "", this._open = !1, this._onPopoverOpenChange = (e) => {
9088
9338
  e.stopPropagation(), this._open = e.detail;
@@ -9090,7 +9340,7 @@ const b4 = class b4 extends h {
9090
9340
  e.stopPropagation(), this._emit(e.detail);
9091
9341
  }, this._onCalendarChange = (e) => {
9092
9342
  e.stopPropagation();
9093
- const t = P(e.detail);
9343
+ const t = T(e.detail);
9094
9344
  t && (this._emit(Q7(t, this.format)), this._closePopover());
9095
9345
  }, this._onKeyDown = (e) => {
9096
9346
  var t;
@@ -9100,10 +9350,10 @@ const b4 = class b4 extends h {
9100
9350
  };
9101
9351
  }
9102
9352
  connectedCallback() {
9103
- super.connectedCallback(), this.addEventListener(T5, this._onInputChange), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(b5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
9353
+ super.connectedCallback(), this.addEventListener(O5, this._onInputChange), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(b5, this._onPopoverOpenChange), this.addEventListener("keydown", this._onKeyDown);
9104
9354
  }
9105
9355
  disconnectedCallback() {
9106
- super.disconnectedCallback(), this.removeEventListener(T5, this._onInputChange), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(b5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
9356
+ super.disconnectedCallback(), this.removeEventListener(O5, this._onInputChange), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(b5, this._onPopoverOpenChange), this.removeEventListener("keydown", this._onKeyDown);
9107
9357
  }
9108
9358
  _closePopover() {
9109
9359
  this._popoverEl && (this._popoverEl.open = !1), this._open = !1;
@@ -9158,7 +9408,7 @@ const b4 = class b4 extends h {
9158
9408
  `;
9159
9409
  }
9160
9410
  };
9161
- b4.styles = g`
9411
+ bt.styles = g`
9162
9412
  :host { display: inline-block; font-family: var(--font-sans); }
9163
9413
 
9164
9414
  .datepicker { display: block; }
@@ -9168,56 +9418,56 @@ b4.styles = g`
9168
9418
  /* The popover contributes 8px; the calendar reads better with 16px total. */
9169
9419
  .datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
9170
9420
  `;
9171
- let A = b4;
9172
- N([
9421
+ let P = bt;
9422
+ j([
9173
9423
  s()
9174
- ], A.prototype, "format");
9175
- N([
9424
+ ], P.prototype, "format");
9425
+ j([
9176
9426
  s()
9177
- ], A.prototype, "value");
9178
- N([
9427
+ ], P.prototype, "value");
9428
+ j([
9179
9429
  s()
9180
- ], A.prototype, "size");
9181
- N([
9430
+ ], P.prototype, "size");
9431
+ j([
9182
9432
  s({ type: Boolean })
9183
- ], A.prototype, "disabled");
9184
- N([
9433
+ ], P.prototype, "disabled");
9434
+ j([
9185
9435
  s({ type: Boolean })
9186
- ], A.prototype, "readonly");
9187
- N([
9436
+ ], P.prototype, "readonly");
9437
+ j([
9188
9438
  s()
9189
- ], A.prototype, "status");
9190
- N([
9439
+ ], P.prototype, "status");
9440
+ j([
9191
9441
  s({ attribute: "start-icon" })
9192
- ], A.prototype, "startIcon");
9193
- N([
9442
+ ], P.prototype, "startIcon");
9443
+ j([
9194
9444
  s({ attribute: "min-date" })
9195
- ], A.prototype, "minDate");
9196
- N([
9445
+ ], P.prototype, "minDate");
9446
+ j([
9197
9447
  s({ attribute: "max-date" })
9198
- ], A.prototype, "maxDate");
9199
- N([
9448
+ ], P.prototype, "maxDate");
9449
+ j([
9200
9450
  s()
9201
- ], A.prototype, "placement");
9202
- N([
9451
+ ], P.prototype, "placement");
9452
+ j([
9203
9453
  s()
9204
- ], A.prototype, "inputid");
9205
- N([
9454
+ ], P.prototype, "inputid");
9455
+ j([
9206
9456
  b()
9207
- ], A.prototype, "_open");
9208
- N([
9209
- k("anduin-date-input")
9210
- ], A.prototype, "_inputEl");
9211
- N([
9212
- k("anduin-popover")
9213
- ], A.prototype, "_popoverEl");
9214
- customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", A);
9457
+ ], P.prototype, "_open");
9458
+ j([
9459
+ R("anduin-date-input")
9460
+ ], P.prototype, "_inputEl");
9461
+ j([
9462
+ R("anduin-popover")
9463
+ ], P.prototype, "_popoverEl");
9464
+ customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", P);
9215
9465
  var e0 = Object.defineProperty, L = (r, e, t, o) => {
9216
9466
  for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9217
9467
  (l = r[n]) && (i = l(e, t, i) || i);
9218
9468
  return i && e0(e, t, i), i;
9219
9469
  };
9220
- const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", n0 = "anduin-table:selection-change", r0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle", e3 = "anduin-table:column-resize", t3 = 40, n1 = (r) => r.type === "selection", C1 = (r, e) => {
9470
+ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", n0 = "anduin-table:selection-change", r0 = "anduin-table:cell-context-menu", l0 = "anduin-table:row-expand", s0 = "anduin-table:row-collapse", a0 = "anduin-table:group-toggle", e4 = "anduin-table:column-resize", t4 = 40, n1 = (r) => r.type === "selection", C1 = (r, e) => {
9221
9471
  if (!e) return;
9222
9472
  let t = r;
9223
9473
  for (const o of e.split(".")) {
@@ -9225,7 +9475,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9225
9475
  t = t[o];
9226
9476
  }
9227
9477
  return t;
9228
- }, d0 = (r, e) => r === e ? 0 : r == null ? 1 : e == null ? -1 : typeof r == "number" && typeof e == "number" ? r - e : typeof r == "boolean" && typeof e == "boolean" ? Number(r) - Number(e) : r instanceof Date && e instanceof Date ? r.getTime() - e.getTime() : String(r).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), m4 = class m4 extends h {
9478
+ }, d0 = (r, e) => r === e ? 0 : r == null ? 1 : e == null ? -1 : typeof r == "number" && typeof e == "number" ? r - e : typeof r == "boolean" && typeof e == "boolean" ? Number(r) - Number(e) : r instanceof Date && e instanceof Date ? r.getTime() - e.getTime() : String(r).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), mt = class mt extends h {
9229
9479
  constructor() {
9230
9480
  super(...arguments), this.columns = [], this.data = [], this.layout = "fit-data", this.renderMode = "basic", this.rowHeight = 40, this.height = "", this.maxHeight = "", this.minHeight = "", this.resizableColumns = !0, this.hideHeader = !1, this.loading = !1, this.selectable = "clickable", this.indexColumn = "id", this.columnAlign = "left", this.columnVerticalAlign = "middle", this.sortField = "", this.sortDirection = "asc", this.dataTree = !1, this.treeChildrenField = "children", this.treeChildIndent = 20, this.groupBy = "", this.selectedRows = [], this.expandedKeys = /* @__PURE__ */ new Set(), this.collapsedGroups = /* @__PURE__ */ new Set(), this.virtualScrollTop = 0, this.viewportHeight = 0, this.scrolledX = !1, this.scrollableXEnd = !1, this.resizedWidths = {}, this.resizingKey = "", this.rangeAnchorKey = null, this.isDraggingRange = !1, this.dragBaseKeys = [], this.dragSelects = !0, this.autoExpandedKeys = /* @__PURE__ */ new Set(), this.resizeDrag = null, this.resizeFrame = 0, this.renderSelectedKeys = /* @__PURE__ */ new Set(), this.renderSelectableRows = [], this.cachedRenderRows = [], this.rowsDirty = !0, this.onWindowMouseUp = () => {
9231
9481
  this.isDraggingRange = !1;
@@ -9241,7 +9491,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9241
9491
  }));
9242
9492
  }, this.onResizeEnd = (e) => {
9243
9493
  const t = this.resizeDrag;
9244
- t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(e3, {
9494
+ t && (this.resizeFrame && (cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0), this.resizedWidths = { ...this.resizedWidths, [t.key]: t.width }, this.resizeDrag = null, this.resizingKey = "", this.dispatchEvent(new CustomEvent(e4, {
9245
9495
  detail: { column: e, field: t.key, width: t.width },
9246
9496
  bubbles: !0,
9247
9497
  composed: !0
@@ -9573,7 +9823,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9573
9823
  */
9574
9824
  fitColumnsMinWidth() {
9575
9825
  return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
9576
- const i = n1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9826
+ const i = n1(t) && !t.width && !t.minWidth ? t4 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9577
9827
  return e + i;
9578
9828
  }, 0);
9579
9829
  }
@@ -9599,7 +9849,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9599
9849
  const i = this.columnKey(t, o);
9600
9850
  if (this.resizedWidths[i] === void 0) return;
9601
9851
  const n = { ...this.resizedWidths };
9602
- delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e3, {
9852
+ delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e4, {
9603
9853
  detail: { column: t, field: i, width: null },
9604
9854
  bubbles: !0,
9605
9855
  composed: !0
@@ -9643,17 +9893,17 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9643
9893
  ></span>
9644
9894
  ` : u;
9645
9895
  if (n1(e)) {
9646
- const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, D = v.length > 0 && w === v.length, K = w > 0 && !D, Q1 = e.renderHeader ? e.renderHeader({
9647
- areAllRowsSelected: D,
9896
+ const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, B = v.length > 0 && w === v.length, W = w > 0 && !B, Q1 = e.renderHeader ? e.renderHeader({
9897
+ areAllRowsSelected: B,
9648
9898
  hasSelectedRow: w > 0,
9649
9899
  onChange: (o1) => this.toggleAllRows(o1)
9650
9900
  }) : a`
9651
9901
  <anduin-checkbox
9652
- .checked=${D}
9653
- .indeterminate=${K}
9654
- aria-label="${D ? "Deselect all rows" : "Select all rows"}"
9902
+ .checked=${B}
9903
+ .indeterminate=${W}
9904
+ aria-label="${B ? "Deselect all rows" : "Select all rows"}"
9655
9905
  @anduin-checkbox:change=${(o1) => {
9656
- o1.stopPropagation(), this.toggleAllRows(!D);
9906
+ o1.stopPropagation(), this.toggleAllRows(!B);
9657
9907
  }}
9658
9908
  ></anduin-checkbox>
9659
9909
  `;
@@ -9667,7 +9917,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9667
9917
  ><div class="${C}">${Q1}</div>${f}</th>
9668
9918
  `;
9669
9919
  }
9670
- const H = this.sortField === e.field, m = H ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : a`<span class="table__header-text">${e.title ?? ""}</span>`, y = e.isSortable ? a`
9920
+ const H = this.sortField === e.field, m = H ? this.sortDirection : null, V = e.renderHeader ? e.renderHeader({ column: e, sortDirection: m }) : a`<span class="table__header-text">${e.title ?? ""}</span>`, _ = e.isSortable ? a`
9671
9921
  <anduin-icon
9672
9922
  class="table__sort-icon ${H ? "table__sort-icon--active" : ""}"
9673
9923
  name="${m === "desc" ? "caretDown" : "caretUp"}"
@@ -9687,7 +9937,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9687
9937
  @keydown=${(v) => {
9688
9938
  e.isSortable && (v.key !== "Enter" && v.key !== " " || (v.preventDefault(), this.onHeaderClick(e)));
9689
9939
  }}
9690
- ><div class="${C}">${V}${y}</div>${f}</th>
9940
+ ><div class="${C}">${V}${_}</div>${f}</th>
9691
9941
  `;
9692
9942
  }
9693
9943
  renderCell(e, t, o, i) {
@@ -9701,10 +9951,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9701
9951
  this.sizingClass(o, i)
9702
9952
  ].filter(Boolean).join(" "), C = this.cellStyle(o, i);
9703
9953
  if (n1(o)) {
9704
- const V = this.renderSelectedKeys.has(e.key), y = this.rowIsDisabled(e.data), v = (w) => this.setRowSelected(e, w), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: y, onChange: v }) : a`
9954
+ const V = this.renderSelectedKeys.has(e.key), _ = this.rowIsDisabled(e.data), v = (w) => this.setRowSelected(e, w), x = o.renderCell ? o.renderCell({ data: e.data, isChecked: V, isDisabled: _, onChange: v }) : a`
9705
9955
  <anduin-checkbox
9706
9956
  .checked=${V}
9707
- .disabled=${y}
9957
+ .disabled=${_}
9708
9958
  aria-label="${V ? "Deselect row" : "Select row"}"
9709
9959
  @anduin-checkbox:change=${(w) => {
9710
9960
  w.stopPropagation(), v(!V);
@@ -9863,7 +10113,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9863
10113
  `;
9864
10114
  }
9865
10115
  };
9866
- m4.styles = g`
10116
+ mt.styles = g`
9867
10117
  :host {
9868
10118
  display: flex;
9869
10119
  flex-direction: column;
@@ -10083,7 +10333,7 @@ m4.styles = g`
10083
10333
  text-align: right;
10084
10334
  }
10085
10335
  .table__cell--selection {
10086
- width: ${t3}px;
10336
+ width: ${t4}px;
10087
10337
  padding: 8px 0 8px 12px;
10088
10338
  }
10089
10339
 
@@ -10233,118 +10483,118 @@ m4.styles = g`
10233
10483
  cursor: progress;
10234
10484
  }
10235
10485
  `;
10236
- let _ = m4;
10486
+ let y = mt;
10237
10487
  L([
10238
10488
  s({ attribute: !1 })
10239
- ], _.prototype, "columns");
10489
+ ], y.prototype, "columns");
10240
10490
  L([
10241
10491
  s({ attribute: !1 })
10242
- ], _.prototype, "data");
10492
+ ], y.prototype, "data");
10243
10493
  L([
10244
10494
  s({ reflect: !0 })
10245
- ], _.prototype, "layout");
10495
+ ], y.prototype, "layout");
10246
10496
  L([
10247
10497
  s({ attribute: "render-mode", reflect: !0 })
10248
- ], _.prototype, "renderMode");
10498
+ ], y.prototype, "renderMode");
10249
10499
  L([
10250
10500
  s({ type: Number, attribute: "row-height" })
10251
- ], _.prototype, "rowHeight");
10501
+ ], y.prototype, "rowHeight");
10252
10502
  L([
10253
10503
  s()
10254
- ], _.prototype, "height");
10504
+ ], y.prototype, "height");
10255
10505
  L([
10256
10506
  s({ attribute: "max-height" })
10257
- ], _.prototype, "maxHeight");
10507
+ ], y.prototype, "maxHeight");
10258
10508
  L([
10259
10509
  s({ attribute: "min-height" })
10260
- ], _.prototype, "minHeight");
10510
+ ], y.prototype, "minHeight");
10261
10511
  L([
10262
10512
  s({
10263
10513
  attribute: "resizable-columns",
10264
10514
  converter: (r) => r !== "false"
10265
10515
  })
10266
- ], _.prototype, "resizableColumns");
10516
+ ], y.prototype, "resizableColumns");
10267
10517
  L([
10268
10518
  s({ type: Boolean, attribute: "hide-header", reflect: !0 })
10269
- ], _.prototype, "hideHeader");
10519
+ ], y.prototype, "hideHeader");
10270
10520
  L([
10271
10521
  s({ type: Boolean, reflect: !0 })
10272
- ], _.prototype, "loading");
10522
+ ], y.prototype, "loading");
10273
10523
  L([
10274
10524
  s({ reflect: !0 })
10275
- ], _.prototype, "selectable");
10525
+ ], y.prototype, "selectable");
10276
10526
  L([
10277
10527
  s({ attribute: "index-column" })
10278
- ], _.prototype, "indexColumn");
10528
+ ], y.prototype, "indexColumn");
10279
10529
  L([
10280
10530
  s({ attribute: "column-align" })
10281
- ], _.prototype, "columnAlign");
10531
+ ], y.prototype, "columnAlign");
10282
10532
  L([
10283
10533
  s({ attribute: "column-vertical-align" })
10284
- ], _.prototype, "columnVerticalAlign");
10534
+ ], y.prototype, "columnVerticalAlign");
10285
10535
  L([
10286
10536
  s({ attribute: "sort-field" })
10287
- ], _.prototype, "sortField");
10537
+ ], y.prototype, "sortField");
10288
10538
  L([
10289
10539
  s({ attribute: "sort-direction" })
10290
- ], _.prototype, "sortDirection");
10540
+ ], y.prototype, "sortDirection");
10291
10541
  L([
10292
10542
  s({ type: Boolean, attribute: "data-tree", reflect: !0 })
10293
- ], _.prototype, "dataTree");
10543
+ ], y.prototype, "dataTree");
10294
10544
  L([
10295
10545
  s({ attribute: "tree-children-field" })
10296
- ], _.prototype, "treeChildrenField");
10546
+ ], y.prototype, "treeChildrenField");
10297
10547
  L([
10298
10548
  s({ type: Number, attribute: "tree-child-indent" })
10299
- ], _.prototype, "treeChildIndent");
10549
+ ], y.prototype, "treeChildIndent");
10300
10550
  L([
10301
10551
  s({ attribute: "group-by" })
10302
- ], _.prototype, "groupBy");
10552
+ ], y.prototype, "groupBy");
10303
10553
  L([
10304
10554
  s({ attribute: !1 })
10305
- ], _.prototype, "selectedRows");
10555
+ ], y.prototype, "selectedRows");
10306
10556
  L([
10307
10557
  s({ attribute: !1 })
10308
- ], _.prototype, "isRowDisabled");
10558
+ ], y.prototype, "isRowDisabled");
10309
10559
  L([
10310
10560
  s({ attribute: !1 })
10311
- ], _.prototype, "onStartExpanded");
10561
+ ], y.prototype, "onStartExpanded");
10312
10562
  L([
10313
10563
  s({ attribute: !1 })
10314
- ], _.prototype, "rowClass");
10564
+ ], y.prototype, "rowClass");
10315
10565
  L([
10316
10566
  s({ attribute: !1 })
10317
- ], _.prototype, "renderGroupHeader");
10567
+ ], y.prototype, "renderGroupHeader");
10318
10568
  L([
10319
10569
  b()
10320
- ], _.prototype, "expandedKeys");
10570
+ ], y.prototype, "expandedKeys");
10321
10571
  L([
10322
10572
  b()
10323
- ], _.prototype, "collapsedGroups");
10573
+ ], y.prototype, "collapsedGroups");
10324
10574
  L([
10325
10575
  b()
10326
- ], _.prototype, "virtualScrollTop");
10576
+ ], y.prototype, "virtualScrollTop");
10327
10577
  L([
10328
10578
  b()
10329
- ], _.prototype, "viewportHeight");
10579
+ ], y.prototype, "viewportHeight");
10330
10580
  L([
10331
10581
  b()
10332
- ], _.prototype, "scrolledX");
10582
+ ], y.prototype, "scrolledX");
10333
10583
  L([
10334
10584
  b()
10335
- ], _.prototype, "scrollableXEnd");
10585
+ ], y.prototype, "scrollableXEnd");
10336
10586
  L([
10337
10587
  b()
10338
- ], _.prototype, "resizedWidths");
10588
+ ], y.prototype, "resizedWidths");
10339
10589
  L([
10340
10590
  b()
10341
- ], _.prototype, "resizingKey");
10342
- customElements.get("anduin-table") || customElements.define("anduin-table", _);
10591
+ ], y.prototype, "resizingKey");
10592
+ customElements.get("anduin-table") || customElements.define("anduin-table", y);
10343
10593
  export {
10344
10594
  A5 as $,
10345
10595
  N1 as A,
10346
- R as B,
10347
- I as C,
10596
+ $ as B,
10597
+ M as C,
10348
10598
  P2 as D,
10349
10599
  $1 as E,
10350
10600
  G1 as F,
@@ -10362,39 +10612,39 @@ export {
10362
10612
  K1 as R,
10363
10613
  Y1 as S,
10364
10614
  W1 as T,
10365
- I2 as U,
10615
+ F2 as U,
10366
10616
  E5 as V,
10367
10617
  P5 as W,
10368
10618
  B5 as X,
10369
10619
  z5 as Y,
10370
- T2 as Z,
10620
+ O2 as Z,
10371
10621
  S5 as _,
10372
10622
  e1 as a,
10373
10623
  l5 as a$,
10374
- O2 as a0,
10624
+ I2 as a0,
10375
10625
  D5 as a1,
10376
- _1 as a2,
10377
- F5 as a3,
10626
+ y1 as a2,
10627
+ T5 as a3,
10378
10628
  r1 as a4,
10379
10629
  g2 as a5,
10380
10630
  h2 as a6,
10381
- Z as a7,
10631
+ k as a7,
10382
10632
  w2 as a8,
10383
10633
  L2 as a9,
10384
- T5 as aA,
10634
+ O5 as aA,
10385
10635
  X7 as aB,
10386
10636
  U7 as aC,
10387
10637
  r5 as aD,
10388
10638
  l2 as aE,
10389
- G4 as aF,
10390
- m3 as aG,
10639
+ Gt as aF,
10640
+ m4 as aG,
10391
10641
  f1 as aH,
10392
10642
  p7 as aI,
10393
- St as aJ,
10394
- At as aK,
10395
- zt as aL,
10396
- B4 as aM,
10397
- Mt as aN,
10643
+ S3 as aJ,
10644
+ A3 as aK,
10645
+ z3 as aL,
10646
+ Bt as aM,
10647
+ M3 as aN,
10398
10648
  H5 as aO,
10399
10649
  t5 as aP,
10400
10650
  r2 as aQ,
@@ -10404,17 +10654,17 @@ export {
10404
10654
  x5 as aU,
10405
10655
  v5 as aV,
10406
10656
  b5 as aW,
10407
- _5 as aX,
10657
+ y5 as aX,
10408
10658
  r7 as aY,
10409
10659
  z7 as aZ,
10410
- F7 as a_,
10660
+ T7 as a_,
10411
10661
  l1 as aa,
10412
- _ as ab,
10662
+ y as ab,
10413
10663
  j1 as ac,
10414
- y2 as ad,
10664
+ _2 as ad,
10415
10665
  U1 as ae,
10416
10666
  h5 as af,
10417
- W as ag,
10667
+ Y as ag,
10418
10668
  w5 as ah,
10419
10669
  Z5 as ai,
10420
10670
  R5 as aj,
@@ -10425,69 +10675,69 @@ export {
10425
10675
  x2 as ao,
10426
10676
  X as ap,
10427
10677
  J as aq,
10428
- _2 as ar,
10678
+ y2 as ar,
10429
10679
  p5 as as,
10430
10680
  u5 as at,
10431
- F2 as au,
10681
+ T2 as au,
10432
10682
  f5 as av,
10433
- h3 as aw,
10683
+ h4 as aw,
10434
10684
  Z2 as ax,
10435
- I5 as ay,
10436
- xt as az,
10685
+ F5 as ay,
10686
+ x3 as az,
10437
10687
  S2 as b,
10438
10688
  k7 as b0,
10439
10689
  Z7 as b1,
10440
- _7 as b2,
10690
+ y7 as b2,
10441
10691
  r0 as b3,
10442
10692
  i0 as b4,
10443
- e3 as b5,
10693
+ e4 as b5,
10444
10694
  a0 as b6,
10445
10695
  o0 as b7,
10446
10696
  s0 as b8,
10447
10697
  l0 as b9,
10448
10698
  n0 as ba,
10449
10699
  t0 as bb,
10450
- Ft as bc,
10451
- w3 as bd,
10700
+ T3 as bc,
10701
+ w4 as bd,
10452
10702
  W2 as be,
10453
- Ot as bf,
10454
- Pt as bg,
10455
- Ut as bh,
10456
- Gt as bi,
10703
+ I3 as bf,
10704
+ P3 as bg,
10705
+ U3 as bh,
10706
+ G3 as bi,
10457
10707
  g5 as bj,
10458
- Wt as bk,
10459
- Kt as bl,
10460
- L3 as bm,
10461
- V3 as bn,
10708
+ W3 as bk,
10709
+ K3 as bl,
10710
+ L4 as bm,
10711
+ V4 as bn,
10462
10712
  Y5 as bo,
10463
- _3 as bp,
10464
- y3 as bq,
10465
- x3 as br,
10466
- Xt as bs,
10713
+ y4 as bp,
10714
+ _4 as bq,
10715
+ x4 as br,
10716
+ X3 as bs,
10467
10717
  u1 as bt,
10468
10718
  x1 as bu,
10469
- g3 as bv,
10470
- P as bw,
10719
+ g4 as bv,
10720
+ T as bw,
10471
10721
  g7 as bx,
10472
- O1 as by,
10722
+ I1 as by,
10473
10723
  p0 as bz,
10474
10724
  v2 as c,
10475
- $ as d,
10476
- j as e,
10725
+ E as d,
10726
+ U as e,
10477
10727
  A2 as f,
10478
10728
  v1 as g,
10479
- S as h,
10480
- A as i,
10729
+ D as h,
10730
+ P as i,
10481
10731
  t1 as j,
10482
- O5 as k,
10732
+ I5 as k,
10483
10733
  K7 as l,
10484
10734
  N2 as m,
10485
10735
  G7 as n,
10486
10736
  b2 as o,
10487
10737
  D2 as p,
10488
- G as q,
10738
+ K as q,
10489
10739
  w7 as r,
10490
- M as s,
10740
+ Z as s,
10491
10741
  B2 as t,
10492
10742
  a5 as u,
10493
10743
  d5 as v,