@duyluonganduin/acl-web-components 0.0.65 → 0.0.67

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.
@@ -22,60 +22,60 @@ let o3 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const r3 = (n) => new o3(typeof n == "string" ? n : n + "", void 0, j5), g = (n, ...e) => {
26
- const t = n.length === 1 ? n[0] : e.reduce((o, i, r) => o + ((l) => {
25
+ const n3 = (r) => new o3(typeof r == "string" ? r : r + "", void 0, j5), g = (r, ...e) => {
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
- })(i) + n[r + 1], n[0]);
31
- return new o3(t, n, j5);
32
- }, S3 = (n, e) => {
33
- if (N5) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
30
+ })(i) + r[n + 1], r[0]);
31
+ return new o3(t, r, j5);
32
+ }, S3 = (r, e) => {
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
- i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, n.appendChild(o);
36
+ i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, r.appendChild(o);
37
37
  }
38
- }, L4 = N5 ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
38
+ }, L4 = 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 r3(t);
42
- })(n) : n;
41
+ return n3(t);
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 = (n, e) => n, E2 = { toAttribute(n, e) {
48
+ const { is: A3, defineProperty: D3, getOwnPropertyDescriptor: P3, getOwnPropertyNames: B3, getOwnPropertySymbols: F3, getPrototypeOf: O3 } = Object, h1 = globalThis, V4 = h1.trustedTypes, I3 = V4 ? V4.emptyScript : "", Y2 = h1.reactiveElementPolyfillSupport, s2 = (r, e) => r, E2 = { toAttribute(r, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- n = n ? O3 : null;
51
+ r = r ? I3 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- n = n == null ? n : JSON.stringify(n);
55
+ r = r == null ? r : JSON.stringify(r);
56
56
  }
57
- return n;
58
- }, fromAttribute(n, e) {
59
- let t = n;
57
+ return r;
58
+ }, fromAttribute(r, e) {
59
+ let t = r;
60
60
  switch (e) {
61
61
  case Boolean:
62
- t = n !== null;
62
+ t = r !== null;
63
63
  break;
64
64
  case Number:
65
- t = n === null ? null : Number(n);
65
+ t = r === null ? null : Number(r);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- t = JSON.parse(n);
70
+ t = JSON.parse(r);
71
71
  } catch {
72
72
  t = null;
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, U5 = (n, e) => !A3(n, e), x4 = { attribute: !0, type: String, converter: E2, reflect: !1, useDefault: !1, hasChanged: U5 };
76
+ } }, U5 = (r, e) => !A3(r, e), x4 = { 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 O1 = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
81
81
  }
@@ -89,14 +89,14 @@ let I1 = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, o) {
92
- const { get: i, set: r } = P3(this.prototype, e) ?? { get() {
92
+ const { get: i, set: n } = P3(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
94
  }, set(l) {
95
95
  this[t] = l;
96
96
  } };
97
97
  return { get: i, set(l) {
98
98
  const d = i == null ? void 0 : i.call(this);
99
- r == null || r.call(this, l), this.requestUpdate(e, d, o);
99
+ n == null || n.call(this, l), this.requestUpdate(e, d, o);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
@@ -104,7 +104,7 @@ let I1 = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(s2("elementProperties"))) return;
107
- const e = I3(this);
107
+ const e = O3(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() {
@@ -181,34 +181,34 @@ let I1 = class extends HTMLElement {
181
181
  this._$AK(e, o);
182
182
  }
183
183
  _$ET(e, t) {
184
- var r;
184
+ var n;
185
185
  const o = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, o);
186
186
  if (i !== void 0 && o.reflect === !0) {
187
- const l = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : E2).toAttribute(t, o.type);
187
+ const l = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : E2).toAttribute(t, o.type);
188
188
  this._$Em = e, l == null ? this.removeAttribute(i) : this.setAttribute(i, l), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(e, t) {
192
- var r, l;
192
+ var n, l;
193
193
  const o = this.constructor, i = o._$Eh.get(e);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((r = d.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? d.converter : E2;
195
+ const d = o.getPropertyOptions(i), c = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((n = d.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? d.converter : E2;
196
196
  this._$Em = i;
197
197
  const C = c.fromAttribute(t, d.type);
198
198
  this[i] = C ?? ((l = this._$Ej) == null ? void 0 : l.get(i)) ?? C, this._$Em = null;
199
199
  }
200
200
  }
201
- requestUpdate(e, t, o, i = !1, r) {
201
+ requestUpdate(e, t, o, i = !1, n) {
202
202
  var l;
203
203
  if (e !== void 0) {
204
204
  const d = this.constructor;
205
- if (i === !1 && (r = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? U5)(r, t) || o.useDefault && o.reflect && r === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
205
+ if (i === !1 && (n = this[e]), o ?? (o = d.getPropertyOptions(e)), !((o.hasChanged ?? U5)(n, t) || o.useDefault && o.reflect && n === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(d._$Eu(e, o)))) return;
206
206
  this.C(e, t, o);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
209
  }
210
- C(e, t, { useDefault: o, reflect: i, wrapped: r }, l) {
211
- o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, l ?? t ?? this[e]), r !== !0 || l !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
210
+ C(e, t, { useDefault: o, reflect: i, wrapped: n }, l) {
211
+ o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, l ?? t ?? this[e]), n !== !0 || l !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
212
212
  }
213
213
  async _$EP() {
214
214
  this.isUpdatePending = !0;
@@ -228,21 +228,21 @@ let I1 = class extends HTMLElement {
228
228
  if (!this.isUpdatePending) return;
229
229
  if (!this.hasUpdated) {
230
230
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
231
- for (const [r, l] of this._$Ep) this[r] = l;
231
+ for (const [n, l] of this._$Ep) this[n] = l;
232
232
  this._$Ep = void 0;
233
233
  }
234
234
  const i = this.constructor.elementProperties;
235
- if (i.size > 0) for (const [r, l] of i) {
236
- const { wrapped: d } = l, c = this[r];
237
- d !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, l, c);
235
+ if (i.size > 0) for (const [n, l] of i) {
236
+ const { wrapped: d } = l, c = this[n];
237
+ d !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, l, c);
238
238
  }
239
239
  }
240
240
  let e = !1;
241
241
  const t = this._$AL;
242
242
  try {
243
243
  e = this.shouldUpdate(t), e ? (this.willUpdate(t), (o = this._$EO) == null || o.forEach((i) => {
244
- var r;
245
- return (r = i.hostUpdate) == null ? void 0 : r.call(i);
244
+ var n;
245
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
246
246
  }), this.update(t)) : this._$EM();
247
247
  } catch (i) {
248
248
  throw e = !1, this._$EM(), i;
@@ -278,36 +278,36 @@ 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
+ O1.elementStyles = [], O1.shadowRootOptions = { mode: "open" }, O1[s2("elementProperties")] = /* @__PURE__ */ new Map(), O1[s2("finalized")] = /* @__PURE__ */ new Map(), Y2 == null || Y2({ ReactiveElement: O1 }), (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 = (n) => n, z2 = a2.trustedTypes, M4 = z2 ? z2.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, n3 = "$lit$", p1 = `lit$${Math.random().toFixed(9).slice(2)}$`, l3 = "?" + p1, T3 = `<${l3}>`, k1 = document, c2 = () => k1.createComment(""), C2 = (n) => n === null || typeof n != "object" && typeof n != "function", G5 = Array.isArray, N3 = (n) => G5(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", q2 = `[
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
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 = (n) => (e, ...t) => ({ _$litType$: n, 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(n, e) {
291
- if (!G5(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
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) {
291
+ if (!G5(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return M4 !== void 0 ? M4.createHTML(e) : e;
293
293
  }
294
- const j3 = (n, e) => {
295
- const t = n.length - 1, o = [];
296
- let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
294
+ const j3 = (r, e) => {
295
+ const t = r.length - 1, o = [];
296
+ let i, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", l = e2;
297
297
  for (let d = 0; d < t; d++) {
298
- const c = n[d];
298
+ const c = r[d];
299
299
  let C, p, f = -1, H = 0;
300
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);
301
- const m = l === V1 && n[d + 1].startsWith("/>") ? " " : "";
302
- r += l === e2 ? c + T3 : f >= 0 ? (o.push(C), c.slice(0, f) + n3 + c.slice(f) + p1 + m) : c + p1 + (f === -2 ? d : m);
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);
303
303
  }
304
- return [d3(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
304
+ return [d3(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
- let r = 0, l = 0;
310
+ let n = 0, l = 0;
311
311
  const d = e.length - 1, c = this.parts, [C, p] = j3(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;
@@ -315,24 +315,24 @@ class p2 {
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(n3)) {
318
+ if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(r3)) {
319
319
  const H = p[l++], m = i.getAttribute(f).split(p1), V = /([.?@])?(.*)/.exec(H);
320
- c.push({ type: 1, index: r, name: V[2], strings: m, ctor: V[1] === "." ? G3 : V[1] === "?" ? K3 : V[1] === "@" ? W3 : K2 }), i.removeAttribute(f);
321
- } else f.startsWith(p1) && (c.push({ type: 6, index: r }), i.removeAttribute(f));
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);
321
+ } else f.startsWith(p1) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
322
322
  if (s3.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 : "";
326
- for (let m = 0; m < H; m++) i.append(f[m], c2()), w1.nextNode(), c.push({ type: 2, index: ++r });
326
+ for (let m = 0; m < H; m++) i.append(f[m], c2()), w1.nextNode(), c.push({ type: 2, index: ++n });
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: r });
330
+ } else if (i.nodeType === 8) if (i.data === l3) c.push({ type: 2, index: n });
331
331
  else {
332
332
  let f = -1;
333
- for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: r }), f += p1.length - 1;
333
+ for (; (f = i.data.indexOf(p1, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += p1.length - 1;
334
334
  }
335
- r++;
335
+ n++;
336
336
  }
337
337
  }
338
338
  static createElement(e, t) {
@@ -340,12 +340,12 @@ class p2 {
340
340
  return o.innerHTML = e, o;
341
341
  }
342
342
  }
343
- function T1(n, e, t = n, o) {
343
+ function T1(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
- const r = C2(e) ? void 0 : e._$litDirective$;
348
- return (i == null ? void 0 : i.constructor) !== r && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = T1(n, i._$AS(n, e.values), i, o)), e;
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;
349
349
  }
350
350
  class U3 {
351
351
  constructor(e, t) {
@@ -360,13 +360,13 @@ class U3 {
360
360
  u(e) {
361
361
  const { el: { content: t }, parts: o } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? k1).importNode(t, !0);
362
362
  w1.currentNode = i;
363
- let r = w1.nextNode(), l = 0, d = 0, c = o[0];
363
+ let n = w1.nextNode(), l = 0, d = 0, c = o[0];
364
364
  for (; c !== void 0; ) {
365
365
  if (l === c.index) {
366
366
  let C;
367
- c.type === 2 ? C = new k2(r, r.nextSibling, this, e) : c.type === 1 ? C = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (C = new Y3(r, 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 Y3(n, this, e)), this._$AV.push(C), c = o[++d];
368
368
  }
369
- l !== (c == null ? void 0 : c.index) && (r = w1.nextNode(), l++);
369
+ l !== (c == null ? void 0 : c.index) && (n = w1.nextNode(), l++);
370
370
  }
371
371
  return w1.currentNode = k1, i;
372
372
  }
@@ -407,9 +407,9 @@ class k2 {
407
407
  this._$AH !== u && C2(this._$AH) ? this._$AA.nextSibling.data = e : this.T(k1.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
- var r;
410
+ var n;
411
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);
412
- if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(t);
412
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(t);
413
413
  else {
414
414
  const l = new U3(i, this), d = l.u(this.options);
415
415
  l.p(t), this.T(d), this._$AH = l;
@@ -423,7 +423,7 @@ class k2 {
423
423
  G5(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const t = this._$AH;
425
425
  let o, i = 0;
426
- for (const r of e) i === t.length ? t.push(o = new k2(this.O(c2()), this.O(c2()), this, this.options)) : o = t[i], o._$AI(r), i++;
426
+ for (const n of e) i === t.length ? t.push(o = new k2(this.O(c2()), this.O(c2()), this, this.options)) : o = t[i], o._$AI(n), i++;
427
427
  i < t.length && (this._$AR(o && o._$AB.nextSibling, i), t.length = i);
428
428
  }
429
429
  _$AR(e = this._$AA.nextSibling, t) {
@@ -445,17 +445,17 @@ class K2 {
445
445
  get _$AU() {
446
446
  return this._$AM._$AU;
447
447
  }
448
- constructor(e, t, o, i, r) {
449
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = u;
448
+ constructor(e, t, o, i, n) {
449
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = n, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = u;
450
450
  }
451
451
  _$AI(e, t = this, o, i) {
452
- const r = this.strings;
452
+ const n = this.strings;
453
453
  let l = !1;
454
- if (r === 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 = T1(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 = r[0], c = 0; c < r.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 ?? "") + r[c + 1]), this._$AH[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;
459
459
  }
460
460
  l && !i && this.j(e);
461
461
  }
@@ -480,13 +480,13 @@ class K3 extends K2 {
480
480
  }
481
481
  }
482
482
  class W3 extends K2 {
483
- constructor(e, t, o, i, r) {
484
- super(e, t, o, i, r), this.type = 5;
483
+ constructor(e, t, o, i, n) {
484
+ super(e, t, o, i, n), this.type = 5;
485
485
  }
486
486
  _$AI(e, t = this) {
487
487
  if ((e = T1(this, e, t, 0) ?? u) === R1) return;
488
- const o = this._$AH, i = e === u && o !== u || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, r = e !== u && (o === u || i);
489
- i && this.element.removeEventListener(this.name, this, o), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
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
+ i && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
491
491
  handleEvent(e) {
492
492
  var t;
@@ -506,14 +506,14 @@ class Y3 {
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 = (n, e, t) => {
509
+ const q3 = (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) {
513
- const r = (t == null ? void 0 : t.renderBefore) ?? null;
514
- o._$litPart$ = i = new k2(e.insertBefore(c2(), r), r, void 0, t ?? {});
513
+ const n = (t == null ? void 0 : t.renderBefore) ?? null;
514
+ o._$litPart$ = i = new k2(e.insertBefore(c2(), n), n, void 0, t ?? {});
515
515
  }
516
- return i._$AI(n), i;
516
+ return i._$AI(r), i;
517
517
  };
518
518
  /**
519
519
  * @license
@@ -521,7 +521,7 @@ const q3 = (n, 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 O1 {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
527
  }
@@ -556,66 +556,66 @@ 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 = (n = X3, e, t) => {
559
+ const X3 = { attribute: !0, type: String, converter: E2, reflect: !1, hasChanged: U5 }, J3 = (r = X3, e, t) => {
560
560
  const { kind: o, metadata: i } = t;
561
- let r = globalThis.litPropertyMetadata.get(i);
562
- if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), o === "accessor") {
561
+ let n = globalThis.litPropertyMetadata.get(i);
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") {
563
563
  const { name: l } = t;
564
564
  return { set(d) {
565
565
  const c = e.get.call(this);
566
- e.set.call(this, d), this.requestUpdate(l, c, n, !0, d);
566
+ e.set.call(this, d), this.requestUpdate(l, c, r, !0, d);
567
567
  }, init(d) {
568
- return d !== void 0 && this.C(l, void 0, n, d), d;
568
+ return d !== void 0 && this.C(l, void 0, r, d), d;
569
569
  } };
570
570
  }
571
571
  if (o === "setter") {
572
572
  const { name: l } = t;
573
573
  return function(d) {
574
574
  const c = this[l];
575
- e.call(this, d), this.requestUpdate(l, c, n, !0, d);
575
+ e.call(this, d), this.requestUpdate(l, c, r, !0, d);
576
576
  };
577
577
  }
578
578
  throw Error("Unsupported decorator location: " + o);
579
579
  };
580
- function s(n) {
581
- return (e, t) => typeof t == "object" ? J3(n, e, t) : ((o, i, r) => {
582
- const l = i.hasOwnProperty(r);
583
- return i.constructor.createProperty(r, o), l ? Object.getOwnPropertyDescriptor(i, r) : void 0;
584
- })(n, e, t);
580
+ function s(r) {
581
+ return (e, t) => typeof t == "object" ? J3(r, e, t) : ((o, i, n) => {
582
+ const l = i.hasOwnProperty(n);
583
+ return i.constructor.createProperty(n, o), l ? Object.getOwnPropertyDescriptor(i, n) : void 0;
584
+ })(r, e, t);
585
585
  }
586
586
  /**
587
587
  * @license
588
588
  * Copyright 2017 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function b(n) {
592
- return s({ ...n, state: !0, attribute: !1 });
591
+ function b(r) {
592
+ return s({ ...r, state: !0, attribute: !1 });
593
593
  }
594
594
  /**
595
595
  * @license
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const Q3 = (n, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(n, e, t), t);
599
+ const Q3 = (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(n, e) {
605
+ function k(r, e) {
606
606
  return (t, o, i) => {
607
- const r = (l) => {
607
+ const n = (l) => {
608
608
  var d;
609
- return ((d = l.renderRoot) == null ? void 0 : d.querySelector(n)) ?? null;
609
+ return ((d = l.renderRoot) == null ? void 0 : d.querySelector(r)) ?? null;
610
610
  };
611
611
  return Q3(t, o, { get() {
612
- return r(this);
612
+ return n(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var et = Object.defineProperty, c3 = (n, e, t, o) => {
617
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
618
- (l = n[r]) && (i = l(e, t, i) || i);
616
+ var et = Object.defineProperty, c3 = (r, e, t, o) => {
617
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
618
+ (l = r[n]) && (i = l(e, t, i) || i);
619
619
  return i && et(e, t, i), i;
620
620
  };
621
621
  const X5 = class X5 extends h {
@@ -640,14 +640,14 @@ const X5 = class X5 extends h {
640
640
  const [e, t] = this.getSizeParams(this.size), o = this.percent === "" || this.percent === null;
641
641
  let i;
642
642
  o ? i = 0.75 * Math.PI * e : i = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
643
- const r = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
643
+ const n = t / 2, l = t + e, d = e / 2, c = Math.PI * e;
644
644
  return u2`
645
645
  <svg
646
646
  class=${o ? "spinner" : ""}
647
647
  width="${e}px"
648
648
  height="${e}px"
649
649
  transform="rotate(-90)"
650
- viewBox="-${r} -${r} ${l} ${l}"
650
+ viewBox="-${n} -${n} ${l} ${l}"
651
651
  xmlns="http://www.w3.org/2000/svg"
652
652
  >
653
653
  <circle
@@ -688,9 +688,9 @@ c3([
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 = (n, e, t, o) => {
692
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
693
- (l = n[r]) && (i = l(e, t, i) || i);
691
+ var tt = Object.defineProperty, C3 = (r, e, t, o) => {
692
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
693
+ (l = r[n]) && (i = l(e, t, i) || i);
694
694
  return i && tt(e, t, i), i;
695
695
  };
696
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 {
@@ -718,10 +718,10 @@ J5.styles = g`
718
718
  :host { display: inline-block; line-height: 0; }
719
719
 
720
720
  /* ── Colors ─────────────────────────────────────────────────── */
721
- :host([color="primary"]) { color: var(--color-primary); }
721
+ :host([color="primary"]) { color: var(--color-primary-icon); }
722
722
  :host([color="success"]) { color: var(--color-success); }
723
723
  :host([color="warning"]) { color: var(--color-warning-active); }
724
- :host([color="danger"]) { color: var(--color-destructive); }
724
+ :host([color="danger"]) { color: var(--color-destructive-icon); }
725
725
 
726
726
  /* ── Star base ──────────────────────────────────────────────── */
727
727
  .star {
@@ -761,9 +761,9 @@ C3([
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 = (n, e, t, o) => {
765
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
766
- (l = n[r]) && (i = l(e, t, i) || i);
764
+ var ot = Object.defineProperty, K5 = (r, e, t, o) => {
765
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
766
+ (l = r[n]) && (i = l(e, t, i) || i);
767
767
  return i && ot(e, t, i), i;
768
768
  };
769
769
  const u3 = [
@@ -809,15 +809,15 @@ const u3 = [
809
809
  originY: 39.0175,
810
810
  delay: -0.97
811
811
  }
812
- ], S4 = 20, A4 = 5, rt = 900, nt = 160, D4 = 2, lt = "cubic-bezier(0.22, 0.61, 0.36, 1)", Q2 = 180, o2 = "ai-spinner--loading", r2 = "ai-spinner--settling", M1 = "ai-spinner__segment", st = u3.map(
813
- (n) => `
814
- .${M1}--${n.index} {
815
- transform-origin: ${n.originX}px ${n.originY}px;
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(
813
+ (r) => `
814
+ .${M1}--${r.index} {
815
+ transform-origin: ${r.originX}px ${r.originY}px;
816
816
  }
817
817
 
818
- .${o2} .${M1}--${n.index},
819
- .${r2} .${M1}--${n.index} {
820
- animation-delay: ${n.delay}s;
818
+ .${o2} .${M1}--${r.index},
819
+ .${n2} .${M1}--${r.index} {
820
+ animation-delay: ${r.delay}s;
821
821
  }
822
822
  `
823
823
  ).join(`
@@ -861,26 +861,26 @@ const u3 = [
861
861
  applyPhase(e) {
862
862
  const t = this.wrapper;
863
863
  if (!t) return;
864
- const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(r2);
864
+ const o = this.currentRotationDegrees(t), i = t.classList.contains(o2) || t.classList.contains(n2);
865
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));
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) {
869
869
  const t = getComputedStyle(e).transform;
870
870
  if (!t || t === "none") return null;
871
- const o = t.slice(t.indexOf("(") + 1, t.indexOf(")")).split(",").map((r) => Number(r.trim()));
871
+ const o = t.slice(t.indexOf("(") + 1, t.indexOf(")")).split(",").map((n) => Number(n.trim()));
872
872
  if (o.length < 2 || o.some(Number.isNaN)) return null;
873
873
  const i = Math.atan2(o[1], o[0]) * 180 / Math.PI;
874
874
  return i < 0 ? i + 360 : i;
875
875
  }
876
876
  startSettle(e, t) {
877
- const o = 360 - t, i = Math.max(nt, o / 360 * rt);
878
- e.classList.add(r2), 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 = (r) => {
879
- r.target === e && r.propertyName === "transform" && this.restSegments(e);
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) => {
879
+ n.target === e && n.propertyName === "transform" && this.restSegments(e);
880
880
  }, e.addEventListener("transitionend", this.settleListener);
881
881
  }
882
882
  cancelSettle(e) {
883
- this.detachSettleListener(e), e.classList.remove(r2), e.style.removeProperty("transition"), e.style.removeProperty("transform");
883
+ this.detachSettleListener(e), e.classList.remove(n2), e.style.removeProperty("transition"), e.style.removeProperty("transform");
884
884
  }
885
885
  detachSettleListener(e) {
886
886
  this.settleListener && (e.removeEventListener("transitionend", this.settleListener), this.settleListener = void 0);
@@ -894,24 +894,24 @@ const u3 = [
894
894
  */
895
895
  restSegments(e) {
896
896
  this.detachSettleListener(e), this.cancelSegmentRest(e), e.style.removeProperty("transition"), e.style.removeProperty("transform");
897
- const o = Array.from(e.querySelectorAll(`.${M1}`)).map((r) => {
898
- const l = getComputedStyle(r);
899
- return { segment: r, transform: l.transform, opacity: l.opacity };
897
+ const o = Array.from(e.querySelectorAll(`.${M1}`)).map((n) => {
898
+ const l = getComputedStyle(n);
899
+ return { segment: n, transform: l.transform, opacity: l.opacity };
900
900
  });
901
901
  if (!o.some(
902
- (r) => r.transform && r.transform !== "none" || Number(r.opacity) < 1
902
+ (n) => n.transform && n.transform !== "none" || Number(n.opacity) < 1
903
903
  )) {
904
904
  this.dropPhaseClasses(e);
905
905
  return;
906
906
  }
907
- for (const { segment: r, transform: l, opacity: d } of o)
908
- r.style.setProperty("transition", "none"), r.style.setProperty("transform", l), r.style.setProperty("opacity", d);
907
+ for (const { segment: n, transform: l, opacity: d } of o)
908
+ n.style.setProperty("transition", "none"), n.style.setProperty("transform", l), n.style.setProperty("opacity", d);
909
909
  this.dropPhaseClasses(e), e.offsetHeight;
910
- for (const { segment: r } of o)
911
- r.style.setProperty(
910
+ for (const { segment: n } of o)
911
+ n.style.setProperty(
912
912
  "transition",
913
913
  `transform ${Q2}ms linear, opacity ${Q2}ms linear`
914
- ), r.style.setProperty("transform", "none"), r.style.setProperty("opacity", "1");
914
+ ), n.style.setProperty("transform", "none"), n.style.setProperty("opacity", "1");
915
915
  this.segmentRestTimer = setTimeout(() => this.cancelSegmentRest(e), Q2);
916
916
  }
917
917
  cancelSegmentRest(e) {
@@ -920,14 +920,16 @@ const u3 = [
920
920
  t.style.removeProperty("transition"), t.style.removeProperty("transform"), t.style.removeProperty("opacity");
921
921
  }
922
922
  dropPhaseClasses(e) {
923
- e.classList.remove(o2), e.classList.remove(r2);
923
+ e.classList.remove(o2), e.classList.remove(n2);
924
924
  }
925
925
  };
926
926
  Q5.styles = g`
927
927
  :host {
928
928
  display: inline-block;
929
929
  line-height: 0;
930
- color: var(--color-ai);
930
+ /* Purple as text, not the fill: purple-600 in light, purple-200 in dark,
931
+ where purple-600 is 2.5:1 on gray-9. anduin.design's spinner does the same. */
932
+ color: var(--color-ai-text);
931
933
  }
932
934
 
933
935
  .ai-spinner {
@@ -958,7 +960,7 @@ Q5.styles = g`
958
960
  animation: ai-spinner-pulse 1.52s linear infinite;
959
961
  }
960
962
 
961
- ${r3(st)}
963
+ ${n3(st)}
962
964
 
963
965
  @keyframes ai-spinner-spin {
964
966
  to {
@@ -1370,9 +1372,9 @@ const P4 = {
1370
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" }],
1371
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" }]
1372
1374
  };
1373
- var at = Object.defineProperty, p3 = (n, e, t, o) => {
1374
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1375
- (l = n[r]) && (i = l(e, t, i) || i);
1375
+ var at = Object.defineProperty, p3 = (r, e, t, o) => {
1376
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1377
+ (l = r[n]) && (i = l(e, t, i) || i);
1376
1378
  return i && at(e, t, i), i;
1377
1379
  };
1378
1380
  const ee = class ee extends h {
@@ -1415,9 +1417,9 @@ p3([
1415
1417
  s({ type: Number })
1416
1418
  ], f2.prototype, "size");
1417
1419
  customElements.get("anduin-icon") || customElements.define("anduin-icon", f2);
1418
- var dt = Object.defineProperty, ct = (n, e, t, o) => {
1419
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1420
- (l = n[r]) && (i = l(e, t, i) || i);
1420
+ var dt = Object.defineProperty, ct = (r, e, t, o) => {
1421
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1422
+ (l = r[n]) && (i = l(e, t, i) || i);
1421
1423
  return i && dt(e, t, i), i;
1422
1424
  };
1423
1425
  const h3 = g`
@@ -1448,7 +1450,7 @@ const h3 = g`
1448
1450
  .badge--bold-warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1449
1451
  .badge--hidden { display: none; }
1450
1452
  `;
1451
- function g3(n) {
1453
+ function g3(r) {
1452
1454
  return {
1453
1455
  gray: "badge--light-gray",
1454
1456
  primary: "badge--light-primary",
@@ -1460,7 +1462,7 @@ function g3(n) {
1460
1462
  boldSuccess: "badge--bold-success",
1461
1463
  boldWarning: "badge--bold-warning",
1462
1464
  boldDanger: "badge--bold-danger"
1463
- }[n || "gray"] || "badge--light-gray";
1465
+ }[r || "gray"] || "badge--light-gray";
1464
1466
  }
1465
1467
  const te = class te extends h {
1466
1468
  constructor() {
@@ -1477,9 +1479,9 @@ ct([
1477
1479
  s()
1478
1480
  ], S2.prototype, "variant");
1479
1481
  customElements.get("anduin-badge") || customElements.define("anduin-badge", S2);
1480
- var Ct = Object.defineProperty, f3 = (n, e, t, o) => {
1481
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1482
- (l = n[r]) && (i = l(e, t, i) || i);
1482
+ var Ct = Object.defineProperty, f3 = (r, e, t, o) => {
1483
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1484
+ (l = r[n]) && (i = l(e, t, i) || i);
1483
1485
  return i && Ct(e, t, i), i;
1484
1486
  };
1485
1487
  const ie = class ie extends h {
@@ -1508,13 +1510,13 @@ f3([
1508
1510
  s({ type: Number })
1509
1511
  ], v2.prototype, "count");
1510
1512
  customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", v2);
1511
- var ut = Object.defineProperty, F = (n, e, t, o) => {
1512
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1513
- (l = n[r]) && (i = l(e, t, i) || i);
1513
+ var ut = Object.defineProperty, I = (r, e, t, o) => {
1514
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1515
+ (l = r[n]) && (i = l(e, t, i) || i);
1514
1516
  return i && ut(e, t, i), i;
1515
1517
  };
1516
- function pt(n) {
1517
- return n.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1518
+ function pt(r) {
1519
+ return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1518
1520
  }
1519
1521
  const oe = class oe extends h {
1520
1522
  constructor() {
@@ -1635,7 +1637,7 @@ oe.styles = g`
1635
1637
  .button--outlined.button--danger { border-color: var(--color-destructive-border); color: var(--color-destructive-subtle-foreground); background-color: transparent; }
1636
1638
  .button--outlined.button--danger:hover { background-color: var(--color-destructive-subtle); }
1637
1639
  .button--outlined.button--danger:active { background-color: var(--color-destructive-subtle-active); }
1638
- .button--outlined.button--primary { border-color: var(--color-primary-border); color: var(--color-primary); background-color: transparent; }
1640
+ .button--outlined.button--primary { border-color: var(--color-primary-border); color: var(--color-primary-text); background-color: transparent; }
1639
1641
  .button--outlined.button--primary:hover { background-color: var(--color-primary-subtle); }
1640
1642
  .button--outlined.button--primary:active { background-color: var(--color-primary-subtle-active); }
1641
1643
  .button--outlined.button--success { border-color: var(--color-success-border); color: var(--color-success-subtle-foreground); background-color: transparent; }
@@ -1644,8 +1646,9 @@ oe.styles = g`
1644
1646
  .button--outlined.button--warning { border-color: var(--color-warning-border); color: var(--color-warning-subtle-foreground); background-color: transparent; }
1645
1647
  .button--outlined.button--warning:hover { background-color: var(--color-warning-subtle); }
1646
1648
  .button--outlined.button--warning:active { background-color: var(--color-warning-subtle-active); }
1647
- /* Purple text moves from purple-500 to --color-ai (purple-600): one step darker, better contrast. */
1648
- .button--outlined.button--purple { border-color: var(--color-ai-border); color: var(--color-ai); background-color: transparent; }
1649
+ /* Purple text moved from purple-500 to purple-600 for contrast on white; it now reads --color-ai-text,
1650
+ which is that same purple-600 in light and purple-200 in dark, where purple-600 is 2.5:1 on gray-9. */
1651
+ .button--outlined.button--purple { border-color: var(--color-ai-border); color: var(--color-ai-text); background-color: transparent; }
1649
1652
  .button--outlined.button--purple:hover { background-color: var(--color-ai-subtle); }
1650
1653
  .button--outlined.button--purple:active { background-color: var(--color-ai-subtle-active); }
1651
1654
  .button--plain.button--gray9 { border-color: transparent; color: var(--color-muted-foreground); background-color: transparent; }
@@ -1657,7 +1660,7 @@ oe.styles = g`
1657
1660
  .button--plain.button--danger { border-color: transparent; color: var(--color-destructive-subtle-foreground); background-color: transparent; }
1658
1661
  .button--plain.button--danger:hover { background-color: var(--color-destructive-subtle); }
1659
1662
  .button--plain.button--danger:active { background-color: var(--color-destructive-subtle-active); }
1660
- .button--plain.button--primary { border-color: transparent; color: var(--color-primary); background-color: transparent; }
1663
+ .button--plain.button--primary { border-color: transparent; color: var(--color-primary-text); background-color: transparent; }
1661
1664
  .button--plain.button--primary:hover { background-color: var(--color-primary-subtle); }
1662
1665
  .button--plain.button--primary:active { background-color: var(--color-primary-subtle-active); }
1663
1666
  .button--plain.button--success { border-color: transparent; color: var(--color-success-subtle-foreground); background-color: transparent; }
@@ -1666,7 +1669,7 @@ oe.styles = g`
1666
1669
  .button--plain.button--warning { border-color: transparent; color: var(--color-warning-subtle-foreground); background-color: transparent; }
1667
1670
  .button--plain.button--warning:hover { background-color: var(--color-warning-subtle); }
1668
1671
  .button--plain.button--warning:active { background-color: var(--color-warning-subtle-active); }
1669
- .button--plain.button--purple { border-color: transparent; color: var(--color-ai); background-color: transparent; }
1672
+ .button--plain.button--purple { border-color: transparent; color: var(--color-ai-text); background-color: transparent; }
1670
1673
  .button--plain.button--purple:hover { background-color: var(--color-ai-subtle); }
1671
1674
  .button--plain.button--purple:active { background-color: var(--color-ai-subtle-active); }
1672
1675
  .button--text { border: none; background: none; padding: 0; height: auto; width: auto; display: inline-flex; align-items: center; vertical-align: bottom; }
@@ -1678,7 +1681,7 @@ oe.styles = g`
1678
1681
  .button--text.button--success { color: var(--color-success-subtle-foreground); }
1679
1682
  .button--text.button--danger { color: var(--color-destructive-subtle-foreground); }
1680
1683
  .button--text.button--warning { color: var(--color-warning-subtle-foreground); }
1681
- .button--text.button--purple { color: var(--color-ai); }
1684
+ .button--text.button--purple { color: var(--color-ai-text); }
1682
1685
  .button--selected.button--filled.button--gray0 { background-color: var(--color-accent-strong); }
1683
1686
  .button--selected.button--filled.button--gray9 { background-color: var(--color-neutral-active); }
1684
1687
  .button--selected.button--filled.button--primary { background-color: var(--color-primary-active); }
@@ -1692,59 +1695,59 @@ oe.styles = g`
1692
1695
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1693
1696
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1694
1697
  `;
1695
- let $ = oe;
1696
- F([
1698
+ let E = oe;
1699
+ I([
1697
1700
  b()
1698
- ], $.prototype, "iconOnly");
1699
- F([
1700
- s({ converter: (n) => n || "filled" })
1701
- ], $.prototype, "appearance");
1702
- F([
1701
+ ], E.prototype, "iconOnly");
1702
+ I([
1703
+ s({ converter: (r) => r || "filled" })
1704
+ ], E.prototype, "appearance");
1705
+ I([
1703
1706
  s()
1704
- ], $.prototype, "variant");
1705
- F([
1707
+ ], E.prototype, "variant");
1708
+ I([
1706
1709
  s()
1707
- ], $.prototype, "size");
1708
- F([
1710
+ ], E.prototype, "size");
1711
+ I([
1709
1712
  s({ type: Boolean })
1710
- ], $.prototype, "disabled");
1711
- F([
1713
+ ], E.prototype, "disabled");
1714
+ I([
1712
1715
  s({ type: Boolean })
1713
- ], $.prototype, "loading");
1714
- F([
1716
+ ], E.prototype, "loading");
1717
+ I([
1715
1718
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
1716
- ], $.prototype, "fullWidth");
1717
- F([
1719
+ ], E.prototype, "fullWidth");
1720
+ I([
1718
1721
  s({ type: Boolean })
1719
- ], $.prototype, "pill");
1720
- F([
1722
+ ], E.prototype, "pill");
1723
+ I([
1721
1724
  s({ type: Boolean })
1722
- ], $.prototype, "selected");
1723
- F([
1725
+ ], E.prototype, "selected");
1726
+ I([
1724
1727
  s()
1725
- ], $.prototype, "href");
1726
- F([
1728
+ ], E.prototype, "href");
1729
+ I([
1727
1730
  s({ type: Boolean, attribute: "open-new-tab" })
1728
- ], $.prototype, "openNewTab");
1729
- F([
1731
+ ], E.prototype, "openNewTab");
1732
+ I([
1730
1733
  s()
1731
- ], $.prototype, "download");
1732
- F([
1734
+ ], E.prototype, "download");
1735
+ I([
1733
1736
  s({ attribute: "start-icon" })
1734
- ], $.prototype, "startIcon");
1735
- F([
1737
+ ], E.prototype, "startIcon");
1738
+ I([
1736
1739
  s({ attribute: "end-icon" })
1737
- ], $.prototype, "endIcon");
1738
- F([
1740
+ ], E.prototype, "endIcon");
1741
+ I([
1739
1742
  s()
1740
- ], $.prototype, "label");
1741
- customElements.get("anduin-button") || customElements.define("anduin-button", $);
1742
- var ht = Object.defineProperty, gt = (n, e, t, o) => {
1743
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1744
- (l = n[r]) && (i = l(e, t, i) || i);
1743
+ ], E.prototype, "label");
1744
+ customElements.get("anduin-button") || customElements.define("anduin-button", E);
1745
+ var ht = Object.defineProperty, gt = (r, e, t, o) => {
1746
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1747
+ (l = r[n]) && (i = l(e, t, i) || i);
1745
1748
  return i && ht(e, t, i), i;
1746
1749
  };
1747
- const re = class re extends h {
1750
+ const ne = class ne extends h {
1748
1751
  constructor() {
1749
1752
  super(...arguments), this.variant = "gray";
1750
1753
  }
@@ -1757,7 +1760,7 @@ const re = class re extends h {
1757
1760
  `;
1758
1761
  }
1759
1762
  };
1760
- re.styles = g`
1763
+ ne.styles = g`
1761
1764
  :host { display: block; font-family: var(--font-sans); }
1762
1765
  .callout {
1763
1766
  display: flex; align-items: center; justify-content: center;
@@ -1769,17 +1772,17 @@ re.styles = g`
1769
1772
  .callout--danger { background-color: var(--color-destructive); color: var(--color-destructive-foreground); }
1770
1773
  .callout--warning { background-color: var(--color-warning); color: var(--color-warning-foreground); }
1771
1774
  `;
1772
- let A2 = re;
1775
+ let A2 = ne;
1773
1776
  gt([
1774
1777
  s()
1775
1778
  ], A2.prototype, "variant");
1776
1779
  customElements.get("anduin-callout") || customElements.define("anduin-callout", A2);
1777
- var ft = Object.defineProperty, v3 = (n, e, t, o) => {
1778
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1779
- (l = n[r]) && (i = l(e, t, i) || i);
1780
+ var ft = Object.defineProperty, v3 = (r, e, t, o) => {
1781
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1782
+ (l = r[n]) && (i = l(e, t, i) || i);
1780
1783
  return i && ft(e, t, i), i;
1781
1784
  };
1782
- const ne = class ne extends h {
1785
+ const re = class re extends h {
1783
1786
  constructor() {
1784
1787
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1785
1788
  }
@@ -1792,8 +1795,8 @@ const ne = class ne extends h {
1792
1795
  onSlotChange(e) {
1793
1796
  const o = e.target.assignedNodes({ flatten: !0 });
1794
1797
  this.hasContent = o.some((i) => {
1795
- var r;
1796
- return ((r = i.textContent) == null ? void 0 : r.trim()) !== "";
1798
+ var n;
1799
+ return ((n = i.textContent) == null ? void 0 : n.trim()) !== "";
1797
1800
  });
1798
1801
  }
1799
1802
  render() {
@@ -1810,7 +1813,7 @@ const ne = class ne extends h {
1810
1813
  </div>` : a`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1811
1814
  }
1812
1815
  };
1813
- ne.styles = g`
1816
+ re.styles = g`
1814
1817
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1815
1818
  :host([direction="vertical"]) { width: auto; height: 100%; }
1816
1819
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1820,7 +1823,7 @@ ne.styles = g`
1820
1823
  .divider--vertical-empty { background-color: var(--color-border); width: 1px; }
1821
1824
  .divider__line--vertical { border-left: 1px solid var(--color-border); justify-self: center; }
1822
1825
  `;
1823
- let b2 = ne;
1826
+ let b2 = re;
1824
1827
  v3([
1825
1828
  s({ reflect: !0 })
1826
1829
  ], b2.prototype, "direction");
@@ -1828,9 +1831,9 @@ v3([
1828
1831
  b()
1829
1832
  ], b2.prototype, "hasContent");
1830
1833
  customElements.get("anduin-divider") || customElements.define("anduin-divider", b2);
1831
- var vt = Object.defineProperty, bt = (n, e, t, o) => {
1832
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1833
- (l = n[r]) && (i = l(e, t, i) || i);
1834
+ var vt = Object.defineProperty, bt = (r, e, t, o) => {
1835
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1836
+ (l = r[n]) && (i = l(e, t, i) || i);
1834
1837
  return i && vt(e, t, i), i;
1835
1838
  };
1836
1839
  const le = class le extends h {
@@ -1856,9 +1859,9 @@ bt([
1856
1859
  s()
1857
1860
  ], D2.prototype, "variant");
1858
1861
  customElements.get("anduin-dot") || customElements.define("anduin-dot", D2);
1859
- var mt = Object.defineProperty, b3 = (n, e, t, o) => {
1860
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1861
- (l = n[r]) && (i = l(e, t, i) || i);
1862
+ var mt = Object.defineProperty, b3 = (r, e, t, o) => {
1863
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1864
+ (l = r[n]) && (i = l(e, t, i) || i);
1862
1865
  return i && mt(e, t, i), i;
1863
1866
  };
1864
1867
  const se = class se extends h {
@@ -1901,9 +1904,9 @@ b3([
1901
1904
  s()
1902
1905
  ], m2.prototype, "height");
1903
1906
  customElements.get("anduin-progress") || customElements.define("anduin-progress", m2);
1904
- var Ht = Object.defineProperty, q1 = (n, e, t, o) => {
1905
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1906
- (l = n[r]) && (i = l(e, t, i) || i);
1907
+ var Ht = Object.defineProperty, q1 = (r, e, t, o) => {
1908
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1909
+ (l = r[n]) && (i = l(e, t, i) || i);
1907
1910
  return i && Ht(e, t, i), i;
1908
1911
  };
1909
1912
  const ae = class ae extends h {
@@ -1944,29 +1947,29 @@ ae.styles = g`
1944
1947
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1945
1948
  }
1946
1949
  `;
1947
- let n1 = ae;
1950
+ let r1 = ae;
1948
1951
  q1([
1949
1952
  s()
1950
- ], n1.prototype, "effect");
1953
+ ], r1.prototype, "effect");
1951
1954
  q1([
1952
1955
  s()
1953
- ], n1.prototype, "shape");
1956
+ ], r1.prototype, "shape");
1954
1957
  q1([
1955
1958
  s()
1956
- ], n1.prototype, "height");
1959
+ ], r1.prototype, "height");
1957
1960
  q1([
1958
1961
  s()
1959
- ], n1.prototype, "width");
1962
+ ], r1.prototype, "width");
1960
1963
  q1([
1961
1964
  s({ type: Number })
1962
- ], n1.prototype, "duration");
1965
+ ], r1.prototype, "duration");
1963
1966
  q1([
1964
1967
  s({ attribute: "font-size" })
1965
- ], n1.prototype, "fontSize");
1966
- customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", n1);
1967
- var _t = Object.defineProperty, yt = (n, e, t, o) => {
1968
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
1969
- (l = n[r]) && (i = l(e, t, i) || i);
1968
+ ], r1.prototype, "fontSize");
1969
+ customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", r1);
1970
+ var _t = Object.defineProperty, yt = (r, e, t, o) => {
1971
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
1972
+ (l = r[n]) && (i = l(e, t, i) || i);
1970
1973
  return i && _t(e, t, i), i;
1971
1974
  };
1972
1975
  const de = class de extends h {
@@ -1987,7 +1990,7 @@ const de = class de extends h {
1987
1990
  de.styles = g`
1988
1991
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1989
1992
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1990
- .loading-state__indicator { color: var(--color-primary); }
1993
+ .loading-state__indicator { color: var(--color-primary-icon); }
1991
1994
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-subtle-foreground); }
1992
1995
  `;
1993
1996
  let P2 = de;
@@ -1995,9 +1998,9 @@ yt([
1995
1998
  s()
1996
1999
  ], P2.prototype, "height");
1997
2000
  customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", P2);
1998
- var Lt = Object.defineProperty, W5 = (n, e, t, o) => {
1999
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2000
- (l = n[r]) && (i = l(e, t, i) || i);
2001
+ var Lt = Object.defineProperty, W5 = (r, e, t, o) => {
2002
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2003
+ (l = r[n]) && (i = l(e, t, i) || i);
2001
2004
  return i && Lt(e, t, i), i;
2002
2005
  };
2003
2006
  const m3 = "anduin-field:label-click", f1 = "anduin-field:label-click-coordinated", ce = class ce extends h {
@@ -2089,7 +2092,7 @@ const pe = class pe extends h {
2089
2092
  };
2090
2093
  pe.styles = g`
2091
2094
  :host { display: block; font-family: var(--font-sans); }
2092
- .field-error { color: var(--color-destructive); }
2095
+ .field-error { color: var(--color-destructive-text); }
2093
2096
  `;
2094
2097
  let d5 = pe;
2095
2098
  const he = class he extends h {
@@ -2107,9 +2110,9 @@ customElements.get("anduin-field-label") || customElements.define("anduin-field-
2107
2110
  customElements.get("anduin-field-description") || customElements.define("anduin-field-description", a5);
2108
2111
  customElements.get("anduin-field-error") || customElements.define("anduin-field-error", d5);
2109
2112
  customElements.get("anduin-field-group") || customElements.define("anduin-field-group", c5);
2110
- var Vt = Object.defineProperty, R2 = (n, e, t, o) => {
2111
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2112
- (l = n[r]) && (i = l(e, t, i) || i);
2113
+ var Vt = Object.defineProperty, R2 = (r, e, t, o) => {
2114
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2115
+ (l = r[n]) && (i = l(e, t, i) || i);
2113
2116
  return i && Vt(e, t, i), i;
2114
2117
  };
2115
2118
  const xt = "anduin-checkbox:change", ge = class ge extends h {
@@ -2221,14 +2224,14 @@ R2([
2221
2224
  s()
2222
2225
  ], v1.prototype, "inputid");
2223
2226
  customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", v1);
2224
- var wt = Object.defineProperty, Y = (n, e, t, o) => {
2225
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2226
- (l = n[r]) && (i = l(e, t, i) || i);
2227
+ var wt = Object.defineProperty, F = (r, e, t, o) => {
2228
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2229
+ (l = r[n]) && (i = l(e, t, i) || i);
2227
2230
  return i && wt(e, t, i), i;
2228
2231
  };
2229
2232
  const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 extends h {
2230
2233
  constructor() {
2231
- 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;
2232
2235
  }
2233
2236
  connectedCallback() {
2234
2237
  super.connectedCallback();
@@ -2239,6 +2242,9 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2239
2242
  this.inputid && this.inputid === o.detail && ((i = this.inputEl) == null || i.focus());
2240
2243
  });
2241
2244
  }
2245
+ willUpdate(e) {
2246
+ (e.has("type") && this.type !== "password" || e.has("revealable") && !this.revealable) && (this._revealed = !1);
2247
+ }
2242
2248
  updated() {
2243
2249
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
2244
2250
  }
@@ -2282,24 +2288,59 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2282
2288
  var e;
2283
2289
  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();
2284
2290
  }
2291
+ /**
2292
+ * Pointer presses on the reveal button must not move focus off the input:
2293
+ * someone typing a password clicks the eye to check it and keeps typing.
2294
+ * Keyboard users still reach the button with Tab, and pressing it there
2295
+ * leaves focus on the button, as any toggle does.
2296
+ */
2297
+ onRevealPointerDown(e) {
2298
+ e.preventDefault();
2299
+ }
2300
+ /**
2301
+ * Swapping `type` between `password` and `text` keeps the value (the value
2302
+ * mode is the same), but not the caret. Measured in Chromium with a real
2303
+ * pointer click: `selectionStart` still reads right after Lit commits the
2304
+ * new type, then drops to 0 at the next frame, when layout rebuilds the
2305
+ * input's inner editor. Setting the range back straight after the commit
2306
+ * did not stick — layout reset it anyway. Forcing that layout first and
2307
+ * only then restoring the range does stick, measured at the next frame and
2308
+ * 100ms later. The layout is forced with `getBoundingClientRect()`, a call:
2309
+ * a bare `void el.offsetWidth` read is dropped by the minifier as unused,
2310
+ * which is how the first version of this shipped nothing to the browser.
2311
+ *
2312
+ * Restored only while the input still has focus: an unfocused
2313
+ * `setSelectionRange` can pull focus in some engines, and a keyboard user
2314
+ * pressing the button is sitting on the button, not the input.
2315
+ */
2316
+ onRevealToggle() {
2317
+ 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;
2318
+ this._revealed = !this._revealed, this.updateComplete.then(() => {
2319
+ var n;
2320
+ e && t !== null && o !== null && ((n = this.shadowRoot) == null ? void 0 : n.activeElement) === e && (e.getBoundingClientRect(), e.setSelectionRange(t, o, i ?? void 0));
2321
+ });
2322
+ }
2285
2323
  render() {
2286
- 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, r = 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";
2324
+ 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.type === "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.type || "text", p = i ? (l ? Number(c) + 2 : 0) + (this.endIcon ? Number(d) + 2 : 0) : 0;
2287
2325
  return a`
2288
2326
  <div class="input-wrapper">
2289
2327
  ${o ? a`
2290
2328
  <span class="input__start">
2291
- <anduin-icon name=${this.startIcon} size=${l}></anduin-icon>
2329
+ <anduin-icon name=${this.startIcon} size=${d}></anduin-icon>
2292
2330
  </span>
2293
2331
  ` : u}
2294
2332
 
2295
2333
  <input
2296
2334
  class="input ${e}
2297
2335
  ${o ? "input--has-start" : ""}
2298
- ${i ? "input--has-end" : ""}
2336
+ ${n ? "input--has-end" : ""}
2299
2337
  ${this.disabled ? "input--disabled" : ""}
2300
2338
  ${this.readonly ? "input--readonly" : ""}
2301
2339
  ${t}"
2302
- type="text"
2340
+ type=${C}
2341
+ autocomplete=${this.autocomplete || u}
2342
+ name=${this.name || u}
2343
+ style=${p ? `--_end-extra: ${p}px` : u}
2303
2344
  ?disabled=${this.disabled}
2304
2345
  ?readonly=${this.readonly}
2305
2346
  id=${this.inputid || ""}
@@ -2308,15 +2349,29 @@ const B4 = "anduin-input:change", Mt = "anduin-input:clear", j2 = class j2 exten
2308
2349
  @input=${this.onInput}
2309
2350
  />
2310
2351
 
2311
- ${i ? a`
2352
+ ${n ? a`
2312
2353
  <span class="input__end">
2313
- ${r ? a`
2354
+ ${l ? a`
2314
2355
  <button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
2315
- <anduin-icon name="cross" size=${d}></anduin-icon>
2356
+ <anduin-icon name="cross" size=${c}></anduin-icon>
2357
+ </button>
2358
+ ` : u}
2359
+ ${i ? a`
2360
+ <button
2361
+ class="input__reveal"
2362
+ type="button"
2363
+ part="reveal"
2364
+ aria-label=${this._revealed ? "Hide password" : "Show password"}
2365
+ aria-pressed=${this._revealed ? "true" : "false"}
2366
+ ?disabled=${this.disabled}
2367
+ @mousedown=${this.onRevealPointerDown}
2368
+ @click=${this.onRevealToggle}
2369
+ >
2370
+ <anduin-icon name=${this._revealed ? "eyeOff" : "eye"} size=${d}></anduin-icon>
2316
2371
  </button>
2317
2372
  ` : u}
2318
2373
  ${this.endIcon ? a`
2319
- <anduin-icon name=${this.endIcon} size=${l}></anduin-icon>
2374
+ <anduin-icon name=${this.endIcon} size=${d}></anduin-icon>
2320
2375
  ` : u}
2321
2376
  </span>
2322
2377
  ` : u}
@@ -2347,9 +2402,15 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2347
2402
  .input--has-start.input--default { padding-left: 32px; }
2348
2403
  .input--has-start.input--large { padding-left: 42px; }
2349
2404
 
2350
- .input--has-end.input--small { padding-right: 26px; }
2351
- .input--has-end.input--default { padding-right: 32px; }
2352
- .input--has-end.input--large { padding-right: 42px; }
2405
+ /*
2406
+ * One end item fits the base padding. --_end-extra is the width of any
2407
+ * further items beside the password reveal button; it is set only when that
2408
+ * button is rendered, so every combination that existed before it (one end
2409
+ * icon, the clear button, or both) keeps exactly the padding it had.
2410
+ */
2411
+ .input--has-end.input--small { padding-right: calc(26px + var(--_end-extra, 0px)); }
2412
+ .input--has-end.input--default { padding-right: calc(32px + var(--_end-extra, 0px)); }
2413
+ .input--has-end.input--large { padding-right: calc(42px + var(--_end-extra, 0px)); }
2353
2414
 
2354
2415
  .input--disabled { color: var(--color-muted-foreground); background-color: var(--color-disabled); cursor: not-allowed; }
2355
2416
  .input--readonly { background-color: var(--color-secondary); }
@@ -2369,7 +2430,8 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2369
2430
  .input__start { left: 8px; }
2370
2431
  .input__end { right: 8px; gap: 2px; }
2371
2432
 
2372
- .input__clear {
2433
+ .input__clear,
2434
+ .input__reveal {
2373
2435
  display: flex; align-items: center; justify-content: center;
2374
2436
  pointer-events: auto; cursor: pointer;
2375
2437
  background: none; border: none; padding: 0;
@@ -2377,46 +2439,66 @@ j2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, j2.styles
2377
2439
  border-radius: 3px;
2378
2440
  line-height: 0;
2379
2441
  }
2380
- .input__clear:hover { color: var(--color-muted-foreground); }
2442
+ .input__clear:hover,
2443
+ .input__reveal:hover { color: var(--color-muted-foreground); }
2444
+ /* The reveal button is a Tab stop. Ring it on keyboard focus only, so a
2445
+ pointer press (which keeps focus in the input anyway) draws nothing. */
2446
+ .input__reveal:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 1px; }
2447
+ .input__reveal:disabled { cursor: not-allowed; }
2381
2448
  `;
2382
- let I = j2;
2383
- Y([
2449
+ let R = j2;
2450
+ F([
2384
2451
  s()
2385
- ], I.prototype, "value");
2386
- Y([
2452
+ ], R.prototype, "value");
2453
+ F([
2387
2454
  s()
2388
- ], I.prototype, "size");
2389
- Y([
2455
+ ], R.prototype, "size");
2456
+ F([
2390
2457
  s({ type: Boolean })
2391
- ], I.prototype, "disabled");
2392
- Y([
2458
+ ], R.prototype, "disabled");
2459
+ F([
2393
2460
  s({ type: Boolean })
2394
- ], I.prototype, "readonly");
2395
- Y([
2461
+ ], R.prototype, "readonly");
2462
+ F([
2396
2463
  s()
2397
- ], I.prototype, "placeholder");
2398
- Y([
2464
+ ], R.prototype, "placeholder");
2465
+ F([
2399
2466
  s()
2400
- ], I.prototype, "inputid");
2401
- Y([
2467
+ ], R.prototype, "inputid");
2468
+ F([
2402
2469
  s()
2403
- ], I.prototype, "status");
2404
- Y([
2470
+ ], R.prototype, "status");
2471
+ F([
2405
2472
  s({ attribute: "start-icon" })
2406
- ], I.prototype, "startIcon");
2407
- Y([
2473
+ ], R.prototype, "startIcon");
2474
+ F([
2408
2475
  s({ attribute: "end-icon" })
2409
- ], I.prototype, "endIcon");
2410
- Y([
2476
+ ], R.prototype, "endIcon");
2477
+ F([
2411
2478
  s({ type: Boolean })
2412
- ], I.prototype, "clearable");
2413
- Y([
2479
+ ], R.prototype, "clearable");
2480
+ F([
2481
+ s()
2482
+ ], R.prototype, "type");
2483
+ F([
2484
+ s()
2485
+ ], R.prototype, "autocomplete");
2486
+ F([
2487
+ s()
2488
+ ], R.prototype, "name");
2489
+ F([
2490
+ s({ type: Boolean })
2491
+ ], R.prototype, "revealable");
2492
+ F([
2493
+ b()
2494
+ ], R.prototype, "_revealed");
2495
+ F([
2414
2496
  k("input")
2415
- ], I.prototype, "inputEl");
2416
- customElements.get("anduin-input") || customElements.define("anduin-input", I);
2417
- var Zt = Object.defineProperty, H3 = (n, e, t, o) => {
2418
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2419
- (l = n[r]) && (i = l(e, t, i) || i);
2497
+ ], R.prototype, "inputEl");
2498
+ customElements.get("anduin-input") || customElements.define("anduin-input", R);
2499
+ var Zt = Object.defineProperty, H3 = (r, e, t, o) => {
2500
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2501
+ (l = r[n]) && (i = l(e, t, i) || i);
2420
2502
  return i && Zt(e, t, i), i;
2421
2503
  };
2422
2504
  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 = [
@@ -2433,77 +2515,77 @@ const _3 = "anduin-tooltip:show", Y5 = "anduin-tooltip:hide", y3 = "anduin-toolt
2433
2515
  "left-center",
2434
2516
  "left-end"
2435
2517
  ];
2436
- function F4(n, e, t, o, i) {
2518
+ function F4(r, e, t, o, i) {
2437
2519
  switch (o) {
2438
2520
  case "top-start":
2439
- return { left: n.left, top: n.top - t - i };
2521
+ return { left: r.left, top: r.top - t - i };
2440
2522
  case "top-center":
2441
- return { left: n.left + n.width / 2 - e / 2, top: n.top - t - i };
2523
+ return { left: r.left + r.width / 2 - e / 2, top: r.top - t - i };
2442
2524
  case "top-end":
2443
- return { left: n.left + n.width - e, top: n.top - t - i };
2525
+ return { left: r.left + r.width - e, top: r.top - t - i };
2444
2526
  case "right-start":
2445
- return { left: n.right + i, top: n.top };
2527
+ return { left: r.right + i, top: r.top };
2446
2528
  case "right-center":
2447
- return { left: n.right + i, top: n.top + n.height / 2 - t / 2 };
2529
+ return { left: r.right + i, top: r.top + r.height / 2 - t / 2 };
2448
2530
  case "right-end":
2449
- return { left: n.right + i, top: n.top + n.height - t };
2531
+ return { left: r.right + i, top: r.top + r.height - t };
2450
2532
  case "bottom-start":
2451
- return { left: n.left, top: n.bottom + i };
2533
+ return { left: r.left, top: r.bottom + i };
2452
2534
  case "bottom-center":
2453
- return { left: n.left + n.width / 2 - e / 2, top: n.bottom + i };
2535
+ return { left: r.left + r.width / 2 - e / 2, top: r.bottom + i };
2454
2536
  case "bottom-end":
2455
- return { left: n.left + n.width - e, top: n.bottom + i };
2537
+ return { left: r.left + r.width - e, top: r.bottom + i };
2456
2538
  case "left-start":
2457
- return { left: n.left - e - i, top: n.top };
2539
+ return { left: r.left - e - i, top: r.top };
2458
2540
  case "left-center":
2459
- return { left: n.left - e - i, top: n.top + n.height / 2 - t / 2 };
2541
+ return { left: r.left - e - i, top: r.top + r.height / 2 - t / 2 };
2460
2542
  case "left-end":
2461
- return { left: n.left - e - i, top: n.top + n.height - t };
2543
+ return { left: r.left - e - i, top: r.top + r.height - t };
2462
2544
  default:
2463
2545
  return { left: 0, top: 0 };
2464
2546
  }
2465
2547
  }
2466
- function I4(n, e) {
2467
- return e.right >= n.left && e.left <= n.right && e.top <= n.bottom && e.bottom >= n.top;
2548
+ function O4(r, e) {
2549
+ return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2468
2550
  }
2469
- function O4(n, e) {
2470
- const t = Math.max(n.left, e.left), o = Math.max(n.top, e.top), i = Math.min(n.right, e.right), r = Math.min(n.bottom, e.bottom);
2471
- return i < t || r < o ? 0 : (i - t) * (r - o);
2551
+ function I4(r, e) {
2552
+ 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);
2553
+ return i < t || n < o ? 0 : (i - t) * (n - o);
2472
2554
  }
2473
- function Rt(n, e, t, o = 8) {
2474
- const i = window.innerWidth, r = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: r }, d = e.width, c = e.height;
2475
- if (!I4(
2476
- { left: n.left, top: n.top, right: n.right, bottom: n.bottom },
2555
+ function Rt(r, e, t, o = 8) {
2556
+ const i = window.innerWidth, n = window.innerHeight, l = { left: 0, top: 0, right: i, bottom: n }, d = e.width, c = e.height;
2557
+ if (!O4(
2558
+ { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2477
2559
  l
2478
2560
  )) return null;
2479
- const C = F4(n, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(n, d, c, m, o) })).filter(({ off: m }) => I4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2561
+ const C = F4(r, d, c, t, o), p = kt.map((m) => ({ p: m, off: F4(r, d, c, m, o) })).filter(({ off: m }) => O4({ left: m.left, top: m.top, right: m.left + d, bottom: m.top + c }, l));
2480
2562
  if (p.length === 0)
2481
2563
  return {
2482
2564
  placement: t,
2483
2565
  left: Math.round(Math.min(Math.max(C.left, 0), i - d)),
2484
- top: Math.round(Math.min(Math.max(C.top, 0), r - c))
2566
+ top: Math.round(Math.min(Math.max(C.top, 0), n - c))
2485
2567
  };
2486
2568
  p.sort((m, V) => {
2487
- 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);
2569
+ 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 = I4(y, l), w = I4(v, l);
2488
2570
  if (w !== x) return w - x;
2489
- 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);
2490
- return D - K;
2571
+ const P = 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);
2572
+ return P - W;
2491
2573
  });
2492
2574
  const { p: f, off: H } = p[0];
2493
2575
  return {
2494
2576
  placement: f,
2495
2577
  left: Math.round(Math.min(Math.max(H.left, 0), i - d)),
2496
- top: Math.round(Math.min(Math.max(H.top, 0), r - c))
2578
+ top: Math.round(Math.min(Math.max(H.top, 0), n - c))
2497
2579
  };
2498
2580
  }
2499
- function C5(n) {
2500
- return n.split("-")[0] || "top";
2581
+ function C5(r) {
2582
+ return r.split("-")[0] || "top";
2501
2583
  }
2502
- function $t(n, e, t) {
2584
+ function $t(r, e, t) {
2503
2585
  let o = !1, i = t.length - 1;
2504
- for (let r = 0; r < t.length; r++) {
2505
- const l = t[r][0], d = t[r][1], c = t[i][0], C = t[i][1];
2506
- d > e != C > e && n < (c - l) * (e - d) / (C - d) + l && (o = !o), i = r;
2586
+ for (let n = 0; n < t.length; n++) {
2587
+ const l = t[n][0], d = t[n][1], c = t[i][0], C = t[i][1];
2588
+ d > e != C > e && r < (c - l) * (e - d) / (C - d) + l && (o = !o), i = n;
2507
2589
  }
2508
2590
  return o;
2509
2591
  }
@@ -2536,8 +2618,8 @@ const fe = class fe extends h {
2536
2618
  startPositionLoop() {
2537
2619
  this.stopPositionLoop(), this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN;
2538
2620
  const e = this.triggerElement, t = this.contentPopupElement, o = this.placement, i = () => {
2539
- const r = e.getBoundingClientRect();
2540
- (r.top !== this.prevTriggerTop || r.left !== this.prevTriggerLeft) && (this.prevTriggerTop = r.top, this.prevTriggerLeft = r.left, this.positionPopup(t, e, o)), this.rafId = requestAnimationFrame(i);
2621
+ const n = e.getBoundingClientRect();
2622
+ (n.top !== this.prevTriggerTop || n.left !== this.prevTriggerLeft) && (this.prevTriggerTop = n.top, this.prevTriggerLeft = n.left, this.positionPopup(t, e, o)), this.rafId = requestAnimationFrame(i);
2541
2623
  };
2542
2624
  this.rafId = requestAnimationFrame(i);
2543
2625
  }
@@ -2551,7 +2633,7 @@ const fe = class fe extends h {
2551
2633
  this.containingBlockLeft = i.left, this.containingBlockTop = i.top, t.style.transform = o;
2552
2634
  }
2553
2635
  positionPopup(e, t, o) {
2554
- const i = t.getBoundingClientRect(), r = e.getBoundingClientRect(), l = Rt(i, r, o, 8);
2636
+ const i = t.getBoundingClientRect(), n = e.getBoundingClientRect(), l = Rt(i, n, o, 8);
2555
2637
  if (l) {
2556
2638
  const d = e;
2557
2639
  d.style.transform = `translate(${l.left - this.containingBlockLeft}px, ${l.top - this.containingBlockTop}px)`;
@@ -2609,9 +2691,9 @@ let u5 = ve;
2609
2691
  const be = class be extends h {
2610
2692
  constructor() {
2611
2693
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
2612
- var r, l;
2694
+ var n, l;
2613
2695
  if (!this.graceArea) return;
2614
- const t = e.target, o = ((r = this.triggerEl) == null ? void 0 : r.contains(t)) ?? !1, i = ((l = this.popupEl) == null ? void 0 : l.contains(t)) ?? !1;
2696
+ 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;
2615
2697
  o || i ? this.graceArea = null : $t(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(Y5, { bubbles: !0, composed: !0 })));
2616
2698
  }, this.handleTriggerLeave = (e) => {
2617
2699
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
@@ -2631,9 +2713,9 @@ const be = class be extends h {
2631
2713
  super.disconnectedCallback(), this.hidePopup();
2632
2714
  }
2633
2715
  createGraceArea(e, t, o) {
2634
- const i = t.getBoundingClientRect(), r = o.clientX, l = o.clientY;
2716
+ const i = t.getBoundingClientRect(), n = o.clientX, l = o.clientY;
2635
2717
  this.graceArea = [
2636
- [r, l],
2718
+ [n, l],
2637
2719
  [i.left, i.top],
2638
2720
  [i.right, i.top],
2639
2721
  [i.right, i.bottom],
@@ -2652,8 +2734,8 @@ const be = class be extends h {
2652
2734
  o.className = "tooltip-popup", o.setAttribute("role", "tooltip");
2653
2735
  const i = document.createElement("div");
2654
2736
  i.className = `tooltip-arrow tooltip-arrow--${t}`;
2655
- const r = document.createElement("div");
2656
- r.className = "tooltip-body", r.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(r);
2737
+ const n = document.createElement("div");
2738
+ n.className = "tooltip-body", n.appendChild(document.createElement("slot")), o.appendChild(i), o.appendChild(n);
2657
2739
  const l = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2658
2740
  l && l.appendChild(o), this.popupEl = o;
2659
2741
  const d = this.closest("anduin-tooltip");
@@ -2698,9 +2780,9 @@ let p5 = be;
2698
2780
  customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", _2);
2699
2781
  customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", u5);
2700
2782
  customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", p5);
2701
- var Et = Object.defineProperty, B = (n, e, t, o) => {
2702
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2703
- (l = n[r]) && (i = l(e, t, i) || i);
2783
+ var Et = Object.defineProperty, O = (r, e, t, o) => {
2784
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
2785
+ (l = r[n]) && (i = l(e, t, i) || i);
2704
2786
  return i && Et(e, t, i), i;
2705
2787
  };
2706
2788
  const zt = "anduin-inline-edit:save", St = "anduin-inline-edit:cancel", At = "anduin-inline-edit:edit", me = class me extends h {
@@ -2910,59 +2992,59 @@ me.styles = g`
2910
2992
  .field--small { min-height: 24px; padding-left: 6px; padding-right: 6px; }
2911
2993
  .field--medium { min-height: 32px; padding-left: 12px; padding-right: 12px; }
2912
2994
  `;
2913
- let R = me;
2914
- B([
2995
+ let $ = me;
2996
+ O([
2915
2997
  s()
2916
- ], R.prototype, "value");
2917
- B([
2998
+ ], $.prototype, "value");
2999
+ O([
2918
3000
  s()
2919
- ], R.prototype, "placeholder");
2920
- B([
3001
+ ], $.prototype, "placeholder");
3002
+ O([
2921
3003
  s()
2922
- ], R.prototype, "size");
2923
- B([
3004
+ ], $.prototype, "size");
3005
+ O([
2924
3006
  s()
2925
- ], R.prototype, "mode");
2926
- B([
3007
+ ], $.prototype, "mode");
3008
+ O([
2927
3009
  s({ type: Boolean, reflect: !0 })
2928
- ], R.prototype, "disabled");
2929
- B([
3010
+ ], $.prototype, "disabled");
3011
+ O([
2930
3012
  s({ type: Boolean, attribute: "click-to-edit", reflect: !0 })
2931
- ], R.prototype, "clickToEdit");
2932
- B([
3013
+ ], $.prototype, "clickToEdit");
3014
+ O([
2933
3015
  s({ type: Boolean, attribute: "hide-switcher", reflect: !0 })
2934
- ], R.prototype, "hideSwitcher");
2935
- B([
3016
+ ], $.prototype, "hideSwitcher");
3017
+ O([
2936
3018
  s({ attribute: "edit-label" })
2937
- ], R.prototype, "editLabel");
2938
- B([
3019
+ ], $.prototype, "editLabel");
3020
+ O([
2939
3021
  s({ attribute: !1 })
2940
- ], R.prototype, "validate");
2941
- B([
3022
+ ], $.prototype, "validate");
3023
+ O([
2942
3024
  b()
2943
- ], R.prototype, "_editing");
2944
- B([
3025
+ ], $.prototype, "_editing");
3026
+ O([
2945
3027
  b()
2946
- ], R.prototype, "_draft");
2947
- B([
3028
+ ], $.prototype, "_draft");
3029
+ O([
2948
3030
  b()
2949
- ], R.prototype, "_error");
2950
- B([
3031
+ ], $.prototype, "_error");
3032
+ O([
2951
3033
  b()
2952
- ], R.prototype, "_hasSlotted");
2953
- B([
3034
+ ], $.prototype, "_hasSlotted");
3035
+ O([
2954
3036
  b()
2955
- ], R.prototype, "_openWidth");
2956
- B([
3037
+ ], $.prototype, "_openWidth");
3038
+ O([
2957
3039
  k(".field")
2958
- ], R.prototype, "_field");
2959
- B([
3040
+ ], $.prototype, "_field");
3041
+ O([
2960
3042
  k(".text")
2961
- ], R.prototype, "_text");
2962
- customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", R);
2963
- var Dt = Object.defineProperty, y1 = (n, e, t, o) => {
2964
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
2965
- (l = n[r]) && (i = l(e, t, i) || i);
3043
+ ], $.prototype, "_text");
3044
+ customElements.get("anduin-inline-edit") || customElements.define("anduin-inline-edit", $);
3045
+ var Dt = Object.defineProperty, y1 = (r, e, t, o) => {
3046
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3047
+ (l = r[n]) && (i = l(e, t, i) || i);
2966
3048
  return i && Dt(e, t, i), i;
2967
3049
  };
2968
3050
  const Pt = "anduin-textarea:change", U2 = class U2 extends h {
@@ -3043,35 +3125,35 @@ U2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, U2.styles
3043
3125
  .textarea--warning { border-color: var(--color-warning-active); }
3044
3126
  .textarea--loading { border-color: var(--color-input); }
3045
3127
  `;
3046
- let W = U2;
3128
+ let Y = U2;
3047
3129
  y1([
3048
3130
  s()
3049
- ], W.prototype, "value");
3131
+ ], Y.prototype, "value");
3050
3132
  y1([
3051
3133
  s({ type: Boolean })
3052
- ], W.prototype, "disabled");
3134
+ ], Y.prototype, "disabled");
3053
3135
  y1([
3054
3136
  s({ type: Boolean })
3055
- ], W.prototype, "readonly");
3137
+ ], Y.prototype, "readonly");
3056
3138
  y1([
3057
3139
  s()
3058
- ], W.prototype, "placeholder");
3140
+ ], Y.prototype, "placeholder");
3059
3141
  y1([
3060
3142
  s()
3061
- ], W.prototype, "inputid");
3143
+ ], Y.prototype, "inputid");
3062
3144
  y1([
3063
3145
  s({ type: Number })
3064
- ], W.prototype, "rows");
3146
+ ], Y.prototype, "rows");
3065
3147
  y1([
3066
3148
  s()
3067
- ], W.prototype, "status");
3149
+ ], Y.prototype, "status");
3068
3150
  y1([
3069
3151
  k("textarea")
3070
- ], W.prototype, "textareaEl");
3071
- customElements.get("anduin-textarea") || customElements.define("anduin-textarea", W);
3072
- var Bt = Object.defineProperty, U = (n, e, t, o) => {
3073
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3074
- (l = n[r]) && (i = l(e, t, i) || i);
3152
+ ], Y.prototype, "textareaEl");
3153
+ customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Y);
3154
+ var Bt = Object.defineProperty, G = (r, e, t, o) => {
3155
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3156
+ (l = r[n]) && (i = l(e, t, i) || i);
3075
3157
  return i && Bt(e, t, i), i;
3076
3158
  };
3077
3159
  const w3 = "anduin-tab:trigger-click", W2 = "anduin-tab:value-changed", Ft = "anduin-tab:change", He = class He extends h {
@@ -3108,13 +3190,13 @@ He.styles = g`
3108
3190
  :host([fill]) .tabs { flex: 1; min-height: 0; }
3109
3191
  `;
3110
3192
  let j1 = He;
3111
- U([
3193
+ G([
3112
3194
  s({ attribute: "default-value" })
3113
3195
  ], j1.prototype, "defaultValue");
3114
- U([
3196
+ G([
3115
3197
  s()
3116
3198
  ], j1.prototype, "value");
3117
- U([
3199
+ G([
3118
3200
  s({ type: Boolean, reflect: !0 })
3119
3201
  ], j1.prototype, "fill");
3120
3202
  const _e = class _e extends h {
@@ -3179,10 +3261,10 @@ _e.styles = g`
3179
3261
  }
3180
3262
  `;
3181
3263
  let y2 = _e;
3182
- U([
3264
+ G([
3183
3265
  s()
3184
3266
  ], y2.prototype, "alignment");
3185
- U([
3267
+ G([
3186
3268
  k(".tabs-list__indicator")
3187
3269
  ], y2.prototype, "indicator");
3188
3270
  const ye = class ye extends h {
@@ -3243,22 +3325,22 @@ ye.styles = g`
3243
3325
  }
3244
3326
  `;
3245
3327
  let l1 = ye;
3246
- U([
3328
+ G([
3247
3329
  s({ reflect: !0 })
3248
3330
  ], l1.prototype, "value");
3249
- U([
3331
+ G([
3250
3332
  s({ attribute: "start-icon" })
3251
3333
  ], l1.prototype, "startIcon");
3252
- U([
3334
+ G([
3253
3335
  s({ type: Boolean })
3254
3336
  ], l1.prototype, "disabled");
3255
- U([
3337
+ G([
3256
3338
  s({ type: Boolean, attribute: "show-badge" })
3257
3339
  ], l1.prototype, "showBadge");
3258
- U([
3340
+ G([
3259
3341
  s({ attribute: "badge-count" })
3260
3342
  ], l1.prototype, "badgeCount");
3261
- U([
3343
+ G([
3262
3344
  b()
3263
3345
  ], l1.prototype, "isActive");
3264
3346
  const Le = class Le extends h {
@@ -3290,22 +3372,22 @@ Le.styles = g`
3290
3372
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
3291
3373
  `;
3292
3374
  let L2 = Le;
3293
- U([
3375
+ G([
3294
3376
  s()
3295
3377
  ], L2.prototype, "value");
3296
- U([
3378
+ G([
3297
3379
  b()
3298
3380
  ], L2.prototype, "isActive");
3299
3381
  customElements.get("anduin-tabs") || customElements.define("anduin-tabs", j1);
3300
3382
  customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y2);
3301
3383
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", l1);
3302
3384
  customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", L2);
3303
- var It = Object.defineProperty, q5 = (n, e, t, o) => {
3304
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3305
- (l = n[r]) && (i = l(e, t, i) || i);
3306
- return i && It(e, t, i), i;
3385
+ var Ot = Object.defineProperty, q5 = (r, e, t, o) => {
3386
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3387
+ (l = r[n]) && (i = l(e, t, i) || i);
3388
+ return i && Ot(e, t, i), i;
3307
3389
  };
3308
- const Ot = "anduin-tag-close:click", Tt = {
3390
+ const It = "anduin-tag-close:click", Tt = {
3309
3391
  gray: "tag--light-gray",
3310
3392
  primary: "tag--light-primary",
3311
3393
  success: "tag--light-success",
@@ -3382,10 +3464,10 @@ Ve.styles = g`
3382
3464
  .tag__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
3383
3465
  .tag--disabled { opacity: 0.6; }
3384
3466
  .tag__icon--light-gray { color: var(--color-neutral-subtle-foreground); }
3385
- .tag__icon--light-primary { color: var(--color-primary); }
3467
+ .tag__icon--light-primary { color: var(--color-primary-icon); }
3386
3468
  .tag__icon--light-success { color: var(--color-success); }
3387
3469
  .tag__icon--light-warning { color: var(--color-warning-active); }
3388
- .tag__icon--light-danger { color: var(--color-destructive); }
3470
+ .tag__icon--light-danger { color: var(--color-destructive-icon); }
3389
3471
  .tag__icon--bold-gray { color: var(--color-neutral-foreground); }
3390
3472
  .tag__icon--bold-primary { color: var(--color-primary-foreground); }
3391
3473
  .tag__icon--bold-success { color: var(--color-success-foreground); }
@@ -3434,7 +3516,7 @@ q5([
3434
3516
  ], U1.prototype, "disabled");
3435
3517
  const xe = class xe extends h {
3436
3518
  onClick() {
3437
- this.dispatchEvent(new CustomEvent(Ot, { bubbles: !0, composed: !0 }));
3519
+ this.dispatchEvent(new CustomEvent(It, { bubbles: !0, composed: !0 }));
3438
3520
  }
3439
3521
  render() {
3440
3522
  return a`
@@ -3457,9 +3539,9 @@ xe.styles = g`
3457
3539
  let h5 = xe;
3458
3540
  customElements.get("anduin-tag") || customElements.define("anduin-tag", U1);
3459
3541
  customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", h5);
3460
- var jt = Object.defineProperty, O = (n, e, t, o) => {
3461
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3462
- (l = n[r]) && (i = l(e, t, i) || i);
3542
+ var jt = Object.defineProperty, T = (r, e, t, o) => {
3543
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3544
+ (l = r[n]) && (i = l(e, t, i) || i);
3463
3545
  return i && jt(e, t, i), i;
3464
3546
  };
3465
3547
  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 {
@@ -3467,11 +3549,11 @@ const Ut = "anduin-toggle-group:change", Gt = "anduin-toggle-group-item:change",
3467
3549
  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) => {
3468
3550
  var c;
3469
3551
  e.stopPropagation();
3470
- const o = e.detail, i = this.selection, r = i.includes(o);
3552
+ const o = e.detail, i = this.selection, n = i.includes(o);
3471
3553
  let l;
3472
- this.mode === "multiple" ? l = r ? i.filter((C) => C !== o) : [...i, o] : l = r ? [] : [o];
3554
+ this.mode === "multiple" ? l = n ? i.filter((C) => C !== o) : [...i, o] : l = n ? [] : [o];
3473
3555
  const d = this.items.find((C) => C.value === o);
3474
- if (d == null || d.emitSelectionChange(!r), this.mode === "single" && !r)
3556
+ if (d == null || d.emitSelectionChange(!n), this.mode === "single" && !n)
3475
3557
  for (const C of i)
3476
3558
  (c = this.items.find((p) => p.value === C)) == null || c.emitSelectionChange(!1);
3477
3559
  this.dispatchEvent(new CustomEvent(Ut, {
@@ -3550,25 +3632,25 @@ we.styles = g`
3550
3632
  .toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
3551
3633
  `;
3552
3634
  let X = we;
3553
- O([
3635
+ T([
3554
3636
  s()
3555
3637
  ], X.prototype, "mode");
3556
- O([
3638
+ T([
3557
3639
  s({ attribute: "default-value" })
3558
3640
  ], X.prototype, "defaultValue");
3559
- O([
3641
+ T([
3560
3642
  s()
3561
3643
  ], X.prototype, "value");
3562
- O([
3644
+ T([
3563
3645
  s()
3564
3646
  ], X.prototype, "size");
3565
- O([
3647
+ T([
3566
3648
  s()
3567
3649
  ], X.prototype, "variant");
3568
- O([
3650
+ T([
3569
3651
  s({ type: Boolean })
3570
3652
  ], X.prototype, "gap");
3571
- O([
3653
+ T([
3572
3654
  b()
3573
3655
  ], X.prototype, "internalValue");
3574
3656
  const Me = class Me extends h {
@@ -3655,38 +3737,38 @@ Me.styles = g`
3655
3737
  .toggle-item__icon { display: flex; color: var(--color-subtle-foreground); }
3656
3738
  .toggle-item:hover .toggle-item__icon { color: var(--color-muted-foreground); }
3657
3739
  .toggle-item--selected .toggle-item__icon { color: var(--color-muted-foreground); }
3658
- .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary); }
3740
+ .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-icon); }
3659
3741
  `;
3660
3742
  let J = Me;
3661
- O([
3743
+ T([
3662
3744
  s({ reflect: !0 })
3663
3745
  ], J.prototype, "value");
3664
- O([
3746
+ T([
3665
3747
  s({ attribute: "start-icon" })
3666
3748
  ], J.prototype, "startIcon");
3667
- O([
3749
+ T([
3668
3750
  s({ type: Boolean })
3669
3751
  ], J.prototype, "disabled");
3670
- O([
3752
+ T([
3671
3753
  s({ attribute: !1 })
3672
3754
  ], J.prototype, "selected");
3673
- O([
3755
+ T([
3674
3756
  s({ attribute: !1 })
3675
3757
  ], J.prototype, "groupSize");
3676
- O([
3758
+ T([
3677
3759
  s({ attribute: !1 })
3678
3760
  ], J.prototype, "groupVariant");
3679
- O([
3761
+ T([
3680
3762
  s({ attribute: !1 })
3681
3763
  ], J.prototype, "groupMode");
3682
- function e5(n) {
3683
- return n.split(" ").map((e) => e.trim()).filter(Boolean);
3764
+ function e5(r) {
3765
+ return r.split(" ").map((e) => e.trim()).filter(Boolean);
3684
3766
  }
3685
3767
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", X);
3686
3768
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", J);
3687
- var Yt = Object.defineProperty, qt = (n, e, t, o) => {
3688
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3689
- (l = n[r]) && (i = l(e, t, i) || i);
3769
+ var Yt = Object.defineProperty, qt = (r, e, t, o) => {
3770
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3771
+ (l = r[n]) && (i = l(e, t, i) || i);
3690
3772
  return i && Yt(e, t, i), i;
3691
3773
  };
3692
3774
  const Xt = "anduin-well-close:click", Ze = class Ze extends h {
@@ -3768,17 +3850,20 @@ Ze.styles = g`
3768
3850
  .well--warning {
3769
3851
  background-color: var(--color-warning-subtle);
3770
3852
  }
3853
+ /* Same split as the toast's icons: primary and danger read -icon (light
3854
+ unchanged, step 3 in dark); success and warning keep step 4, which already
3855
+ clears 3:1 on their dark tint and which -icon would move in light. */
3771
3856
  .well__icon--gray {
3772
3857
  color: var(--color-muted-foreground);
3773
3858
  }
3774
3859
  .well__icon--primary {
3775
- color: var(--color-primary);
3860
+ color: var(--color-primary-icon);
3776
3861
  }
3777
3862
  .well__icon--success {
3778
3863
  color: var(--color-success);
3779
3864
  }
3780
3865
  .well__icon--danger {
3781
- color: var(--color-destructive);
3866
+ color: var(--color-destructive-icon);
3782
3867
  }
3783
3868
  .well__icon--warning {
3784
3869
  color: var(--color-warning-active);
@@ -3834,9 +3919,9 @@ ke.styles = g`
3834
3919
  let f5 = ke;
3835
3920
  customElements.get("anduin-well") || customElements.define("anduin-well", F2);
3836
3921
  customElements.get("anduin-well-close") || customElements.define("anduin-well-close", f5);
3837
- var Jt = Object.defineProperty, E1 = (n, e, t, o) => {
3838
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
3839
- (l = n[r]) && (i = l(e, t, i) || i);
3922
+ var Jt = Object.defineProperty, E1 = (r, e, t, o) => {
3923
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
3924
+ (l = r[n]) && (i = l(e, t, i) || i);
3840
3925
  return i && Jt(e, t, i), i;
3841
3926
  };
3842
3927
  const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class Re extends h {
@@ -3885,14 +3970,14 @@ const v5 = "anduin-popover:close", b5 = "anduin-popover:open-change", Re = class
3885
3970
  if (!e || !t) return;
3886
3971
  const o = e.getBoundingClientRect(), i = t.style.transform;
3887
3972
  t.style.transform = "none";
3888
- const r = t.getBoundingClientRect();
3973
+ const n = t.getBoundingClientRect();
3889
3974
  t.style.transform = i;
3890
3975
  const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
3891
3976
  let f = 0, H = 0, m = "bottom";
3892
- 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;
3893
- m = D ? "bottom" : "top", H = D ? o.bottom + d : o.top - l.height - d;
3894
- const K = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3895
- 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 - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = m;
3977
+ const V = !this.placement.startsWith("top"), y = C - o.bottom - d, v = o.top - d, x = y >= l.height, w = v >= l.height, P = V ? x || y >= v : !w && x;
3978
+ m = P ? "bottom" : "top", H = P ? o.bottom + d : o.top - l.height - d;
3979
+ const W = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3980
+ 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;
3896
3981
  }
3897
3982
  render() {
3898
3983
  return a`
@@ -3995,9 +4080,9 @@ const $e = class $e extends h {
3995
4080
  $e.styles = g`:host { display: contents; }`;
3996
4081
  let m5 = $e;
3997
4082
  customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", m5);
3998
- var Qt = Object.defineProperty, z1 = (n, e, t, o) => {
3999
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4000
- (l = n[r]) && (i = l(e, t, i) || i);
4083
+ var Qt = Object.defineProperty, z1 = (r, e, t, o) => {
4084
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4085
+ (l = r[n]) && (i = l(e, t, i) || i);
4001
4086
  return i && Qt(e, t, i), i;
4002
4087
  };
4003
4088
  const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
@@ -4027,7 +4112,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4027
4112
  if (!e || !t) return;
4028
4113
  const o = e.getBoundingClientRect(), i = t.style.transform;
4029
4114
  t.style.transform = "none";
4030
- const r = t.getBoundingClientRect();
4115
+ const n = t.getBoundingClientRect();
4031
4116
  t.style.transform = i;
4032
4117
  const l = t.getBoundingClientRect(), d = 4;
4033
4118
  let c = 0, C = 0, p = "bottom";
@@ -4051,7 +4136,7 @@ const H5 = "anduin-menu-item:click", Ee = class Ee extends h {
4051
4136
  c = o.left + o.width / 2 - l.width / 2, C = o.top - l.height - d, p = "top";
4052
4137
  break;
4053
4138
  }
4054
- t.style.transform = `translate(${Math.round(c - r.left)}px, ${Math.round(C - r.top)}px)`, t.dataset.side = p;
4139
+ t.style.transform = `translate(${Math.round(c - n.left)}px, ${Math.round(C - n.top)}px)`, t.dataset.side = p;
4055
4140
  }
4056
4141
  render() {
4057
4142
  return a`
@@ -4172,7 +4257,7 @@ ze.styles = g`
4172
4257
  .menu-item:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
4173
4258
  .menu-item__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
4174
4259
  anduin-icon { color: var(--color-muted-foreground); }
4175
- .menu-item--danger anduin-icon { color: var(--color-destructive); }
4260
+ .menu-item--danger anduin-icon { color: var(--color-destructive-icon); }
4176
4261
  `;
4177
4262
  let G1 = ze;
4178
4263
  z1([
@@ -4186,12 +4271,12 @@ z1([
4186
4271
  ], G1.prototype, "disabled");
4187
4272
  customElements.get("anduin-menu") || customElements.define("anduin-menu", $1);
4188
4273
  customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", G1);
4189
- var e7 = Object.defineProperty, S1 = (n, e, t, o) => {
4190
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4191
- (l = n[r]) && (i = l(e, t, i) || i);
4274
+ var e7 = Object.defineProperty, S1 = (r, e, t, o) => {
4275
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4276
+ (l = r[n]) && (i = l(e, t, i) || i);
4192
4277
  return i && e7(e, t, i), i;
4193
4278
  };
4194
- const n2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4279
+ const r2 = "anduin-close", t5 = "anduin-after-close", i5 = 300, o5 = 200, T4 = 250;
4195
4280
  let d2 = 0, M3 = "";
4196
4281
  function t7() {
4197
4282
  typeof document > "u" || (d2 === 0 && (M3 = document.body.style.overflow, document.body.style.overflow = "hidden"), d2++);
@@ -4229,16 +4314,16 @@ const L1 = (g1 = class extends h {
4229
4314
  );
4230
4315
  }
4231
4316
  onOverlayClick() {
4232
- this.dispatch(n2);
4317
+ this.dispatch(r2);
4233
4318
  }
4234
4319
  onClose() {
4235
- this.dispatch(n2);
4320
+ this.dispatch(r2);
4236
4321
  }
4237
4322
  connectedCallback() {
4238
- super.connectedCallback(), this.addEventListener(n2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4323
+ super.connectedCallback(), this.addEventListener(r2, this.onAnduinClose), this.addEventListener(t5, this.onAnduinClose);
4239
4324
  }
4240
4325
  disconnectedCallback() {
4241
- super.disconnectedCallback(), this.removeEventListener(n2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4326
+ super.disconnectedCallback(), this.removeEventListener(r2, this.onAnduinClose), this.removeEventListener(t5, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, N4());
4242
4327
  }
4243
4328
  render() {
4244
4329
  const e = this._leaving, t = this.fullscreen;
@@ -4500,7 +4585,7 @@ class o7 extends HTMLElement {
4500
4585
  constructor() {
4501
4586
  super(...arguments), this._onClick = () => {
4502
4587
  this.dispatchEvent(
4503
- new CustomEvent(n2, { bubbles: !0, composed: !0 })
4588
+ new CustomEvent(r2, { bubbles: !0, composed: !0 })
4504
4589
  );
4505
4590
  };
4506
4591
  }
@@ -4512,12 +4597,12 @@ class o7 extends HTMLElement {
4512
4597
  }
4513
4598
  }
4514
4599
  customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", o7);
4515
- var r7 = Object.defineProperty, d1 = (n, e, t, o) => {
4516
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4517
- (l = n[r]) && (i = l(e, t, i) || i);
4518
- return i && r7(e, t, i), i;
4600
+ var n7 = Object.defineProperty, d1 = (r, e, t, o) => {
4601
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4602
+ (l = r[n]) && (i = l(e, t, i) || i);
4603
+ return i && n7(e, t, i), i;
4519
4604
  };
4520
- const _5 = "anduin-radio:change", n7 = "anduin-radio-group:change", Se = class Se extends h {
4605
+ const _5 = "anduin-radio:change", r7 = "anduin-radio-group:change", Se = class Se extends h {
4521
4606
  constructor() {
4522
4607
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
4523
4608
  }
@@ -4667,9 +4752,9 @@ const Ae = class Ae extends h {
4667
4752
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
4668
4753
  const o = e.detail;
4669
4754
  o !== this.value && (this.value = o, this.querySelectorAll("anduin-radio").forEach((i) => {
4670
- const r = i;
4671
- r.checked = r.value === o;
4672
- }), this.dispatchEvent(new CustomEvent(n7, {
4755
+ const n = i;
4756
+ n.checked = n.value === o;
4757
+ }), this.dispatchEvent(new CustomEvent(r7, {
4673
4758
  detail: o,
4674
4759
  bubbles: !0,
4675
4760
  composed: !0
@@ -4711,9 +4796,9 @@ d1([
4711
4796
  s()
4712
4797
  ], K1.prototype, "orientation");
4713
4798
  customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", K1);
4714
- var l7 = Object.defineProperty, A1 = (n, e, t, o) => {
4715
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
4716
- (l = n[r]) && (i = l(e, t, i) || i);
4799
+ var l7 = Object.defineProperty, A1 = (r, e, t, o) => {
4800
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
4801
+ (l = r[n]) && (i = l(e, t, i) || i);
4717
4802
  return i && l7(e, t, i), i;
4718
4803
  };
4719
4804
  const j4 = [
@@ -4726,14 +4811,14 @@ const j4 = [
4726
4811
  { bg: "#F97066", text: "#ffffff" },
4727
4812
  { bg: "#7A5AF8", text: "#ffffff" }
4728
4813
  ];
4729
- function s7(n) {
4814
+ function s7(r) {
4730
4815
  let e = 0;
4731
- for (let t = 0; t < n.length; t++) e = e * 31 + n.charCodeAt(t) >>> 0;
4816
+ for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4732
4817
  return j4[e % j4.length];
4733
4818
  }
4734
- function a7(n, e = 2) {
4819
+ function a7(r, e = 2) {
4735
4820
  var i;
4736
- const t = n.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4821
+ const t = r.trim().split(/\s+/), o = ((i = t[0]) == null ? void 0 : i[0]) ?? "";
4737
4822
  return e < 2 || t.length === 1 ? o.toUpperCase() : (o + (t[t.length - 1][0] ?? "")).toUpperCase();
4738
4823
  }
4739
4824
  const De = class De extends h {
@@ -4822,7 +4907,7 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", e1
4822
4907
  * Copyright 2017 Google LLC
4823
4908
  * SPDX-License-Identifier: BSD-3-Clause
4824
4909
  */
4825
- const d7 = { CHILD: 2 }, c7 = (n) => (...e) => ({ _$litDirective$: n, values: e });
4910
+ const d7 = { CHILD: 2 }, c7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4826
4911
  class C7 {
4827
4912
  constructor(e) {
4828
4913
  }
@@ -5112,17 +5197,17 @@ const u7 = c7(L5), p7 = {
5112
5197
  <path d="M18.875 21.5385L20.3324 13.4117C20.3751 13.1734 20.5825 13 20.8246 13H22.1261C22.4436 13 22.6808 13.2921 22.6154 13.6029L20.3023 24.6029C20.2536 24.8343 20.0494 25 19.813 25H18.2572C18.0243 25 17.8223 24.8393 17.77 24.6124L16.0078 16.9725L14.2457 24.6124C14.1933 24.8393 13.9913 25 13.7584 25H12.2027C11.9662 25 11.762 24.8343 11.7134 24.6029L9.40022 13.6029C9.33487 13.2921 9.57198 13 9.88952 13H11.1916C11.4335 13 11.6406 13.1731 11.6836 13.4111L13.1484 21.522L14.9371 13.3926C14.9875 13.1633 15.1906 13 15.4254 13H16.6053C16.8403 13 17.0436 13.1636 17.0938 13.3932L18.875 21.5385Z" fill="#1075DC"/>` }
5113
5198
  }
5114
5199
  }, h7 = [32, 24, 16];
5115
- function g7(n, e) {
5116
- const t = p7[n];
5200
+ function g7(r, e) {
5201
+ const t = p7[r];
5117
5202
  if (!t) return null;
5118
5203
  if (t[e]) return t[e];
5119
5204
  for (const o of h7)
5120
5205
  if (t[o]) return t[o];
5121
5206
  return null;
5122
5207
  }
5123
- var f7 = Object.defineProperty, Z3 = (n, e, t, o) => {
5124
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5125
- (l = n[r]) && (i = l(e, t, i) || i);
5208
+ var f7 = Object.defineProperty, Z3 = (r, e, t, o) => {
5209
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5210
+ (l = r[n]) && (i = l(e, t, i) || i);
5126
5211
  return i && f7(e, t, i), i;
5127
5212
  };
5128
5213
  const Pe = class Pe extends h {
@@ -5158,9 +5243,9 @@ Z3([
5158
5243
  s({ type: Number })
5159
5244
  ], V2.prototype, "size");
5160
5245
  customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", V2);
5161
- var v7 = Object.defineProperty, D1 = (n, e, t, o) => {
5162
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5163
- (l = n[r]) && (i = l(e, t, i) || i);
5246
+ var v7 = Object.defineProperty, D1 = (r, e, t, o) => {
5247
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5248
+ (l = r[n]) && (i = l(e, t, i) || i);
5164
5249
  return i && v7(e, t, i), i;
5165
5250
  };
5166
5251
  const U4 = {
@@ -5271,12 +5356,16 @@ Be.styles = g`
5271
5356
  padding: 12px;
5272
5357
  border-radius: 8px;
5273
5358
  }
5359
+ /* Primary and danger read -icon (step 4 in light, as before; step 3 in dark,
5360
+ where step 4 on its own tint was under 3:1). Success and warning keep step 4:
5361
+ -icon would change their light colour, and step 4 already clears 3:1 on
5362
+ gray-9 and on its dark tint (success 3.4:1, warning 4.7:1). */
5274
5363
  .toast__icon--gray {
5275
5364
  color: var(--color-subtle-foreground);
5276
5365
  background: var(--color-secondary);
5277
5366
  }
5278
5367
  .toast__icon--primary {
5279
- color: var(--color-primary);
5368
+ color: var(--color-primary-icon);
5280
5369
  background: var(--color-primary-subtle);
5281
5370
  }
5282
5371
  .toast__icon--success {
@@ -5288,7 +5377,7 @@ Be.styles = g`
5288
5377
  background: var(--color-warning-subtle);
5289
5378
  }
5290
5379
  .toast__icon--danger {
5291
- color: var(--color-destructive);
5380
+ color: var(--color-destructive-icon);
5292
5381
  background: var(--color-destructive-subtle);
5293
5382
  }
5294
5383
 
@@ -5457,36 +5546,36 @@ D1([
5457
5546
  ], x2.prototype, "_toasts");
5458
5547
  customElements.get("anduin-toaster") || customElements.define("anduin-toaster", x2);
5459
5548
  const p0 = {
5460
- show(n) {
5461
- return m7(n.position).show(n);
5549
+ show(r) {
5550
+ return m7(r.position).show(r);
5462
5551
  },
5463
- success(n, e, t) {
5464
- return this.show({ ...t, variant: "success", heading: n, description: e });
5552
+ success(r, e, t) {
5553
+ return this.show({ ...t, variant: "success", heading: r, description: e });
5465
5554
  },
5466
- danger(n, e, t) {
5467
- return this.show({ ...t, variant: "danger", heading: n, description: e });
5555
+ danger(r, e, t) {
5556
+ return this.show({ ...t, variant: "danger", heading: r, description: e });
5468
5557
  },
5469
- warning(n, e, t) {
5470
- return this.show({ ...t, variant: "warning", heading: n, description: e });
5558
+ warning(r, e, t) {
5559
+ return this.show({ ...t, variant: "warning", heading: r, description: e });
5471
5560
  },
5472
- primary(n, e, t) {
5473
- return this.show({ ...t, variant: "primary", heading: n, description: e });
5561
+ primary(r, e, t) {
5562
+ return this.show({ ...t, variant: "primary", heading: r, description: e });
5474
5563
  },
5475
- gray(n, e, t) {
5476
- return this.show({ ...t, variant: "gray", heading: n, description: e });
5564
+ gray(r, e, t) {
5565
+ return this.show({ ...t, variant: "gray", heading: r, description: e });
5477
5566
  }
5478
- }, r5 = /* @__PURE__ */ new Map();
5479
- function m7(n = "bottom-left") {
5480
- if (r5.has(n)) return r5.get(n);
5567
+ }, n5 = /* @__PURE__ */ new Map();
5568
+ function m7(r = "bottom-left") {
5569
+ if (n5.has(r)) return n5.get(r);
5481
5570
  const e = document.createElement("anduin-toaster");
5482
- return e.position = n, document.body.appendChild(e), r5.set(n, e), e;
5571
+ return e.position = r, document.body.appendChild(e), n5.set(r, e), e;
5483
5572
  }
5484
- var H7 = Object.defineProperty, k3 = (n, e, t, o) => {
5485
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5486
- (l = n[r]) && (i = l(e, t, i) || i);
5573
+ var H7 = Object.defineProperty, k3 = (r, e, t, o) => {
5574
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5575
+ (l = r[n]) && (i = l(e, t, i) || i);
5487
5576
  return i && H7(e, t, i), i;
5488
5577
  };
5489
- const _7 = "anduin-switcher:change", Ie = class Ie extends h {
5578
+ const _7 = "anduin-switcher:change", Oe = class Oe extends h {
5490
5579
  constructor() {
5491
5580
  super(...arguments), this.checked = !1, this.disabled = !1;
5492
5581
  }
@@ -5515,7 +5604,7 @@ const _7 = "anduin-switcher:change", Ie = class Ie extends h {
5515
5604
  `;
5516
5605
  }
5517
5606
  };
5518
- Ie.styles = g`
5607
+ Oe.styles = g`
5519
5608
  :host { display: inline-flex; font-family: var(--font-sans); }
5520
5609
 
5521
5610
  label {
@@ -5579,7 +5668,7 @@ Ie.styles = g`
5579
5668
  line-height: 20px;
5580
5669
  }
5581
5670
  `;
5582
- let w2 = Ie;
5671
+ let w2 = Oe;
5583
5672
  k3([
5584
5673
  s({ type: Boolean })
5585
5674
  ], w2.prototype, "checked");
@@ -5587,12 +5676,12 @@ k3([
5587
5676
  s({ type: Boolean })
5588
5677
  ], w2.prototype, "disabled");
5589
5678
  customElements.get("anduin-switcher") || customElements.define("anduin-switcher", w2);
5590
- var y7 = Object.defineProperty, E = (n, e, t, o) => {
5591
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
5592
- (l = n[r]) && (i = l(e, t, i) || i);
5679
+ var y7 = Object.defineProperty, z = (r, e, t, o) => {
5680
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
5681
+ (l = r[n]) && (i = l(e, t, i) || i);
5593
5682
  return i && y7(e, t, i), i;
5594
5683
  };
5595
- const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5684
+ const G4 = "anduin-dropdown:change", Ie = class Ie extends h {
5596
5685
  constructor() {
5597
5686
  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) => {
5598
5687
  var t;
@@ -5610,9 +5699,9 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5610
5699
  updated(e) {
5611
5700
  var t, o;
5612
5701
  e.has("_activeIndex") && this._activeIndex >= 0 && ((o = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".option--active")) == null || o.scrollIntoView({ block: "nearest" })), e.has("_open") && this._open && requestAnimationFrame(() => {
5613
- var i, r;
5702
+ var i, n;
5614
5703
  if (this._updatePosition(), this.searchable) {
5615
- const l = (r = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : r.querySelector("input");
5704
+ const l = (n = (i = this._searchEl) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("input");
5616
5705
  l == null || l.focus();
5617
5706
  }
5618
5707
  });
@@ -5669,7 +5758,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5669
5758
  if (!e || !t) return;
5670
5759
  const o = e.getBoundingClientRect(), i = t.style.transform;
5671
5760
  t.style.transform = "none";
5672
- const r = t.getBoundingClientRect();
5761
+ const n = t.getBoundingClientRect();
5673
5762
  t.style.transform = i;
5674
5763
  const l = t.querySelector(".panel__inner");
5675
5764
  l && (l.style.minWidth = `${o.width}px`);
@@ -5677,7 +5766,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5677
5766
  let v = o.left;
5678
5767
  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));
5679
5768
  const x = Math.max(f, Math.min(y, p - d.height - f));
5680
- t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
5769
+ t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
5681
5770
  }
5682
5771
  get _filteredOptions() {
5683
5772
  if (!this._query) return this.options;
@@ -5685,7 +5774,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5685
5774
  return this.options.filter((t) => t.label.toLowerCase().includes(e));
5686
5775
  }
5687
5776
  render() {
5688
- const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, r = this.clearable && !!this.value && !this.disabled;
5777
+ const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", o = e ? e.icon ?? "" : this.icon, i = this._filteredOptions, n = this.clearable && !!this.value && !this.disabled;
5689
5778
  return a`
5690
5779
  <button
5691
5780
  class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
@@ -5698,11 +5787,11 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5698
5787
  >
5699
5788
  ${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
5700
5789
  <span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
5701
- <span class="trigger__caret${r ? " trigger__caret--clearable" : ""}">
5790
+ <span class="trigger__caret${n ? " trigger__caret--clearable" : ""}">
5702
5791
  <span class="trigger__chevron">
5703
5792
  <anduin-icon name="caretDown" size="16"></anduin-icon>
5704
5793
  </span>
5705
- ${r ? a`
5794
+ ${n ? a`
5706
5795
  <span class="trigger__clear" @click=${this._onClear}>
5707
5796
  <anduin-icon name="crossSmall" size="16"></anduin-icon>
5708
5797
  </span>
@@ -5751,7 +5840,7 @@ const G4 = "anduin-dropdown:change", Oe = class Oe extends h {
5751
5840
  `;
5752
5841
  }
5753
5842
  };
5754
- Oe.styles = g`
5843
+ Ie.styles = g`
5755
5844
  :host { display: inline-block; font-family: var(--font-sans); }
5756
5845
  :host([full-width]) { display: block; width: 100%; }
5757
5846
  :host([full-width]) .trigger { width: 100%; }
@@ -5807,7 +5896,7 @@ Oe.styles = g`
5807
5896
  .trigger--outlined.trigger--gray0 { border-color: var(--color-gray-7); color: var(--color-gray-4); background-color: transparent; }
5808
5897
  .trigger--outlined.trigger--gray0:hover { background-color: var(--color-gray-7); }
5809
5898
  .trigger--outlined.trigger--gray0:active { background-color: var(--color-gray-3); }
5810
- .trigger--outlined.trigger--primary { border-color: var(--color-primary-border); color: var(--color-primary); background-color: transparent; }
5899
+ .trigger--outlined.trigger--primary { border-color: var(--color-primary-border); color: var(--color-primary-text); background-color: transparent; }
5811
5900
  .trigger--outlined.trigger--primary:hover { background-color: var(--color-primary-subtle); }
5812
5901
  .trigger--outlined.trigger--primary:active { background-color: var(--color-primary-subtle-active); }
5813
5902
  .trigger--outlined.trigger--danger { border-color: var(--color-destructive-border); color: var(--color-destructive-subtle-foreground); background-color: transparent; }
@@ -5827,7 +5916,7 @@ Oe.styles = g`
5827
5916
  .trigger--plain.trigger--gray0 { border-color: transparent; color: var(--color-gray-4); background-color: transparent; }
5828
5917
  .trigger--plain.trigger--gray0:hover { background-color: var(--color-gray-7); }
5829
5918
  .trigger--plain.trigger--gray0:active { background-color: var(--color-gray-8); }
5830
- .trigger--plain.trigger--primary { border-color: transparent; color: var(--color-primary); background-color: transparent; }
5919
+ .trigger--plain.trigger--primary { border-color: transparent; color: var(--color-primary-text); background-color: transparent; }
5831
5920
  .trigger--plain.trigger--primary:hover { background-color: var(--color-primary-subtle); }
5832
5921
  .trigger--plain.trigger--primary:active { background-color: var(--color-primary-subtle-active); }
5833
5922
  .trigger--plain.trigger--danger { border-color: transparent; color: var(--color-destructive-subtle-foreground); background-color: transparent; }
@@ -5998,68 +6087,68 @@ Oe.styles = g`
5998
6087
  text-align: center;
5999
6088
  }
6000
6089
  `;
6001
- let M = Oe;
6002
- E([
6090
+ let M = Ie;
6091
+ z([
6003
6092
  s()
6004
6093
  ], M.prototype, "value");
6005
- E([
6094
+ z([
6006
6095
  s()
6007
6096
  ], M.prototype, "placeholder");
6008
- E([
6097
+ z([
6009
6098
  s({ attribute: !1 })
6010
6099
  ], M.prototype, "options");
6011
- E([
6100
+ z([
6012
6101
  s()
6013
6102
  ], M.prototype, "icon");
6014
- E([
6103
+ z([
6015
6104
  s({ type: Boolean })
6016
6105
  ], M.prototype, "searchable");
6017
- E([
6106
+ z([
6018
6107
  s({ type: Boolean })
6019
6108
  ], M.prototype, "disabled");
6020
- E([
6109
+ z([
6021
6110
  s()
6022
6111
  ], M.prototype, "placement");
6023
- E([
6112
+ z([
6024
6113
  s()
6025
6114
  ], M.prototype, "appearance");
6026
- E([
6115
+ z([
6027
6116
  s()
6028
6117
  ], M.prototype, "variant");
6029
- E([
6118
+ z([
6030
6119
  s()
6031
6120
  ], M.prototype, "size");
6032
- E([
6121
+ z([
6033
6122
  s({ type: Boolean, attribute: "full-width", reflect: !0 })
6034
6123
  ], M.prototype, "fullWidth");
6035
- E([
6036
- s({ converter: (n) => n !== "false" })
6124
+ z([
6125
+ s({ converter: (r) => r !== "false" })
6037
6126
  ], M.prototype, "clearable");
6038
- E([
6127
+ z([
6039
6128
  b()
6040
6129
  ], M.prototype, "_open");
6041
- E([
6130
+ z([
6042
6131
  b()
6043
6132
  ], M.prototype, "_query");
6044
- E([
6133
+ z([
6045
6134
  b()
6046
6135
  ], M.prototype, "_activeIndex");
6047
- E([
6136
+ z([
6048
6137
  k(".trigger")
6049
6138
  ], M.prototype, "_triggerEl");
6050
- E([
6139
+ z([
6051
6140
  k(".panel")
6052
6141
  ], M.prototype, "_panelEl");
6053
- E([
6142
+ z([
6054
6143
  k("anduin-input")
6055
6144
  ], M.prototype, "_searchEl");
6056
6145
  customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", M);
6057
- var L7 = Object.defineProperty, c1 = (n, e, t, o) => {
6058
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6059
- (l = n[r]) && (i = l(e, t, i) || i);
6146
+ var L7 = Object.defineProperty, c1 = (r, e, t, o) => {
6147
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6148
+ (l = r[n]) && (i = l(e, t, i) || i);
6060
6149
  return i && L7(e, t, i), i;
6061
6150
  };
6062
- const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6151
+ const l2 = "anduin-close", r5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /* @__PURE__ */ new Map([
6063
6152
  ["320", 320],
6064
6153
  ["360", 360],
6065
6154
  ["400", 400],
@@ -6071,14 +6160,14 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6071
6160
  }, this._onResizeStart = (e) => {
6072
6161
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
6073
6162
  }, this._onResizeMove = (e) => {
6074
- var r;
6163
+ var n;
6075
6164
  if (!this._resizing) return;
6076
6165
  const t = this.placement === "left" ? e.clientX - this._startX : this._startX - e.clientX, o = Math.max(
6077
6166
  200,
6078
6167
  Math.min(window.innerWidth * 0.9, this._startWidth + t)
6079
6168
  );
6080
6169
  this._width = Math.round(o);
6081
- const i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(".drawer");
6170
+ const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".drawer");
6082
6171
  i && (i.style.width = `${this._width}px`);
6083
6172
  }, this._onResizeEnd = () => {
6084
6173
  this._resizing = !1;
@@ -6090,7 +6179,7 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6090
6179
  updated(e) {
6091
6180
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
6092
6181
  this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
6093
- new CustomEvent(n5, {
6182
+ new CustomEvent(r5, {
6094
6183
  bubbles: !0,
6095
6184
  composed: !0
6096
6185
  })
@@ -6103,10 +6192,10 @@ const l2 = "anduin-close", n5 = "anduin-after-close", V7 = 300, K4 = 250, x7 = /
6103
6192
  );
6104
6193
  }
6105
6194
  connectedCallback() {
6106
- super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(n5, this._stopAtSelf);
6195
+ super.connectedCallback(), this.addEventListener(l2, this._stopAtSelf), this.addEventListener(r5, this._stopAtSelf);
6107
6196
  }
6108
6197
  disconnectedCallback() {
6109
- super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(n5, this._stopAtSelf);
6198
+ super.disconnectedCallback(), this.removeEventListener(l2, this._stopAtSelf), this.removeEventListener(r5, this._stopAtSelf);
6110
6199
  }
6111
6200
  _onClose() {
6112
6201
  this._dispatch(l2);
@@ -6318,35 +6407,35 @@ Te.styles = g`
6318
6407
  border-top: 1px solid var(--color-border);
6319
6408
  }
6320
6409
  `;
6321
- let G = Te;
6410
+ let K = Te;
6322
6411
  c1([
6323
6412
  s({ type: Boolean, reflect: !0 })
6324
- ], G.prototype, "open");
6413
+ ], K.prototype, "open");
6325
6414
  c1([
6326
6415
  s()
6327
- ], G.prototype, "heading");
6416
+ ], K.prototype, "heading");
6328
6417
  c1([
6329
6418
  s({ type: Boolean, attribute: "hide-header" })
6330
- ], G.prototype, "hideHeader");
6419
+ ], K.prototype, "hideHeader");
6331
6420
  c1([
6332
6421
  s({ type: Boolean, attribute: "hide-footer" })
6333
- ], G.prototype, "hideFooter");
6422
+ ], K.prototype, "hideFooter");
6334
6423
  c1([
6335
6424
  s({ attribute: "default-width" })
6336
- ], G.prototype, "defaultWidth");
6425
+ ], K.prototype, "defaultWidth");
6337
6426
  c1([
6338
6427
  s({ reflect: !0 })
6339
- ], G.prototype, "placement");
6428
+ ], K.prototype, "placement");
6340
6429
  c1([
6341
6430
  s({ type: Boolean, attribute: "allow-interact-outside" })
6342
- ], G.prototype, "allowInteractOutside");
6431
+ ], K.prototype, "allowInteractOutside");
6343
6432
  c1([
6344
6433
  b()
6345
- ], G.prototype, "_leaving");
6434
+ ], K.prototype, "_leaving");
6346
6435
  c1([
6347
6436
  b()
6348
- ], G.prototype, "_width");
6349
- customElements.get("anduin-drawer") || customElements.define("anduin-drawer", G);
6437
+ ], K.prototype, "_width");
6438
+ customElements.get("anduin-drawer") || customElements.define("anduin-drawer", K);
6350
6439
  class w7 extends HTMLElement {
6351
6440
  constructor() {
6352
6441
  super(...arguments), this._onClick = () => {
@@ -6363,9 +6452,9 @@ class w7 extends HTMLElement {
6363
6452
  }
6364
6453
  }
6365
6454
  customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", w7);
6366
- var M7 = Object.defineProperty, z = (n, e, t, o) => {
6367
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6368
- (l = n[r]) && (i = l(e, t, i) || i);
6455
+ var M7 = Object.defineProperty, S = (r, e, t, o) => {
6456
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6457
+ (l = r[n]) && (i = l(e, t, i) || i);
6369
6458
  return i && M7(e, t, i), i;
6370
6459
  };
6371
6460
  const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "anduin-suggestion:clear", Ne = class Ne extends h {
@@ -6461,7 +6550,7 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6461
6550
  if (!e || !t) return;
6462
6551
  const o = e.getBoundingClientRect(), i = t.style.transform;
6463
6552
  t.style.transform = "none";
6464
- const r = t.getBoundingClientRect();
6553
+ const n = t.getBoundingClientRect();
6465
6554
  t.style.transform = i;
6466
6555
  const l = t.querySelector(".panel__inner");
6467
6556
  l && (l.style.minWidth = `${o.width}px`);
@@ -6469,10 +6558,10 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6469
6558
  let v = o.left;
6470
6559
  v = Math.max(f, Math.min(v, C - d.width - f));
6471
6560
  const x = Math.max(f, Math.min(y, p - d.height - f));
6472
- t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(x - r.top)}px)`;
6561
+ t.style.transform = `translate(${Math.round(v - n.left)}px, ${Math.round(x - n.top)}px)`;
6473
6562
  }
6474
6563
  render() {
6475
- 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, r = 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", c = this._filteredSuggestions, C = this._open && (!this.hideWhenEmpty || c.length > 0);
6564
+ 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", c = this._filteredSuggestions, C = this._open && (!this.hideWhenEmpty || c.length > 0);
6476
6565
  return a`
6477
6566
  <div class="input-wrapper">
6478
6567
  ${o ? a`
@@ -6504,7 +6593,7 @@ const l5 = "anduin-suggestion:change", Z7 = "anduin-suggestion:select", k7 = "an
6504
6593
 
6505
6594
  ${i ? a`
6506
6595
  <span class="input__end">
6507
- ${r ? a`
6596
+ ${n ? a`
6508
6597
  <button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
6509
6598
  <anduin-icon name="cross" size=${d}></anduin-icon>
6510
6599
  </button>
@@ -6655,64 +6744,64 @@ Ne.styles = g`
6655
6744
  }
6656
6745
  `;
6657
6746
  let Z = Ne;
6658
- z([
6747
+ S([
6659
6748
  s()
6660
6749
  ], Z.prototype, "value");
6661
- z([
6750
+ S([
6662
6751
  s()
6663
6752
  ], Z.prototype, "size");
6664
- z([
6753
+ S([
6665
6754
  s({ type: Boolean })
6666
6755
  ], Z.prototype, "disabled");
6667
- z([
6756
+ S([
6668
6757
  s({ type: Boolean })
6669
6758
  ], Z.prototype, "readonly");
6670
- z([
6759
+ S([
6671
6760
  s()
6672
6761
  ], Z.prototype, "placeholder");
6673
- z([
6762
+ S([
6674
6763
  s()
6675
6764
  ], Z.prototype, "inputid");
6676
- z([
6765
+ S([
6677
6766
  s()
6678
6767
  ], Z.prototype, "status");
6679
- z([
6768
+ S([
6680
6769
  s({ attribute: "start-icon" })
6681
6770
  ], Z.prototype, "startIcon");
6682
- z([
6771
+ S([
6683
6772
  s({ attribute: "end-icon" })
6684
6773
  ], Z.prototype, "endIcon");
6685
- z([
6774
+ S([
6686
6775
  s({ type: Boolean })
6687
6776
  ], Z.prototype, "clearable");
6688
- z([
6777
+ S([
6689
6778
  s({ attribute: !1 })
6690
6779
  ], Z.prototype, "suggestions");
6691
- z([
6780
+ S([
6692
6781
  s({ type: Boolean })
6693
6782
  ], Z.prototype, "filter");
6694
- z([
6783
+ S([
6695
6784
  s({ type: Boolean, attribute: "hide-when-empty" })
6696
6785
  ], Z.prototype, "hideWhenEmpty");
6697
- z([
6786
+ S([
6698
6787
  s({ attribute: "empty-text" })
6699
6788
  ], Z.prototype, "emptyText");
6700
- z([
6789
+ S([
6701
6790
  b()
6702
6791
  ], Z.prototype, "_open");
6703
- z([
6792
+ S([
6704
6793
  b()
6705
6794
  ], Z.prototype, "_activeIndex");
6706
- z([
6795
+ S([
6707
6796
  k("input")
6708
6797
  ], Z.prototype, "_inputEl");
6709
- z([
6798
+ S([
6710
6799
  k(".panel")
6711
6800
  ], Z.prototype, "_panelEl");
6712
6801
  customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", Z);
6713
- var R7 = Object.defineProperty, q = (n, e, t, o) => {
6714
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6715
- (l = n[r]) && (i = l(e, t, i) || i);
6802
+ var R7 = Object.defineProperty, q = (r, e, t, o) => {
6803
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
6804
+ (l = r[n]) && (i = l(e, t, i) || i);
6716
6805
  return i && R7(e, t, i), i;
6717
6806
  };
6718
6807
  const $7 = "anduin-navigation:change", V5 = "anduin-navigation-item:item-click", je = class je extends h {
@@ -6930,14 +7019,14 @@ q([
6930
7019
  ], a1.prototype, "theme");
6931
7020
  customElements.get("anduin-navigation") || customElements.define("anduin-navigation", m1);
6932
7021
  customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", a1);
6933
- var E7 = Object.defineProperty, P1 = (n, e, t, o) => {
6934
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
6935
- (l = n[r]) && (i = l(e, t, i) || i);
7022
+ var E7 = Object.defineProperty, P1 = (r, e, t, o) => {
7023
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7024
+ (l = r[n]) && (i = l(e, t, i) || i);
6936
7025
  return i && E7(e, t, i), i;
6937
7026
  };
6938
- const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (n) => !!n && n.tagName.toLowerCase() === R3;
6939
- function Y4(n, e, t) {
6940
- const o = (n || "").trim();
7027
+ const z7 = "anduin-resizable:resize", R3 = "anduin-resizable-panel", W4 = (r) => !!r && r.tagName.toLowerCase() === R3;
7028
+ function Y4(r, e, t) {
7029
+ const o = (r || "").trim();
6941
7030
  if (!o) return t;
6942
7031
  const i = parseFloat(o);
6943
7032
  return Number.isNaN(i) ? t : o.endsWith("%") ? i / 100 * e : i;
@@ -6973,7 +7062,7 @@ const Ge = class Ge extends h {
6973
7062
  const e = this.axisSize;
6974
7063
  if (e <= 0) return;
6975
7064
  const t = this.panels, o = t.map((i) => i.axisSize(this.isVertical));
6976
- t.forEach((i, r) => i.setGrow(o[r] / e * 100));
7065
+ t.forEach((i, n) => i.setGrow(o[n] / e * 100));
6977
7066
  }
6978
7067
  render() {
6979
7068
  return a`
@@ -6991,10 +7080,10 @@ Ge.styles = g`
6991
7080
  }
6992
7081
  .panel-group--vertical { flex-direction: column; }
6993
7082
  `;
6994
- let I2 = Ge;
7083
+ let O2 = Ge;
6995
7084
  P1([
6996
7085
  s({ reflect: !0 })
6997
- ], I2.prototype, "orientation");
7086
+ ], O2.prototype, "orientation");
6998
7087
  const Ke = class Ke extends h {
6999
7088
  constructor() {
7000
7089
  super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
@@ -7047,8 +7136,8 @@ const We = class We extends h {
7047
7136
  const t = this.closest("anduin-resizable-panel-group"), o = this.prevPanel, i = this.nextPanel;
7048
7137
  if (!t || !o || !i) return;
7049
7138
  e.preventDefault(), this.group = t, this.dragging = !0, this.activePointerId = e.pointerId, this.setPointerCapture(e.pointerId), t.normalizeToGrow();
7050
- const r = t.isVertical;
7051
- this.startPos = r ? e.clientY : e.clientX, this.startPrevPx = o.axisSize(r), this.combinedPx = this.startPrevPx + i.axisSize(r), this.combinedGrow = (parseFloat(o.style.flexGrow) || 0) + (parseFloat(i.style.flexGrow) || 0), document.body.style.userSelect = "none", document.body.style.cursor = r ? "row-resize" : "col-resize", window.addEventListener("pointermove", this.onPointerMove), window.addEventListener("pointerup", this.onPointerUp);
7139
+ const n = t.isVertical;
7140
+ this.startPos = n ? e.clientY : e.clientX, this.startPrevPx = o.axisSize(n), this.combinedPx = this.startPrevPx + i.axisSize(n), this.combinedGrow = (parseFloat(o.style.flexGrow) || 0) + (parseFloat(i.style.flexGrow) || 0), document.body.style.userSelect = "none", document.body.style.cursor = n ? "row-resize" : "col-resize", window.addEventListener("pointermove", this.onPointerMove), window.addEventListener("pointerup", this.onPointerUp);
7052
7141
  }, this.onPointerMove = (e) => {
7053
7142
  if (!this.dragging || !this.group) return;
7054
7143
  const o = (this.group.isVertical ? e.clientY : e.clientX) - this.startPos;
@@ -7065,11 +7154,11 @@ const We = class We extends h {
7065
7154
  else if (o && e.key === "ArrowDown") i = 1;
7066
7155
  else if (o && e.key === "ArrowUp") i = -1;
7067
7156
  else return;
7068
- const r = this.prevPanel, l = this.nextPanel;
7069
- if (!r || !l) return;
7157
+ const n = this.prevPanel, l = this.nextPanel;
7158
+ if (!n || !l) return;
7070
7159
  e.preventDefault(), this.group = t, t.normalizeToGrow();
7071
- const d = r.axisSize(o);
7072
- this.combinedPx = d + l.axisSize(o), this.combinedGrow = (parseFloat(r.style.flexGrow) || 0) + (parseFloat(l.style.flexGrow) || 0);
7160
+ const d = n.axisSize(o);
7161
+ this.combinedPx = d + l.axisSize(o), this.combinedGrow = (parseFloat(n.style.flexGrow) || 0) + (parseFloat(l.style.flexGrow) || 0);
7073
7162
  const c = Math.max(t.axisSize * 0.02, 8);
7074
7163
  this.resizeTo(d + i * c), this.emitResize();
7075
7164
  };
@@ -7109,7 +7198,7 @@ const We = class We extends h {
7109
7198
  resizeTo(e) {
7110
7199
  const t = this.group, o = this.prevPanel, i = this.nextPanel;
7111
7200
  if (!t || !o || !i || this.combinedPx <= 0) return;
7112
- const r = t.axisSize, l = Math.max(o.minPx(r), this.combinedPx - i.maxPx(r), 0), d = Math.min(o.maxPx(r), this.combinedPx - i.minPx(r), this.combinedPx), c = Math.max(l, Math.min(d, e)), C = this.combinedGrow * (c / this.combinedPx);
7201
+ const n = t.axisSize, l = Math.max(o.minPx(n), this.combinedPx - i.maxPx(n), 0), d = Math.min(o.maxPx(n), this.combinedPx - i.minPx(n), this.combinedPx), c = Math.max(l, Math.min(d, e)), C = this.combinedGrow * (c / this.combinedPx);
7113
7202
  o.setGrow(C), i.setGrow(this.combinedGrow - C);
7114
7203
  }
7115
7204
  emitResize() {
@@ -7117,9 +7206,9 @@ const We = class We extends h {
7117
7206
  if (!e || !t || !o) return;
7118
7207
  const i = e.axisSize;
7119
7208
  if (i <= 0) return;
7120
- const r = e.isVertical;
7209
+ const n = e.isVertical;
7121
7210
  this.dispatchEvent(new CustomEvent(z7, {
7122
- detail: { sizes: [t.axisSize(r) / i * 100, o.axisSize(r) / i * 100] },
7211
+ detail: { sizes: [t.axisSize(n) / i * 100, o.axisSize(n) / i * 100] },
7123
7212
  bubbles: !0,
7124
7213
  composed: !0
7125
7214
  }));
@@ -7168,18 +7257,18 @@ P1([
7168
7257
  P1([
7169
7258
  b()
7170
7259
  ], Y1.prototype, "dragging");
7171
- customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", I2);
7260
+ customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", O2);
7172
7261
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", W1);
7173
7262
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", Y1);
7174
- var S7 = Object.defineProperty, X1 = (n, e, t, o) => {
7175
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
7176
- (l = n[r]) && (i = l(e, t, i) || i);
7263
+ var S7 = Object.defineProperty, X1 = (r, e, t, o) => {
7264
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7265
+ (l = r[n]) && (i = l(e, t, i) || i);
7177
7266
  return i && S7(e, t, i), i;
7178
7267
  };
7179
7268
  const A7 = "anduin-pagination:change", x5 = "anduin-pagination:jump";
7180
- function t2(n, e) {
7181
- const t = Math.max(e - n + 1, 0);
7182
- return Array.from({ length: t }, (o, i) => n + i);
7269
+ function t2(r, e) {
7270
+ const t = Math.max(e - r + 1, 0);
7271
+ return Array.from({ length: t }, (o, i) => r + i);
7183
7272
  }
7184
7273
  const Ye = class Ye extends h {
7185
7274
  constructor() {
@@ -7205,7 +7294,7 @@ const Ye = class Ye extends h {
7205
7294
  }
7206
7295
  /** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
7207
7296
  buildItems() {
7208
- const e = this.count, t = this.selection, o = 1, i = 1, r = t2(1, Math.min(o, e)), l = t2(Math.max(e - o + 1, o + 1), e), d = Math.max(
7297
+ const e = this.count, t = this.selection, o = 1, i = 1, n = t2(1, Math.min(o, e)), l = t2(Math.max(e - o + 1, o + 1), e), d = Math.max(
7209
7298
  Math.min(t - i, e - o - i * 2 - 1),
7210
7299
  o + 2
7211
7300
  ), c = Math.min(
@@ -7213,7 +7302,7 @@ const Ye = class Ye extends h {
7213
7302
  l.length > 0 ? l[0] - 2 : e - 1
7214
7303
  );
7215
7304
  return [
7216
- ...r,
7305
+ ...n,
7217
7306
  ...d > o + 2 ? ["start-ellipsis"] : o + 1 < e - o ? [o + 1] : [],
7218
7307
  ...t2(d, c),
7219
7308
  ...c < e - o - 1 ? ["end-ellipsis"] : e - o > o ? [e - o] : [],
@@ -7282,11 +7371,11 @@ const Ye = class Ye extends h {
7282
7371
  }
7283
7372
  renderItem(e, t) {
7284
7373
  if (e.type === "page") {
7285
- const r = e.page === t;
7374
+ const n = e.page === t;
7286
7375
  return a`
7287
7376
  <button
7288
- class="pagination__button ${r ? "pagination__button--active" : ""}"
7289
- aria-current=${r ? "page" : u}
7377
+ class="pagination__button ${n ? "pagination__button--active" : ""}"
7378
+ aria-current=${n ? "page" : u}
7290
7379
  aria-label="Go to page ${e.page}"
7291
7380
  @click=${() => this.goTo(e.page)}
7292
7381
  >${e.page}</button>
@@ -7303,8 +7392,8 @@ const Ye = class Ye extends h {
7303
7392
  label=${i}
7304
7393
  ></anduin-button>
7305
7394
  <div class="pagination__ellipsis-list">
7306
- ${o.map((r) => a`
7307
- <anduin-menu-item @click=${() => this.goTo(r)}>${r}</anduin-menu-item>
7395
+ ${o.map((n) => a`
7396
+ <anduin-menu-item @click=${() => this.goTo(n)}>${n}</anduin-menu-item>
7308
7397
  `)}
7309
7398
  </div>
7310
7399
  </anduin-menu>
@@ -7682,9 +7771,9 @@ customElements.get("anduin-timeline-date") || customElements.define("anduin-time
7682
7771
  customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", k5);
7683
7772
  customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", R5);
7684
7773
  customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", $5);
7685
- var B7 = Object.defineProperty, B1 = (n, e, t, o) => {
7686
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
7687
- (l = n[r]) && (i = l(e, t, i) || i);
7774
+ var B7 = Object.defineProperty, B1 = (r, e, t, o) => {
7775
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
7776
+ (l = r[n]) && (i = l(e, t, i) || i);
7688
7777
  return i && B7(e, t, i), i;
7689
7778
  };
7690
7779
  const F7 = "anduin-sidebar:select", o4 = class o4 extends h {
@@ -7711,12 +7800,12 @@ o4.styles = g`
7711
7800
  }
7712
7801
  `;
7713
7802
  let E5 = o4;
7714
- const r4 = class r4 extends h {
7803
+ const n4 = class n4 extends h {
7715
7804
  render() {
7716
7805
  return a`<div class="sidebar-content" part="content"><slot></slot></div>`;
7717
7806
  }
7718
7807
  };
7719
- r4.styles = g`
7808
+ n4.styles = g`
7720
7809
  :host {
7721
7810
  display: flex;
7722
7811
  flex-direction: column;
@@ -7731,8 +7820,8 @@ r4.styles = g`
7731
7820
  padding: 12px 16px;
7732
7821
  }
7733
7822
  `;
7734
- let z5 = r4;
7735
- const n4 = class n4 extends h {
7823
+ let z5 = n4;
7824
+ const r4 = class r4 extends h {
7736
7825
  constructor() {
7737
7826
  super(...arguments), this.divider = !1;
7738
7827
  }
@@ -7740,7 +7829,7 @@ const n4 = class n4 extends h {
7740
7829
  return a`<div class="sidebar-header" part="header"><slot></slot></div>`;
7741
7830
  }
7742
7831
  };
7743
- n4.styles = g`
7832
+ r4.styles = g`
7744
7833
  :host {
7745
7834
  display: block;
7746
7835
  flex: 0 0 auto;
@@ -7751,10 +7840,10 @@ n4.styles = g`
7751
7840
  border-bottom: 1px solid var(--color-border);
7752
7841
  }
7753
7842
  `;
7754
- let O2 = n4;
7843
+ let I2 = r4;
7755
7844
  B1([
7756
7845
  s({ type: Boolean, reflect: !0 })
7757
- ], O2.prototype, "divider");
7846
+ ], I2.prototype, "divider");
7758
7847
  const l4 = class l4 extends h {
7759
7848
  constructor() {
7760
7849
  super(...arguments), this.divider = !1;
@@ -7933,7 +8022,7 @@ c4.styles = g`
7933
8022
  color: var(--color-primary-subtle-foreground);
7934
8023
  }
7935
8024
  .sidebar-menu-item-wrapper--selected .sidebar-menu-item__icon {
7936
- color: var(--color-primary);
8025
+ color: var(--color-primary-icon);
7937
8026
  }
7938
8027
 
7939
8028
  .sidebar-menu-item {
@@ -8067,7 +8156,7 @@ p4.styles = g`
8067
8156
  let F5 = p4;
8068
8157
  customElements.get("anduin-sidebar") || customElements.define("anduin-sidebar", E5);
8069
8158
  customElements.get("anduin-sidebar-content") || customElements.define("anduin-sidebar-content", z5);
8070
- customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", O2);
8159
+ customElements.get("anduin-sidebar-header") || customElements.define("anduin-sidebar-header", I2);
8071
8160
  customElements.get("anduin-sidebar-footer") || customElements.define("anduin-sidebar-footer", T2);
8072
8161
  customElements.get("anduin-sidebar-group") || customElements.define("anduin-sidebar-group", S5);
8073
8162
  customElements.get("anduin-sidebar-group-label") || customElements.define("anduin-sidebar-group-label", A5);
@@ -8076,34 +8165,34 @@ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-
8076
8165
  customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", P5);
8077
8166
  customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", B5);
8078
8167
  customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", F5);
8079
- function P(n) {
8080
- if (!n) return null;
8081
- const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(n.trim());
8168
+ function B(r) {
8169
+ if (!r) return null;
8170
+ const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
8082
8171
  if (!e) return null;
8083
- const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], r = new Date(t, o - 1, i);
8084
- return r.getFullYear() !== t || r.getMonth() !== o - 1 || r.getDate() !== i ? null : r;
8172
+ const [t, o, i] = [Number(e[1]), Number(e[2]), Number(e[3])], n = new Date(t, o - 1, i);
8173
+ return n.getFullYear() !== t || n.getMonth() !== o - 1 || n.getDate() !== i ? null : n;
8085
8174
  }
8086
- function x1(n) {
8175
+ function x1(r) {
8087
8176
  const e = (t) => String(t).padStart(2, "0");
8088
- return `${n.getFullYear()}-${e(n.getMonth() + 1)}-${e(n.getDate())}`;
8177
+ return `${r.getFullYear()}-${e(r.getMonth() + 1)}-${e(r.getDate())}`;
8089
8178
  }
8090
- function O1() {
8091
- const n = /* @__PURE__ */ new Date();
8092
- return new Date(n.getFullYear(), n.getMonth(), n.getDate());
8179
+ function I1() {
8180
+ const r = /* @__PURE__ */ new Date();
8181
+ return new Date(r.getFullYear(), r.getMonth(), r.getDate());
8093
8182
  }
8094
- function u1(n, e) {
8095
- const t = n.getFullYear(), o = n.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8096
- return new Date(t, o, Math.min(n.getDate(), i));
8183
+ function u1(r, e) {
8184
+ const t = r.getFullYear(), o = r.getMonth() + e, i = new Date(t, o + 1, 0).getDate();
8185
+ return new Date(t, o, Math.min(r.getDate(), i));
8097
8186
  }
8098
- function I7(n, e) {
8099
- return new Date(n, e + 1, 0).getDate();
8187
+ function O7(r, e) {
8188
+ return new Date(r, e + 1, 0).getDate();
8100
8189
  }
8101
- var O7 = Object.defineProperty, i1 = (n, e, t, o) => {
8102
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8103
- (l = n[r]) && (i = l(e, t, i) || i);
8104
- return i && O7(e, t, i), i;
8190
+ var I7 = Object.defineProperty, i1 = (r, e, t, o) => {
8191
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8192
+ (l = r[n]) && (i = l(e, t, i) || i);
8193
+ return i && I7(e, t, i), i;
8105
8194
  };
8106
- const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
8195
+ const Z2 = "anduin-calendar:change", O5 = "anduin-calendar:day-hover", q4 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], X4 = [
8107
8196
  "January",
8108
8197
  "February",
8109
8198
  "March",
@@ -8117,16 +8206,16 @@ const Z2 = "anduin-calendar:change", I5 = "anduin-calendar:day-hover", q4 = ["Ja
8117
8206
  "November",
8118
8207
  "December"
8119
8208
  ], T7 = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], J4 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8120
- function F1(n, e) {
8121
- return new Date(n.getFullYear(), n.getMonth(), n.getDate() + e);
8209
+ function F1(r, e) {
8210
+ return new Date(r.getFullYear(), r.getMonth(), r.getDate() + e);
8122
8211
  }
8123
- function N7(n) {
8124
- const e = ["th", "st", "nd", "rd"], t = n % 100;
8125
- return `${n}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8212
+ function N7(r) {
8213
+ const e = ["th", "st", "nd", "rd"], t = r % 100;
8214
+ return `${r}${e[(t - 20) % 10] ?? e[t] ?? e[0]}`;
8126
8215
  }
8127
8216
  const h4 = class h4 extends h {
8128
8217
  constructor() {
8129
- 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) => {
8218
+ 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) => {
8130
8219
  this._openSelect && !e.composedPath().includes(this) && (this._openSelect = null);
8131
8220
  };
8132
8221
  }
@@ -8138,11 +8227,11 @@ const h4 = class h4 extends h {
8138
8227
  }
8139
8228
  willUpdate(e) {
8140
8229
  if (e.has("value")) {
8141
- const t = P(this.value);
8230
+ const t = B(this.value);
8142
8231
  if (t)
8143
8232
  this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
8144
8233
  else if (!this._viewSeeded) {
8145
- const o = O1();
8234
+ const o = I1();
8146
8235
  this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth();
8147
8236
  }
8148
8237
  }
@@ -8156,10 +8245,10 @@ const h4 = class h4 extends h {
8156
8245
  }
8157
8246
  // ── Constraints ─────────────────────────────────────────────────
8158
8247
  get _min() {
8159
- return P(this.minDate);
8248
+ return B(this.minDate);
8160
8249
  }
8161
8250
  get _max() {
8162
- return P(this.maxDate);
8251
+ return B(this.maxDate);
8163
8252
  }
8164
8253
  _isDisabled(e) {
8165
8254
  const t = this._min, o = this._max;
@@ -8181,7 +8270,7 @@ const h4 = class h4 extends h {
8181
8270
  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);
8182
8271
  }
8183
8272
  _onGridKeyDown(e) {
8184
- const t = P(this._focus) ?? this._defaultFocusDate();
8273
+ const t = B(this._focus) ?? this._defaultFocusDate();
8185
8274
  switch (e.key) {
8186
8275
  // Shift turns the horizontal arrows into month steps and the vertical
8187
8276
  // ones into year steps.
@@ -8224,25 +8313,25 @@ const h4 = class h4 extends h {
8224
8313
  this.value = t, this._focus = t, this.dispatchEvent(new CustomEvent(Z2, { detail: t, bubbles: !0, composed: !0 }));
8225
8314
  }
8226
8315
  _emitHover(e) {
8227
- this.dispatchEvent(new CustomEvent(I5, { detail: e, bubbles: !0, composed: !0 }));
8316
+ this.dispatchEvent(new CustomEvent(O5, { detail: e, bubbles: !0, composed: !0 }));
8228
8317
  }
8229
8318
  /** The day that owns `tabindex="0"` when nothing has been focused yet. */
8230
8319
  _defaultFocusDate() {
8231
- const e = P(this._focus);
8320
+ const e = B(this._focus);
8232
8321
  if (e && e.getMonth() === this._viewMonth && e.getFullYear() === this._viewYear)
8233
8322
  return e;
8234
- const t = P(this.value);
8323
+ const t = B(this.value);
8235
8324
  if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
8236
8325
  return t;
8237
- const o = O1();
8326
+ const o = I1();
8238
8327
  return o.getMonth() === this._viewMonth && o.getFullYear() === this._viewYear ? o : this._clamp(new Date(this._viewYear, this._viewMonth, 1));
8239
8328
  }
8240
8329
  // ── Month / year pickers ────────────────────────────────────────
8241
8330
  /** Years offered in the year picker — bounded by min/max when set, otherwise
8242
8331
  * a ±10-year window around the displayed year. */
8243
8332
  get _yearOptions() {
8244
- const e = this._min, t = this._max, o = e ? e.getFullYear() : this._viewYear - 10, i = t ? t.getFullYear() : this._viewYear + 10, r = Math.min(o, this._viewYear), l = Math.max(i, this._viewYear);
8245
- return Array.from({ length: l - r + 1 }, (d, c) => r + c);
8333
+ const e = this._min, t = this._max, o = e ? e.getFullYear() : this._viewYear - 10, i = t ? t.getFullYear() : this._viewYear + 10, n = Math.min(o, this._viewYear), l = Math.max(i, this._viewYear);
8334
+ return Array.from({ length: l - n + 1 }, (d, c) => n + c);
8246
8335
  }
8247
8336
  _selectMonth(e) {
8248
8337
  this._viewMonth = e, this._viewSeeded = !0, this._openSelect = null;
@@ -8250,7 +8339,7 @@ const h4 = class h4 extends h {
8250
8339
  _selectYear(e) {
8251
8340
  this._viewYear = e, this._viewSeeded = !0, this._openSelect = null;
8252
8341
  }
8253
- _renderSelect(e, t, o, i, r) {
8342
+ _renderSelect(e, t, o, i, n) {
8254
8343
  const l = this._openSelect === e;
8255
8344
  return a`
8256
8345
  <div class="calendar__select">
@@ -8273,7 +8362,7 @@ const h4 = class h4 extends h {
8273
8362
  class="calendar__option${d.selected ? " calendar__option--selected" : ""}"
8274
8363
  role="option"
8275
8364
  aria-selected="${d.selected}"
8276
- @click=${() => r(d.value)}
8365
+ @click=${() => n(d.value)}
8277
8366
  >${d.label}</button>
8278
8367
  `)}
8279
8368
  </div>
@@ -8283,7 +8372,7 @@ const h4 = class h4 extends h {
8283
8372
  }
8284
8373
  // ── Render ──────────────────────────────────────────────────────
8285
8374
  render() {
8286
- const e = x1(O1()), t = P(this.value), o = P(this.rangeStart), i = P(this.rangeEnd), r = 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 = [
8375
+ const e = x1(I1()), t = B(this.value), o = B(this.rangeStart), i = B(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 = [
8287
8376
  ...Array.from({ length: C }, () => null),
8288
8377
  ...Array.from({ length: c }, (y, v) => v + 1)
8289
8378
  ];
@@ -8353,7 +8442,7 @@ const h4 = class h4 extends h {
8353
8442
  <tr>
8354
8443
  ${y.map((v) => {
8355
8444
  if (v === null) return a`<td class="calendar__day-cell"></td>`;
8356
- 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 = !r && !!t && D === t.getTime(), E3 = [
8445
+ const x = new Date(this._viewYear, this._viewMonth, v), w = x1(x), P = x.getTime(), W = this._isDisabled(x), Q1 = !!o && P === o.getTime(), o1 = !!i && P === i.getTime(), H4 = !!o && !!i && P > o.getTime() && P < i.getTime(), _4 = !n && !!t && P === t.getTime(), E3 = [
8357
8446
  "calendar__day-cell",
8358
8447
  H4 ? "calendar__day-cell--in-range" : "",
8359
8448
  // Only tint the edge cell when it actually opens a span —
@@ -8367,7 +8456,7 @@ const h4 = class h4 extends h {
8367
8456
  Q1 ? "calendar__day-button--range-start" : "",
8368
8457
  o1 ? "calendar__day-button--range-end" : "",
8369
8458
  H4 ? "calendar__day-button--in-range" : "",
8370
- K ? "calendar__day-button--disabled" : ""
8459
+ W ? "calendar__day-button--disabled" : ""
8371
8460
  ].filter(Boolean).join(" ");
8372
8461
  return a`
8373
8462
  <td
@@ -8379,14 +8468,14 @@ const h4 = class h4 extends h {
8379
8468
  type="button"
8380
8469
  class="${z3}"
8381
8470
  part="day"
8382
- aria-disabled="${K}"
8471
+ aria-disabled="${W}"
8383
8472
  aria-label="${J4[x.getDay()]}, ${X4[x.getMonth()]} ${N7(v)}, ${x.getFullYear()}"
8384
8473
  tabindex="${w === l ? 0 : -1}"
8385
8474
  @click=${() => {
8386
- K || this._pick(x);
8475
+ W || this._pick(x);
8387
8476
  }}
8388
8477
  @mouseenter=${() => {
8389
- K || this._emitHover(w);
8478
+ W || this._emitHover(w);
8390
8479
  }}
8391
8480
  >${v}</button>
8392
8481
  </td>
@@ -8495,41 +8584,41 @@ h4.styles = g`
8495
8584
  .calendar__day-button--in-range { color: var(--color-primary-subtle-foreground); }
8496
8585
  .calendar__day-button--in-range:hover { background-color: var(--color-primary-subtle-active); }
8497
8586
  `;
8498
- let j = h4;
8587
+ let U = h4;
8499
8588
  i1([
8500
8589
  s({ reflect: !0 })
8501
- ], j.prototype, "value");
8590
+ ], U.prototype, "value");
8502
8591
  i1([
8503
8592
  s({ attribute: "min-date" })
8504
- ], j.prototype, "minDate");
8593
+ ], U.prototype, "minDate");
8505
8594
  i1([
8506
8595
  s({ attribute: "max-date" })
8507
- ], j.prototype, "maxDate");
8596
+ ], U.prototype, "maxDate");
8508
8597
  i1([
8509
8598
  s({ attribute: "range-start" })
8510
- ], j.prototype, "rangeStart");
8599
+ ], U.prototype, "rangeStart");
8511
8600
  i1([
8512
8601
  s({ attribute: "range-end" })
8513
- ], j.prototype, "rangeEnd");
8602
+ ], U.prototype, "rangeEnd");
8514
8603
  i1([
8515
8604
  s({ type: Boolean, attribute: "range-mode" })
8516
- ], j.prototype, "rangeMode");
8605
+ ], U.prototype, "rangeMode");
8517
8606
  i1([
8518
8607
  b()
8519
- ], j.prototype, "_viewMonth");
8608
+ ], U.prototype, "_viewMonth");
8520
8609
  i1([
8521
8610
  b()
8522
- ], j.prototype, "_viewYear");
8611
+ ], U.prototype, "_viewYear");
8523
8612
  i1([
8524
8613
  b()
8525
- ], j.prototype, "_focus");
8614
+ ], U.prototype, "_focus");
8526
8615
  i1([
8527
8616
  b()
8528
- ], j.prototype, "_openSelect");
8529
- customElements.get("anduin-calendar") || customElements.define("anduin-calendar", j);
8530
- var j7 = Object.defineProperty, J1 = (n, e, t, o) => {
8531
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8532
- (l = n[r]) && (i = l(e, t, i) || i);
8617
+ ], U.prototype, "_openSelect");
8618
+ customElements.get("anduin-calendar") || customElements.define("anduin-calendar", U);
8619
+ var j7 = Object.defineProperty, J1 = (r, e, t, o) => {
8620
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8621
+ (l = r[n]) && (i = l(e, t, i) || i);
8533
8622
  return i && j7(e, t, i), i;
8534
8623
  };
8535
8624
  const U7 = "anduin-date-range:change", g4 = class g4 extends h {
@@ -8537,7 +8626,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8537
8626
  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) => {
8538
8627
  e.stopPropagation();
8539
8628
  const t = e.detail;
8540
- if (!P(t)) return;
8629
+ if (!B(t)) return;
8541
8630
  if (this._anchor === null) {
8542
8631
  this._anchor = t, this._hover = null;
8543
8632
  return;
@@ -8553,10 +8642,10 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8553
8642
  };
8554
8643
  }
8555
8644
  connectedCallback() {
8556
- super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(I5, this._onCalendarHover);
8645
+ super.connectedCallback(), this.addEventListener(Z2, this._onCalendarChange), this.addEventListener(O5, this._onCalendarHover);
8557
8646
  }
8558
8647
  disconnectedCallback() {
8559
- super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(I5, this._onCalendarHover);
8648
+ super.disconnectedCallback(), this.removeEventListener(Z2, this._onCalendarChange), this.removeEventListener(O5, this._onCalendarHover);
8560
8649
  }
8561
8650
  updated() {
8562
8651
  this._sync();
@@ -8574,17 +8663,17 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8574
8663
  _sync() {
8575
8664
  const [e, t] = this._displayedRange();
8576
8665
  for (const [o, i] of this._panels) {
8577
- const r = i.calendar;
8578
- if (!r) continue;
8579
- r.minDate = this.minDate, r.maxDate = this.maxDate, r.rangeStart = e, r.rangeEnd = t;
8666
+ const n = i.calendar;
8667
+ if (!n) continue;
8668
+ n.minDate = this.minDate, n.maxDate = this.maxDate, n.rangeStart = e, n.rangeEnd = t;
8580
8669
  const l = this._panelValue(o);
8581
- this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), r.value = l);
8670
+ this._pushedValue.get(o) !== l && (this._pushedValue.set(o, l), n.value = l);
8582
8671
  }
8583
8672
  }
8584
8673
  /** Which month each panel opens on: the start date on the left, the month
8585
8674
  * after it on the right. Falls back to today when there's no range yet. */
8586
8675
  _panelValue(e) {
8587
- const t = P(this.startDate) ?? O1();
8676
+ const t = B(this.startDate) ?? I1();
8588
8677
  return x1(e === "start" ? t : u1(t, 1));
8589
8678
  }
8590
8679
  /** The range the calendars should paint — the live preview while selecting,
@@ -8596,7 +8685,7 @@ const U7 = "anduin-date-range:change", g4 = class g4 extends h {
8596
8685
  return [e, t];
8597
8686
  }
8598
8687
  _sorted(e, t) {
8599
- const o = P(e), i = P(t);
8688
+ const o = B(e), i = B(t);
8600
8689
  return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
8601
8690
  }
8602
8691
  render() {
@@ -8683,36 +8772,36 @@ v4.styles = g`
8683
8772
 
8684
8773
  .date-range-default { display: flex; flex-direction: row; gap: 16px; }
8685
8774
  `;
8686
- let O5 = v4;
8775
+ let I5 = v4;
8687
8776
  customElements.get("anduin-date-range") || customElements.define("anduin-date-range", t1);
8688
- customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", O5);
8777
+ customElements.get("anduin-date-range-default") || customElements.define("anduin-date-range-default", I5);
8689
8778
  customElements.get("anduin-date-range-start") || customElements.define("anduin-date-range-start", G7);
8690
8779
  customElements.get("anduin-date-range-end") || customElements.define("anduin-date-range-end", K7);
8691
- var W7 = Object.defineProperty, T = (n, e, t, o) => {
8692
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
8693
- (l = n[r]) && (i = l(e, t, i) || i);
8780
+ var W7 = Object.defineProperty, N = (r, e, t, o) => {
8781
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
8782
+ (l = r[n]) && (i = l(e, t, i) || i);
8694
8783
  return i && W7(e, t, i), i;
8695
8784
  };
8696
8785
  const T5 = "anduin-date-input:change", Q4 = { M: "month", d: "day", y: "year" };
8697
- function Y7(n) {
8786
+ function Y7(r) {
8698
8787
  const e = [];
8699
8788
  let t = 0, o = 0;
8700
- for (; o < n.length; ) {
8701
- const i = n[o], r = Q4[i];
8702
- if (!r) {
8789
+ for (; o < r.length; ) {
8790
+ const i = r[o], n = Q4[i];
8791
+ if (!n) {
8703
8792
  let d = "";
8704
- for (; o < n.length && !Q4[n[o]]; ) d += n[o++];
8793
+ for (; o < r.length && !Q4[r[o]]; ) d += r[o++];
8705
8794
  e.push({ literal: d }), t += d.length;
8706
8795
  continue;
8707
8796
  }
8708
8797
  let l = "";
8709
- for (; o < n.length && n[o] === i; ) l += n[o++];
8710
- e.push({ segment: { type: r, placeholder: l, length: l.length, start: t } }), t += l.length;
8798
+ for (; o < r.length && r[o] === i; ) l += r[o++];
8799
+ e.push({ segment: { type: n, placeholder: l, length: l.length, start: t } }), t += l.length;
8711
8800
  }
8712
8801
  return e;
8713
8802
  }
8714
- function s5(n) {
8715
- return n.type === "year" ? 10 ** n.length - 1 : n.length === 1 ? 9 : n.type === "month" ? 12 : 31;
8803
+ function s5(r) {
8804
+ return r.type === "year" ? 10 ** r.length - 1 : r.length === 1 ? 9 : r.type === "month" ? 12 : 31;
8716
8805
  }
8717
8806
  const i2 = 1, G2 = class G2 extends h {
8718
8807
  constructor() {
@@ -8781,18 +8870,18 @@ const i2 = 1, G2 = class G2 extends h {
8781
8870
  * carries a full date — a partial format like `MM/dd` has no year to compare.
8782
8871
  */
8783
8872
  _clampToBounds(e) {
8784
- const t = P(this.minDate), o = P(this.maxDate);
8873
+ const t = B(this.minDate), o = B(this.maxDate);
8785
8874
  if (!t && !o) return e;
8786
- const i = this._indexOfType("month"), r = this._indexOfType("day"), l = this._indexOfType("year");
8787
- if (i < 0 || r < 0 || l < 0) return e;
8788
- const d = Number(e[l]), c = Number(e[i]), C = Number(e[r]), 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;
8875
+ const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
8876
+ if (i < 0 || n < 0 || l < 0) return e;
8877
+ const d = Number(e[l]), c = Number(e[i]), C = Number(e[n]), p = Math.min(C, O7(d, c - 1)), f = new Date(d, c - 1, p), H = t && f.getTime() < t.getTime() ? t : o && f.getTime() > o.getTime() ? o : null;
8789
8878
  if (!H) {
8790
8879
  if (p === C) return e;
8791
8880
  const V = [...e];
8792
- return V[r] = String(p).padStart(this._segments[r].length, "0"), V;
8881
+ return V[n] = String(p).padStart(this._segments[n].length, "0"), V;
8793
8882
  }
8794
8883
  const m = [...e];
8795
- return m[l] = String(H.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(H.getMonth() + 1).padStart(this._segments[i].length, "0"), m[r] = String(H.getDate()).padStart(this._segments[r].length, "0"), m;
8884
+ return m[l] = String(H.getFullYear()).padStart(this._segments[l].length, "0").slice(-this._segments[l].length), m[i] = String(H.getMonth() + 1).padStart(this._segments[i].length, "0"), m[n] = String(H.getDate()).padStart(this._segments[n].length, "0"), m;
8796
8885
  }
8797
8886
  // ── Selection ───────────────────────────────────────────────────
8798
8887
  _focusSegment(e) {
@@ -8824,8 +8913,8 @@ const i2 = 1, G2 = class G2 extends h {
8824
8913
  _writeSegment(e, t) {
8825
8914
  const o = this._segments[e];
8826
8915
  if (!o) return;
8827
- const i = Math.min(Math.max(Number(t), i2), s5(o)), r = [...this._digits];
8828
- r[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(r);
8916
+ const i = Math.min(Math.max(Number(t), i2), s5(o)), n = [...this._digits];
8917
+ n[e] = String(i).padStart(o.length, "0"), this._buffer = "", this._setDigits(n);
8829
8918
  }
8830
8919
  /** Commit any half-typed digits so they aren't stranded on blur or navigation. */
8831
8920
  _flushBuffer() {
@@ -8852,9 +8941,9 @@ const i2 = 1, G2 = class G2 extends h {
8852
8941
  _step(e) {
8853
8942
  const t = this._active, o = this._segments[t];
8854
8943
  if (!o) return;
8855
- const i = s5(o), r = this._digits[t];
8944
+ const i = s5(o), n = this._digits[t];
8856
8945
  let l;
8857
- r === null ? l = e > 0 ? i2 : i : (l = Number(r) + e, l > i && (l = i2), l < i2 && (l = i));
8946
+ n === null ? l = e > 0 ? i2 : i : (l = Number(n) + e, l > i && (l = i2), l < i2 && (l = i));
8858
8947
  const d = [...this._digits];
8859
8948
  d[t] = String(l).padStart(o.length, "0"), this._buffer = "", this._setDigits(d), this._pendingSelection = [o.start, o.start + o.length];
8860
8949
  }
@@ -8922,9 +9011,9 @@ const i2 = 1, G2 = class G2 extends h {
8922
9011
  @mouseup=${this._onSelectionIntent}
8923
9012
  @focus=${this._onSelectionIntent}
8924
9013
  @blur=${() => this._flushBuffer()}
8925
- @beforeinput=${(r) => r.preventDefault()}
8926
- @paste=${(r) => r.preventDefault()}
8927
- @drop=${(r) => r.preventDefault()}
9014
+ @beforeinput=${(n) => n.preventDefault()}
9015
+ @paste=${(n) => n.preventDefault()}
9016
+ @drop=${(n) => n.preventDefault()}
8928
9017
  />
8929
9018
  </div>
8930
9019
  `;
@@ -8981,58 +9070,58 @@ G2.shadowRootOptions = { ...h.shadowRootOptions, delegatesFocus: !0 }, G2.styles
8981
9070
  .date-input--warning { border-color: var(--color-warning-active); }
8982
9071
  .date-input--loading { border-color: var(--color-input); }
8983
9072
  `;
8984
- let S = G2;
8985
- T([
9073
+ let A = G2;
9074
+ N([
8986
9075
  s()
8987
- ], S.prototype, "format");
8988
- T([
9076
+ ], A.prototype, "format");
9077
+ N([
8989
9078
  s()
8990
- ], S.prototype, "value");
8991
- T([
9079
+ ], A.prototype, "value");
9080
+ N([
8992
9081
  s()
8993
- ], S.prototype, "size");
8994
- T([
9082
+ ], A.prototype, "size");
9083
+ N([
8995
9084
  s({ type: Boolean })
8996
- ], S.prototype, "disabled");
8997
- T([
9085
+ ], A.prototype, "disabled");
9086
+ N([
8998
9087
  s({ type: Boolean })
8999
- ], S.prototype, "readonly");
9000
- T([
9088
+ ], A.prototype, "readonly");
9089
+ N([
9001
9090
  s()
9002
- ], S.prototype, "status");
9003
- T([
9091
+ ], A.prototype, "status");
9092
+ N([
9004
9093
  s({ attribute: "start-icon" })
9005
- ], S.prototype, "startIcon");
9006
- T([
9094
+ ], A.prototype, "startIcon");
9095
+ N([
9007
9096
  s({ attribute: "min-date" })
9008
- ], S.prototype, "minDate");
9009
- T([
9097
+ ], A.prototype, "minDate");
9098
+ N([
9010
9099
  s({ attribute: "max-date" })
9011
- ], S.prototype, "maxDate");
9012
- T([
9100
+ ], A.prototype, "maxDate");
9101
+ N([
9013
9102
  s()
9014
- ], S.prototype, "inputid");
9015
- T([
9103
+ ], A.prototype, "inputid");
9104
+ N([
9016
9105
  b()
9017
- ], S.prototype, "_digits");
9018
- T([
9106
+ ], A.prototype, "_digits");
9107
+ N([
9019
9108
  b()
9020
- ], S.prototype, "_active");
9021
- T([
9109
+ ], A.prototype, "_active");
9110
+ N([
9022
9111
  b()
9023
- ], S.prototype, "_buffer");
9024
- T([
9112
+ ], A.prototype, "_buffer");
9113
+ N([
9025
9114
  k("input")
9026
- ], S.prototype, "_inputEl");
9027
- customElements.get("anduin-date-input") || customElements.define("anduin-date-input", S);
9028
- var q7 = Object.defineProperty, N = (n, e, t, o) => {
9029
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
9030
- (l = n[r]) && (i = l(e, t, i) || i);
9115
+ ], A.prototype, "_inputEl");
9116
+ customElements.get("anduin-date-input") || customElements.define("anduin-date-input", A);
9117
+ var q7 = Object.defineProperty, j = (r, e, t, o) => {
9118
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9119
+ (l = r[n]) && (i = l(e, t, i) || i);
9031
9120
  return i && q7(e, t, i), i;
9032
9121
  };
9033
9122
  const X7 = "anduin-date-picker:change", $3 = { M: "month", d: "day", y: "year" };
9034
- function J7(n, e) {
9035
- if (!n) return null;
9123
+ function J7(r, e) {
9124
+ if (!r) return null;
9036
9125
  const t = {};
9037
9126
  let o = 0, i = 0;
9038
9127
  for (; i < e.length; ) {
@@ -9044,29 +9133,29 @@ function J7(n, e) {
9044
9133
  let C = 0;
9045
9134
  for (; i < e.length && e[i] === d; )
9046
9135
  i++, C++;
9047
- const p = n.slice(o, o + C);
9136
+ const p = r.slice(o, o + C);
9048
9137
  if (!/^\d+$/.test(p)) return null;
9049
9138
  t[c] = p, o += C;
9050
9139
  }
9051
9140
  if (!t.month || !t.day || !t.year) return null;
9052
- const r = Number(t.year), l = new Date(r, Number(t.month) - 1, Number(t.day));
9141
+ const n = Number(t.year), l = new Date(n, Number(t.month) - 1, Number(t.day));
9053
9142
  return l.getMonth() !== Number(t.month) - 1 || l.getDate() !== Number(t.day) ? null : l;
9054
9143
  }
9055
- function Q7(n, e) {
9144
+ function Q7(r, e) {
9056
9145
  const t = {
9057
- month: n.getMonth() + 1,
9058
- day: n.getDate(),
9059
- year: n.getFullYear()
9146
+ month: r.getMonth() + 1,
9147
+ day: r.getDate(),
9148
+ year: r.getFullYear()
9060
9149
  };
9061
9150
  let o = "", i = 0;
9062
9151
  for (; i < e.length; ) {
9063
- const r = e[i], l = $3[r];
9152
+ const n = e[i], l = $3[n];
9064
9153
  if (!l) {
9065
- o += r, i++;
9154
+ o += n, i++;
9066
9155
  continue;
9067
9156
  }
9068
9157
  let d = 0;
9069
- for (; i < e.length && e[i] === r; )
9158
+ for (; i < e.length && e[i] === n; )
9070
9159
  i++, d++;
9071
9160
  o += String(t[l]).padStart(d, "0").slice(-d);
9072
9161
  }
@@ -9080,7 +9169,7 @@ const b4 = class b4 extends h {
9080
9169
  e.stopPropagation(), this._emit(e.detail);
9081
9170
  }, this._onCalendarChange = (e) => {
9082
9171
  e.stopPropagation();
9083
- const t = P(e.detail);
9172
+ const t = B(e.detail);
9084
9173
  t && (this._emit(Q7(t, this.format)), this._closePopover());
9085
9174
  }, this._onKeyDown = (e) => {
9086
9175
  var t;
@@ -9158,64 +9247,64 @@ b4.styles = g`
9158
9247
  /* The popover contributes 8px; the calendar reads better with 16px total. */
9159
9248
  .datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
9160
9249
  `;
9161
- let A = b4;
9162
- N([
9250
+ let D = b4;
9251
+ j([
9163
9252
  s()
9164
- ], A.prototype, "format");
9165
- N([
9253
+ ], D.prototype, "format");
9254
+ j([
9166
9255
  s()
9167
- ], A.prototype, "value");
9168
- N([
9256
+ ], D.prototype, "value");
9257
+ j([
9169
9258
  s()
9170
- ], A.prototype, "size");
9171
- N([
9259
+ ], D.prototype, "size");
9260
+ j([
9172
9261
  s({ type: Boolean })
9173
- ], A.prototype, "disabled");
9174
- N([
9262
+ ], D.prototype, "disabled");
9263
+ j([
9175
9264
  s({ type: Boolean })
9176
- ], A.prototype, "readonly");
9177
- N([
9265
+ ], D.prototype, "readonly");
9266
+ j([
9178
9267
  s()
9179
- ], A.prototype, "status");
9180
- N([
9268
+ ], D.prototype, "status");
9269
+ j([
9181
9270
  s({ attribute: "start-icon" })
9182
- ], A.prototype, "startIcon");
9183
- N([
9271
+ ], D.prototype, "startIcon");
9272
+ j([
9184
9273
  s({ attribute: "min-date" })
9185
- ], A.prototype, "minDate");
9186
- N([
9274
+ ], D.prototype, "minDate");
9275
+ j([
9187
9276
  s({ attribute: "max-date" })
9188
- ], A.prototype, "maxDate");
9189
- N([
9277
+ ], D.prototype, "maxDate");
9278
+ j([
9190
9279
  s()
9191
- ], A.prototype, "placement");
9192
- N([
9280
+ ], D.prototype, "placement");
9281
+ j([
9193
9282
  s()
9194
- ], A.prototype, "inputid");
9195
- N([
9283
+ ], D.prototype, "inputid");
9284
+ j([
9196
9285
  b()
9197
- ], A.prototype, "_open");
9198
- N([
9286
+ ], D.prototype, "_open");
9287
+ j([
9199
9288
  k("anduin-date-input")
9200
- ], A.prototype, "_inputEl");
9201
- N([
9289
+ ], D.prototype, "_inputEl");
9290
+ j([
9202
9291
  k("anduin-popover")
9203
- ], A.prototype, "_popoverEl");
9204
- customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", A);
9205
- var e0 = Object.defineProperty, L = (n, e, t, o) => {
9206
- for (var i = void 0, r = n.length - 1, l; r >= 0; r--)
9207
- (l = n[r]) && (i = l(e, t, i) || i);
9292
+ ], D.prototype, "_popoverEl");
9293
+ customElements.get("anduin-date-picker") || customElements.define("anduin-date-picker", D);
9294
+ var e0 = Object.defineProperty, L = (r, e, t, o) => {
9295
+ for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
9296
+ (l = r[n]) && (i = l(e, t, i) || i);
9208
9297
  return i && e0(e, t, i), i;
9209
9298
  };
9210
- const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-table:row-click", r0 = "anduin-table:selection-change", n0 = "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, r1 = (n) => n.type === "selection", C1 = (n, e) => {
9299
+ 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) => {
9211
9300
  if (!e) return;
9212
- let t = n;
9301
+ let t = r;
9213
9302
  for (const o of e.split(".")) {
9214
9303
  if (t === null || typeof t != "object") return;
9215
9304
  t = t[o];
9216
9305
  }
9217
9306
  return t;
9218
- }, d0 = (n, e) => n === e ? 0 : n == null ? 1 : e == null ? -1 : typeof n == "number" && typeof e == "number" ? n - e : typeof n == "boolean" && typeof e == "boolean" ? Number(n) - Number(e) : n instanceof Date && e instanceof Date ? n.getTime() - e.getTime() : String(n).localeCompare(String(e), void 0, { numeric: !0, sensitivity: "base" }), m4 = class m4 extends h {
9307
+ }, 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 {
9219
9308
  constructor() {
9220
9309
  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 = () => {
9221
9310
  this.isDraggingRange = !1;
@@ -9327,9 +9416,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9327
9416
  );
9328
9417
  if (t.length === 0) return;
9329
9418
  const o = t.map((c) => c.getBoundingClientRect().width), i = e.map(() => null);
9330
- let r = 0;
9419
+ let n = 0;
9331
9420
  for (let c = 0; c < e.length; c++)
9332
- e[c] === "left" && (i[c] = r, r += o[c] ?? 0);
9421
+ e[c] === "left" && (i[c] = n, n += o[c] ?? 0);
9333
9422
  let l = 0;
9334
9423
  for (let c = e.length - 1; c >= 0; c--)
9335
9424
  e[c] === "right" && (i[c] = l, l += o[c] ?? 0);
@@ -9342,14 +9431,14 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9342
9431
  get sortedColumn() {
9343
9432
  if (this.sortField)
9344
9433
  return this.columns.find(
9345
- (e) => !r1(e) && e.field === this.sortField
9434
+ (e) => !n1(e) && e.field === this.sortField
9346
9435
  );
9347
9436
  }
9348
9437
  sortRows(e) {
9349
9438
  const t = this.sortedColumn;
9350
9439
  if (!t) return e;
9351
- const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (r, l) => t.sortWith({ a: r, b: l }) : (r, l) => d0(C1(r, t.field), C1(l, t.field));
9352
- return [...e].sort((r, l) => i(r, l) * o);
9440
+ const o = this.sortDirection === "desc" ? -1 : 1, i = t.sortWith ? (n, l) => t.sortWith({ a: n, b: l }) : (n, l) => d0(C1(n, t.field), C1(l, t.field));
9441
+ return [...e].sort((n, l) => i(n, l) * o);
9353
9442
  }
9354
9443
  onHeaderClick(e) {
9355
9444
  if (this.dispatchEvent(new CustomEvent(i0, {
@@ -9371,21 +9460,21 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9371
9460
  }
9372
9461
  buildFlatRows(e, t) {
9373
9462
  const o = [];
9374
- return e.forEach((i, r) => {
9375
- const l = this.keyFor(i, r), d = this.dataTree ? C1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
9463
+ return e.forEach((i, n) => {
9464
+ const l = this.keyFor(i, n), d = this.dataTree ? C1(i, this.treeChildrenField) : void 0, c = Array.isArray(d) && d.length > 0, C = c && this.isExpanded(l, i);
9376
9465
  o.push({ kind: "row", data: i, key: l, depth: t, hasChildren: c, expanded: C }), C && o.push(...this.buildFlatRows(this.sortRows(d), t + 1));
9377
9466
  }), o;
9378
9467
  }
9379
9468
  buildGroupedRows() {
9380
9469
  const e = /* @__PURE__ */ new Map();
9381
9470
  this.data.forEach((o) => {
9382
- const i = C1(o, this.groupBy), r = String(i), l = e.get(r);
9383
- l ? l.rows.push(o) : e.set(r, { value: i, rows: [o] });
9471
+ const i = C1(o, this.groupBy), n = String(i), l = e.get(n);
9472
+ l ? l.rows.push(o) : e.set(n, { value: i, rows: [o] });
9384
9473
  });
9385
9474
  const t = [];
9386
- return e.forEach(({ value: o, rows: i }, r) => {
9387
- const l = !this.collapsedGroups.has(r);
9388
- t.push({ kind: "group", key: r, value: o, rows: i, expanded: l }), l && t.push(...this.buildFlatRows(this.sortRows(i), 0));
9475
+ return e.forEach(({ value: o, rows: i }, n) => {
9476
+ const l = !this.collapsedGroups.has(n);
9477
+ t.push({ kind: "group", key: n, value: o, rows: i, expanded: l }), l && t.push(...this.buildFlatRows(this.sortRows(i), 0));
9389
9478
  }), t;
9390
9479
  }
9391
9480
  isExpanded(e, t) {
@@ -9409,9 +9498,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9409
9498
  /** Expands every tree row that has children. */
9410
9499
  expandAll() {
9411
9500
  const e = /* @__PURE__ */ new Set(), t = (o) => {
9412
- o.forEach((i, r) => {
9501
+ o.forEach((i, n) => {
9413
9502
  const l = C1(i, this.treeChildrenField);
9414
- Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, r)), t(l));
9503
+ Array.isArray(l) && l.length > 0 && (e.add(this.keyFor(i, n)), t(l));
9415
9504
  });
9416
9505
  };
9417
9506
  t(this.data), this.expandedKeys = e;
@@ -9428,16 +9517,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9428
9517
  );
9429
9518
  }
9430
9519
  commitSelection(e) {
9431
- const t = /* @__PURE__ */ new Map(), o = (r) => {
9432
- r.forEach((l, d) => {
9520
+ const t = /* @__PURE__ */ new Map(), o = (n) => {
9521
+ n.forEach((l, d) => {
9433
9522
  t.set(this.keyFor(l, d), l);
9434
9523
  const c = this.dataTree ? C1(l, this.treeChildrenField) : void 0;
9435
9524
  Array.isArray(c) && o(c);
9436
9525
  });
9437
9526
  };
9438
9527
  o(this.data);
9439
- const i = [...e].filter((r) => t.has(r));
9440
- this.selectedRows = i.map((r) => t.get(r)), this.dispatchEvent(new CustomEvent(r0, {
9528
+ const i = [...e].filter((n) => t.has(n));
9529
+ this.selectedRows = i.map((n) => t.get(n)), this.dispatchEvent(new CustomEvent(n0, {
9441
9530
  detail: { selectedRows: this.selectedRows, selectedKeys: i },
9442
9531
  bubbles: !0,
9443
9532
  composed: !0
@@ -9456,9 +9545,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9456
9545
  }
9457
9546
  /** Selects (or clears) every row between the anchor and `row`, inclusive. */
9458
9547
  selectRange(e, t, o) {
9459
- const i = this.selectableRows, r = i.findIndex((f) => f.key === e.key);
9460
- if (r < 0) return;
9461
- const l = this.rangeAnchorKey ? i.findIndex((f) => f.key === this.rangeAnchorKey) : -1, d = l < 0 ? r : l, [c, C] = d <= r ? [d, r] : [r, d], p = new Set(o);
9548
+ const i = this.selectableRows, n = i.findIndex((f) => f.key === e.key);
9549
+ if (n < 0) return;
9550
+ const l = this.rangeAnchorKey ? i.findIndex((f) => f.key === this.rangeAnchorKey) : -1, d = l < 0 ? n : l, [c, C] = d <= n ? [d, n] : [n, d], p = new Set(o);
9462
9551
  for (let f = c; f <= C; f++)
9463
9552
  t ? p.add(i[f].key) : p.delete(i[f].key);
9464
9553
  this.commitSelection(p);
@@ -9477,19 +9566,19 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9477
9566
  }));
9478
9567
  const i = this.selectable;
9479
9568
  if (i === "unselectable" || i === "clickable" || this.rowIsDisabled(t.data)) return;
9480
- const r = this.selectedKeySet.has(t.key);
9569
+ const n = this.selectedKeySet.has(t.key);
9481
9570
  if (i === "selectable-by-clicking" && e.shiftKey) {
9482
9571
  this.selectRange(t, !0, e.metaKey || e.ctrlKey ? [...this.selectedKeySet] : []);
9483
9572
  return;
9484
9573
  }
9485
9574
  if (i === "selectable-by-clicking" && !(e.metaKey || e.ctrlKey)) {
9486
- this.rangeAnchorKey = t.key, this.commitSelection(new Set(r && this.selectedRows.length === 1 ? [] : [t.key]));
9575
+ this.rangeAnchorKey = t.key, this.commitSelection(new Set(n && this.selectedRows.length === 1 ? [] : [t.key]));
9487
9576
  return;
9488
9577
  }
9489
- this.setRowSelected(t, !r);
9578
+ this.setRowSelected(t, !n);
9490
9579
  }
9491
9580
  onCellContextMenu(e, t, o, i) {
9492
- this.dispatchEvent(new CustomEvent(n0, {
9581
+ this.dispatchEvent(new CustomEvent(r0, {
9493
9582
  detail: {
9494
9583
  data: t.data,
9495
9584
  key: t.key,
@@ -9519,7 +9608,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9519
9608
  */
9520
9609
  /** A stable identity for a column, used to remember a dragged width. */
9521
9610
  columnKey(e, t) {
9522
- return r1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9611
+ return n1(e) ? `__selection:${t}` : e.field || `__col:${t}`;
9523
9612
  }
9524
9613
  /** The width to lay a column out at: a dragged width beats the configured one. */
9525
9614
  widthFor(e, t) {
@@ -9563,7 +9652,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9563
9652
  */
9564
9653
  fitColumnsMinWidth() {
9565
9654
  return this.layout !== "fit-columns" || !this.columns.some((e) => e.minWidth) ? 0 : this.columns.reduce((e, t, o) => {
9566
- const i = r1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9655
+ const i = n1(t) && !t.width && !t.minWidth ? t3 : Math.max(this.widthFor(t, o) ?? 0, t.minWidth ?? 0);
9567
9656
  return e + i;
9568
9657
  }, 0);
9569
9658
  }
@@ -9573,9 +9662,9 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9573
9662
  }
9574
9663
  onResizeStart(e, t, o) {
9575
9664
  e.preventDefault(), e.stopPropagation();
9576
- const i = e.currentTarget, r = i.closest("th");
9577
- if (!r) return;
9578
- const l = r.getBoundingClientRect().width;
9665
+ const i = e.currentTarget, n = i.closest("th");
9666
+ if (!n) return;
9667
+ const l = n.getBoundingClientRect().width;
9579
9668
  this.resizeDrag = {
9580
9669
  key: this.columnKey(t, o),
9581
9670
  startX: e.clientX,
@@ -9588,8 +9677,8 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9588
9677
  e.preventDefault(), e.stopPropagation();
9589
9678
  const i = this.columnKey(t, o);
9590
9679
  if (this.resizedWidths[i] === void 0) return;
9591
- const r = { ...this.resizedWidths };
9592
- delete r[i], this.resizedWidths = r, this.dispatchEvent(new CustomEvent(e3, {
9680
+ const n = { ...this.resizedWidths };
9681
+ delete n[i], this.resizedWidths = n, this.dispatchEvent(new CustomEvent(e3, {
9593
9682
  detail: { column: t, field: i, width: null },
9594
9683
  bubbles: !0,
9595
9684
  composed: !0
@@ -9607,12 +9696,12 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9607
9696
  ].filter(Boolean).join(" ");
9608
9697
  }
9609
9698
  renderHeaderCell(e, t) {
9610
- const o = this.frozenSides, i = o[t], r = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9699
+ const o = this.frozenSides, i = o[t], n = i === "left" ? o[t + 1] !== "left" : i === "right" ? o[t - 1] !== "right" : !1, l = [
9611
9700
  "table__header-cell",
9612
9701
  i ? "table__header-cell--frozen" : "",
9613
- i && r ? `table__header-cell--frozen-${i}-edge` : "",
9614
- !r1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9615
- r1(e) ? "table__cell--selection" : "",
9702
+ i && n ? `table__header-cell--frozen-${i}-edge` : "",
9703
+ !n1(e) && e.isSortable ? "table__header-cell--sortable" : "",
9704
+ n1(e) ? "table__cell--selection" : "",
9616
9705
  this.sizingClass(e, t)
9617
9706
  ].filter(Boolean).join(" "), d = this.cellStyle(e, t), c = e.headerAlign ?? e.align ?? this.columnAlign, C = [
9618
9707
  "table__header-inner",
@@ -9632,18 +9721,18 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9632
9721
  @click=${(v) => v.stopPropagation()}
9633
9722
  ></span>
9634
9723
  ` : u;
9635
- if (r1(e)) {
9636
- 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({
9637
- areAllRowsSelected: D,
9724
+ if (n1(e)) {
9725
+ const v = this.renderSelectableRows, x = this.renderSelectedKeys, w = v.filter((o1) => x.has(o1.key)).length, P = v.length > 0 && w === v.length, W = w > 0 && !P, Q1 = e.renderHeader ? e.renderHeader({
9726
+ areAllRowsSelected: P,
9638
9727
  hasSelectedRow: w > 0,
9639
9728
  onChange: (o1) => this.toggleAllRows(o1)
9640
9729
  }) : a`
9641
9730
  <anduin-checkbox
9642
- .checked=${D}
9643
- .indeterminate=${K}
9644
- aria-label="${D ? "Deselect all rows" : "Select all rows"}"
9731
+ .checked=${P}
9732
+ .indeterminate=${W}
9733
+ aria-label="${P ? "Deselect all rows" : "Select all rows"}"
9645
9734
  @anduin-checkbox:change=${(o1) => {
9646
- o1.stopPropagation(), this.toggleAllRows(!D);
9735
+ o1.stopPropagation(), this.toggleAllRows(!P);
9647
9736
  }}
9648
9737
  ></anduin-checkbox>
9649
9738
  `;
@@ -9681,16 +9770,16 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9681
9770
  `;
9682
9771
  }
9683
9772
  renderCell(e, t, o, i) {
9684
- const r = this.frozenSides, l = r[i], d = l === "left" ? r[i + 1] !== "left" : l === "right" ? r[i - 1] !== "right" : !1, c = [
9773
+ const n = this.frozenSides, l = n[i], d = l === "left" ? n[i + 1] !== "left" : l === "right" ? n[i - 1] !== "right" : !1, c = [
9685
9774
  "table__cell",
9686
9775
  this.alignClass(o),
9687
9776
  l ? "table__cell--frozen" : "",
9688
9777
  l && d ? `table__cell--frozen-${l}-edge` : "",
9689
- r1(o) ? "table__cell--selection" : "",
9778
+ n1(o) ? "table__cell--selection" : "",
9690
9779
  o.showOnRowHover ? "table__cell--hover-only" : "",
9691
9780
  this.sizingClass(o, i)
9692
9781
  ].filter(Boolean).join(" "), C = this.cellStyle(o, i);
9693
- if (r1(o)) {
9782
+ if (n1(o)) {
9694
9783
  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`
9695
9784
  <anduin-checkbox
9696
9785
  .checked=${V}
@@ -9743,20 +9832,20 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9743
9832
  `;
9744
9833
  }
9745
9834
  get firstDataColumnIndex() {
9746
- const e = this.columns.findIndex((t) => !r1(t));
9835
+ const e = this.columns.findIndex((t) => !n1(t));
9747
9836
  return e < 0 ? 0 : e;
9748
9837
  }
9749
9838
  renderRow(e, t) {
9750
- const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", r = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9839
+ const o = this.renderSelectedKeys.has(e.key), i = this.selectable !== "unselectable", n = this.rowClass ? this.rowClass(e.data, t).trim() : "", l = [
9751
9840
  "table__row",
9752
9841
  i ? "table__row--interactive" : "",
9753
9842
  o ? "table__row--selected" : "",
9754
- r
9843
+ n
9755
9844
  ].filter(Boolean).join(" ");
9756
9845
  return a`
9757
9846
  <tr
9758
9847
  class="${l}"
9759
- part="${r ? `row ${r}` : "row"}"
9848
+ part="${n ? `row ${n}` : "row"}"
9760
9849
  aria-selected="${this.selectable === "unselectable" || this.selectable === "clickable" ? u : String(o)}"
9761
9850
  style="${this.renderMode === "virtual" ? `height:${this.rowHeight}px` : ""}"
9762
9851
  @click=${(d) => this.onRowClick(d, e, t)}
@@ -9814,10 +9903,10 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9814
9903
  this.scrolledX ? "table--scrolled-x" : "",
9815
9904
  this.scrollableXEnd ? "table--scrollable-x-end" : ""
9816
9905
  ].filter(Boolean).join(" ");
9817
- let r = e, l = 0, d = 0, c = 0;
9906
+ let n = e, l = 0, d = 0, c = 0;
9818
9907
  if (this.renderMode === "virtual" && e.length > 0) {
9819
9908
  const p = Math.ceil((this.viewportHeight || 400) / this.rowHeight), f = Math.max(0, Math.floor(this.virtualScrollTop / this.rowHeight) - 6), H = Math.min(e.length, f + p + 12);
9820
- r = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9909
+ n = e.slice(f, H), l = f * this.rowHeight, d = (e.length - H) * this.rowHeight, c = f;
9821
9910
  }
9822
9911
  return a`
9823
9912
  <div class="${i}" part="table" style="${t}">
@@ -9837,7 +9926,7 @@ const t0 = "anduin-table:sort", i0 = "anduin-table:column-click", o0 = "anduin-t
9837
9926
  <tbody part="body">
9838
9927
  ${e.length === 0 ? this.renderPlaceholder() : u}
9839
9928
  ${l > 0 ? a`<tr style="height:${l}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
9840
- ${r.map(
9929
+ ${n.map(
9841
9930
  (C, p) => C.kind === "group" ? this.renderGroupRow(C) : this.renderRow(C, c + p)
9842
9931
  )}
9843
9932
  ${d > 0 ? a`<tr style="height:${d}px" aria-hidden="true"><td colspan="${this.columnCount}"></td></tr>` : u}
@@ -9989,7 +10078,7 @@ m4.styles = g`
9989
10078
  color: var(--color-placeholder);
9990
10079
  }
9991
10080
  .table__sort-icon--active {
9992
- color: var(--color-primary);
10081
+ color: var(--color-primary-icon);
9993
10082
  }
9994
10083
 
9995
10084
  /* The divider between headers is the resize affordance: a hairline at rest,
@@ -10251,7 +10340,7 @@ L([
10251
10340
  L([
10252
10341
  s({
10253
10342
  attribute: "resizable-columns",
10254
- converter: (n) => n !== "false"
10343
+ converter: (r) => r !== "false"
10255
10344
  })
10256
10345
  ], _.prototype, "resizableColumns");
10257
10346
  L([
@@ -10333,8 +10422,8 @@ customElements.get("anduin-table") || customElements.define("anduin-table", _);
10333
10422
  export {
10334
10423
  A5 as $,
10335
10424
  N1 as A,
10336
- R as B,
10337
- I as C,
10425
+ $ as B,
10426
+ R as C,
10338
10427
  P2 as D,
10339
10428
  $1 as E,
10340
10429
  G1 as F,
@@ -10352,7 +10441,7 @@ export {
10352
10441
  K1 as R,
10353
10442
  Y1 as S,
10354
10443
  W1 as T,
10355
- I2 as U,
10444
+ O2 as U,
10356
10445
  E5 as V,
10357
10446
  P5 as W,
10358
10447
  B5 as X,
@@ -10361,11 +10450,11 @@ export {
10361
10450
  S5 as _,
10362
10451
  e1 as a,
10363
10452
  l5 as a$,
10364
- O2 as a0,
10453
+ I2 as a0,
10365
10454
  D5 as a1,
10366
10455
  _1 as a2,
10367
10456
  F5 as a3,
10368
- n1 as a4,
10457
+ r1 as a4,
10369
10458
  g2 as a5,
10370
10459
  h2 as a6,
10371
10460
  Z as a7,
@@ -10374,7 +10463,7 @@ export {
10374
10463
  T5 as aA,
10375
10464
  X7 as aB,
10376
10465
  U7 as aC,
10377
- n5 as aD,
10466
+ r5 as aD,
10378
10467
  l2 as aE,
10379
10468
  G4 as aF,
10380
10469
  m3 as aG,
@@ -10387,7 +10476,7 @@ export {
10387
10476
  Mt as aN,
10388
10477
  H5 as aO,
10389
10478
  t5 as aP,
10390
- n2 as aQ,
10479
+ r2 as aQ,
10391
10480
  $7 as aR,
10392
10481
  V5 as aS,
10393
10482
  A7 as aT,
@@ -10395,7 +10484,7 @@ export {
10395
10484
  v5 as aV,
10396
10485
  b5 as aW,
10397
10486
  _5 as aX,
10398
- n7 as aY,
10487
+ r7 as aY,
10399
10488
  z7 as aZ,
10400
10489
  F7 as a_,
10401
10490
  l1 as aa,
@@ -10404,7 +10493,7 @@ export {
10404
10493
  y2 as ad,
10405
10494
  U1 as ae,
10406
10495
  h5 as af,
10407
- W as ag,
10496
+ Y as ag,
10408
10497
  w5 as ah,
10409
10498
  Z5 as ai,
10410
10499
  R5 as aj,
@@ -10422,25 +10511,25 @@ export {
10422
10511
  f5 as av,
10423
10512
  h3 as aw,
10424
10513
  Z2 as ax,
10425
- I5 as ay,
10514
+ O5 as ay,
10426
10515
  xt as az,
10427
10516
  S2 as b,
10428
10517
  k7 as b0,
10429
10518
  Z7 as b1,
10430
10519
  _7 as b2,
10431
- n0 as b3,
10520
+ r0 as b3,
10432
10521
  i0 as b4,
10433
10522
  e3 as b5,
10434
10523
  a0 as b6,
10435
10524
  o0 as b7,
10436
10525
  s0 as b8,
10437
10526
  l0 as b9,
10438
- r0 as ba,
10527
+ n0 as ba,
10439
10528
  t0 as bb,
10440
10529
  Ft as bc,
10441
10530
  w3 as bd,
10442
10531
  W2 as be,
10443
- Ot as bf,
10532
+ It as bf,
10444
10533
  Pt as bg,
10445
10534
  Ut as bh,
10446
10535
  Gt as bi,
@@ -10457,25 +10546,25 @@ export {
10457
10546
  u1 as bt,
10458
10547
  x1 as bu,
10459
10548
  g3 as bv,
10460
- P as bw,
10549
+ B as bw,
10461
10550
  g7 as bx,
10462
- O1 as by,
10551
+ I1 as by,
10463
10552
  p0 as bz,
10464
10553
  v2 as c,
10465
- $ as d,
10466
- j as e,
10554
+ E as d,
10555
+ U as e,
10467
10556
  A2 as f,
10468
10557
  v1 as g,
10469
- S as h,
10470
- A as i,
10558
+ A as h,
10559
+ D as i,
10471
10560
  t1 as j,
10472
- O5 as k,
10561
+ I5 as k,
10473
10562
  K7 as l,
10474
10563
  N2 as m,
10475
10564
  G7 as n,
10476
10565
  b2 as o,
10477
10566
  D2 as p,
10478
- G as q,
10567
+ K as q,
10479
10568
  w7 as r,
10480
10569
  M as s,
10481
10570
  B2 as t,