@warp-ds/elements 1.1.0-next.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,102 +1,102 @@
1
- var Te = Object.defineProperty;
2
- var Be = (r, o, e) => o in r ? Te(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
3
- var f = (r, o, e) => (Be(r, typeof o != "symbol" ? o + "" : o, e), e), Re = (r, o, e) => {
1
+ var qt = Object.defineProperty;
2
+ var Xt = (r, o, e) => o in r ? qt(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
3
+ var Z = (r, o, e) => (Xt(r, typeof o != "symbol" ? o + "" : o, e), e), Yt = (r, o, e) => {
4
4
  if (!o.has(r))
5
5
  throw TypeError("Cannot " + e);
6
6
  };
7
- var T = (r, o, e) => (Re(r, o, "read from private field"), e ? e.call(r) : o.get(r)), J = (r, o, e) => {
7
+ var J = (r, o, e) => (Yt(r, o, "read from private field"), e ? e.call(r) : o.get(r)), fo = (r, o, e) => {
8
8
  if (o.has(r))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  o instanceof WeakSet ? o.add(r) : o.set(r, e);
11
11
  };
12
- import { html as v, LitElement as Y, css as A, svg as G } from "lit";
12
+ import { html as f, LitElement as I, css as Q, svg as po } from "lit";
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- var rr;
19
- const Ro = window, vo = Ro.trustedTypes, Lr = vo ? vo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Do = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, qr = "?" + P, De = `<${qr}>`, co = document, No = () => co.createComment(""), yo = (r) => r === null || typeof r != "object" && typeof r != "function", ee = Array.isArray, te = (r) => ee(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", er = `[
20
- \f\r]`, xo = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Er = /-->/g, Mr = />/g, K = RegExp(`>|${er}(?:([^\\s"'>=/]+)(${er}*=${er}*(?:[^
21
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Tr = /'/g, Br = /"/g, ae = /^(?:script|style|textarea|title)$/i, V = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Rr = /* @__PURE__ */ new WeakMap(), to = co.createTreeWalker(co, 129, null, !1);
22
- function ce(r, o) {
18
+ var Xr;
19
+ const nr = window, Mo = nr.trustedTypes, be = Mo ? Mo.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, br = "$lit$", lo = `lit$${(Math.random() + "").slice(9)}$`, oe = "?" + lo, jt = `<${oe}>`, Xo = document, sr = () => Xo.createComment(""), Ho = (r) => r === null || typeof r != "object" && typeof r != "function", Me = Array.isArray, Te = (r) => Me(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Yr = `[
20
+ \f\r]`, No = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ge = />/g, ko = RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
21
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, Oe = /^(?:script|style|textarea|title)$/i, ho = Symbol.for("lit-noChange"), N = Symbol.for("lit-nothing"), he = /* @__PURE__ */ new WeakMap(), _o = Xo.createTreeWalker(Xo, 129, null, !1);
22
+ function Be(r, o) {
23
23
  if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
24
24
  throw Error("invalid template strings array");
25
- return Lr !== void 0 ? Lr.createHTML(o) : o;
25
+ return be !== void 0 ? be.createHTML(o) : o;
26
26
  }
27
- const ie = (r, o) => {
27
+ const Ne = (r, o) => {
28
28
  const e = r.length - 1, t = [];
29
- let a, c = o === 2 ? "<svg>" : "", i = xo;
29
+ let a, c = o === 2 ? "<svg>" : "", i = No;
30
30
  for (let l = 0; l < e; l++) {
31
- const d = r[l];
32
- let n, g, b = -1, s = 0;
33
- for (; s < d.length && (i.lastIndex = s, g = i.exec(d), g !== null); )
34
- s = i.lastIndex, i === xo ? g[1] === "!--" ? i = Er : g[1] !== void 0 ? i = Mr : g[2] !== void 0 ? (ae.test(g[2]) && (a = RegExp("</" + g[2], "g")), i = K) : g[3] !== void 0 && (i = K) : i === K ? g[0] === ">" ? (i = a ?? xo, b = -1) : g[1] === void 0 ? b = -2 : (b = i.lastIndex - g[2].length, n = g[1], i = g[3] === void 0 ? K : g[3] === '"' ? Br : Tr) : i === Br || i === Tr ? i = K : i === Er || i === Mr ? i = xo : (i = K, a = void 0);
35
- const w = i === K && r[l + 1].startsWith("/>") ? " " : "";
36
- c += i === xo ? d + De : b >= 0 ? (t.push(n), d.slice(0, b) + Do + d.slice(b) + P + w) : d + P + (b === -2 ? (t.push(void 0), l) : w);
37
- }
38
- return [ce(r, c + (r[e] || "<?>") + (o === 2 ? "</svg>" : "")), t];
31
+ const n = r[l];
32
+ let b, v, u = -1, h = 0;
33
+ for (; h < n.length && (i.lastIndex = h, v = i.exec(n), v !== null); )
34
+ h = i.lastIndex, i === No ? v[1] === "!--" ? i = se : v[1] !== void 0 ? i = ge : v[2] !== void 0 ? (Oe.test(v[2]) && (a = RegExp("</" + v[2], "g")), i = ko) : v[3] !== void 0 && (i = ko) : i === ko ? v[0] === ">" ? (i = a ?? No, u = -1) : v[1] === void 0 ? u = -2 : (u = i.lastIndex - v[2].length, b = v[1], i = v[3] === void 0 ? ko : v[3] === '"' ? ve : ue) : i === ve || i === ue ? i = ko : i === se || i === ge ? i = No : (i = ko, a = void 0);
35
+ const g = i === ko && r[l + 1].startsWith("/>") ? " " : "";
36
+ c += i === No ? n + jt : u >= 0 ? (t.push(b), n.slice(0, u) + br + n.slice(u) + lo + g) : n + lo + (u === -2 ? (t.push(void 0), l) : g);
37
+ }
38
+ return [Be(r, c + (r[e] || "<?>") + (o === 2 ? "</svg>" : "")), t];
39
39
  };
40
- class zo {
40
+ class Qo {
41
41
  constructor({ strings: o, _$litType$: e }, t) {
42
42
  let a;
43
43
  this.parts = [];
44
44
  let c = 0, i = 0;
45
- const l = o.length - 1, d = this.parts, [n, g] = ie(o, e);
46
- if (this.el = zo.createElement(n, t), to.currentNode = this.el.content, e === 2) {
47
- const b = this.el.content, s = b.firstChild;
48
- s.remove(), b.append(...s.childNodes);
45
+ const l = o.length - 1, n = this.parts, [b, v] = Ne(o, e);
46
+ if (this.el = Qo.createElement(b, t), _o.currentNode = this.el.content, e === 2) {
47
+ const u = this.el.content, h = u.firstChild;
48
+ h.remove(), u.append(...h.childNodes);
49
49
  }
50
- for (; (a = to.nextNode()) !== null && d.length < l; ) {
50
+ for (; (a = _o.nextNode()) !== null && n.length < l; ) {
51
51
  if (a.nodeType === 1) {
52
52
  if (a.hasAttributes()) {
53
- const b = [];
54
- for (const s of a.getAttributeNames())
55
- if (s.endsWith(Do) || s.startsWith(P)) {
56
- const w = g[i++];
57
- if (b.push(s), w !== void 0) {
58
- const x = a.getAttribute(w.toLowerCase() + Do).split(P), m = /([.?@])?(.*)/.exec(w);
59
- d.push({ type: 1, index: c, name: m[2], strings: x, ctor: m[1] === "." ? ne : m[1] === "?" ? be : m[1] === "@" ? ge : Yo });
53
+ const u = [];
54
+ for (const h of a.getAttributeNames())
55
+ if (h.endsWith(br) || h.startsWith(lo)) {
56
+ const g = v[i++];
57
+ if (u.push(h), g !== void 0) {
58
+ const p = a.getAttribute(g.toLowerCase() + br).split(lo), x = /([.?@])?(.*)/.exec(g);
59
+ n.push({ type: 1, index: c, name: x[2], strings: p, ctor: x[1] === "." ? Pe : x[1] === "?" ? Ie : x[1] === "@" ? He : Jo });
60
60
  } else
61
- d.push({ type: 6, index: c });
61
+ n.push({ type: 6, index: c });
62
62
  }
63
- for (const s of b)
64
- a.removeAttribute(s);
63
+ for (const h of u)
64
+ a.removeAttribute(h);
65
65
  }
66
- if (ae.test(a.tagName)) {
67
- const b = a.textContent.split(P), s = b.length - 1;
68
- if (s > 0) {
69
- a.textContent = vo ? vo.emptyScript : "";
70
- for (let w = 0; w < s; w++)
71
- a.append(b[w], No()), to.nextNode(), d.push({ type: 2, index: ++c });
72
- a.append(b[s], No());
66
+ if (Oe.test(a.tagName)) {
67
+ const u = a.textContent.split(lo), h = u.length - 1;
68
+ if (h > 0) {
69
+ a.textContent = Mo ? Mo.emptyScript : "";
70
+ for (let g = 0; g < h; g++)
71
+ a.append(u[g], sr()), _o.nextNode(), n.push({ type: 2, index: ++c });
72
+ a.append(u[h], sr());
73
73
  }
74
74
  }
75
75
  } else if (a.nodeType === 8)
76
- if (a.data === qr)
77
- d.push({ type: 2, index: c });
76
+ if (a.data === oe)
77
+ n.push({ type: 2, index: c });
78
78
  else {
79
- let b = -1;
80
- for (; (b = a.data.indexOf(P, b + 1)) !== -1; )
81
- d.push({ type: 7, index: c }), b += P.length - 1;
79
+ let u = -1;
80
+ for (; (u = a.data.indexOf(lo, u + 1)) !== -1; )
81
+ n.push({ type: 7, index: c }), u += lo.length - 1;
82
82
  }
83
83
  c++;
84
84
  }
85
85
  }
86
86
  static createElement(o, e) {
87
- const t = co.createElement("template");
87
+ const t = Xo.createElement("template");
88
88
  return t.innerHTML = o, t;
89
89
  }
90
90
  }
91
- function io(r, o, e = r, t) {
91
+ function Yo(r, o, e = r, t) {
92
92
  var a, c, i, l;
93
- if (o === V)
93
+ if (o === ho)
94
94
  return o;
95
- let d = t !== void 0 ? (a = e._$Co) === null || a === void 0 ? void 0 : a[t] : e._$Cl;
96
- const n = yo(o) ? void 0 : o._$litDirective$;
97
- return (d == null ? void 0 : d.constructor) !== n && ((c = d == null ? void 0 : d._$AO) === null || c === void 0 || c.call(d, !1), n === void 0 ? d = void 0 : (d = new n(r), d._$AT(r, e, t)), t !== void 0 ? ((i = (l = e)._$Co) !== null && i !== void 0 ? i : l._$Co = [])[t] = d : e._$Cl = d), d !== void 0 && (o = io(r, d._$AS(r, o.values), d, t)), o;
95
+ let n = t !== void 0 ? (a = e._$Co) === null || a === void 0 ? void 0 : a[t] : e._$Cl;
96
+ const b = Ho(o) ? void 0 : o._$litDirective$;
97
+ return (n == null ? void 0 : n.constructor) !== b && ((c = n == null ? void 0 : n._$AO) === null || c === void 0 || c.call(n, !1), b === void 0 ? n = void 0 : (n = new b(r), n._$AT(r, e, t)), t !== void 0 ? ((i = (l = e)._$Co) !== null && i !== void 0 ? i : l._$Co = [])[t] = n : e._$Cl = n), n !== void 0 && (o = Yo(r, n._$AS(r, o.values), n, t)), o;
98
98
  }
99
- class le {
99
+ class De {
100
100
  constructor(o, e) {
101
101
  this._$AV = [], this._$AN = void 0, this._$AD = o, this._$AM = e;
102
102
  }
@@ -108,17 +108,17 @@ class le {
108
108
  }
109
109
  u(o) {
110
110
  var e;
111
- const { el: { content: t }, parts: a } = this._$AD, c = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e : co).importNode(t, !0);
112
- to.currentNode = c;
113
- let i = to.nextNode(), l = 0, d = 0, n = a[0];
114
- for (; n !== void 0; ) {
115
- if (l === n.index) {
116
- let g;
117
- n.type === 2 ? g = new _r(i, i.nextSibling, this, o) : n.type === 1 ? g = new n.ctor(i, n.name, n.strings, this, o) : n.type === 6 && (g = new se(i, this, o)), this._$AV.push(g), n = a[++d];
111
+ const { el: { content: t }, parts: a } = this._$AD, c = ((e = o == null ? void 0 : o.creationScope) !== null && e !== void 0 ? e : Xo).importNode(t, !0);
112
+ _o.currentNode = c;
113
+ let i = _o.nextNode(), l = 0, n = 0, b = a[0];
114
+ for (; b !== void 0; ) {
115
+ if (l === b.index) {
116
+ let v;
117
+ b.type === 2 ? v = new re(i, i.nextSibling, this, o) : b.type === 1 ? v = new b.ctor(i, b.name, b.strings, this, o) : b.type === 6 && (v = new Qe(i, this, o)), this._$AV.push(v), b = a[++n];
118
118
  }
119
- l !== (n == null ? void 0 : n.index) && (i = to.nextNode(), l++);
119
+ l !== (b == null ? void 0 : b.index) && (i = _o.nextNode(), l++);
120
120
  }
121
- return to.currentNode = co, c;
121
+ return _o.currentNode = Xo, c;
122
122
  }
123
123
  v(o) {
124
124
  let e = 0;
@@ -126,10 +126,10 @@ class le {
126
126
  t !== void 0 && (t.strings !== void 0 ? (t._$AI(o, t, e), e += t.strings.length - 2) : t._$AI(o[e])), e++;
127
127
  }
128
128
  }
129
- let _r = class de {
129
+ let re = class Re {
130
130
  constructor(o, e, t, a) {
131
131
  var c;
132
- this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = o, this._$AB = e, this._$AM = t, this.options = a, this._$Cp = (c = a == null ? void 0 : a.isConnected) === null || c === void 0 || c;
132
+ this.type = 2, this._$AH = N, this._$AN = void 0, this._$AA = o, this._$AB = e, this._$AM = t, this.options = a, this._$Cp = (c = a == null ? void 0 : a.isConnected) === null || c === void 0 || c;
133
133
  }
134
134
  get _$AU() {
135
135
  var o, e;
@@ -147,7 +147,7 @@ let _r = class de {
147
147
  return this._$AB;
148
148
  }
149
149
  _$AI(o, e = this) {
150
- o = io(this, o, e), yo(o) ? o === _ || o == null || o === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : o !== this._$AH && o !== V && this._(o) : o._$litType$ !== void 0 ? this.g(o) : o.nodeType !== void 0 ? this.$(o) : te(o) ? this.T(o) : this._(o);
150
+ o = Yo(this, o, e), Ho(o) ? o === N || o == null || o === "" ? (this._$AH !== N && this._$AR(), this._$AH = N) : o !== this._$AH && o !== ho && this._(o) : o._$litType$ !== void 0 ? this.g(o) : o.nodeType !== void 0 ? this.$(o) : Te(o) ? this.T(o) : this._(o);
151
151
  }
152
152
  k(o) {
153
153
  return this._$AA.parentNode.insertBefore(o, this._$AB);
@@ -156,28 +156,28 @@ let _r = class de {
156
156
  this._$AH !== o && (this._$AR(), this._$AH = this.k(o));
157
157
  }
158
158
  _(o) {
159
- this._$AH !== _ && yo(this._$AH) ? this._$AA.nextSibling.data = o : this.$(co.createTextNode(o)), this._$AH = o;
159
+ this._$AH !== N && Ho(this._$AH) ? this._$AA.nextSibling.data = o : this.$(Xo.createTextNode(o)), this._$AH = o;
160
160
  }
161
161
  g(o) {
162
162
  var e;
163
- const { values: t, _$litType$: a } = o, c = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el = zo.createElement(ce(a.h, a.h[0]), this.options)), a);
163
+ const { values: t, _$litType$: a } = o, c = typeof a == "number" ? this._$AC(o) : (a.el === void 0 && (a.el = Qo.createElement(Be(a.h, a.h[0]), this.options)), a);
164
164
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === c)
165
165
  this._$AH.v(t);
166
166
  else {
167
- const i = new le(c, this), l = i.u(this.options);
167
+ const i = new De(c, this), l = i.u(this.options);
168
168
  i.v(t), this.$(l), this._$AH = i;
169
169
  }
170
170
  }
171
171
  _$AC(o) {
172
- let e = Rr.get(o.strings);
173
- return e === void 0 && Rr.set(o.strings, e = new zo(o)), e;
172
+ let e = he.get(o.strings);
173
+ return e === void 0 && he.set(o.strings, e = new Qo(o)), e;
174
174
  }
175
175
  T(o) {
176
- ee(this._$AH) || (this._$AH = [], this._$AR());
176
+ Me(this._$AH) || (this._$AH = [], this._$AR());
177
177
  const e = this._$AH;
178
178
  let t, a = 0;
179
179
  for (const c of o)
180
- a === e.length ? e.push(t = new de(this.k(No()), this.k(No()), this, this.options)) : t = e[a], t._$AI(c), a++;
180
+ a === e.length ? e.push(t = new Re(this.k(sr()), this.k(sr()), this, this.options)) : t = e[a], t._$AI(c), a++;
181
181
  a < e.length && (this._$AR(t && t._$AB.nextSibling, a), e.length = a);
182
182
  }
183
183
  _$AR(o = this._$AA.nextSibling, e) {
@@ -192,9 +192,9 @@ let _r = class de {
192
192
  this._$AM === void 0 && (this._$Cp = o, (e = this._$AP) === null || e === void 0 || e.call(this, o));
193
193
  }
194
194
  };
195
- class Yo {
195
+ class Jo {
196
196
  constructor(o, e, t, a, c) {
197
- this.type = 1, this._$AH = _, this._$AN = void 0, this.element = o, this.name = e, this._$AM = a, this.options = c, t.length > 2 || t[0] !== "" || t[1] !== "" ? (this._$AH = Array(t.length - 1).fill(new String()), this.strings = t) : this._$AH = _;
197
+ this.type = 1, this._$AH = N, this._$AN = void 0, this.element = o, this.name = e, this._$AM = a, this.options = c, t.length > 2 || t[0] !== "" || t[1] !== "" ? (this._$AH = Array(t.length - 1).fill(new String()), this.strings = t) : this._$AH = N;
198
198
  }
199
199
  get tagName() {
200
200
  return this.element.tagName;
@@ -206,44 +206,44 @@ class Yo {
206
206
  const c = this.strings;
207
207
  let i = !1;
208
208
  if (c === void 0)
209
- o = io(this, o, e, 0), i = !yo(o) || o !== this._$AH && o !== V, i && (this._$AH = o);
209
+ o = Yo(this, o, e, 0), i = !Ho(o) || o !== this._$AH && o !== ho, i && (this._$AH = o);
210
210
  else {
211
211
  const l = o;
212
- let d, n;
213
- for (o = c[0], d = 0; d < c.length - 1; d++)
214
- n = io(this, l[t + d], e, d), n === V && (n = this._$AH[d]), i || (i = !yo(n) || n !== this._$AH[d]), n === _ ? o = _ : o !== _ && (o += (n ?? "") + c[d + 1]), this._$AH[d] = n;
212
+ let n, b;
213
+ for (o = c[0], n = 0; n < c.length - 1; n++)
214
+ b = Yo(this, l[t + n], e, n), b === ho && (b = this._$AH[n]), i || (i = !Ho(b) || b !== this._$AH[n]), b === N ? o = N : o !== N && (o += (b ?? "") + c[n + 1]), this._$AH[n] = b;
215
215
  }
216
216
  i && !a && this.j(o);
217
217
  }
218
218
  j(o) {
219
- o === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, o ?? "");
219
+ o === N ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, o ?? "");
220
220
  }
221
221
  }
222
- let ne = class extends Yo {
222
+ let Pe = class extends Jo {
223
223
  constructor() {
224
224
  super(...arguments), this.type = 3;
225
225
  }
226
226
  j(o) {
227
- this.element[this.name] = o === _ ? void 0 : o;
227
+ this.element[this.name] = o === N ? void 0 : o;
228
228
  }
229
229
  };
230
- const Ne = vo ? vo.emptyScript : "";
231
- let be = class extends Yo {
230
+ const Zt = Mo ? Mo.emptyScript : "";
231
+ let Ie = class extends Jo {
232
232
  constructor() {
233
233
  super(...arguments), this.type = 4;
234
234
  }
235
235
  j(o) {
236
- o && o !== _ ? this.element.setAttribute(this.name, Ne) : this.element.removeAttribute(this.name);
236
+ o && o !== N ? this.element.setAttribute(this.name, Zt) : this.element.removeAttribute(this.name);
237
237
  }
238
- }, ge = class extends Yo {
238
+ }, He = class extends Jo {
239
239
  constructor(o, e, t, a, c) {
240
240
  super(o, e, t, a, c), this.type = 5;
241
241
  }
242
242
  _$AI(o, e = this) {
243
243
  var t;
244
- if ((o = (t = io(this, o, e, 0)) !== null && t !== void 0 ? t : _) === V)
244
+ if ((o = (t = Yo(this, o, e, 0)) !== null && t !== void 0 ? t : N) === ho)
245
245
  return;
246
- const a = this._$AH, c = o === _ && a !== _ || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, i = o !== _ && (a === _ || c);
246
+ const a = this._$AH, c = o === N && a !== N || o.capture !== a.capture || o.once !== a.once || o.passive !== a.passive, i = o !== N && (a === N || c);
247
247
  c && this.element.removeEventListener(this.name, this, a), i && this.element.addEventListener(this.name, this, o), this._$AH = o;
248
248
  }
249
249
  handleEvent(o) {
@@ -251,7 +251,7 @@ let be = class extends Yo {
251
251
  typeof this._$AH == "function" ? this._$AH.call((t = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && t !== void 0 ? t : this.element, o) : this._$AH.handleEvent(o);
252
252
  }
253
253
  };
254
- class se {
254
+ class Qe {
255
255
  constructor(o, e, t) {
256
256
  this.element = o, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = t;
257
257
  }
@@ -259,17 +259,17 @@ class se {
259
259
  return this._$AM._$AU;
260
260
  }
261
261
  _$AI(o) {
262
- io(this, o);
262
+ Yo(this, o);
263
263
  }
264
264
  }
265
- const Ie = { O: Do, P, A: qr, C: 1, M: ie, L: le, D: te, R: io, I: _r, V: Yo, H: be, N: ge, U: ne, F: se }, Dr = Ro.litHtmlPolyfillSupport;
266
- Dr == null || Dr(zo, _r), ((rr = Ro.litHtmlVersions) !== null && rr !== void 0 ? rr : Ro.litHtmlVersions = []).push("2.7.5");
265
+ const St = { O: br, P: lo, A: oe, C: 1, M: Ne, L: De, D: Te, R: Yo, I: re, V: Jo, H: Ie, N: He, U: Pe, F: Qe }, pe = nr.litHtmlPolyfillSupport;
266
+ pe == null || pe(Qo, re), ((Xr = nr.litHtmlVersions) !== null && Xr !== void 0 ? Xr : nr.litHtmlVersions = []).push("2.7.5");
267
267
  /**
268
268
  * @license
269
269
  * Copyright 2018 Google LLC
270
270
  * SPDX-License-Identifier: BSD-3-Clause
271
271
  */
272
- const q = (r) => r ?? _, I = {
272
+ const B = (r) => r ?? N, io = {
273
273
  base: "border-2 relative",
274
274
  tooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",
275
275
  callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
@@ -284,7 +284,7 @@ const q = (r) => r ?? _, I = {
284
284
  arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background",
285
285
  content: "last-child:mb-0",
286
286
  notCallout: "absolute z-50"
287
- }, oo = {
287
+ }, $o = {
288
288
  base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
289
289
  neutral: "i-bg-$color-badge-neutral-background i-text-$color-badge-neutral-text",
290
290
  info: "i-bg-$color-badge-info-background i-text-$color-badge-info-text",
@@ -299,7 +299,7 @@ const q = (r) => r ?? _, I = {
299
299
  positionTR: "rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0",
300
300
  positionBR: "rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0",
301
301
  positionBL: "rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0"
302
- }, H = {
302
+ }, no = {
303
303
  box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
304
304
  // Relative here enables w-clickable
305
305
  bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",
@@ -310,7 +310,7 @@ const q = (r) => r ?? _, I = {
310
310
  infoClickable: "hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",
311
311
  neutralClickable: "hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",
312
312
  borderedClickable: "hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"
313
- }, D = {
313
+ }, eo = {
314
314
  card: "cursor-pointer overflow-hidden relative transition-all",
315
315
  cardShadow: "rounded-8 i-shadow-$shadow-card hover:i-shadow-$shadow-card-hover hover:i-bg-$color-card-background-hover tap-highlight-transparent",
316
316
  cardFlat: "border-2 rounded-4",
@@ -321,11 +321,11 @@ const q = (r) => r ?? _, I = {
321
321
  cardOutlineUnselected: "i-border-$color-card-border",
322
322
  cardOutlineSelected: "i-border-$color-card-border-selected hover:i-border-$color-card-border-selected-hover",
323
323
  a11y: "sr-only"
324
- }, tr = {
324
+ }, jr = {
325
325
  container: "fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
326
326
  content: "w-full",
327
327
  toaster: "grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
328
- }, B = {
328
+ }, K = {
329
329
  wrapper: "relative overflow-hidden w-full",
330
330
  toast: "flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
331
331
  positive: "i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",
@@ -338,23 +338,23 @@ const q = (r) => r ?? _, I = {
338
338
  iconLoading: "animate-bounce",
339
339
  content: "self-center mr-8 py-4 last-child:mb-0",
340
340
  close: "bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"
341
- }, Pe = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", L = {
341
+ }, At = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", U = {
342
342
  expandable: "will-change-height",
343
343
  expandableTitle: "font-bold i-text-$color-expandable-title-text",
344
- expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + H.box,
345
- expandableBleed: H.bleed,
344
+ expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + no.box,
345
+ expandableBleed: no.bleed,
346
346
  chevron: "inline-block align-middle transform transition-transform transform-gpu i-text-$color-expandable-icon",
347
347
  chevronNonBox: "relative left-8",
348
348
  chevronBox: "absolute right-16",
349
349
  chevronExpanded: "-rotate-180",
350
350
  expansion: "overflow-hidden",
351
351
  expansionNotExpanded: "h-0 invisible",
352
- button: Pe + " hover:underline focus:underline",
353
- buttonBox: "w-full text-left relative inline-flex items-center " + H.box,
352
+ button: At + " hover:underline focus:underline",
353
+ buttonBox: "w-full text-left relative inline-flex items-center " + no.box,
354
354
  paddingTop: "pt-0",
355
355
  title: "flex justify-between items-center",
356
356
  titleType: "h4"
357
- }, F = "font-bold focusable justify-center transition-colors ease-in-out", z = {
357
+ }, go = "font-bold focusable justify-center transition-colors ease-in-out", O = {
358
358
  primary: "i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",
359
359
  secondary: "i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
360
360
  utility: "i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",
@@ -366,14 +366,14 @@ const q = (r) => r ?? _, I = {
366
366
  negativeQuiet: "i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",
367
367
  loading: "i-text-$color-button-loading-text i-bg-$color-button-loading-background",
368
368
  link: "i-text-$color-button-link-text"
369
- }, $ = {
370
- primary: `border-0 rounded-8 ${F}`,
371
- secondary: `border-2 rounded-8 ${F}`,
372
- utility: `border rounded-4 ${F}`,
373
- negative: `border-0 rounded-8 ${F}`,
374
- pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${F}`,
375
- link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${z.link}`
376
- }, p = {
369
+ }, S = {
370
+ primary: `border-0 rounded-8 ${go}`,
371
+ secondary: `border-2 rounded-8 ${go}`,
372
+ utility: `border rounded-4 ${go}`,
373
+ negative: `border-0 rounded-8 ${go}`,
374
+ pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${go}`,
375
+ link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${O.link}`
376
+ }, k = {
377
377
  xsmall: "py-6 px-16",
378
378
  small: "py-8 px-16",
379
379
  medium: "py-10 px-14",
@@ -383,86 +383,86 @@ const q = (r) => r ?? _, I = {
383
383
  pill: "min-h-[44px] min-w-[44px]",
384
384
  pillSmall: "min-h-32 min-w-32",
385
385
  linkSmall: "p-0"
386
- }, h = {
386
+ }, $ = {
387
387
  medium: "text-m leading-[24]",
388
388
  xsmall: "text-xs"
389
- }, u = {
390
- inProgress: `border-transparent animate-inprogress pointer-events-none ${z.loading}`,
389
+ }, m = {
390
+ inProgress: `border-transparent animate-inprogress pointer-events-none ${O.loading}`,
391
391
  // .button--in-progress, a.button--in-progress:visited
392
- quiet: `border-0 rounded-8 ${F}`,
393
- utilityQuiet: `border-0 rounded-4 ${F}`,
394
- negativeQuiet: `border-0 rounded-8 ${F}`,
395
- isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${z.disabled}`
392
+ quiet: `border-0 rounded-8 ${go}`,
393
+ utilityQuiet: `border-0 rounded-4 ${go}`,
394
+ negativeQuiet: `border-0 rounded-8 ${go}`,
395
+ isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${O.disabled}`
396
396
  // .button:disabled, .button--is-disabled
397
- }, k = {
397
+ }, X = {
398
398
  // Buttontypes
399
- secondary: `${p.medium} ${h.medium} ${$.secondary} ${z.secondary}`,
399
+ secondary: `${k.medium} ${$.medium} ${S.secondary} ${O.secondary}`,
400
400
  // .button--secondary, .button--default, .button
401
- secondaryHref: `${p.medium} ${h.medium} ${$.secondary} ${z.secondary}`,
402
- secondaryDisabled: `${p.medium} ${h.medium} ${$.secondary} ${u.isDisabled}`,
403
- secondarySmall: `${h.xsmall} ${p.xsmall} ${$.secondary} ${z.secondary}`,
404
- secondarySmallDisabled: `${h.xsmall} ${p.xsmall} ${$.secondary} ${u.isDisabled}`,
405
- secondaryQuiet: `${p.medium} ${h.medium} ${u.quiet} ${z.quiet}`,
406
- secondaryQuietDisabled: `${p.medium} ${h.medium} ${u.quiet} ${u.isDisabled}`,
407
- secondarySmallQuiet: `${h.xsmall} ${p.xsmall} ${u.quiet} ${z.quiet}`,
408
- secondarySmallQuietDisabled: `${h.xsmall} ${p.xsmall} ${u.quiet} ${u.isDisabled}`,
409
- secondaryLoading: `${p.medium} ${h.medium} ${$.secondary} ${u.inProgress}`,
410
- secondarySmallLoading: `${h.xsmall} ${p.xsmall} ${$.secondary} ${u.inProgress}`,
411
- secondarySmallQuietLoading: `${h.xsmall} ${p.xsmall} ${u.quiet} ${u.inProgress}`,
412
- secondaryQuietLoading: `${p.medium} ${h.medium} ${u.quiet} ${u.inProgress}`,
413
- primary: `${p.large} ${h.medium} ${$.primary} ${z.primary}`,
401
+ secondaryHref: `${k.medium} ${$.medium} ${S.secondary} ${O.secondary}`,
402
+ secondaryDisabled: `${k.medium} ${$.medium} ${S.secondary} ${m.isDisabled}`,
403
+ secondarySmall: `${$.xsmall} ${k.xsmall} ${S.secondary} ${O.secondary}`,
404
+ secondarySmallDisabled: `${$.xsmall} ${k.xsmall} ${S.secondary} ${m.isDisabled}`,
405
+ secondaryQuiet: `${k.medium} ${$.medium} ${m.quiet} ${O.quiet}`,
406
+ secondaryQuietDisabled: `${k.medium} ${$.medium} ${m.quiet} ${m.isDisabled}`,
407
+ secondarySmallQuiet: `${$.xsmall} ${k.xsmall} ${m.quiet} ${O.quiet}`,
408
+ secondarySmallQuietDisabled: `${$.xsmall} ${k.xsmall} ${m.quiet} ${m.isDisabled}`,
409
+ secondaryLoading: `${k.medium} ${$.medium} ${S.secondary} ${m.inProgress}`,
410
+ secondarySmallLoading: `${$.xsmall} ${k.xsmall} ${S.secondary} ${m.inProgress}`,
411
+ secondarySmallQuietLoading: `${$.xsmall} ${k.xsmall} ${m.quiet} ${m.inProgress}`,
412
+ secondaryQuietLoading: `${k.medium} ${$.medium} ${m.quiet} ${m.inProgress}`,
413
+ primary: `${k.large} ${$.medium} ${S.primary} ${O.primary}`,
414
414
  // .button--primary, .button--cta
415
- primaryDisabled: `${p.large} ${h.medium} ${u.isDisabled} ${$.primary}`,
416
- primarySmall: `${p.small} ${h.xsmall} ${$.primary} ${z.primary}`,
417
- primarySmallDisabled: `${p.small} ${h.xsmall} ${u.isDisabled} ${$.primary} `,
418
- primaryQuiet: `${p.large} ${h.medium} ${u.quiet} ${z.quiet}`,
419
- primaryQuietDisabled: `${p.large} ${h.medium} ${u.quiet} ${u.isDisabled}`,
420
- primarySmallQuiet: `${p.small} ${h.xsmall} ${u.quiet} ${z.quiet}`,
421
- primarySmallQuietDisabled: `${p.small} ${h.xsmall} ${u.quiet} ${u.isDisabled}`,
422
- primaryLoading: `${p.large} ${h.medium} ${u.inProgress} ${$.primary}`,
423
- primarySmallLoading: `${p.small} ${h.xsmall} ${u.inProgress} ${$.primary}`,
424
- primarySmallQuietLoading: `${p.small} ${h.xsmall} ${u.quiet} ${u.inProgress} ${$.primary}`,
425
- primaryQuietLoading: `${p.large} ${h.medium} ${u.quiet} ${u.inProgress}`,
426
- utility: `${p.utility} ${h.medium} ${$.utility} ${z.utility}`,
415
+ primaryDisabled: `${k.large} ${$.medium} ${m.isDisabled} ${S.primary}`,
416
+ primarySmall: `${k.small} ${$.xsmall} ${S.primary} ${O.primary}`,
417
+ primarySmallDisabled: `${k.small} ${$.xsmall} ${m.isDisabled} ${S.primary} `,
418
+ primaryQuiet: `${k.large} ${$.medium} ${m.quiet} ${O.quiet}`,
419
+ primaryQuietDisabled: `${k.large} ${$.medium} ${m.quiet} ${m.isDisabled}`,
420
+ primarySmallQuiet: `${k.small} ${$.xsmall} ${m.quiet} ${O.quiet}`,
421
+ primarySmallQuietDisabled: `${k.small} ${$.xsmall} ${m.quiet} ${m.isDisabled}`,
422
+ primaryLoading: `${k.large} ${$.medium} ${m.inProgress} ${S.primary}`,
423
+ primarySmallLoading: `${k.small} ${$.xsmall} ${m.inProgress} ${S.primary}`,
424
+ primarySmallQuietLoading: `${k.small} ${$.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,
425
+ primaryQuietLoading: `${k.large} ${$.medium} ${m.quiet} ${m.inProgress}`,
426
+ utility: `${k.utility} ${$.medium} ${S.utility} ${O.utility}`,
427
427
  // .button--utility
428
- utilityDisabled: `${p.utility} ${h.medium} ${$.utility} ${u.isDisabled}`,
429
- utilityQuiet: `${p.large} ${h.medium} ${u.utilityQuiet} ${z.utilityQuiet}`,
428
+ utilityDisabled: `${k.utility} ${$.medium} ${S.utility} ${m.isDisabled}`,
429
+ utilityQuiet: `${k.large} ${$.medium} ${m.utilityQuiet} ${O.utilityQuiet}`,
430
430
  // .button--utility-flat
431
- utilityQuietDisabled: `${p.large} ${h.medium} ${u.utilityQuiet} ${u.isDisabled}`,
432
- utilitySmall: `${p.smallUtility} ${h.xsmall} ${$.utility} ${z.utility}`,
433
- utilitySmallDisabled: `${p.smallUtility} ${h.xsmall} ${$.utility} ${u.isDisabled}`,
434
- utilitySmallQuiet: `${p.smallUtility} ${h.xsmall} ${u.utilityQuiet} ${z.utilityQuiet}`,
435
- utilitySmallQuietDisabled: `${p.smallUtility} ${h.xsmall} ${u.utilityQuiet} ${u.isDisabled}`,
436
- utilityLoading: `${p.large} ${h.medium} ${$.utility} ${u.inProgress}`,
437
- utilitySmallLoading: `${p.smallUtility} ${h.xsmall} ${$.utility} ${u.inProgress}`,
438
- utilityQuietLoading: `${p.large} ${h.medium} ${u.inProgress} ${u.utilityQuiet}`,
439
- utilitySmallQuietLoading: `${p.smallUtility} ${h.xsmall} ${u.inProgress} ${u.utilityQuiet}`,
440
- negative: `${p.large} ${h.medium} ${$.negative} ${z.destructive}`,
431
+ utilityQuietDisabled: `${k.large} ${$.medium} ${m.utilityQuiet} ${m.isDisabled}`,
432
+ utilitySmall: `${k.smallUtility} ${$.xsmall} ${S.utility} ${O.utility}`,
433
+ utilitySmallDisabled: `${k.smallUtility} ${$.xsmall} ${S.utility} ${m.isDisabled}`,
434
+ utilitySmallQuiet: `${k.smallUtility} ${$.xsmall} ${m.utilityQuiet} ${O.utilityQuiet}`,
435
+ utilitySmallQuietDisabled: `${k.smallUtility} ${$.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,
436
+ utilityLoading: `${k.large} ${$.medium} ${S.utility} ${m.inProgress}`,
437
+ utilitySmallLoading: `${k.smallUtility} ${$.xsmall} ${S.utility} ${m.inProgress}`,
438
+ utilityQuietLoading: `${k.large} ${$.medium} ${m.inProgress} ${m.utilityQuiet}`,
439
+ utilitySmallQuietLoading: `${k.smallUtility} ${$.xsmall} ${m.inProgress} ${m.utilityQuiet}`,
440
+ negative: `${k.large} ${$.medium} ${S.negative} ${O.destructive}`,
441
441
  // .button--destructive
442
- negativeDisabled: `${p.large} ${h.medium} ${$.negative} ${u.isDisabled}`,
443
- negativeQuiet: `${p.large} ${h.medium} ${u.negativeQuiet} ${z.negativeQuiet}`,
442
+ negativeDisabled: `${k.large} ${$.medium} ${S.negative} ${m.isDisabled}`,
443
+ negativeQuiet: `${k.large} ${$.medium} ${m.negativeQuiet} ${O.negativeQuiet}`,
444
444
  // .button--destructive-flat
445
- negativeQuietDisabled: `${p.large} ${h.medium} ${u.negativeQuiet}${u.isDisabled}`,
446
- negativeSmall: `${p.small} ${h.xsmall} ${$.negative} ${z.destructive}`,
447
- negativeSmallDisabled: `${p.small} ${h.xsmall} ${$.negative} ${u.isDisabled}`,
448
- negativeSmallQuiet: `${p.small} ${h.xsmall} ${u.negativeQuiet} ${z.negativeQuiet}`,
449
- negativeSmallQuietDisabled: `${p.small} ${h.xsmall} ${u.negativeQuiet} ${u.isDisabled}`,
450
- negativeLoading: `${p.large} ${h.medium} ${$.negative} ${u.inProgress}`,
451
- negativeSmallLoading: `${p.small} ${h.xsmall} ${u.inProgress} ${$.negative}`,
452
- negativeQuietLoading: `${p.large} ${h.medium} ${u.negativeQuiet} ${$.negative} ${u.inProgress}`,
453
- negativeSmallQuietLoading: `${p.small} ${h.xsmall} ${u.negativeQuiet} ${u.inProgress}`,
454
- pill: `${p.pill} ${h.medium} ${$.pill} ${z.pill}`,
445
+ negativeQuietDisabled: `${k.large} ${$.medium} ${m.negativeQuiet}${m.isDisabled}`,
446
+ negativeSmall: `${k.small} ${$.xsmall} ${S.negative} ${O.destructive}`,
447
+ negativeSmallDisabled: `${k.small} ${$.xsmall} ${S.negative} ${m.isDisabled}`,
448
+ negativeSmallQuiet: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${O.negativeQuiet}`,
449
+ negativeSmallQuietDisabled: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,
450
+ negativeLoading: `${k.large} ${$.medium} ${S.negative} ${m.inProgress}`,
451
+ negativeSmallLoading: `${k.small} ${$.xsmall} ${m.inProgress} ${S.negative}`,
452
+ negativeQuietLoading: `${k.large} ${$.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,
453
+ negativeSmallQuietLoading: `${k.small} ${$.xsmall} ${m.negativeQuiet} ${m.inProgress}`,
454
+ pill: `${k.pill} ${$.medium} ${S.pill} ${O.pill}`,
455
455
  // .button--pill
456
- pillSmall: `${p.pillSmall} ${h.xsmall} ${$.pill} ${z.pill}`,
457
- pillLoading: `${p.pill} ${h.medium} ${$.pill} ${u.inProgress}`,
458
- pillSmallLoading: `${p.pillSmall} ${h.xsmall} ${$.pill} ${u.inProgress}`,
459
- link: `${p.medium} ${h.medium} ${$.link}`,
460
- linkSmall: `${p.linkSmall} ${h.xsmall} ${$.link}`,
456
+ pillSmall: `${k.pillSmall} ${$.xsmall} ${S.pill} ${O.pill}`,
457
+ pillLoading: `${k.pill} ${$.medium} ${S.pill} ${m.inProgress}`,
458
+ pillSmallLoading: `${k.pillSmall} ${$.xsmall} ${S.pill} ${m.inProgress}`,
459
+ link: `${k.medium} ${$.medium} ${S.link}`,
460
+ linkSmall: `${k.linkSmall} ${$.xsmall} ${S.link}`,
461
461
  linkAsButton: "inline-block hover:no-underline",
462
462
  a11y: "sr-only",
463
463
  fullWidth: "w-full max-w-full",
464
464
  contentWidth: "max-w-max"
465
- }, mo = {
465
+ }, Do = {
466
466
  alert: "flex p-16 border border-l-4 rounded-4",
467
467
  willChangeHeight: "will-change-height",
468
468
  textWrapper: "last-child:mb-0 text-s",
@@ -476,7 +476,7 @@ const q = (r) => r ?? _, I = {
476
476
  warningIcon: "i-text-$color-alert-warning-icon",
477
477
  info: "i-border-$color-alert-info-subtle-border i-bg-$color-alert-info-background i-text-$color-alert-info-text i-border-l-$color-alert-info-border",
478
478
  infoIcon: "i-text-$color-alert-info-icon"
479
- }, ro = {
479
+ }, yo = {
480
480
  default: "block text-m mb-0 leading-m i-text-$color-input-text-filled i-bg-$color-input-background i-border-$color-input-border hover:i-border-$color-input-border-hover active:i-border-$color-input-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] caret-current",
481
481
  textArea: "min-h-[42] sm:min-h-[45]",
482
482
  disabled: "i-bg-$color-input-background-disabled i-border-$color-input-border-disabled hover:i-border-$color-input-border-disabled! i-text-$color-input-text-disabled pointer-events-none",
@@ -486,7 +486,7 @@ const q = (r) => r ?? _, I = {
486
486
  wrapper: "relative",
487
487
  suffix: "pr-40",
488
488
  prefix: "pl-40"
489
- }, bo = {
489
+ }, So = {
490
490
  default: "block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",
491
491
  disabled: "i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",
492
492
  invalid: "i-border-$color-select-border-negative",
@@ -495,31 +495,31 @@ const q = (r) => r ?? _, I = {
495
495
  selectWrapper: "relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",
496
496
  chevron: "absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",
497
497
  chevronDisabled: "opacity-25"
498
- }, fo = {
498
+ }, Po = {
499
499
  label: "antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",
500
500
  labelInvalid: "i-text-$color-label-text-negative",
501
501
  optional: "pl-8 font-normal text-s i-text-$color-label-optional-text"
502
- }, Io = {
502
+ }, gr = {
503
503
  helpText: "text-xs mt-4 block i-text-$color-helptext-text",
504
504
  helpTextValid: "i-text-$color-helptext-text-positive",
505
505
  helpTextInvalid: "i-text-$color-helptext-text-negative"
506
- }, ue = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ", He = {
507
- wrapper: ue + "right-0",
506
+ }, Ue = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ", Et = {
507
+ wrapper: Ue + "right-0",
508
508
  wrapperWithLabel: "w-max pr-12",
509
509
  wrapperWithIcon: "w-40",
510
510
  label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
511
- }, Qe = {
512
- wrapper: ue + "left-0",
511
+ }, Ct = {
512
+ wrapper: Ue + "left-0",
513
513
  wrapperWithLabel: "w-max pl-12",
514
514
  wrapperWithIcon: "w-40",
515
515
  label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
516
- }, go = {
516
+ }, Eo = {
517
517
  wrapper: "flex space-x-8",
518
518
  text: "i-text-$color-breadcrumbs-text",
519
519
  link: "i-text-$color-breadcrumbs-link-text",
520
520
  separator: "select-none i-text-$color-breadcrumbs-icon",
521
521
  a11y: "sr-only"
522
- }, Oe = v`
522
+ }, Lt = f`
523
523
  <svg
524
524
  role="img"
525
525
  aria-label="X"
@@ -536,7 +536,7 @@ const q = (r) => r ?? _, I = {
536
536
  clipRule="evenodd"
537
537
  />
538
538
  </svg>
539
- `, Fe = v`
539
+ `, Mt = f`
540
540
  <svg
541
541
  role="img"
542
542
  aria-label="Forstørrelsesglass"
@@ -567,8 +567,8 @@ const q = (r) => r ?? _, I = {
567
567
  * Copyright 2017 Google LLC
568
568
  * SPDX-License-Identifier: BSD-3-Clause
569
569
  */
570
- const Xr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Yr = (r) => (...o) => ({ _$litDirective$: r, values: o });
571
- let jr = class {
570
+ const ee = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, te = (r) => (...o) => ({ _$litDirective$: r, values: o });
571
+ let ae = class {
572
572
  constructor(o) {
573
573
  }
574
574
  get _$AU() {
@@ -589,10 +589,10 @@ let jr = class {
589
589
  * Copyright 2018 Google LLC
590
590
  * SPDX-License-Identifier: BSD-3-Clause
591
591
  */
592
- const ve = Yr(class extends jr {
592
+ const Fe = te(class extends ae {
593
593
  constructor(r) {
594
594
  var o;
595
- if (super(r), r.type !== Xr.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
595
+ if (super(r), r.type !== ee.ATTRIBUTE || r.name !== "class" || ((o = r.strings) === null || o === void 0 ? void 0 : o.length) > 2)
596
596
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
597
597
  }
598
598
  render(r) {
@@ -614,62 +614,62 @@ const ve = Yr(class extends jr {
614
614
  const i = !!o[c];
615
615
  i === this.it.has(c) || !((t = this.nt) === null || t === void 0) && t.has(c) || (i ? (a.add(c), this.it.add(c)) : (a.remove(c), this.it.delete(c)));
616
616
  }
617
- return V;
617
+ return ho;
618
618
  }
619
- }), We = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
620
- function jo(r) {
619
+ }), Tt = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
620
+ function Ko(r) {
621
621
  return class extends r {
622
622
  static createProperty(o, e) {
623
623
  let t = e;
624
624
  (typeof (e == null ? void 0 : e.attribute) > "u" || (e == null ? void 0 : e.attribute) === !0) && (t = Object.assign({}, e, {
625
- attribute: We(o.toString())
625
+ attribute: Tt(o.toString())
626
626
  })), super.createProperty(o, t);
627
627
  }
628
628
  };
629
629
  }
630
- function ir(r) {
630
+ function Er(r) {
631
631
  const o = [];
632
632
  for (const [e, t] of Object.entries(r))
633
633
  t && o.push(e);
634
634
  return o.join(" ");
635
635
  }
636
- function E(r) {
636
+ function V(r) {
637
637
  const o = {};
638
638
  for (const [e, t] of Object.entries(r))
639
639
  for (const a of e.split(" "))
640
640
  o[a] = t;
641
- return ve(o);
641
+ return Fe(o);
642
642
  }
643
- function Ue() {
643
+ function Ot() {
644
644
  return `m${Math.random().toString(36).slice(2)}`;
645
645
  }
646
- class lr extends Y {
646
+ class Cr extends I {
647
647
  get _classBase() {
648
- return this.slot === "suffix" ? He : Qe;
648
+ return this.slot === "suffix" ? Et : Ct;
649
649
  }
650
650
  get _classes() {
651
- return E({
651
+ return V({
652
652
  [this._classBase.wrapper]: !0,
653
653
  [this._classBase.wrapperWithLabel]: this.label,
654
654
  [this._classBase.wrapperWithIcon]: !this.label
655
655
  });
656
656
  }
657
657
  get _searchButton() {
658
- return v`
659
- <button aria-label="${q(this.ariaLabel)}" class="${this._classes}" type="submit">
660
- ${Fe}
658
+ return f`
659
+ <button aria-label="${B(this.ariaLabel)}" class="${this._classes}" type="submit">
660
+ ${Mt}
661
661
  </button>
662
662
  `;
663
663
  }
664
664
  get _clearButton() {
665
- return v`
666
- <button aria-label="${q(this.ariaLabel)}" class="${this._classes}" type="reset">
667
- ${Oe}
665
+ return f`
666
+ <button aria-label="${B(this.ariaLabel)}" class="${this._classes}" type="reset">
667
+ ${Lt}
668
668
  </button>
669
669
  `;
670
670
  }
671
671
  get _text() {
672
- return v`
672
+ return f`
673
673
  <div class="${this._classes}">
674
674
  <span class="${this._classBase.label}">${this.label}</span>
675
675
  </div>
@@ -684,10 +684,10 @@ class lr extends Y {
684
684
  return this._clearButton;
685
685
  }
686
686
  render() {
687
- return v`${this._markup}`;
687
+ return f`${this._markup}`;
688
688
  }
689
689
  }
690
- f(lr, "styles", A`
690
+ Z(Cr, "styles", Q`
691
691
  /* layer: preflights */
692
692
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
693
693
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -1336,14 +1336,14 @@ f(lr, "styles", A`
1336
1336
  .sm\\:pb-32{padding-bottom:3.2rem;}
1337
1337
  .sm\\:pt-32{padding-top:3.2rem;}
1338
1338
  }
1339
- `), f(lr, "properties", {
1339
+ `), Z(Cr, "properties", {
1340
1340
  ariaLabel: { type: String, attribute: "aria-label" },
1341
1341
  clear: { type: Boolean },
1342
1342
  search: { type: Boolean },
1343
1343
  label: { type: String }
1344
1344
  });
1345
- customElements.get("w-affix") || customElements.define("w-affix", lr);
1346
- const Ve = () => v`<svg
1345
+ customElements.get("w-affix") || customElements.define("w-affix", Cr);
1346
+ const Bt = () => f`<svg
1347
1347
  aria-label="Rødt utropstegn"
1348
1348
  role="img"
1349
1349
  xmlns="http://www.w3.org/2000/svg"
@@ -1351,8 +1351,8 @@ const Ve = () => v`<svg
1351
1351
  height="16"
1352
1352
  fill="none"
1353
1353
  >
1354
- ${ot}
1355
- </svg>`, Ge = () => v`<svg
1354
+ ${Pt}
1355
+ </svg>`, Nt = () => f`<svg
1356
1356
  aria-label="Grønt hake"
1357
1357
  role="img"
1358
1358
  width="16"
@@ -1360,8 +1360,8 @@ const Ve = () => v`<svg
1360
1360
  fill="none"
1361
1361
  xmlns="http://www.w3.org/2000/svg"
1362
1362
  >
1363
- ${rt}
1364
- </svg> `, Je = () => v`<svg
1363
+ ${It}
1364
+ </svg> `, Dt = () => f`<svg
1365
1365
  aria-label="Gult utropstegn"
1366
1366
  role="img"
1367
1367
  width="16"
@@ -1369,8 +1369,8 @@ const Ve = () => v`<svg
1369
1369
  fill="none"
1370
1370
  xmlns="http://www.w3.org/2000/svg"
1371
1371
  >
1372
- ${et}
1373
- </svg> `, Ke = () => v`<svg
1372
+ ${Ht}
1373
+ </svg> `, Rt = () => f`<svg
1374
1374
  aria-label="Info"
1375
1375
  role="img"
1376
1376
  width="16"
@@ -1378,8 +1378,8 @@ const Ve = () => v`<svg
1378
1378
  fill="none"
1379
1379
  xmlns="http://www.w3.org/2000/svg"
1380
1380
  >
1381
- ${tt}
1382
- </svg>`, ot = G`<path
1381
+ ${Qt}
1382
+ </svg>`, Pt = po`<path
1383
1383
  d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
1384
1384
  fill="currentColor"
1385
1385
  />
@@ -1389,13 +1389,13 @@ clip-rule="evenodd"
1389
1389
  d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
1390
1390
  fill="#fff"
1391
1391
  />
1392
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, rt = G`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
1392
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, It = po`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
1393
1393
  <path
1394
1394
  fill-rule="evenodd"
1395
1395
  clip-rule="evenodd"
1396
1396
  d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
1397
1397
  fill="#fff"
1398
- />`, et = G`<path
1398
+ />`, Ht = po`<path
1399
1399
  d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
1400
1400
  fill="currentColor"
1401
1401
  />
@@ -1405,61 +1405,61 @@ clip-rule="evenodd"
1405
1405
  d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
1406
1406
  fill="#fff"
1407
1407
  />
1408
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, tt = G`<circle cx="8" cy="8" r="8" fill="currentColor" />
1408
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Qt = po`<circle cx="8" cy="8" r="8" fill="currentColor" />
1409
1409
  <path
1410
1410
  fill-rule="evenodd"
1411
1411
  clip-rule="evenodd"
1412
1412
  d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
1413
1413
  fill="#fff"
1414
1414
  />`;
1415
- var W = function() {
1415
+ var uo = function() {
1416
1416
  for (var r = [], o = arguments.length; o--; )
1417
1417
  r[o] = arguments[o];
1418
1418
  return r.reduce(function(e, t) {
1419
- return e.concat(typeof t == "string" ? t : Array.isArray(t) ? W.apply(void 0, t) : typeof t == "object" && t ? Object.keys(t).map(function(a) {
1419
+ return e.concat(typeof t == "string" ? t : Array.isArray(t) ? uo.apply(void 0, t) : typeof t == "object" && t ? Object.keys(t).map(function(a) {
1420
1420
  return t[a] ? a : "";
1421
1421
  }) : "");
1422
1422
  }, []).join(" ");
1423
1423
  };
1424
- const Nr = {
1425
- negative: Ve(),
1426
- positive: Ge(),
1427
- warning: Je(),
1428
- info: Ke()
1424
+ const we = {
1425
+ negative: Bt(),
1426
+ positive: Nt(),
1427
+ warning: Dt(),
1428
+ info: Rt()
1429
1429
  };
1430
- class dr extends Y {
1430
+ class Lr extends I {
1431
1431
  constructor() {
1432
1432
  super(), this.show = !1, this.role = "alert";
1433
1433
  }
1434
1434
  connectedCallback() {
1435
- if (super.connectedCallback(), !this.variant || !Object.keys(Nr).includes(this.variant))
1435
+ if (super.connectedCallback(), !this.variant || !Object.keys(we).includes(this.variant))
1436
1436
  throw new Error(
1437
1437
  `Invalid "variant" attribute. Set its value to one of the following:
1438
1438
  negative, positive, warning, info.`
1439
1439
  );
1440
1440
  }
1441
1441
  get _wrapperClasses() {
1442
- return W({
1443
- [mo.alert]: !0,
1444
- [mo[this.variant]]: !0
1442
+ return uo({
1443
+ [Do.alert]: !0,
1444
+ [Do[this.variant]]: !0
1445
1445
  });
1446
1446
  }
1447
1447
  get _iconClasses() {
1448
- const o = mo[`${this.variant}Icon`];
1449
- return W({
1450
- [mo.icon]: !0,
1448
+ const o = Do[`${this.variant}Icon`];
1449
+ return uo({
1450
+ [Do.icon]: !0,
1451
1451
  [o]: !0
1452
1452
  });
1453
1453
  }
1454
1454
  get _icon() {
1455
- return this.variant ? Nr[this.variant] : {};
1455
+ return this.variant ? we[this.variant] : {};
1456
1456
  }
1457
1457
  render() {
1458
- return v`
1458
+ return f`
1459
1459
  <w-expand-transition ?show=${this.show}>
1460
1460
  <div role=${this.role} class=${this._wrapperClasses}>
1461
1461
  <div class=${this._iconClasses}>${this._icon}</div>
1462
- <div class=${mo.textWrapper}>
1462
+ <div class=${Do.textWrapper}>
1463
1463
  <slot></slot>
1464
1464
  </div>
1465
1465
  </div>
@@ -1467,7 +1467,7 @@ negative, positive, warning, info.`
1467
1467
  `;
1468
1468
  }
1469
1469
  }
1470
- f(dr, "properties", {
1470
+ Z(Lr, "properties", {
1471
1471
  variant: { type: String, reflect: !0 },
1472
1472
  show: { type: Boolean, reflect: !0 },
1473
1473
  role: { type: String, reflect: !0 }
@@ -1475,7 +1475,7 @@ f(dr, "properties", {
1475
1475
  // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
1476
1476
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
1477
1477
  // https://stackoverflow.com/a/61631668
1478
- f(dr, "styles", A`
1478
+ Z(Lr, "styles", Q`
1479
1479
  /* layer: preflights */
1480
1480
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
1481
1481
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -2135,310 +2135,310 @@ f(dr, "styles", A`
2135
2135
  margin-bottom: 0px !important;
2136
2136
  }
2137
2137
  `);
2138
- customElements.get("w-alert") || customElements.define("w-alert", dr);
2139
- function Zo(r) {
2138
+ customElements.get("w-alert") || customElements.define("w-alert", Lr);
2139
+ function or(r) {
2140
2140
  return r.split("-")[0];
2141
2141
  }
2142
- function Jo(r) {
2142
+ function zr(r) {
2143
2143
  return r.split("-")[1];
2144
2144
  }
2145
- function Ao(r) {
2146
- return ["top", "bottom"].includes(Zo(r)) ? "x" : "y";
2145
+ function rr(r) {
2146
+ return ["top", "bottom"].includes(or(r)) ? "x" : "y";
2147
2147
  }
2148
- function Zr(r) {
2148
+ function ce(r) {
2149
2149
  return r === "y" ? "height" : "width";
2150
2150
  }
2151
- function Ir(r, o, e) {
2151
+ function xe(r, o, e) {
2152
2152
  let { reference: t, floating: a } = r;
2153
- const c = t.x + t.width / 2 - a.width / 2, i = t.y + t.height / 2 - a.height / 2, l = Ao(o), d = Zr(l), n = t[d] / 2 - a[d] / 2, g = l === "x";
2154
- let b;
2155
- switch (Zo(o)) {
2153
+ const c = t.x + t.width / 2 - a.width / 2, i = t.y + t.height / 2 - a.height / 2, l = rr(o), n = ce(l), b = t[n] / 2 - a[n] / 2, v = l === "x";
2154
+ let u;
2155
+ switch (or(o)) {
2156
2156
  case "top":
2157
- b = { x: c, y: t.y - a.height };
2157
+ u = { x: c, y: t.y - a.height };
2158
2158
  break;
2159
2159
  case "bottom":
2160
- b = { x: c, y: t.y + t.height };
2160
+ u = { x: c, y: t.y + t.height };
2161
2161
  break;
2162
2162
  case "right":
2163
- b = { x: t.x + t.width, y: i };
2163
+ u = { x: t.x + t.width, y: i };
2164
2164
  break;
2165
2165
  case "left":
2166
- b = { x: t.x - a.width, y: i };
2166
+ u = { x: t.x - a.width, y: i };
2167
2167
  break;
2168
2168
  default:
2169
- b = { x: t.x, y: t.y };
2169
+ u = { x: t.x, y: t.y };
2170
2170
  }
2171
- switch (Jo(o)) {
2171
+ switch (zr(o)) {
2172
2172
  case "start":
2173
- b[l] -= n * (e && g ? -1 : 1);
2173
+ u[l] -= b * (e && v ? -1 : 1);
2174
2174
  break;
2175
2175
  case "end":
2176
- b[l] += n * (e && g ? -1 : 1);
2176
+ u[l] += b * (e && v ? -1 : 1);
2177
2177
  }
2178
- return b;
2178
+ return u;
2179
2179
  }
2180
- const at = async (r, o, e) => {
2180
+ const Ut = async (r, o, e) => {
2181
2181
  const { placement: t = "bottom", strategy: a = "absolute", middleware: c = [], platform: i } = e, l = await (i.isRTL == null ? void 0 : i.isRTL(o));
2182
- let d = await i.getElementRects({ reference: r, floating: o, strategy: a }), { x: n, y: g } = Ir(d, t, l), b = t, s = {}, w = 0;
2183
- for (let x = 0; x < c.length; x++) {
2184
- const { name: m, fn: y } = c[x], { x: X, y: j, data: C, reset: Z } = await y({ x: n, y: g, initialPlacement: t, placement: b, strategy: a, middlewareData: s, rects: d, platform: i, elements: { reference: r, floating: o } });
2185
- n = X ?? n, g = j ?? g, s = { ...s, [m]: { ...s[m], ...C } }, Z && w <= 50 && (w++, typeof Z == "object" && (Z.placement && (b = Z.placement), Z.rects && (d = Z.rects === !0 ? await i.getElementRects({ reference: r, floating: o, strategy: a }) : Z.rects), { x: n, y: g } = Ir(d, b, l)), x = -1);
2182
+ let n = await i.getElementRects({ reference: r, floating: o, strategy: a }), { x: b, y: v } = xe(n, t, l), u = t, h = {}, g = 0;
2183
+ for (let p = 0; p < c.length; p++) {
2184
+ const { name: x, fn: z } = c[p], { x: E, y: M, data: D, reset: T } = await z({ x: b, y: v, initialPlacement: t, placement: u, strategy: a, middlewareData: h, rects: n, platform: i, elements: { reference: r, floating: o } });
2185
+ b = E ?? b, v = M ?? v, h = { ...h, [x]: { ...h[x], ...D } }, T && g <= 50 && (g++, typeof T == "object" && (T.placement && (u = T.placement), T.rects && (n = T.rects === !0 ? await i.getElementRects({ reference: r, floating: o, strategy: a }) : T.rects), { x: b, y: v } = xe(n, u, l)), p = -1);
2186
2186
  }
2187
- return { x: n, y: g, placement: b, strategy: a, middlewareData: s };
2187
+ return { x: b, y: v, placement: u, strategy: a, middlewareData: h };
2188
2188
  };
2189
- function pe(r) {
2189
+ function We(r) {
2190
2190
  return typeof r != "number" ? function(o) {
2191
2191
  return { top: 0, right: 0, bottom: 0, left: 0, ...o };
2192
2192
  }(r) : { top: r, right: r, bottom: r, left: r };
2193
2193
  }
2194
- function Po(r) {
2194
+ function ur(r) {
2195
2195
  return { ...r, top: r.y, left: r.x, right: r.x + r.width, bottom: r.y + r.height };
2196
2196
  }
2197
- async function he(r, o) {
2197
+ async function Ve(r, o) {
2198
2198
  var e;
2199
2199
  o === void 0 && (o = {});
2200
- const { x: t, y: a, platform: c, rects: i, elements: l, strategy: d } = r, { boundary: n = "clippingAncestors", rootBoundary: g = "viewport", elementContext: b = "floating", altBoundary: s = !1, padding: w = 0 } = o, x = pe(w), m = l[s ? b === "floating" ? "reference" : "floating" : b], y = Po(await c.getClippingRect({ element: (e = await (c.isElement == null ? void 0 : c.isElement(m))) == null || e ? m : m.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(l.floating)), boundary: n, rootBoundary: g, strategy: d })), X = Po(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: b === "floating" ? { ...i.floating, x: t, y: a } : i.reference, offsetParent: await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l.floating)), strategy: d }) : i[b]);
2201
- return { top: y.top - X.top + x.top, bottom: X.bottom - y.bottom + x.bottom, left: y.left - X.left + x.left, right: X.right - y.right + x.right };
2200
+ const { x: t, y: a, platform: c, rects: i, elements: l, strategy: n } = r, { boundary: b = "clippingAncestors", rootBoundary: v = "viewport", elementContext: u = "floating", altBoundary: h = !1, padding: g = 0 } = o, p = We(g), x = l[h ? u === "floating" ? "reference" : "floating" : u], z = ur(await c.getClippingRect({ element: (e = await (c.isElement == null ? void 0 : c.isElement(x))) == null || e ? x : x.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(l.floating)), boundary: b, rootBoundary: v, strategy: n })), E = ur(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: u === "floating" ? { ...i.floating, x: t, y: a } : i.reference, offsetParent: await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l.floating)), strategy: n }) : i[u]);
2201
+ return { top: z.top - E.top + p.top, bottom: E.bottom - z.bottom + p.bottom, left: z.left - E.left + p.left, right: E.right - z.right + p.right };
2202
2202
  }
2203
- const ct = Math.min, it = Math.max;
2204
- function nr(r, o, e) {
2205
- return it(r, ct(o, e));
2203
+ const Ft = Math.min, Wt = Math.max;
2204
+ function Mr(r, o, e) {
2205
+ return Wt(r, Ft(o, e));
2206
2206
  }
2207
- const lt = (r) => ({ name: "arrow", options: r, async fn(o) {
2208
- const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: c, placement: i, rects: l, platform: d } = o;
2207
+ const Vt = (r) => ({ name: "arrow", options: r, async fn(o) {
2208
+ const { element: e, padding: t = 0 } = r ?? {}, { x: a, y: c, placement: i, rects: l, platform: n } = o;
2209
2209
  if (e == null)
2210
2210
  return {};
2211
- const n = pe(t), g = { x: a, y: c }, b = Ao(i), s = Jo(i), w = Zr(b), x = await d.getDimensions(e), m = b === "y" ? "top" : "left", y = b === "y" ? "bottom" : "right", X = l.reference[w] + l.reference[b] - g[b] - l.floating[w], j = g[b] - l.reference[b], C = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(e));
2212
- let Z = C ? b === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0;
2213
- Z === 0 && (Z = l.floating[w]);
2214
- const Co = X / 2 - j / 2, lo = n[m], ho = Z - x[w] - n[y], S = Z / 2 - x[w] / 2 + Co, M = nr(lo, S, ho), no = (s === "start" ? n[m] : n[y]) > 0 && S !== M && l.reference[w] <= l.floating[w];
2215
- return { [b]: g[b] - (no ? S < lo ? lo - S : ho - S : 0), data: { [b]: M, centerOffset: S - M } };
2216
- } }), dt = { left: "right", right: "left", bottom: "top", top: "bottom" };
2217
- function Ho(r) {
2218
- return r.replace(/left|right|bottom|top/g, (o) => dt[o]);
2211
+ const b = We(t), v = { x: a, y: c }, u = rr(i), h = zr(i), g = ce(u), p = await n.getDimensions(e), x = u === "y" ? "top" : "left", z = u === "y" ? "bottom" : "right", E = l.reference[g] + l.reference[u] - v[u] - l.floating[g], M = v[u] - l.reference[u], D = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(e));
2212
+ let T = D ? u === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0;
2213
+ T === 0 && (T = l.floating[g]);
2214
+ const co = E / 2 - M / 2, W = b[x], C = T - p[g] - b[z], R = T / 2 - p[g] / 2 + co, F = Mr(W, R, C), ro = (h === "start" ? b[x] : b[z]) > 0 && R !== F && l.reference[g] <= l.floating[g];
2215
+ return { [u]: v[u] - (ro ? R < W ? W - R : C - R : 0), data: { [u]: F, centerOffset: R - F } };
2216
+ } }), Gt = { left: "right", right: "left", bottom: "top", top: "bottom" };
2217
+ function vr(r) {
2218
+ return r.replace(/left|right|bottom|top/g, (o) => Gt[o]);
2219
2219
  }
2220
- function nt(r, o, e) {
2220
+ function Jt(r, o, e) {
2221
2221
  e === void 0 && (e = !1);
2222
- const t = Jo(r), a = Ao(r), c = Zr(a);
2222
+ const t = zr(r), a = rr(r), c = ce(a);
2223
2223
  let i = a === "x" ? t === (e ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
2224
- return o.reference[c] > o.floating[c] && (i = Ho(i)), { main: i, cross: Ho(i) };
2224
+ return o.reference[c] > o.floating[c] && (i = vr(i)), { main: i, cross: vr(i) };
2225
2225
  }
2226
- const bt = { start: "end", end: "start" };
2227
- function Pr(r) {
2228
- return r.replace(/start|end/g, (o) => bt[o]);
2226
+ const Kt = { start: "end", end: "start" };
2227
+ function me(r) {
2228
+ return r.replace(/start|end/g, (o) => Kt[o]);
2229
2229
  }
2230
- const gt = ["top", "right", "bottom", "left"];
2231
- gt.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
2232
- const st = function(r) {
2230
+ const oa = ["top", "right", "bottom", "left"];
2231
+ oa.reduce((r, o) => r.concat(o, o + "-start", o + "-end"), []);
2232
+ const ra = function(r) {
2233
2233
  return r === void 0 && (r = {}), { name: "flip", options: r, async fn(o) {
2234
2234
  var e;
2235
- const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements: d } = o, { mainAxis: n = !0, crossAxis: g = !0, fallbackPlacements: b, fallbackStrategy: s = "bestFit", flipAlignment: w = !0, ...x } = r, m = Zo(t), y = b || (m === i || !w ? [Ho(i)] : function(S) {
2236
- const M = Ho(S);
2237
- return [Pr(S), M, Pr(M)];
2238
- }(i)), X = [i, ...y], j = await he(o, x), C = [];
2239
- let Z = ((e = a.flip) == null ? void 0 : e.overflows) || [];
2240
- if (n && C.push(j[m]), g) {
2241
- const { main: S, cross: M } = nt(t, c, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
2242
- C.push(j[S], j[M]);
2235
+ const { placement: t, middlewareData: a, rects: c, initialPlacement: i, platform: l, elements: n } = o, { mainAxis: b = !0, crossAxis: v = !0, fallbackPlacements: u, fallbackStrategy: h = "bestFit", flipAlignment: g = !0, ...p } = r, x = or(t), z = u || (x === i || !g ? [vr(i)] : function(R) {
2236
+ const F = vr(R);
2237
+ return [me(R), F, me(F)];
2238
+ }(i)), E = [i, ...z], M = await Ve(o, p), D = [];
2239
+ let T = ((e = a.flip) == null ? void 0 : e.overflows) || [];
2240
+ if (b && D.push(M[x]), v) {
2241
+ const { main: R, cross: F } = Jt(t, c, await (l.isRTL == null ? void 0 : l.isRTL(n.floating)));
2242
+ D.push(M[R], M[F]);
2243
2243
  }
2244
- if (Z = [...Z, { placement: t, overflows: C }], !C.every((S) => S <= 0)) {
2245
- var Co, lo;
2246
- const S = ((Co = (lo = a.flip) == null ? void 0 : lo.index) != null ? Co : 0) + 1, M = X[S];
2247
- if (M)
2248
- return { data: { index: S, overflows: Z }, reset: { placement: M } };
2249
- let no = "bottom";
2250
- switch (s) {
2244
+ if (T = [...T, { placement: t, overflows: D }], !D.every((R) => R <= 0)) {
2245
+ var co, W;
2246
+ const R = ((co = (W = a.flip) == null ? void 0 : W.index) != null ? co : 0) + 1, F = E[R];
2247
+ if (F)
2248
+ return { data: { index: R, overflows: T }, reset: { placement: F } };
2249
+ let ro = "bottom";
2250
+ switch (h) {
2251
2251
  case "bestFit": {
2252
- var ho;
2253
- const Cr = (ho = Z.map((Lo) => [Lo, Lo.overflows.filter((wo) => wo > 0).reduce((wo, Me) => wo + Me, 0)]).sort((Lo, wo) => Lo[1] - wo[1])[0]) == null ? void 0 : ho[0].placement;
2254
- Cr && (no = Cr);
2252
+ var C;
2253
+ const d = (C = T.map((s) => [s, s.overflows.filter((w) => w > 0).reduce((w, y) => w + y, 0)]).sort((s, w) => s[1] - w[1])[0]) == null ? void 0 : C[0].placement;
2254
+ d && (ro = d);
2255
2255
  break;
2256
2256
  }
2257
2257
  case "initialPlacement":
2258
- no = i;
2258
+ ro = i;
2259
2259
  }
2260
- if (t !== no)
2261
- return { reset: { placement: no } };
2260
+ if (t !== ro)
2261
+ return { reset: { placement: ro } };
2262
2262
  }
2263
2263
  return {};
2264
2264
  } };
2265
- }, ut = function(r) {
2265
+ }, ea = function(r) {
2266
2266
  return r === void 0 && (r = 0), { name: "offset", options: r, async fn(o) {
2267
2267
  const { x: e, y: t } = o, a = await async function(c, i) {
2268
- const { placement: l, platform: d, elements: n } = c, g = await (d.isRTL == null ? void 0 : d.isRTL(n.floating)), b = Zo(l), s = Jo(l), w = Ao(l) === "x", x = ["left", "top"].includes(b) ? -1 : 1, m = g && w ? -1 : 1, y = typeof i == "function" ? i(c) : i;
2269
- let { mainAxis: X, crossAxis: j, alignmentAxis: C } = typeof y == "number" ? { mainAxis: y, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...y };
2270
- return s && typeof C == "number" && (j = s === "end" ? -1 * C : C), w ? { x: j * m, y: X * x } : { x: X * x, y: j * m };
2268
+ const { placement: l, platform: n, elements: b } = c, v = await (n.isRTL == null ? void 0 : n.isRTL(b.floating)), u = or(l), h = zr(l), g = rr(l) === "x", p = ["left", "top"].includes(u) ? -1 : 1, x = v && g ? -1 : 1, z = typeof i == "function" ? i(c) : i;
2269
+ let { mainAxis: E, crossAxis: M, alignmentAxis: D } = typeof z == "number" ? { mainAxis: z, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...z };
2270
+ return h && typeof D == "number" && (M = h === "end" ? -1 * D : D), g ? { x: M * x, y: E * p } : { x: E * p, y: M * x };
2271
2271
  }(o, r);
2272
2272
  return { x: e + a.x, y: t + a.y, data: a };
2273
2273
  } };
2274
2274
  };
2275
- function vt(r) {
2275
+ function ta(r) {
2276
2276
  return r === "x" ? "y" : "x";
2277
2277
  }
2278
- const pt = function(r) {
2278
+ const aa = function(r) {
2279
2279
  return r === void 0 && (r = {}), { name: "shift", options: r, async fn(o) {
2280
- const { x: e, y: t, placement: a } = o, { mainAxis: c = !0, crossAxis: i = !1, limiter: l = { fn: (y) => {
2281
- let { x: X, y: j } = y;
2282
- return { x: X, y: j };
2283
- } }, ...d } = r, n = { x: e, y: t }, g = await he(o, d), b = Ao(Zo(a)), s = vt(b);
2284
- let w = n[b], x = n[s];
2280
+ const { x: e, y: t, placement: a } = o, { mainAxis: c = !0, crossAxis: i = !1, limiter: l = { fn: (z) => {
2281
+ let { x: E, y: M } = z;
2282
+ return { x: E, y: M };
2283
+ } }, ...n } = r, b = { x: e, y: t }, v = await Ve(o, n), u = rr(or(a)), h = ta(u);
2284
+ let g = b[u], p = b[h];
2285
2285
  if (c) {
2286
- const y = b === "y" ? "bottom" : "right";
2287
- w = nr(w + g[b === "y" ? "top" : "left"], w, w - g[y]);
2286
+ const z = u === "y" ? "bottom" : "right";
2287
+ g = Mr(g + v[u === "y" ? "top" : "left"], g, g - v[z]);
2288
2288
  }
2289
2289
  if (i) {
2290
- const y = s === "y" ? "bottom" : "right";
2291
- x = nr(x + g[s === "y" ? "top" : "left"], x, x - g[y]);
2290
+ const z = h === "y" ? "bottom" : "right";
2291
+ p = Mr(p + v[h === "y" ? "top" : "left"], p, p - v[z]);
2292
2292
  }
2293
- const m = l.fn({ ...o, [b]: w, [s]: x });
2294
- return { ...m, data: { x: m.x - e, y: m.y - t } };
2293
+ const x = l.fn({ ...o, [u]: g, [h]: p });
2294
+ return { ...x, data: { x: x.x - e, y: x.y - t } };
2295
2295
  } };
2296
2296
  };
2297
- function we(r) {
2297
+ function Ge(r) {
2298
2298
  return r && r.document && r.location && r.alert && r.setInterval;
2299
2299
  }
2300
- function O(r) {
2300
+ function so(r) {
2301
2301
  if (r == null)
2302
2302
  return window;
2303
- if (!we(r)) {
2303
+ if (!Ge(r)) {
2304
2304
  const o = r.ownerDocument;
2305
2305
  return o && o.defaultView || window;
2306
2306
  }
2307
2307
  return r;
2308
2308
  }
2309
- function So(r) {
2310
- return O(r).getComputedStyle(r);
2309
+ function er(r) {
2310
+ return so(r).getComputedStyle(r);
2311
2311
  }
2312
- function Q(r) {
2313
- return we(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
2312
+ function bo(r) {
2313
+ return Ge(r) ? "" : r ? (r.nodeName || "").toLowerCase() : "";
2314
2314
  }
2315
- function xe() {
2315
+ function Je() {
2316
2316
  const r = navigator.userAgentData;
2317
2317
  return r != null && r.brands ? r.brands.map((o) => o.brand + "/" + o.version).join(" ") : navigator.userAgent;
2318
2318
  }
2319
- function N(r) {
2320
- return r instanceof O(r).HTMLElement;
2319
+ function ao(r) {
2320
+ return r instanceof so(r).HTMLElement;
2321
2321
  }
2322
- function po(r) {
2323
- return r instanceof O(r).Element;
2322
+ function To(r) {
2323
+ return r instanceof so(r).Element;
2324
2324
  }
2325
- function Ar(r) {
2326
- return typeof ShadowRoot > "u" ? !1 : r instanceof O(r).ShadowRoot || r instanceof ShadowRoot;
2325
+ function ie(r) {
2326
+ return typeof ShadowRoot > "u" ? !1 : r instanceof so(r).ShadowRoot || r instanceof ShadowRoot;
2327
2327
  }
2328
- function Ko(r) {
2329
- const { overflow: o, overflowX: e, overflowY: t } = So(r);
2328
+ function _r(r) {
2329
+ const { overflow: o, overflowX: e, overflowY: t } = er(r);
2330
2330
  return /auto|scroll|overlay|hidden/.test(o + t + e);
2331
2331
  }
2332
- function ht(r) {
2333
- return ["table", "td", "th"].includes(Q(r));
2332
+ function ca(r) {
2333
+ return ["table", "td", "th"].includes(bo(r));
2334
2334
  }
2335
- function Hr(r) {
2336
- const o = /firefox/i.test(xe()), e = So(r);
2335
+ function fe(r) {
2336
+ const o = /firefox/i.test(Je()), e = er(r);
2337
2337
  return e.transform !== "none" || e.perspective !== "none" || e.contain === "paint" || ["transform", "perspective"].includes(e.willChange) || o && e.willChange === "filter" || o && !!e.filter && e.filter !== "none";
2338
2338
  }
2339
- function me() {
2340
- return !/^((?!chrome|android).)*safari/i.test(xe());
2339
+ function Ke() {
2340
+ return !/^((?!chrome|android).)*safari/i.test(Je());
2341
2341
  }
2342
- const Qr = Math.min, $o = Math.max, Qo = Math.round;
2343
- function ao(r, o, e) {
2342
+ const ke = Math.min, Io = Math.max, hr = Math.round;
2343
+ function qo(r, o, e) {
2344
2344
  var t, a, c, i;
2345
2345
  o === void 0 && (o = !1), e === void 0 && (e = !1);
2346
2346
  const l = r.getBoundingClientRect();
2347
- let d = 1, n = 1;
2348
- o && N(r) && (d = r.offsetWidth > 0 && Qo(l.width) / r.offsetWidth || 1, n = r.offsetHeight > 0 && Qo(l.height) / r.offsetHeight || 1);
2349
- const g = po(r) ? O(r) : window, b = !me() && e, s = (l.left + (b && (t = (a = g.visualViewport) == null ? void 0 : a.offsetLeft) != null ? t : 0)) / d, w = (l.top + (b && (c = (i = g.visualViewport) == null ? void 0 : i.offsetTop) != null ? c : 0)) / n, x = l.width / d, m = l.height / n;
2350
- return { width: x, height: m, top: w, right: s + x, bottom: w + m, left: s, x: s, y: w };
2347
+ let n = 1, b = 1;
2348
+ o && ao(r) && (n = r.offsetWidth > 0 && hr(l.width) / r.offsetWidth || 1, b = r.offsetHeight > 0 && hr(l.height) / r.offsetHeight || 1);
2349
+ const v = To(r) ? so(r) : window, u = !Ke() && e, h = (l.left + (u && (t = (a = v.visualViewport) == null ? void 0 : a.offsetLeft) != null ? t : 0)) / n, g = (l.top + (u && (c = (i = v.visualViewport) == null ? void 0 : i.offsetTop) != null ? c : 0)) / b, p = l.width / n, x = l.height / b;
2350
+ return { width: p, height: x, top: g, right: h + p, bottom: g + x, left: h, x: h, y: g };
2351
2351
  }
2352
- function U(r) {
2353
- return (o = r, (o instanceof O(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
2352
+ function vo(r) {
2353
+ return (o = r, (o instanceof so(o).Node ? r.ownerDocument : r.document) || window.document).documentElement;
2354
2354
  var o;
2355
2355
  }
2356
- function or(r) {
2357
- return po(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
2356
+ function qr(r) {
2357
+ return To(r) ? { scrollLeft: r.scrollLeft, scrollTop: r.scrollTop } : { scrollLeft: r.pageXOffset, scrollTop: r.pageYOffset };
2358
2358
  }
2359
- function ke(r) {
2360
- return ao(U(r)).left + or(r).scrollLeft;
2359
+ function ot(r) {
2360
+ return qo(vo(r)).left + qr(r).scrollLeft;
2361
2361
  }
2362
- function wt(r, o, e) {
2363
- const t = N(o), a = U(o), c = ao(r, t && function(d) {
2364
- const n = ao(d);
2365
- return Qo(n.width) !== d.offsetWidth || Qo(n.height) !== d.offsetHeight;
2362
+ function ia(r, o, e) {
2363
+ const t = ao(o), a = vo(o), c = qo(r, t && function(n) {
2364
+ const b = qo(n);
2365
+ return hr(b.width) !== n.offsetWidth || hr(b.height) !== n.offsetHeight;
2366
2366
  }(o), e === "fixed");
2367
2367
  let i = { scrollLeft: 0, scrollTop: 0 };
2368
2368
  const l = { x: 0, y: 0 };
2369
2369
  if (t || !t && e !== "fixed")
2370
- if ((Q(o) !== "body" || Ko(a)) && (i = or(o)), N(o)) {
2371
- const d = ao(o, !0);
2372
- l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
2370
+ if ((bo(o) !== "body" || _r(a)) && (i = qr(o)), ao(o)) {
2371
+ const n = qo(o, !0);
2372
+ l.x = n.x + o.clientLeft, l.y = n.y + o.clientTop;
2373
2373
  } else
2374
- a && (l.x = ke(a));
2374
+ a && (l.x = ot(a));
2375
2375
  return { x: c.left + i.scrollLeft - l.x, y: c.top + i.scrollTop - l.y, width: c.width, height: c.height };
2376
2376
  }
2377
- function fe(r) {
2378
- return Q(r) === "html" ? r : r.assignedSlot || r.parentNode || (Ar(r) ? r.host : null) || U(r);
2377
+ function rt(r) {
2378
+ return bo(r) === "html" ? r : r.assignedSlot || r.parentNode || (ie(r) ? r.host : null) || vo(r);
2379
2379
  }
2380
- function Or(r) {
2381
- return N(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
2380
+ function $e(r) {
2381
+ return ao(r) && getComputedStyle(r).position !== "fixed" ? r.offsetParent : null;
2382
2382
  }
2383
- function br(r) {
2384
- const o = O(r);
2385
- let e = Or(r);
2386
- for (; e && ht(e) && getComputedStyle(e).position === "static"; )
2387
- e = Or(e);
2388
- return e && (Q(e) === "html" || Q(e) === "body" && getComputedStyle(e).position === "static" && !Hr(e)) ? o : e || function(t) {
2389
- let a = fe(t);
2390
- for (Ar(a) && (a = a.host); N(a) && !["html", "body"].includes(Q(a)); ) {
2391
- if (Hr(a))
2383
+ function Tr(r) {
2384
+ const o = so(r);
2385
+ let e = $e(r);
2386
+ for (; e && ca(e) && getComputedStyle(e).position === "static"; )
2387
+ e = $e(e);
2388
+ return e && (bo(e) === "html" || bo(e) === "body" && getComputedStyle(e).position === "static" && !fe(e)) ? o : e || function(t) {
2389
+ let a = rt(t);
2390
+ for (ie(a) && (a = a.host); ao(a) && !["html", "body"].includes(bo(a)); ) {
2391
+ if (fe(a))
2392
2392
  return a;
2393
2393
  a = a.parentNode;
2394
2394
  }
2395
2395
  return null;
2396
2396
  }(r) || o;
2397
2397
  }
2398
- function Fr(r) {
2399
- if (N(r))
2398
+ function ye(r) {
2399
+ if (ao(r))
2400
2400
  return { width: r.offsetWidth, height: r.offsetHeight };
2401
- const o = ao(r);
2401
+ const o = qo(r);
2402
2402
  return { width: o.width, height: o.height };
2403
2403
  }
2404
- function $e(r) {
2405
- const o = fe(r);
2406
- return ["html", "body", "#document"].includes(Q(o)) ? r.ownerDocument.body : N(o) && Ko(o) ? o : $e(o);
2404
+ function et(r) {
2405
+ const o = rt(r);
2406
+ return ["html", "body", "#document"].includes(bo(o)) ? r.ownerDocument.body : ao(o) && _r(o) ? o : et(o);
2407
2407
  }
2408
- function ye(r, o) {
2408
+ function tt(r, o) {
2409
2409
  var e;
2410
2410
  o === void 0 && (o = []);
2411
- const t = $e(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c = O(t), i = a ? [c].concat(c.visualViewport || [], Ko(t) ? t : []) : t, l = o.concat(i);
2412
- return a ? l : l.concat(ye(i));
2411
+ const t = et(r), a = t === ((e = r.ownerDocument) == null ? void 0 : e.body), c = so(t), i = a ? [c].concat(c.visualViewport || [], _r(t) ? t : []) : t, l = o.concat(i);
2412
+ return a ? l : l.concat(tt(i));
2413
2413
  }
2414
- function Wr(r, o, e) {
2415
- return o === "viewport" ? Po(function(t, a) {
2416
- const c = O(t), i = U(t), l = c.visualViewport;
2417
- let d = i.clientWidth, n = i.clientHeight, g = 0, b = 0;
2414
+ function ze(r, o, e) {
2415
+ return o === "viewport" ? ur(function(t, a) {
2416
+ const c = so(t), i = vo(t), l = c.visualViewport;
2417
+ let n = i.clientWidth, b = i.clientHeight, v = 0, u = 0;
2418
2418
  if (l) {
2419
- d = l.width, n = l.height;
2420
- const s = me();
2421
- (s || !s && a === "fixed") && (g = l.offsetLeft, b = l.offsetTop);
2419
+ n = l.width, b = l.height;
2420
+ const h = Ke();
2421
+ (h || !h && a === "fixed") && (v = l.offsetLeft, u = l.offsetTop);
2422
2422
  }
2423
- return { width: d, height: n, x: g, y: b };
2424
- }(r, e)) : po(o) ? function(t, a) {
2425
- const c = ao(t, !1, a === "fixed"), i = c.top + t.clientTop, l = c.left + t.clientLeft;
2423
+ return { width: n, height: b, x: v, y: u };
2424
+ }(r, e)) : To(o) ? function(t, a) {
2425
+ const c = qo(t, !1, a === "fixed"), i = c.top + t.clientTop, l = c.left + t.clientLeft;
2426
2426
  return { top: i, left: l, x: l, y: i, right: l + t.clientWidth, bottom: i + t.clientHeight, width: t.clientWidth, height: t.clientHeight };
2427
- }(o, e) : Po(function(t) {
2427
+ }(o, e) : ur(function(t) {
2428
2428
  var a;
2429
- const c = U(t), i = or(t), l = (a = t.ownerDocument) == null ? void 0 : a.body, d = $o(c.scrollWidth, c.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0), n = $o(c.scrollHeight, c.clientHeight, l ? l.scrollHeight : 0, l ? l.clientHeight : 0);
2430
- let g = -i.scrollLeft + ke(t);
2431
- const b = -i.scrollTop;
2432
- return So(l || c).direction === "rtl" && (g += $o(c.clientWidth, l ? l.clientWidth : 0) - d), { width: d, height: n, x: g, y: b };
2433
- }(U(r)));
2429
+ const c = vo(t), i = qr(t), l = (a = t.ownerDocument) == null ? void 0 : a.body, n = Io(c.scrollWidth, c.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0), b = Io(c.scrollHeight, c.clientHeight, l ? l.scrollHeight : 0, l ? l.clientHeight : 0);
2430
+ let v = -i.scrollLeft + ot(t);
2431
+ const u = -i.scrollTop;
2432
+ return er(l || c).direction === "rtl" && (v += Io(c.clientWidth, l ? l.clientWidth : 0) - n), { width: n, height: b, x: v, y: u };
2433
+ }(vo(r)));
2434
2434
  }
2435
- function xt(r) {
2436
- const o = ye(r), e = ["absolute", "fixed"].includes(So(r).position) && N(r) ? br(r) : r;
2437
- return po(e) ? o.filter((t) => po(t) && function(a, c) {
2435
+ function la(r) {
2436
+ const o = tt(r), e = ["absolute", "fixed"].includes(er(r).position) && ao(r) ? Tr(r) : r;
2437
+ return To(e) ? o.filter((t) => To(t) && function(a, c) {
2438
2438
  const i = c.getRootNode == null ? void 0 : c.getRootNode();
2439
2439
  if (a.contains(c))
2440
2440
  return !0;
2441
- if (i && Ar(i)) {
2441
+ if (i && ie(i)) {
2442
2442
  let l = c;
2443
2443
  do {
2444
2444
  if (l && a === l)
@@ -2447,68 +2447,68 @@ function xt(r) {
2447
2447
  } while (l);
2448
2448
  }
2449
2449
  return !1;
2450
- }(t, e) && Q(t) !== "body") : [];
2450
+ }(t, e) && bo(t) !== "body") : [];
2451
2451
  }
2452
- const mt = { getClippingRect: function(r) {
2452
+ const da = { getClippingRect: function(r) {
2453
2453
  let { element: o, boundary: e, rootBoundary: t, strategy: a } = r;
2454
- const c = [...e === "clippingAncestors" ? xt(o) : [].concat(e), t], i = c[0], l = c.reduce((d, n) => {
2455
- const g = Wr(o, n, a);
2456
- return d.top = $o(g.top, d.top), d.right = Qr(g.right, d.right), d.bottom = Qr(g.bottom, d.bottom), d.left = $o(g.left, d.left), d;
2457
- }, Wr(o, i, a));
2454
+ const c = [...e === "clippingAncestors" ? la(o) : [].concat(e), t], i = c[0], l = c.reduce((n, b) => {
2455
+ const v = ze(o, b, a);
2456
+ return n.top = Io(v.top, n.top), n.right = ke(v.right, n.right), n.bottom = ke(v.bottom, n.bottom), n.left = Io(v.left, n.left), n;
2457
+ }, ze(o, i, a));
2458
2458
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
2459
2459
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(r) {
2460
2460
  let { rect: o, offsetParent: e, strategy: t } = r;
2461
- const a = N(e), c = U(e);
2461
+ const a = ao(e), c = vo(e);
2462
2462
  if (e === c)
2463
2463
  return o;
2464
2464
  let i = { scrollLeft: 0, scrollTop: 0 };
2465
2465
  const l = { x: 0, y: 0 };
2466
- if ((a || !a && t !== "fixed") && ((Q(e) !== "body" || Ko(c)) && (i = or(e)), N(e))) {
2467
- const d = ao(e, !0);
2468
- l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
2466
+ if ((a || !a && t !== "fixed") && ((bo(e) !== "body" || _r(c)) && (i = qr(e)), ao(e))) {
2467
+ const n = qo(e, !0);
2468
+ l.x = n.x + e.clientLeft, l.y = n.y + e.clientTop;
2469
2469
  }
2470
2470
  return { ...o, x: o.x - i.scrollLeft + l.x, y: o.y - i.scrollTop + l.y };
2471
- }, isElement: po, getDimensions: Fr, getOffsetParent: br, getDocumentElement: U, getElementRects: (r) => {
2471
+ }, isElement: To, getDimensions: ye, getOffsetParent: Tr, getDocumentElement: vo, getElementRects: (r) => {
2472
2472
  let { reference: o, floating: e, strategy: t } = r;
2473
- return { reference: wt(o, br(e), t), floating: { ...Fr(e), x: 0, y: 0 } };
2474
- }, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => So(r).direction === "rtl" }, kt = (r, o, e) => at(r, o, { platform: mt, ...e }), qo = "top", _o = "bottom", Oo = "left", Fo = "right", ar = {
2475
- [qo]: _o,
2476
- [_o]: qo,
2477
- [Oo]: Fo,
2478
- [Fo]: Oo
2479
- }, ft = {
2480
- [qo]: "↑",
2481
- [_o]: "↓",
2482
- [Oo]: "←",
2483
- [Fo]: "→"
2484
- }, $t = {
2485
- [Oo]: -45,
2486
- [qo]: 45,
2487
- [Fo]: 135,
2488
- [_o]: -135
2489
- }, Ur = "calc(50% - 7px)", yt = (r) => [qo, _o].includes(r);
2490
- function zt({ actualDirection: r, directionName: o, arrowEl: e }) {
2473
+ return { reference: ia(o, Tr(e), t), floating: { ...ye(e), x: 0, y: 0 } };
2474
+ }, getClientRects: (r) => Array.from(r.getClientRects()), isRTL: (r) => er(r).direction === "rtl" }, na = (r, o, e) => Ut(r, o, { platform: da, ...e }), Uo = "top", Fo = "bottom", pr = "left", wr = "right", Zr = {
2475
+ [Uo]: Fo,
2476
+ [Fo]: Uo,
2477
+ [pr]: wr,
2478
+ [wr]: pr
2479
+ }, ba = {
2480
+ [Uo]: "↑",
2481
+ [Fo]: "↓",
2482
+ [pr]: "←",
2483
+ [wr]: "→"
2484
+ }, sa = {
2485
+ [pr]: -45,
2486
+ [Uo]: 45,
2487
+ [wr]: 135,
2488
+ [Fo]: -135
2489
+ }, _e = "calc(50% - 7px)", ga = (r) => [Uo, Fo].includes(r);
2490
+ function ua({ actualDirection: r, directionName: o, arrowEl: e }) {
2491
2491
  if (!e)
2492
2492
  return;
2493
2493
  r = o;
2494
- const t = yt(o);
2495
- e.style.left = t ? Ur : "", e.style.top = t ? "" : Ur;
2494
+ const t = ga(o);
2495
+ e.style.left = t ? _e : "", e.style.top = t ? "" : _e;
2496
2496
  }
2497
- async function qt(r) {
2497
+ async function va(r) {
2498
2498
  var a, c;
2499
2499
  if (!r.isShowing)
2500
2500
  return;
2501
2501
  if (await ((a = r == null ? void 0 : r.waitForDOM) == null ? void 0 : a.call(r)), r.isCallout)
2502
- return zt(r);
2503
- const o = await kt(r.targetEl, r.attentionEl, {
2502
+ return ua(r);
2503
+ const o = await na(r.targetEl, r.attentionEl, {
2504
2504
  placement: r.directionName,
2505
2505
  middleware: [
2506
2506
  // Should we make this configurable, but have these as sane defaults?
2507
- st(),
2508
- ut(8),
2509
- pt({ padding: 16 }),
2507
+ ra(),
2508
+ ea(8),
2509
+ aa({ padding: 16 }),
2510
2510
  // @ts-ignore
2511
- lt({ element: r.noArrow ? void 0 : r.arrowEl })
2511
+ Vt({ element: r.noArrow ? void 0 : r.arrowEl })
2512
2512
  // FIXME
2513
2513
  ]
2514
2514
  });
@@ -2520,16 +2520,16 @@ async function qt(r) {
2520
2520
  let { x: e, y: t } = o.middlewareData.arrow;
2521
2521
  r.arrowEl && (r.arrowEl.style.left = e ? e + "px" : "", r.arrowEl.style.top = t ? t + "px" : "");
2522
2522
  }
2523
- class gr extends jo(Y) {
2523
+ class Or extends Ko(I) {
2524
2524
  constructor() {
2525
2525
  super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
2526
2526
  }
2527
2527
  connectedCallback() {
2528
- if (super.connectedCallback(), !this.placement || !Object.keys(ar).includes(this.placement))
2528
+ if (super.connectedCallback(), !this.placement || !Object.keys(Zr).includes(this.placement))
2529
2529
  throw new Error(
2530
2530
  `Invalid "placement" attribute. Set its value to one of the following:
2531
2531
  ${JSON.stringify(
2532
- Object.keys(ar)
2532
+ Object.keys(Zr)
2533
2533
  )}`
2534
2534
  );
2535
2535
  setTimeout(() => this.requestUpdate(), 0);
@@ -2541,7 +2541,7 @@ ${JSON.stringify(
2541
2541
  this.placement = o;
2542
2542
  }
2543
2543
  get _arrowDirection() {
2544
- return ar[this.placement];
2544
+ return Zr[this.placement];
2545
2545
  }
2546
2546
  updated() {
2547
2547
  this.callout || this._attentionEl.style.setProperty("--attention-visibility", this.show ? "" : "hidden"), this.tooltip || this._attentionEl.style.setProperty("--attention-display", this.show ? "block" : "none"), this.attentionState = {
@@ -2553,11 +2553,11 @@ ${JSON.stringify(
2553
2553
  attentionEl: this._attentionEl,
2554
2554
  targetEl: this._targetEl,
2555
2555
  noArrow: this.noArrow
2556
- }, qt(this.attentionState);
2556
+ }, va(this.attentionState);
2557
2557
  }
2558
2558
  setAriaLabels() {
2559
2559
  if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
2560
- const o = this._messageEl.id || (this._messageEl.id = Ue());
2560
+ const o = this._messageEl.id || (this._messageEl.id = Ot());
2561
2561
  this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", o);
2562
2562
  }
2563
2563
  }
@@ -2574,37 +2574,37 @@ ${JSON.stringify(
2574
2574
  return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
2575
2575
  }
2576
2576
  get _wrapperClasses() {
2577
- return ir({
2578
- [I.base]: !0,
2579
- [I.tooltip]: this.tooltip,
2580
- [I.callout]: this.callout,
2581
- [I.popover]: this.popover
2577
+ return Er({
2578
+ [io.base]: !0,
2579
+ [io.tooltip]: this.tooltip,
2580
+ [io.callout]: this.callout,
2581
+ [io.popover]: this.popover
2582
2582
  });
2583
2583
  }
2584
2584
  get _arrowClasses() {
2585
- return ir({
2586
- [I.arrowBase]: !0,
2587
- [I[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
2588
- [I.arrowTooltip]: this.tooltip,
2589
- [I.arrowCallout]: this.callout,
2590
- [I.arrowPopover]: this.popover
2585
+ return Er({
2586
+ [io.arrowBase]: !0,
2587
+ [io[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
2588
+ [io.arrowTooltip]: this.tooltip,
2589
+ [io.arrowCallout]: this.callout,
2590
+ [io.arrowPopover]: this.popover
2591
2591
  });
2592
2592
  }
2593
2593
  get _arrowHtml() {
2594
- return this.noArrow ? "" : v`<div
2594
+ return this.noArrow ? "" : f`<div
2595
2595
  id="arrow"
2596
2596
  role="img"
2597
- aria-label=${ft[this._arrowDirection]}
2597
+ aria-label=${ba[this._arrowDirection]}
2598
2598
  class="${this._arrowClasses}"
2599
- style="transform:rotate(${$t[this._arrowDirection]}deg);
2599
+ style="transform:rotate(${sa[this._arrowDirection]}deg);
2600
2600
  margin-${// border alignment is off by a fraction of a pixel, this fixes it
2601
2601
  this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
2602
2602
  />`;
2603
2603
  }
2604
2604
  render() {
2605
- return v`
2606
- <div class=${q(this.className ? this.className : void 0)}>
2607
- ${this.placement === "right" || this.placement === "bottom" ? v`
2605
+ return f`
2606
+ <div class=${B(this.className ? this.className : void 0)}>
2607
+ ${this.placement === "right" || this.placement === "bottom" ? f`
2608
2608
  <slot name="target"></slot>
2609
2609
  <div id="attention" class="${this._wrapperClasses}">
2610
2610
  <div>
@@ -2612,7 +2612,7 @@ ${JSON.stringify(
2612
2612
  <slot name="message"></slot>
2613
2613
  </div>
2614
2614
  </div>
2615
- ` : v`
2615
+ ` : f`
2616
2616
  <div id="attention" class="${this._wrapperClasses}">
2617
2617
  <div>
2618
2618
  <slot name="message"></slot>
@@ -2625,7 +2625,7 @@ ${JSON.stringify(
2625
2625
  `;
2626
2626
  }
2627
2627
  }
2628
- f(gr, "properties", {
2628
+ Z(Or, "properties", {
2629
2629
  // Whether Attention element should be visible.
2630
2630
  show: { type: Boolean, reflect: !0 },
2631
2631
  // Placement according to the target element
@@ -2639,8 +2639,8 @@ f(gr, "properties", {
2639
2639
  popover: { type: Boolean, reflect: !0 },
2640
2640
  // Render Attention element without an arrow
2641
2641
  noArrow: { type: Boolean, reflect: !0 }
2642
- }), f(gr, "styles", [
2643
- A`
2642
+ }), Z(Or, "styles", [
2643
+ Q`
2644
2644
  /* layer: preflights */
2645
2645
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
2646
2646
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -3307,34 +3307,34 @@ f(gr, "properties", {
3307
3307
  }
3308
3308
  `
3309
3309
  ]);
3310
- customElements.get("w-attention") || customElements.define("w-attention", gr);
3311
- class sr extends Y {
3310
+ customElements.get("w-attention") || customElements.define("w-attention", Or);
3311
+ class Br extends I {
3312
3312
  constructor() {
3313
3313
  super(), this.variant = "neutral";
3314
3314
  }
3315
3315
  get _class() {
3316
- return ir({
3317
- [oo.base]: !0,
3318
- [oo[this.variant]]: !0,
3319
- [oo.positionBase]: !!this.position,
3320
- [oo.positionTL]: this.position === "top-left",
3321
- [oo.positionTR]: this.position === "top-right",
3322
- [oo.positionBR]: this.position === "bottom-right",
3323
- [oo.positionBL]: this.position === "bottom-left"
3316
+ return Er({
3317
+ [$o.base]: !0,
3318
+ [$o[this.variant]]: !0,
3319
+ [$o.positionBase]: !!this.position,
3320
+ [$o.positionTL]: this.position === "top-left",
3321
+ [$o.positionTR]: this.position === "top-right",
3322
+ [$o.positionBR]: this.position === "bottom-right",
3323
+ [$o.positionBL]: this.position === "bottom-left"
3324
3324
  });
3325
3325
  }
3326
3326
  render() {
3327
- return v`
3327
+ return f`
3328
3328
  <div class="${this._class}">
3329
3329
  <slot></slot>
3330
3330
  </div>
3331
3331
  `;
3332
3332
  }
3333
3333
  }
3334
- f(sr, "properties", {
3334
+ Z(Br, "properties", {
3335
3335
  variant: { type: "neutral" | "info" | "positive" | "warning" | "negative" | "disabled" | "notification" | "price" },
3336
3336
  position: { type: "top-left" | "top-right" | "bottom-right" | "bottom-left" }
3337
- }), f(sr, "styles", A`
3337
+ }), Z(Br, "styles", Q`
3338
3338
  /* layer: preflights */
3339
3339
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
3340
3340
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -3984,26 +3984,26 @@ f(sr, "properties", {
3984
3984
  .sm\\:pt-32{padding-top:3.2rem;}
3985
3985
  }
3986
3986
  `);
3987
- customElements.get("w-badge") || customElements.define("w-badge", sr);
3988
- class ur extends Y {
3987
+ customElements.get("w-badge") || customElements.define("w-badge", Br);
3988
+ class Nr extends I {
3989
3989
  get _class() {
3990
- return E({
3991
- [H.box]: !0,
3992
- [H.bleed]: this.bleed,
3993
- [H.info]: this.info,
3994
- [H.neutral]: this.neutral,
3995
- [H.bordered]: this.bordered
3990
+ return V({
3991
+ [no.box]: !0,
3992
+ [no.bleed]: this.bleed,
3993
+ [no.info]: this.info,
3994
+ [no.neutral]: this.neutral,
3995
+ [no.bordered]: this.bordered
3996
3996
  });
3997
3997
  }
3998
3998
  render() {
3999
- return v`
3999
+ return f`
4000
4000
  <div class="${this._class}">
4001
4001
  <slot></slot>
4002
4002
  </div>
4003
4003
  `;
4004
4004
  }
4005
4005
  }
4006
- f(ur, "properties", {
4006
+ Z(Nr, "properties", {
4007
4007
  bleed: { type: Boolean },
4008
4008
  bordered: { type: Boolean },
4009
4009
  info: { type: Boolean },
@@ -4012,7 +4012,7 @@ f(ur, "properties", {
4012
4012
  // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
4013
4013
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
4014
4014
  // https://stackoverflow.com/a/61631668
4015
- f(ur, "styles", A`
4015
+ Z(Nr, "styles", Q`
4016
4016
  /* layer: preflights */
4017
4017
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
4018
4018
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -4668,38 +4668,980 @@ f(ur, "styles", A`
4668
4668
  margin-bottom: 0 !important;
4669
4669
  }
4670
4670
  `);
4671
- customElements.get("w-box") || customElements.define("w-box", ur);
4672
- function _t(r, o) {
4671
+ customElements.get("w-box") || customElements.define("w-box", Nr);
4672
+ function ha(r, o) {
4673
4673
  return r.flatMap((e) => [e, o]).slice(0, -1);
4674
4674
  }
4675
- const Xt = v`<span class=${go.separator} aria-hidden='true'>/</span>`;
4676
- class vr extends jo(Y) {
4675
+ var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4676
+ function pa(r) {
4677
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4678
+ }
4679
+ var at = {}, ct = {};
4680
+ (function(r) {
4681
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.errorMessages = r.ErrorType = void 0;
4682
+ var o;
4683
+ (function(e) {
4684
+ e.MalformedUnicode = "MALFORMED_UNICODE", e.MalformedHexadecimal = "MALFORMED_HEXADECIMAL", e.CodePointLimit = "CODE_POINT_LIMIT", e.OctalDeprecation = "OCTAL_DEPRECATION", e.EndOfString = "END_OF_STRING";
4685
+ })(o = r.ErrorType || (r.ErrorType = {})), r.errorMessages = /* @__PURE__ */ new Map([
4686
+ [o.MalformedUnicode, "malformed Unicode character escape sequence"],
4687
+ [
4688
+ o.MalformedHexadecimal,
4689
+ "malformed hexadecimal character escape sequence"
4690
+ ],
4691
+ [
4692
+ o.CodePointLimit,
4693
+ "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
4694
+ ],
4695
+ [
4696
+ o.OctalDeprecation,
4697
+ '"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'
4698
+ ],
4699
+ [o.EndOfString, "malformed escape sequence at end of string"]
4700
+ ]);
4701
+ })(ct);
4702
+ (function(r) {
4703
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.unraw = r.errorMessages = r.ErrorType = void 0;
4704
+ const o = ct;
4705
+ Object.defineProperty(r, "ErrorType", { enumerable: !0, get: function() {
4706
+ return o.ErrorType;
4707
+ } }), Object.defineProperty(r, "errorMessages", { enumerable: !0, get: function() {
4708
+ return o.errorMessages;
4709
+ } });
4710
+ function e(g) {
4711
+ return !g.match(/[^a-f0-9]/i) ? parseInt(g, 16) : NaN;
4712
+ }
4713
+ function t(g, p, x) {
4714
+ const z = e(g);
4715
+ if (Number.isNaN(z) || x !== void 0 && x !== g.length)
4716
+ throw new SyntaxError(o.errorMessages.get(p));
4717
+ return z;
4718
+ }
4719
+ function a(g) {
4720
+ const p = t(g, o.ErrorType.MalformedHexadecimal, 2);
4721
+ return String.fromCharCode(p);
4722
+ }
4723
+ function c(g, p) {
4724
+ const x = t(g, o.ErrorType.MalformedUnicode, 4);
4725
+ if (p !== void 0) {
4726
+ const z = t(p, o.ErrorType.MalformedUnicode, 4);
4727
+ return String.fromCharCode(x, z);
4728
+ }
4729
+ return String.fromCharCode(x);
4730
+ }
4731
+ function i(g) {
4732
+ return g.charAt(0) === "{" && g.charAt(g.length - 1) === "}";
4733
+ }
4734
+ function l(g) {
4735
+ if (!i(g))
4736
+ throw new SyntaxError(o.errorMessages.get(o.ErrorType.MalformedUnicode));
4737
+ const p = g.slice(1, -1), x = t(p, o.ErrorType.MalformedUnicode);
4738
+ try {
4739
+ return String.fromCodePoint(x);
4740
+ } catch (z) {
4741
+ throw z instanceof RangeError ? new SyntaxError(o.errorMessages.get(o.ErrorType.CodePointLimit)) : z;
4742
+ }
4743
+ }
4744
+ function n(g, p = !1) {
4745
+ if (p)
4746
+ throw new SyntaxError(o.errorMessages.get(o.ErrorType.OctalDeprecation));
4747
+ const x = parseInt(g, 8);
4748
+ return String.fromCharCode(x);
4749
+ }
4750
+ const b = /* @__PURE__ */ new Map([
4751
+ ["b", "\b"],
4752
+ ["f", "\f"],
4753
+ ["n", `
4754
+ `],
4755
+ ["r", "\r"],
4756
+ ["t", " "],
4757
+ ["v", "\v"],
4758
+ ["0", "\0"]
4759
+ ]);
4760
+ function v(g) {
4761
+ return b.get(g) || g;
4762
+ }
4763
+ const u = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
4764
+ function h(g, p = !1) {
4765
+ return g.replace(u, function(x, z, E, M, D, T, co, W, C) {
4766
+ if (z !== void 0)
4767
+ return "\\";
4768
+ if (E !== void 0)
4769
+ return a(E);
4770
+ if (M !== void 0)
4771
+ return l(M);
4772
+ if (D !== void 0)
4773
+ return c(D, T);
4774
+ if (co !== void 0)
4775
+ return c(co);
4776
+ if (W === "0")
4777
+ return "\0";
4778
+ if (W !== void 0)
4779
+ return n(W, !p);
4780
+ if (C !== void 0)
4781
+ return v(C);
4782
+ throw new SyntaxError(o.errorMessages.get(o.ErrorType.EndOfString));
4783
+ });
4784
+ }
4785
+ r.unraw = h, r.default = h;
4786
+ })(at);
4787
+ const wa = /* @__PURE__ */ pa(at);
4788
+ var Wo = {}, it = {}, lt = { exports: {} };
4789
+ (function(r) {
4790
+ (function(o, e) {
4791
+ r.exports ? r.exports = e() : o.moo = e();
4792
+ })(Dr, function() {
4793
+ var o = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = typeof new RegExp().sticky == "boolean";
4794
+ function a(d) {
4795
+ return d && e.call(d) === "[object RegExp]";
4796
+ }
4797
+ function c(d) {
4798
+ return d && typeof d == "object" && !a(d) && !Array.isArray(d);
4799
+ }
4800
+ function i(d) {
4801
+ return d.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
4802
+ }
4803
+ function l(d) {
4804
+ var s = new RegExp("|" + d);
4805
+ return s.exec("").length - 1;
4806
+ }
4807
+ function n(d) {
4808
+ return "(" + d + ")";
4809
+ }
4810
+ function b(d) {
4811
+ if (!d.length)
4812
+ return "(?!)";
4813
+ var s = d.map(function(w) {
4814
+ return "(?:" + w + ")";
4815
+ }).join("|");
4816
+ return "(?:" + s + ")";
4817
+ }
4818
+ function v(d) {
4819
+ if (typeof d == "string")
4820
+ return "(?:" + i(d) + ")";
4821
+ if (a(d)) {
4822
+ if (d.ignoreCase)
4823
+ throw new Error("RegExp /i flag not allowed");
4824
+ if (d.global)
4825
+ throw new Error("RegExp /g flag is implied");
4826
+ if (d.sticky)
4827
+ throw new Error("RegExp /y flag is implied");
4828
+ if (d.multiline)
4829
+ throw new Error("RegExp /m flag is implied");
4830
+ return d.source;
4831
+ } else
4832
+ throw new Error("Not a pattern: " + d);
4833
+ }
4834
+ function u(d, s) {
4835
+ return d.length > s ? d : Array(s - d.length + 1).join(" ") + d;
4836
+ }
4837
+ function h(d, s) {
4838
+ for (var w = d.length, y = 0; ; ) {
4839
+ var Y = d.lastIndexOf(`
4840
+ `, w - 1);
4841
+ if (Y === -1 || (y++, w = Y, y === s) || w === 0)
4842
+ break;
4843
+ }
4844
+ var _ = y < s ? 0 : w + 1;
4845
+ return d.substring(_).split(`
4846
+ `);
4847
+ }
4848
+ function g(d) {
4849
+ for (var s = Object.getOwnPropertyNames(d), w = [], y = 0; y < s.length; y++) {
4850
+ var Y = s[y], _ = d[Y], j = [].concat(_);
4851
+ if (Y === "include") {
4852
+ for (var L = 0; L < j.length; L++)
4853
+ w.push({ include: j[L] });
4854
+ continue;
4855
+ }
4856
+ var A = [];
4857
+ j.forEach(function(q) {
4858
+ c(q) ? (A.length && w.push(x(Y, A)), w.push(x(Y, q)), A = []) : A.push(q);
4859
+ }), A.length && w.push(x(Y, A));
4860
+ }
4861
+ return w;
4862
+ }
4863
+ function p(d) {
4864
+ for (var s = [], w = 0; w < d.length; w++) {
4865
+ var y = d[w];
4866
+ if (y.include) {
4867
+ for (var Y = [].concat(y.include), _ = 0; _ < Y.length; _++)
4868
+ s.push({ include: Y[_] });
4869
+ continue;
4870
+ }
4871
+ if (!y.type)
4872
+ throw new Error("Rule has no type: " + JSON.stringify(y));
4873
+ s.push(x(y.type, y));
4874
+ }
4875
+ return s;
4876
+ }
4877
+ function x(d, s) {
4878
+ if (c(s) || (s = { match: s }), s.include)
4879
+ throw new Error("Matching rules cannot also include states");
4880
+ var w = {
4881
+ defaultType: d,
4882
+ lineBreaks: !!s.error || !!s.fallback,
4883
+ pop: !1,
4884
+ next: null,
4885
+ push: null,
4886
+ error: !1,
4887
+ fallback: !1,
4888
+ value: null,
4889
+ type: null,
4890
+ shouldThrow: !1
4891
+ };
4892
+ for (var y in s)
4893
+ o.call(s, y) && (w[y] = s[y]);
4894
+ if (typeof w.type == "string" && d !== w.type)
4895
+ throw new Error("Type transform cannot be a string (type '" + w.type + "' for token '" + d + "')");
4896
+ var Y = w.match;
4897
+ return w.match = Array.isArray(Y) ? Y : Y ? [Y] : [], w.match.sort(function(_, j) {
4898
+ return a(_) && a(j) ? 0 : a(j) ? -1 : a(_) ? 1 : j.length - _.length;
4899
+ }), w;
4900
+ }
4901
+ function z(d) {
4902
+ return Array.isArray(d) ? p(d) : g(d);
4903
+ }
4904
+ var E = x("error", { lineBreaks: !0, shouldThrow: !0 });
4905
+ function M(d, s) {
4906
+ for (var w = null, y = /* @__PURE__ */ Object.create(null), Y = !0, _ = null, j = [], L = [], A = 0; A < d.length; A++)
4907
+ d[A].fallback && (Y = !1);
4908
+ for (var A = 0; A < d.length; A++) {
4909
+ var q = d[A];
4910
+ if (q.include)
4911
+ throw new Error("Inheritance is not allowed in stateless lexers");
4912
+ if (q.error || q.fallback) {
4913
+ if (w)
4914
+ throw !q.fallback == !w.fallback ? new Error("Multiple " + (q.fallback ? "fallback" : "error") + " rules not allowed (for token '" + q.defaultType + "')") : new Error("fallback and error are mutually exclusive (for token '" + q.defaultType + "')");
4915
+ w = q;
4916
+ }
4917
+ var H = q.match.slice();
4918
+ if (Y)
4919
+ for (; H.length && typeof H[0] == "string" && H[0].length === 1; ) {
4920
+ var wo = H.shift();
4921
+ y[wo.charCodeAt(0)] = q;
4922
+ }
4923
+ if (q.pop || q.push || q.next) {
4924
+ if (!s)
4925
+ throw new Error("State-switching options are not allowed in stateless lexers (for token '" + q.defaultType + "')");
4926
+ if (q.fallback)
4927
+ throw new Error("State-switching options are not allowed on fallback tokens (for token '" + q.defaultType + "')");
4928
+ }
4929
+ if (H.length !== 0) {
4930
+ Y = !1, j.push(q);
4931
+ for (var xo = 0; xo < H.length; xo++) {
4932
+ var mo = H[xo];
4933
+ if (a(mo)) {
4934
+ if (_ === null)
4935
+ _ = mo.unicode;
4936
+ else if (_ !== mo.unicode && q.fallback === !1)
4937
+ throw new Error("If one rule is /u then all must be");
4938
+ }
4939
+ }
4940
+ var jo = b(H.map(v)), G = new RegExp(jo);
4941
+ if (G.test(""))
4942
+ throw new Error("RegExp matches empty string: " + G);
4943
+ var Oo = l(jo);
4944
+ if (Oo > 0)
4945
+ throw new Error("RegExp has capture groups: " + G + `
4946
+ Use (?: … ) instead`);
4947
+ if (!q.lineBreaks && G.test(`
4948
+ `))
4949
+ throw new Error("Rule should declare lineBreaks: " + G);
4950
+ L.push(n(jo));
4951
+ }
4952
+ }
4953
+ var Zo = w && w.fallback, Bo = t && !Zo ? "ym" : "gm", tr = t || Zo ? "" : "|";
4954
+ _ === !0 && (Bo += "u");
4955
+ var _t = new RegExp(b(L) + tr, Bo);
4956
+ return { regexp: _t, groups: j, fast: y, error: w || E };
4957
+ }
4958
+ function D(d) {
4959
+ var s = M(z(d));
4960
+ return new C({ start: s }, "start");
4961
+ }
4962
+ function T(d, s, w) {
4963
+ var y = d && (d.push || d.next);
4964
+ if (y && !w[y])
4965
+ throw new Error("Missing state '" + y + "' (in token '" + d.defaultType + "' of state '" + s + "')");
4966
+ if (d && d.pop && +d.pop != 1)
4967
+ throw new Error("pop must be 1 (in token '" + d.defaultType + "' of state '" + s + "')");
4968
+ }
4969
+ function co(d, s) {
4970
+ var w = d.$all ? z(d.$all) : [];
4971
+ delete d.$all;
4972
+ var y = Object.getOwnPropertyNames(d);
4973
+ s || (s = y[0]);
4974
+ for (var Y = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
4975
+ var j = y[_];
4976
+ Y[j] = z(d[j]).concat(w);
4977
+ }
4978
+ for (var _ = 0; _ < y.length; _++)
4979
+ for (var j = y[_], L = Y[j], A = /* @__PURE__ */ Object.create(null), q = 0; q < L.length; q++) {
4980
+ var H = L[q];
4981
+ if (H.include) {
4982
+ var wo = [q, 1];
4983
+ if (H.include !== j && !A[H.include]) {
4984
+ A[H.include] = !0;
4985
+ var xo = Y[H.include];
4986
+ if (!xo)
4987
+ throw new Error("Cannot include nonexistent state '" + H.include + "' (in state '" + j + "')");
4988
+ for (var mo = 0; mo < xo.length; mo++) {
4989
+ var jo = xo[mo];
4990
+ L.indexOf(jo) === -1 && wo.push(jo);
4991
+ }
4992
+ }
4993
+ L.splice.apply(L, wo), q--;
4994
+ }
4995
+ }
4996
+ for (var G = /* @__PURE__ */ Object.create(null), _ = 0; _ < y.length; _++) {
4997
+ var j = y[_];
4998
+ G[j] = M(Y[j], !0);
4999
+ }
5000
+ for (var _ = 0; _ < y.length; _++) {
5001
+ for (var Oo = y[_], Zo = G[Oo], Bo = Zo.groups, q = 0; q < Bo.length; q++)
5002
+ T(Bo[q], Oo, G);
5003
+ for (var tr = Object.getOwnPropertyNames(Zo.fast), q = 0; q < tr.length; q++)
5004
+ T(Zo.fast[tr[q]], Oo, G);
5005
+ }
5006
+ return new C(G, s);
5007
+ }
5008
+ function W(d) {
5009
+ for (var s = typeof Map < "u", w = s ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), y = Object.getOwnPropertyNames(d), Y = 0; Y < y.length; Y++) {
5010
+ var _ = y[Y], j = d[_], L = Array.isArray(j) ? j : [j];
5011
+ L.forEach(function(A) {
5012
+ if (typeof A != "string")
5013
+ throw new Error("keyword must be string (in keyword '" + _ + "')");
5014
+ s ? w.set(A, _) : w[A] = _;
5015
+ });
5016
+ }
5017
+ return function(A) {
5018
+ return s ? w.get(A) : w[A];
5019
+ };
5020
+ }
5021
+ var C = function(d, s) {
5022
+ this.startState = s, this.states = d, this.buffer = "", this.stack = [], this.reset();
5023
+ };
5024
+ C.prototype.reset = function(d, s) {
5025
+ return this.buffer = d || "", this.index = 0, this.line = s ? s.line : 1, this.col = s ? s.col : 1, this.queuedToken = s ? s.queuedToken : null, this.queuedText = s ? s.queuedText : "", this.queuedThrow = s ? s.queuedThrow : null, this.setState(s ? s.state : this.startState), this.stack = s && s.stack ? s.stack.slice() : [], this;
5026
+ }, C.prototype.save = function() {
5027
+ return {
5028
+ line: this.line,
5029
+ col: this.col,
5030
+ state: this.state,
5031
+ stack: this.stack.slice(),
5032
+ queuedToken: this.queuedToken,
5033
+ queuedText: this.queuedText,
5034
+ queuedThrow: this.queuedThrow
5035
+ };
5036
+ }, C.prototype.setState = function(d) {
5037
+ if (!(!d || this.state === d)) {
5038
+ this.state = d;
5039
+ var s = this.states[d];
5040
+ this.groups = s.groups, this.error = s.error, this.re = s.regexp, this.fast = s.fast;
5041
+ }
5042
+ }, C.prototype.popState = function() {
5043
+ this.setState(this.stack.pop());
5044
+ }, C.prototype.pushState = function(d) {
5045
+ this.stack.push(this.state), this.setState(d);
5046
+ };
5047
+ var R = t ? function(d, s) {
5048
+ return d.exec(s);
5049
+ } : function(d, s) {
5050
+ var w = d.exec(s);
5051
+ return w[0].length === 0 ? null : w;
5052
+ };
5053
+ C.prototype._getGroup = function(d) {
5054
+ for (var s = this.groups.length, w = 0; w < s; w++)
5055
+ if (d[w + 1] !== void 0)
5056
+ return this.groups[w];
5057
+ throw new Error("Cannot find token type for matched text");
5058
+ };
5059
+ function F() {
5060
+ return this.value;
5061
+ }
5062
+ if (C.prototype.next = function() {
5063
+ var d = this.index;
5064
+ if (this.queuedGroup) {
5065
+ var s = this._token(this.queuedGroup, this.queuedText, d);
5066
+ return this.queuedGroup = null, this.queuedText = "", s;
5067
+ }
5068
+ var w = this.buffer;
5069
+ if (d !== w.length) {
5070
+ var j = this.fast[w.charCodeAt(d)];
5071
+ if (j)
5072
+ return this._token(j, w.charAt(d), d);
5073
+ var y = this.re;
5074
+ y.lastIndex = d;
5075
+ var Y = R(y, w), _ = this.error;
5076
+ if (Y == null)
5077
+ return this._token(_, w.slice(d, w.length), d);
5078
+ var j = this._getGroup(Y), L = Y[0];
5079
+ return _.fallback && Y.index !== d ? (this.queuedGroup = j, this.queuedText = L, this._token(_, w.slice(d, Y.index), d)) : this._token(j, L, d);
5080
+ }
5081
+ }, C.prototype._token = function(d, s, w) {
5082
+ var y = 0;
5083
+ if (d.lineBreaks) {
5084
+ var Y = /\n/g, _ = 1;
5085
+ if (s === `
5086
+ `)
5087
+ y = 1;
5088
+ else
5089
+ for (; Y.exec(s); )
5090
+ y++, _ = Y.lastIndex;
5091
+ }
5092
+ var j = {
5093
+ type: typeof d.type == "function" && d.type(s) || d.defaultType,
5094
+ value: typeof d.value == "function" ? d.value(s) : s,
5095
+ text: s,
5096
+ toString: F,
5097
+ offset: w,
5098
+ lineBreaks: y,
5099
+ line: this.line,
5100
+ col: this.col
5101
+ }, L = s.length;
5102
+ if (this.index += L, this.line += y, y !== 0 ? this.col = L - _ + 1 : this.col += L, d.shouldThrow) {
5103
+ var A = new Error(this.formatError(j, "invalid syntax"));
5104
+ throw A;
5105
+ }
5106
+ return d.pop ? this.popState() : d.push ? this.pushState(d.push) : d.next && this.setState(d.next), j;
5107
+ }, typeof Symbol < "u" && Symbol.iterator) {
5108
+ var ro = function(d) {
5109
+ this.lexer = d;
5110
+ };
5111
+ ro.prototype.next = function() {
5112
+ var d = this.lexer.next();
5113
+ return { value: d, done: !d };
5114
+ }, ro.prototype[Symbol.iterator] = function() {
5115
+ return this;
5116
+ }, C.prototype[Symbol.iterator] = function() {
5117
+ return new ro(this);
5118
+ };
5119
+ }
5120
+ return C.prototype.formatError = function(d, s) {
5121
+ if (d == null)
5122
+ var w = this.buffer.slice(this.index), d = {
5123
+ text: w,
5124
+ offset: this.index,
5125
+ lineBreaks: w.indexOf(`
5126
+ `) === -1 ? 0 : 1,
5127
+ line: this.line,
5128
+ col: this.col
5129
+ };
5130
+ var y = 2, Y = Math.max(d.line - y, 1), _ = d.line + y, j = String(_).length, L = h(
5131
+ this.buffer,
5132
+ this.line - d.line + y + 1
5133
+ ).slice(0, 5), A = [];
5134
+ A.push(s + " at line " + d.line + " col " + d.col + ":"), A.push("");
5135
+ for (var q = 0; q < L.length; q++) {
5136
+ var H = L[q], wo = Y + q;
5137
+ A.push(u(String(wo), j) + " " + H), wo === d.line && A.push(u("", j + d.col + 1) + "^");
5138
+ }
5139
+ return A.join(`
5140
+ `);
5141
+ }, C.prototype.clone = function() {
5142
+ return new C(this.states, this.state);
5143
+ }, C.prototype.has = function(d) {
5144
+ return !0;
5145
+ }, {
5146
+ compile: D,
5147
+ states: co,
5148
+ error: Object.freeze({ error: !0 }),
5149
+ fallback: Object.freeze({ fallback: !0 }),
5150
+ keywords: W
5151
+ };
5152
+ });
5153
+ })(lt);
5154
+ var xa = lt.exports;
5155
+ (function(r) {
5156
+ var o = Dr && Dr.__importDefault || function(t) {
5157
+ return t && t.__esModule ? t : { default: t };
5158
+ };
5159
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.lexer = r.states = void 0;
5160
+ const e = o(xa);
5161
+ r.states = {
5162
+ body: {
5163
+ doubleapos: { match: "''", value: () => "'" },
5164
+ quoted: {
5165
+ lineBreaks: !0,
5166
+ match: /'[{}#](?:[^]*?[^'])?'(?!')/u,
5167
+ value: (t) => t.slice(1, -1).replace(/''/g, "'")
5168
+ },
5169
+ argument: {
5170
+ lineBreaks: !0,
5171
+ match: /\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
5172
+ push: "arg",
5173
+ value: (t) => t.substring(1).trim()
5174
+ },
5175
+ octothorpe: "#",
5176
+ end: { match: "}", pop: 1 },
5177
+ content: { lineBreaks: !0, match: /[^][^{}#']*/u }
5178
+ },
5179
+ arg: {
5180
+ select: {
5181
+ lineBreaks: !0,
5182
+ match: /,\s*(?:plural|select|selectordinal)\s*,\s*/u,
5183
+ next: "select",
5184
+ value: (t) => t.split(",")[1].trim()
5185
+ },
5186
+ "func-args": {
5187
+ lineBreaks: !0,
5188
+ match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,
5189
+ next: "body",
5190
+ value: (t) => t.split(",")[1].trim()
5191
+ },
5192
+ "func-simple": {
5193
+ lineBreaks: !0,
5194
+ match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
5195
+ value: (t) => t.substring(1).trim()
5196
+ },
5197
+ end: { match: "}", pop: 1 }
5198
+ },
5199
+ select: {
5200
+ offset: {
5201
+ lineBreaks: !0,
5202
+ match: /\s*offset\s*:\s*\d+\s*/u,
5203
+ value: (t) => t.split(":")[1].trim()
5204
+ },
5205
+ case: {
5206
+ lineBreaks: !0,
5207
+ match: /\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,
5208
+ push: "body",
5209
+ value: (t) => t.substring(0, t.indexOf("{")).trim()
5210
+ },
5211
+ end: { match: /\s*\}/u, pop: 1 }
5212
+ }
5213
+ }, r.lexer = e.default.states(r.states);
5214
+ })(it);
5215
+ Object.defineProperty(Wo, "__esModule", { value: !0 });
5216
+ var dt = Wo.parse = Wo.ParseError = void 0;
5217
+ const nt = it, ar = (r) => ({
5218
+ offset: r.offset,
5219
+ line: r.line,
5220
+ col: r.col,
5221
+ text: r.text,
5222
+ lineBreaks: r.lineBreaks
5223
+ }), Sr = (r) => r === "plural" || r === "select" || r === "selectordinal";
5224
+ function ma(r, o) {
5225
+ let e = "", t = "";
5226
+ for (const c of o) {
5227
+ const i = c.ctx.text;
5228
+ switch (t += i, c.type) {
5229
+ case "content":
5230
+ e += c.value;
5231
+ break;
5232
+ case "argument":
5233
+ case "function":
5234
+ case "octothorpe":
5235
+ e += i;
5236
+ break;
5237
+ default:
5238
+ throw new P(r, `Unsupported part in strict mode function arg style: ${i}`);
5239
+ }
5240
+ }
5241
+ return [{
5242
+ type: "content",
5243
+ value: e.trim(),
5244
+ ctx: Object.assign({}, o[0].ctx, { text: t })
5245
+ }];
5246
+ }
5247
+ const fa = [
5248
+ "number",
5249
+ "date",
5250
+ "time",
5251
+ "spellout",
5252
+ "ordinal",
5253
+ "duration"
5254
+ ], qe = ["zero", "one", "two", "few", "many", "other"];
5255
+ class P extends Error {
5256
+ /** @internal */
5257
+ constructor(o, e) {
5258
+ super(nt.lexer.formatError(o, e));
5259
+ }
5260
+ }
5261
+ Wo.ParseError = P;
5262
+ class ka {
5263
+ constructor(o, e) {
5264
+ var t, a, c, i;
5265
+ this.lexer = nt.lexer.reset(o), this.cardinalKeys = (t = e == null ? void 0 : e.cardinal) !== null && t !== void 0 ? t : qe, this.ordinalKeys = (a = e == null ? void 0 : e.ordinal) !== null && a !== void 0 ? a : qe, this.strict = (c = e == null ? void 0 : e.strict) !== null && c !== void 0 ? c : !1, this.strictPluralKeys = (i = e == null ? void 0 : e.strictPluralKeys) !== null && i !== void 0 ? i : !0;
5266
+ }
5267
+ parse() {
5268
+ return this.parseBody(!1, !0);
5269
+ }
5270
+ checkSelectKey(o, e, t) {
5271
+ if (t[0] === "=") {
5272
+ if (e === "select")
5273
+ throw new P(o, `The case ${t} is not valid with select`);
5274
+ } else if (e !== "select") {
5275
+ const a = e === "plural" ? this.cardinalKeys : this.ordinalKeys;
5276
+ if (this.strictPluralKeys && a.length > 0 && !a.includes(t)) {
5277
+ const c = `The ${e} case ${t} is not valid in this locale`;
5278
+ throw new P(o, c);
5279
+ }
5280
+ }
5281
+ }
5282
+ parseSelect({ value: o }, e, t, a) {
5283
+ const c = { type: a, arg: o, cases: [], ctx: t };
5284
+ a === "plural" || a === "selectordinal" ? e = !0 : this.strict && (e = !1);
5285
+ for (const i of this.lexer)
5286
+ switch (i.type) {
5287
+ case "offset":
5288
+ if (a === "select")
5289
+ throw new P(i, "Unexpected plural offset for select");
5290
+ if (c.cases.length > 0)
5291
+ throw new P(i, "Plural offset must be set before cases");
5292
+ c.pluralOffset = Number(i.value), t.text += i.text, t.lineBreaks += i.lineBreaks;
5293
+ break;
5294
+ case "case": {
5295
+ this.checkSelectKey(i, a, i.value), c.cases.push({
5296
+ key: i.value,
5297
+ tokens: this.parseBody(e),
5298
+ ctx: ar(i)
5299
+ });
5300
+ break;
5301
+ }
5302
+ case "end":
5303
+ return c;
5304
+ default:
5305
+ throw new P(i, `Unexpected lexer token: ${i.type}`);
5306
+ }
5307
+ throw new P(null, "Unexpected message end");
5308
+ }
5309
+ parseArgToken(o, e) {
5310
+ const t = ar(o), a = this.lexer.next();
5311
+ if (!a)
5312
+ throw new P(null, "Unexpected message end");
5313
+ if (t.text += a.text, t.lineBreaks += a.lineBreaks, this.strict && (a.type === "func-simple" || a.type === "func-args") && !fa.includes(a.value)) {
5314
+ const c = `Invalid strict mode function arg type: ${a.value}`;
5315
+ throw new P(o, c);
5316
+ }
5317
+ switch (a.type) {
5318
+ case "end":
5319
+ return { type: "argument", arg: o.value, ctx: t };
5320
+ case "func-simple": {
5321
+ const c = this.lexer.next();
5322
+ if (!c)
5323
+ throw new P(null, "Unexpected message end");
5324
+ if (c.type !== "end")
5325
+ throw new P(c, `Unexpected lexer token: ${c.type}`);
5326
+ if (t.text += c.text, Sr(a.value.toLowerCase()))
5327
+ throw new P(a, `Invalid type identifier: ${a.value}`);
5328
+ return {
5329
+ type: "function",
5330
+ arg: o.value,
5331
+ key: a.value,
5332
+ ctx: t
5333
+ };
5334
+ }
5335
+ case "func-args": {
5336
+ if (Sr(a.value.toLowerCase())) {
5337
+ const i = `Invalid type identifier: ${a.value}`;
5338
+ throw new P(a, i);
5339
+ }
5340
+ let c = this.parseBody(this.strict ? !1 : e);
5341
+ return this.strict && c.length > 0 && (c = ma(o, c)), {
5342
+ type: "function",
5343
+ arg: o.value,
5344
+ key: a.value,
5345
+ param: c,
5346
+ ctx: t
5347
+ };
5348
+ }
5349
+ case "select":
5350
+ if (Sr(a.value))
5351
+ return this.parseSelect(o, e, t, a.value);
5352
+ throw new P(a, `Unexpected select type ${a.value}`);
5353
+ default:
5354
+ throw new P(a, `Unexpected lexer token: ${a.type}`);
5355
+ }
5356
+ }
5357
+ parseBody(o, e) {
5358
+ const t = [];
5359
+ let a = null;
5360
+ for (const c of this.lexer)
5361
+ if (c.type === "argument")
5362
+ a && (a = null), t.push(this.parseArgToken(c, o));
5363
+ else if (c.type === "octothorpe" && o)
5364
+ a && (a = null), t.push({ type: "octothorpe", ctx: ar(c) });
5365
+ else {
5366
+ if (c.type === "end" && !e)
5367
+ return t;
5368
+ {
5369
+ let i = c.value;
5370
+ if (!o && c.type === "quoted" && i[0] === "#") {
5371
+ if (i.includes("{")) {
5372
+ const l = `Unsupported escape pattern: ${i}`;
5373
+ throw new P(c, l);
5374
+ }
5375
+ i = c.text;
5376
+ }
5377
+ a ? (a.value += i, a.ctx.text += c.text, a.ctx.lineBreaks += c.lineBreaks) : (a = { type: "content", value: i, ctx: ar(c) }, t.push(a));
5378
+ }
5379
+ }
5380
+ if (e)
5381
+ return t;
5382
+ throw new P(null, "Unexpected message end");
5383
+ }
5384
+ }
5385
+ function $a(r, o = {}) {
5386
+ return new ka(r, o).parse();
5387
+ }
5388
+ dt = Wo.parse = $a;
5389
+ function bt(r, o) {
5390
+ return r.filter((e) => e.type !== "content").length ? r.map((e) => {
5391
+ var c;
5392
+ if (e.type === "content")
5393
+ return o(e.value);
5394
+ if (e.type === "octothorpe")
5395
+ return "#";
5396
+ if (e.type === "argument")
5397
+ return [e.arg];
5398
+ if (e.type === "function") {
5399
+ const i = (c = e == null ? void 0 : e.param) == null ? void 0 : c[0];
5400
+ return i ? [e.arg, e.key, i.value.trim()] : [e.arg, e.key];
5401
+ }
5402
+ const t = e.pluralOffset, a = {};
5403
+ return e.cases.forEach((i) => {
5404
+ a[i.key.replace(/^=(.)+/, "$1")] = bt(
5405
+ i.tokens,
5406
+ o
5407
+ );
5408
+ }), [
5409
+ e.arg,
5410
+ e.type,
5411
+ {
5412
+ offset: t,
5413
+ ...a
5414
+ }
5415
+ ];
5416
+ }) : r.map((e) => o(e.value)).join("");
5417
+ }
5418
+ function ya(r, o = (e) => e) {
5419
+ try {
5420
+ return bt(dt(r), o);
5421
+ } catch (e) {
5422
+ return console.error(`${e.message}
5423
+
5424
+ Message: ${r}`), r;
5425
+ }
5426
+ }
5427
+ const to = (r) => typeof r == "string", za = (r) => typeof r == "function", Xe = /* @__PURE__ */ new Map();
5428
+ function le(r) {
5429
+ return [...Array.isArray(r) ? r : [r], "en"];
5430
+ }
5431
+ function st(r, o, e) {
5432
+ const t = le(r);
5433
+ return xr(
5434
+ () => mr("date", t, e),
5435
+ () => new Intl.DateTimeFormat(t, e)
5436
+ ).format(to(o) ? new Date(o) : o);
5437
+ }
5438
+ function Rr(r, o, e) {
5439
+ const t = le(r);
5440
+ return xr(
5441
+ () => mr("number", t, e),
5442
+ () => new Intl.NumberFormat(t, e)
5443
+ ).format(o);
5444
+ }
5445
+ function Ye(r, o, e, { offset: t = 0, ...a }) {
5446
+ const c = le(r), i = o ? xr(
5447
+ () => mr("plural-ordinal", c),
5448
+ () => new Intl.PluralRules(c, { type: "ordinal" })
5449
+ ) : xr(
5450
+ () => mr("plural-cardinal", c),
5451
+ () => new Intl.PluralRules(c, { type: "cardinal" })
5452
+ );
5453
+ return a[e] ?? a[i.select(e - t)] ?? a.other;
5454
+ }
5455
+ function xr(r, o) {
5456
+ const e = r();
5457
+ let t = Xe.get(e);
5458
+ return t || (t = o(), Xe.set(e, t)), t;
5459
+ }
5460
+ function mr(r, o, e) {
5461
+ const t = o.join("-");
5462
+ return `${r}-${t}-${JSON.stringify(e)}`;
5463
+ }
5464
+ const gt = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, _a = (r, o, e = {}) => {
5465
+ o = o || r;
5466
+ const t = (c) => to(c) ? e[c] || { style: c } : c, a = (c, i) => {
5467
+ const l = Object.keys(e).length ? t("number") : {}, n = Rr(o, c, l);
5468
+ return i.replace("#", n);
5469
+ };
5470
+ return {
5471
+ plural: (c, i) => {
5472
+ const { offset: l = 0 } = i, n = Ye(o, !1, c, i);
5473
+ return a(c - l, n);
5474
+ },
5475
+ selectordinal: (c, i) => {
5476
+ const { offset: l = 0 } = i, n = Ye(o, !0, c, i);
5477
+ return a(c - l, n);
5478
+ },
5479
+ select: (c, i) => i[c] ?? i.other,
5480
+ number: (c, i) => Rr(o, c, t(i)),
5481
+ date: (c, i) => st(o, c, t(i)),
5482
+ undefined: (c) => c
5483
+ };
5484
+ };
5485
+ function qa(r, o, e) {
5486
+ return (t, a = {}) => {
5487
+ const c = _a(o, e, a), i = (n) => Array.isArray(n) ? n.reduce((b, v) => {
5488
+ if (to(v))
5489
+ return b + v;
5490
+ const [u, h, g] = v;
5491
+ let p = {};
5492
+ g != null && !to(g) ? Object.keys(g).forEach((z) => {
5493
+ p[z] = i(g[z]);
5494
+ }) : p = g;
5495
+ const x = c[h](t[u], p);
5496
+ return x == null ? b : b + x;
5497
+ }, "") : n, l = i(r);
5498
+ return to(l) && gt.test(l) ? wa(l.trim()) : to(l) ? l.trim() : l;
5499
+ };
5500
+ }
5501
+ var Xa = Object.defineProperty, Ya = (r, o, e) => o in r ? Xa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, ja = (r, o, e) => (Ya(r, typeof o != "symbol" ? o + "" : o, e), e);
5502
+ class Za {
5503
+ constructor() {
5504
+ ja(this, "_events", {});
5505
+ }
5506
+ on(o, e) {
5507
+ return this._hasEvent(o) || (this._events[o] = []), this._events[o].push(e), () => this.removeListener(o, e);
5508
+ }
5509
+ removeListener(o, e) {
5510
+ if (!this._hasEvent(o))
5511
+ return;
5512
+ const t = this._events[o].indexOf(e);
5513
+ ~t && this._events[o].splice(t, 1);
5514
+ }
5515
+ emit(o, ...e) {
5516
+ this._hasEvent(o) && this._events[o].map((t) => t.apply(this, e));
5517
+ }
5518
+ _hasEvent(o) {
5519
+ return Array.isArray(this._events[o]);
5520
+ }
5521
+ }
5522
+ var Sa = Object.defineProperty, Aa = (r, o, e) => o in r ? Sa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, Ao = (r, o, e) => (Aa(r, typeof o != "symbol" ? o + "" : o, e), e);
5523
+ class Ea extends Za {
5524
+ constructor(o) {
5525
+ super(), Ao(this, "_locale"), Ao(this, "_locales"), Ao(this, "_localeData"), Ao(this, "_messages"), Ao(this, "_missing"), Ao(this, "t", this._.bind(this)), this._messages = {}, this._localeData = {}, o.missing != null && (this._missing = o.missing), o.messages != null && this.load(o.messages), o.localeData != null && this.loadLocaleData(o.localeData), (o.locale != null || o.locales != null) && this.activate(o.locale, o.locales);
5526
+ }
5527
+ get locale() {
5528
+ return this._locale;
5529
+ }
5530
+ get locales() {
5531
+ return this._locales;
5532
+ }
5533
+ get messages() {
5534
+ return this._messages[this._locale] ?? {};
5535
+ }
5536
+ /**
5537
+ * @deprecated this has no effect. Please remove this from the code. Deprecated in v4
5538
+ */
5539
+ get localeData() {
5540
+ return this._localeData[this._locale] ?? {};
5541
+ }
5542
+ _loadLocaleData(o, e) {
5543
+ this._localeData[o] == null ? this._localeData[o] = e : Object.assign(this._localeData[o], e);
5544
+ }
5545
+ /**
5546
+ * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
5547
+ */
5548
+ loadLocaleData(o, e) {
5549
+ e != null ? this._loadLocaleData(o, e) : Object.keys(o).forEach(
5550
+ (t) => this._loadLocaleData(t, o[t])
5551
+ ), this.emit("change");
5552
+ }
5553
+ _load(o, e) {
5554
+ this._messages[o] == null ? this._messages[o] = e : Object.assign(this._messages[o], e);
5555
+ }
5556
+ load(o, e) {
5557
+ e != null ? this._load(o, e) : Object.keys(o).forEach(
5558
+ (t) => this._load(t, o[t])
5559
+ ), this.emit("change");
5560
+ }
5561
+ /**
5562
+ * @param options {@link LoadAndActivateOptions}
5563
+ */
5564
+ loadAndActivate({ locale: o, locales: e, messages: t }) {
5565
+ this._locale = o, this._locales = e || void 0, this._messages[this._locale] = t, this.emit("change");
5566
+ }
5567
+ activate(o, e) {
5568
+ process.env.NODE_ENV !== "production" && (this._messages[o] || console.warn(`Messages for locale "${o}" not loaded.`)), this._locale = o, this._locales = e, this.emit("change");
5569
+ }
5570
+ _(o, e = {}, { message: t, formats: a } = {}) {
5571
+ to(o) || (e = o.values || e, t = o.message, o = o.id);
5572
+ const c = !this.messages[o], i = this._missing;
5573
+ if (i && c)
5574
+ return za(i) ? i(this._locale, o) : i;
5575
+ c && this.emit("missing", { id: o, locale: this._locale });
5576
+ let l = this.messages[o] || t || o;
5577
+ return process.env.NODE_ENV !== "production" && (l = to(l) ? ya(l) : l), to(l) && gt.test(l) ? JSON.parse(`"${l}"`) : to(l) ? l : qa(
5578
+ l,
5579
+ this._locale,
5580
+ this._locales
5581
+ )(e, a);
5582
+ }
5583
+ date(o, e) {
5584
+ return st(this._locales || this._locale, o, e);
5585
+ }
5586
+ number(o, e) {
5587
+ return Rr(this._locales || this._locale, o, e);
5588
+ }
5589
+ }
5590
+ function Ca(r = {}) {
5591
+ return new Ea(r);
5592
+ }
5593
+ const Vo = Ca(), La = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}'), Ma = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}'), Ta = JSON.parse('{"breadcrumbs.ariaLabel":"Olet tässä"}'), Oa = ["en", "nb", "fi"], ut = "en", je = (r) => Oa.find(
5594
+ (o) => r === o || r.toLowerCase().includes(o)
5595
+ ) || ut;
5596
+ function Ba() {
5597
+ if (typeof window > "u") {
5598
+ const r = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
5599
+ return je(r);
5600
+ }
5601
+ try {
5602
+ const r = document.documentElement.lang;
5603
+ return je(r);
5604
+ } catch (r) {
5605
+ return console.warn("could not detect locale, falling back to source locale", r), ut;
5606
+ }
5607
+ }
5608
+ const Na = (r, o, e, t) => r === "nb" ? e : r === "fi" ? t : o, de = (r, o, e) => {
5609
+ const t = Ba(), a = Na(t, r, o, e);
5610
+ Vo.load(t, a), Vo.activate(t);
5611
+ }, Da = f`<span class=${Eo.separator} aria-hidden='true'>/</span>`;
5612
+ class Pr extends Ko(I) {
4677
5613
  constructor() {
4678
- super(), this.ariaLabel = "Her er du";
5614
+ super(), de(La, Ma, Ta), this.ariaLabel = Vo._(
5615
+ {
5616
+ id: "breadcrumbs.ariaLabel",
5617
+ message: "You are here",
5618
+ comment: "Default screenreader message for the breadcrumb component"
5619
+ }
5620
+ );
4679
5621
  }
4680
5622
  connectedCallback() {
4681
5623
  super.connectedCallback();
4682
5624
  const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
4683
5625
  if (typeof t == "string") {
4684
5626
  const c = a === children.length - 1;
4685
- return v`<span class=${go.text} aria-current=${c ? "page" : void 0}>${t}</span>`;
5627
+ return f`<span class=${Eo.text} aria-current=${c ? "page" : void 0}>${t}</span>`;
4686
5628
  }
4687
- return t.classList.add(t.tagName === "A" ? go.link : go.text), t;
5629
+ return t.classList.add(t.tagName === "A" ? Eo.link : Eo.text), t;
4688
5630
  });
4689
- this._children = _t(e, Xt);
5631
+ this._children = ha(e, Da);
4690
5632
  }
4691
5633
  render() {
4692
- return v`
5634
+ return f`
4693
5635
  <nav aria-label=${this.ariaLabel}>
4694
- <h2 class=${go.a11y}>${this.ariaLabel}</h2>
4695
- <div class=${go.wrapper}>
5636
+ <h2 class=${Eo.a11y}>${this.ariaLabel}</h2>
5637
+ <div class=${Eo.wrapper}>
4696
5638
  ${this._children}
4697
5639
  </div>
4698
5640
  </nav>
4699
5641
  `;
4700
5642
  }
4701
5643
  }
4702
- f(vr, "styles", A`
5644
+ Z(Pr, "styles", Q`
4703
5645
  /* layer: preflights */
4704
5646
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
4705
5647
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -5348,37 +6290,37 @@ f(vr, "styles", A`
5348
6290
  .sm\\:pb-32{padding-bottom:3.2rem;}
5349
6291
  .sm\\:pt-32{padding-top:3.2rem;}
5350
6292
  }
5351
- `), f(vr, "properties", {
6293
+ `), Z(Pr, "properties", {
5352
6294
  ariaLabel: { type: String }
5353
6295
  });
5354
- customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", vr);
6296
+ customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", Pr);
5355
6297
  /**
5356
6298
  * @license
5357
6299
  * Copyright 2020 Google LLC
5358
6300
  * SPDX-License-Identifier: BSD-3-Clause
5359
6301
  */
5360
- const { I: Yt } = Ie, Vr = () => document.createComment(""), ko = (r, o, e) => {
6302
+ const { I: Ra } = St, Ze = () => document.createComment(""), Ro = (r, o, e) => {
5361
6303
  var t;
5362
6304
  const a = r._$AA.parentNode, c = o === void 0 ? r._$AB : o._$AA;
5363
6305
  if (e === void 0) {
5364
- const i = a.insertBefore(Vr(), c), l = a.insertBefore(Vr(), c);
5365
- e = new Yt(i, l, r, r.options);
6306
+ const i = a.insertBefore(Ze(), c), l = a.insertBefore(Ze(), c);
6307
+ e = new Ra(i, l, r, r.options);
5366
6308
  } else {
5367
- const i = e._$AB.nextSibling, l = e._$AM, d = l !== r;
5368
- if (d) {
5369
- let n;
5370
- (t = e._$AQ) === null || t === void 0 || t.call(e, r), e._$AM = r, e._$AP !== void 0 && (n = r._$AU) !== l._$AU && e._$AP(n);
6309
+ const i = e._$AB.nextSibling, l = e._$AM, n = l !== r;
6310
+ if (n) {
6311
+ let b;
6312
+ (t = e._$AQ) === null || t === void 0 || t.call(e, r), e._$AM = r, e._$AP !== void 0 && (b = r._$AU) !== l._$AU && e._$AP(b);
5371
6313
  }
5372
- if (i !== c || d) {
5373
- let n = e._$AA;
5374
- for (; n !== i; ) {
5375
- const g = n.nextSibling;
5376
- a.insertBefore(n, c), n = g;
6314
+ if (i !== c || n) {
6315
+ let b = e._$AA;
6316
+ for (; b !== i; ) {
6317
+ const v = b.nextSibling;
6318
+ a.insertBefore(b, c), b = v;
5377
6319
  }
5378
6320
  }
5379
6321
  }
5380
6322
  return e;
5381
- }, eo = (r, o, e = r) => (r._$AI(o, e), r), jt = {}, Zt = (r, o = jt) => r._$AH = o, At = (r) => r._$AH, cr = (r) => {
6323
+ }, zo = (r, o, e = r) => (r._$AI(o, e), r), Pa = {}, Ia = (r, o = Pa) => r._$AH = o, Ha = (r) => r._$AH, Ar = (r) => {
5382
6324
  var o;
5383
6325
  (o = r._$AP) === null || o === void 0 || o.call(r, !1, !0);
5384
6326
  let e = r._$AA;
@@ -5393,14 +6335,14 @@ const { I: Yt } = Ie, Vr = () => document.createComment(""), ko = (r, o, e) => {
5393
6335
  * Copyright 2017 Google LLC
5394
6336
  * SPDX-License-Identifier: BSD-3-Clause
5395
6337
  */
5396
- const Gr = (r, o, e) => {
6338
+ const Se = (r, o, e) => {
5397
6339
  const t = /* @__PURE__ */ new Map();
5398
6340
  for (let a = o; a <= e; a++)
5399
6341
  t.set(r[a], a);
5400
6342
  return t;
5401
- }, ze = Yr(class extends jr {
6343
+ }, vt = te(class extends ae {
5402
6344
  constructor(r) {
5403
- if (super(r), r.type !== Xr.CHILD)
6345
+ if (super(r), r.type !== ee.CHILD)
5404
6346
  throw Error("repeat() can only be used in text expressions");
5405
6347
  }
5406
6348
  dt(r, o, e) {
@@ -5417,58 +6359,58 @@ const Gr = (r, o, e) => {
5417
6359
  }
5418
6360
  update(r, [o, e, t]) {
5419
6361
  var a;
5420
- const c = At(r), { values: i, keys: l } = this.dt(o, e, t);
6362
+ const c = Ha(r), { values: i, keys: l } = this.dt(o, e, t);
5421
6363
  if (!Array.isArray(c))
5422
6364
  return this.ht = l, i;
5423
- const d = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], n = [];
5424
- let g, b, s = 0, w = c.length - 1, x = 0, m = i.length - 1;
5425
- for (; s <= w && x <= m; )
5426
- if (c[s] === null)
5427
- s++;
5428
- else if (c[w] === null)
5429
- w--;
5430
- else if (d[s] === l[x])
5431
- n[x] = eo(c[s], i[x]), s++, x++;
5432
- else if (d[w] === l[m])
5433
- n[m] = eo(c[w], i[m]), w--, m--;
5434
- else if (d[s] === l[m])
5435
- n[m] = eo(c[s], i[m]), ko(r, n[m + 1], c[s]), s++, m--;
5436
- else if (d[w] === l[x])
5437
- n[x] = eo(c[w], i[x]), ko(r, c[s], c[w]), w--, x++;
5438
- else if (g === void 0 && (g = Gr(l, x, m), b = Gr(d, s, w)), g.has(d[s]))
5439
- if (g.has(d[w])) {
5440
- const y = b.get(l[x]), X = y !== void 0 ? c[y] : null;
5441
- if (X === null) {
5442
- const j = ko(r, c[s]);
5443
- eo(j, i[x]), n[x] = j;
6365
+ const n = (a = this.ht) !== null && a !== void 0 ? a : this.ht = [], b = [];
6366
+ let v, u, h = 0, g = c.length - 1, p = 0, x = i.length - 1;
6367
+ for (; h <= g && p <= x; )
6368
+ if (c[h] === null)
6369
+ h++;
6370
+ else if (c[g] === null)
6371
+ g--;
6372
+ else if (n[h] === l[p])
6373
+ b[p] = zo(c[h], i[p]), h++, p++;
6374
+ else if (n[g] === l[x])
6375
+ b[x] = zo(c[g], i[x]), g--, x--;
6376
+ else if (n[h] === l[x])
6377
+ b[x] = zo(c[h], i[x]), Ro(r, b[x + 1], c[h]), h++, x--;
6378
+ else if (n[g] === l[p])
6379
+ b[p] = zo(c[g], i[p]), Ro(r, c[h], c[g]), g--, p++;
6380
+ else if (v === void 0 && (v = Se(l, p, x), u = Se(n, h, g)), v.has(n[h]))
6381
+ if (v.has(n[g])) {
6382
+ const z = u.get(l[p]), E = z !== void 0 ? c[z] : null;
6383
+ if (E === null) {
6384
+ const M = Ro(r, c[h]);
6385
+ zo(M, i[p]), b[p] = M;
5444
6386
  } else
5445
- n[x] = eo(X, i[x]), ko(r, c[s], X), c[y] = null;
5446
- x++;
6387
+ b[p] = zo(E, i[p]), Ro(r, c[h], E), c[z] = null;
6388
+ p++;
5447
6389
  } else
5448
- cr(c[w]), w--;
6390
+ Ar(c[g]), g--;
5449
6391
  else
5450
- cr(c[s]), s++;
5451
- for (; x <= m; ) {
5452
- const y = ko(r, n[m + 1]);
5453
- eo(y, i[x]), n[x++] = y;
6392
+ Ar(c[h]), h++;
6393
+ for (; p <= x; ) {
6394
+ const z = Ro(r, b[x + 1]);
6395
+ zo(z, i[p]), b[p++] = z;
5454
6396
  }
5455
- for (; s <= w; ) {
5456
- const y = c[s++];
5457
- y !== null && cr(y);
6397
+ for (; h <= g; ) {
6398
+ const z = c[h++];
6399
+ z !== null && Ar(z);
5458
6400
  }
5459
- return this.ht = l, Zt(r, n), V;
6401
+ return this.ht = l, Ia(r, b), ho;
5460
6402
  }
5461
- }), Xo = typeof window < "u";
5462
- class pr extends Y {
6403
+ }), Go = typeof window < "u";
6404
+ class Ir extends I {
5463
6405
  constructor() {
5464
- super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = Xo ? window.location.href : "";
6406
+ super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = Go ? window.location.href : "";
5465
6407
  }
5466
6408
  async connectedCallback() {
5467
6409
  if (super.connectedCallback(), !this.api) {
5468
6410
  console.error('Broadcast "api" attribute invalid or undefined');
5469
6411
  return;
5470
6412
  }
5471
- Xo && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
6413
+ Go && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
5472
6414
  }
5473
6415
  async _fetchMessage() {
5474
6416
  const o = `${this.api}?path=${this.url}`;
@@ -5484,12 +6426,12 @@ class pr extends Y {
5484
6426
  }
5485
6427
  render() {
5486
6428
  const o = this._messages.filter((e) => !this._hiddenMessageIds.includes(e.id));
5487
- return v`
6429
+ return f`
5488
6430
  <aside class=${`${o.length === 0 ? "hidden" : "mb-16"}`}>
5489
- ${ze(
6431
+ ${vt(
5490
6432
  o,
5491
6433
  ({ id: e }) => `broadcast-${e}`,
5492
- ({ id: e, message: t }) => v`<w-toast
6434
+ ({ id: e, message: t }) => f`<w-toast
5493
6435
  id="broadcast-${e}"
5494
6436
  type="warning"
5495
6437
  text="${t}"
@@ -5502,7 +6444,7 @@ class pr extends Y {
5502
6444
  `;
5503
6445
  }
5504
6446
  }
5505
- f(pr, "properties", {
6447
+ Z(Ir, "properties", {
5506
6448
  _messages: {
5507
6449
  state: !0,
5508
6450
  hasChanged(o, e) {
@@ -5519,7 +6461,7 @@ f(pr, "properties", {
5519
6461
  interval: { type: Number, attribute: !0, reflect: !0 },
5520
6462
  url: { type: String, attribute: !0, reflect: !0 },
5521
6463
  api: { type: String, attribute: !0, reflect: !0 }
5522
- }), f(pr, "styles", A`
6464
+ }), Z(Ir, "styles", Q`
5523
6465
  /* layer: preflights */
5524
6466
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
5525
6467
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -6170,8 +7112,8 @@ f(pr, "properties", {
6170
7112
  .sm\\:pt-32{padding-top:3.2rem;}
6171
7113
  }
6172
7114
  `);
6173
- customElements.get("w-broadcast") || customElements.define("w-broadcast", pr);
6174
- const Jr = [
7115
+ customElements.get("w-broadcast") || customElements.define("w-broadcast", Ir);
7116
+ const Qa = JSON.parse('{"button.aria.loading":"Loading..."}'), Ua = JSON.parse('{"button.aria.loading":"Laster..."}'), Fa = JSON.parse('{"button.aria.loading":"Ladataan..."}'), Ae = [
6175
7117
  "primary",
6176
7118
  "secondary",
6177
7119
  "negative",
@@ -6179,15 +7121,19 @@ const Jr = [
6179
7121
  "pill",
6180
7122
  "link"
6181
7123
  ];
6182
- class Eo extends jo(Y) {
7124
+ class cr extends Ko(I) {
6183
7125
  constructor() {
6184
- super(), this.variant = "secondary";
7126
+ super(), de(Qa, Ua, Fa), this.variant = "secondary", this.ariaValueTextLoading = Vo._({
7127
+ id: "button.aria.loading",
7128
+ message: "Loading...",
7129
+ comment: "Screenreader message for buttons that are loading"
7130
+ });
6185
7131
  }
6186
7132
  connectedCallback() {
6187
- if (super.connectedCallback(), !Jr.includes(this.variant))
7133
+ if (super.connectedCallback(), !Ae.includes(this.variant))
6188
7134
  throw new Error(
6189
7135
  `Invalid "variant" attribute. Set its value to one of the following:
6190
- ${Jr.join(
7136
+ ${Ae.join(
6191
7137
  ", "
6192
7138
  )}.`
6193
7139
  );
@@ -6197,74 +7143,79 @@ ${Jr.join(
6197
7143
  }
6198
7144
  get _classes() {
6199
7145
  const o = this.variant === "primary", e = this.variant === "secondary", t = this.variant === "negative", a = this.variant === "utility", c = this.variant === "pill", i = this.variant === "link";
6200
- return W(
7146
+ return uo(
6201
7147
  {
6202
- [k.secondary]: e && !this.small && !this.quiet && !this.loading,
6203
- [k.secondarySmall]: e && this.small && !this.quiet && !this.loading,
6204
- [k.secondarySmallLoading]: e && this.small && !this.quiet && this.loading,
6205
- [k.secondarySmallQuiet]: e && this.small && this.quiet && !this.loading,
6206
- [k.secondarySmallQuietLoading]: e && this.small && this.quiet && this.loading,
6207
- [k.secondaryQuiet]: e && !this.small && this.quiet && !this.loading,
6208
- [k.secondaryQuietLoading]: e && !this.small && this.quiet && this.loading,
6209
- [k.secondaryLoading]: e && !this.small && !this.quiet && this.loading,
6210
- [k.primary]: o && !this.small && !this.quiet && !this.loading,
6211
- [k.primarySmall]: o && this.small && !this.quiet && !this.loading,
6212
- [k.primarySmallQuiet]: o && this.small && this.quiet && !this.loading,
6213
- [k.primarySmallLoading]: o && this.small && !this.quiet && this.loading,
6214
- [k.primarySmallQuietLoading]: o && this.small && this.quiet && this.loading,
6215
- [k.primaryQuiet]: o && !this.small && this.quiet && !this.loading,
6216
- [k.primaryQuietLoading]: o && !this.small && this.quiet && this.loading,
6217
- [k.primaryLoading]: o && !this.small && !this.quiet && this.loading,
6218
- [k.utility]: a && !this.small && !this.quiet && !this.loading,
6219
- [k.utilitySmall]: a && this.small && !this.quiet && !this.loading,
6220
- [k.utilitySmallQuiet]: a && this.small && this.quiet && !this.loading,
6221
- [k.utilitySmallLoading]: a && this.small && !this.quiet && this.loading,
6222
- [k.utilitySmallQuietLoading]: a && this.small && this.quiet && this.loading,
6223
- [k.utilityQuiet]: a && !this.small && this.quiet && !this.loading,
6224
- [k.utilityQuietLoading]: a && !this.small && this.quiet && this.loading,
6225
- [k.utilityLoading]: a && !this.small && !this.quiet && this.loading,
6226
- [k.negative]: t && !this.small && !this.quiet && !this.loading,
6227
- [k.negativeSmall]: t && this.small && !this.quiet && !this.loading,
6228
- [k.negativeSmallQuiet]: t && this.small && this.quiet && !this.loading,
6229
- [k.negativeSmallLoading]: t && this.small && !this.quiet && this.loading,
6230
- [k.negativeSmallQuietLoading]: t && this.small && this.quiet && this.loading,
6231
- [k.negativeQuiet]: t && !this.small && this.quiet && !this.loading,
6232
- [k.negativeQuietLoading]: t && !this.small && this.quiet && this.loading,
6233
- [k.negativeLoading]: t && !this.small && !this.quiet && this.loading,
6234
- [k.pill]: c && !this.small && !this.loading,
6235
- [k.pillSmall]: c && this.small && !this.loading,
6236
- [k.pillLoading]: c && !this.small && this.loading,
6237
- [k.pillSmallLoading]: c && this.small && this.loading,
6238
- [k.link]: i && !this.small,
6239
- [k.linkSmall]: i && this.small,
6240
- [k.linkAsButton]: !!this.href,
6241
- [k.fullWidth]: this.fullWidth,
6242
- [k.contentWidth]: !this.fullWidth
7148
+ [X.secondary]: e && !this.small && !this.quiet && !this.loading,
7149
+ [X.secondarySmall]: e && this.small && !this.quiet && !this.loading,
7150
+ [X.secondarySmallLoading]: e && this.small && !this.quiet && this.loading,
7151
+ [X.secondarySmallQuiet]: e && this.small && this.quiet && !this.loading,
7152
+ [X.secondarySmallQuietLoading]: e && this.small && this.quiet && this.loading,
7153
+ [X.secondaryQuiet]: e && !this.small && this.quiet && !this.loading,
7154
+ [X.secondaryQuietLoading]: e && !this.small && this.quiet && this.loading,
7155
+ [X.secondaryLoading]: e && !this.small && !this.quiet && this.loading,
7156
+ [X.primary]: o && !this.small && !this.quiet && !this.loading,
7157
+ [X.primarySmall]: o && this.small && !this.quiet && !this.loading,
7158
+ [X.primarySmallQuiet]: o && this.small && this.quiet && !this.loading,
7159
+ [X.primarySmallLoading]: o && this.small && !this.quiet && this.loading,
7160
+ [X.primarySmallQuietLoading]: o && this.small && this.quiet && this.loading,
7161
+ [X.primaryQuiet]: o && !this.small && this.quiet && !this.loading,
7162
+ [X.primaryQuietLoading]: o && !this.small && this.quiet && this.loading,
7163
+ [X.primaryLoading]: o && !this.small && !this.quiet && this.loading,
7164
+ [X.utility]: a && !this.small && !this.quiet && !this.loading,
7165
+ [X.utilitySmall]: a && this.small && !this.quiet && !this.loading,
7166
+ [X.utilitySmallQuiet]: a && this.small && this.quiet && !this.loading,
7167
+ [X.utilitySmallLoading]: a && this.small && !this.quiet && this.loading,
7168
+ [X.utilitySmallQuietLoading]: a && this.small && this.quiet && this.loading,
7169
+ [X.utilityQuiet]: a && !this.small && this.quiet && !this.loading,
7170
+ [X.utilityQuietLoading]: a && !this.small && this.quiet && this.loading,
7171
+ [X.utilityLoading]: a && !this.small && !this.quiet && this.loading,
7172
+ [X.negative]: t && !this.small && !this.quiet && !this.loading,
7173
+ [X.negativeSmall]: t && this.small && !this.quiet && !this.loading,
7174
+ [X.negativeSmallQuiet]: t && this.small && this.quiet && !this.loading,
7175
+ [X.negativeSmallLoading]: t && this.small && !this.quiet && this.loading,
7176
+ [X.negativeSmallQuietLoading]: t && this.small && this.quiet && this.loading,
7177
+ [X.negativeQuiet]: t && !this.small && this.quiet && !this.loading,
7178
+ [X.negativeQuietLoading]: t && !this.small && this.quiet && this.loading,
7179
+ [X.negativeLoading]: t && !this.small && !this.quiet && this.loading,
7180
+ [X.pill]: c && !this.small && !this.loading,
7181
+ [X.pillSmall]: c && this.small && !this.loading,
7182
+ [X.pillLoading]: c && !this.small && this.loading,
7183
+ [X.pillSmallLoading]: c && this.small && this.loading,
7184
+ [X.link]: i && !this.small,
7185
+ [X.linkSmall]: i && this.small,
7186
+ [X.linkAsButton]: !!this.href,
7187
+ [X.fullWidth]: this.fullWidth,
7188
+ [X.contentWidth]: !this.fullWidth
6243
7189
  },
6244
7190
  this.buttonClass
6245
7191
  );
6246
7192
  }
6247
7193
  render() {
6248
- return v`
6249
- ${this.href ? v`<a
7194
+ return f` ${this.href ? f`<a
6250
7195
  href=${this.href}
6251
7196
  target=${this.target}
6252
7197
  rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
6253
7198
  class=${this._classes}
6254
7199
  >
6255
7200
  <slot></slot>
6256
- </a>` : v`<button type=${this.type || "button"} class=${this._classes}>
7201
+ </a>` : f`<button
7202
+ type=${this.type || "button"}
7203
+ class=${this._classes}
7204
+ >
6257
7205
  <slot></slot>
6258
7206
  </button>`}
6259
- ${this.loading ? v`<span
7207
+ ${this.loading ? f`<span
6260
7208
  class="sr-only"
6261
7209
  role="progressbar"
6262
7210
  aria-valuenow="{0}"
6263
- aria-valuetext="Laster..."
7211
+ aria-valuetext=${this.ariaValueTextLoading}
6264
7212
  />` : null}`;
6265
7213
  }
6266
7214
  }
6267
- f(Eo, "shadowRootOptions", { ...Y.shadowRootOptions, delegatesFocus: !0 }), f(Eo, "properties", {
7215
+ Z(cr, "shadowRootOptions", {
7216
+ ...I.shadowRootOptions,
7217
+ delegatesFocus: !0
7218
+ }), Z(cr, "properties", {
6268
7219
  type: { type: "button" | "submit" | "reset", reflect: !0 },
6269
7220
  autofocus: { type: Boolean, reflect: !0 },
6270
7221
  variant: { type: String, reflect: !0 },
@@ -6276,7 +7227,7 @@ f(Eo, "shadowRootOptions", { ...Y.shadowRootOptions, delegatesFocus: !0 }), f(Eo
6276
7227
  rel: { type: String, reflect: !0 },
6277
7228
  fullWidth: { type: Boolean, reflect: !0 },
6278
7229
  buttonClass: { type: String, reflect: !0 }
6279
- }), f(Eo, "styles", A`
7230
+ }), Z(cr, "styles", Q`
6280
7231
  /* layer: preflights */
6281
7232
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
6282
7233
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -6924,47 +7875,47 @@ f(Eo, "shadowRootOptions", { ...Y.shadowRootOptions, delegatesFocus: !0 }), f(Eo
6924
7875
  .sm\\:px-32{padding-left:3.2rem;padding-right:3.2rem;}
6925
7876
  .sm\\:pb-32{padding-bottom:3.2rem;}
6926
7877
  .sm\\:pt-32{padding-top:3.2rem;}
6927
- }
7878
+ };
6928
7879
  `);
6929
- customElements.get("w-button") || customElements.define("w-button", Eo);
6930
- const Kr = {
7880
+ customElements.get("w-button") || customElements.define("w-button", cr);
7881
+ const Ee = {
6931
7882
  ENTER: "Enter",
6932
7883
  SPACE: " "
6933
7884
  };
6934
- class hr extends Y {
7885
+ class Hr extends I {
6935
7886
  constructor() {
6936
7887
  super(), this.selected = !1, this.flat = !1, this.clickable = !1;
6937
7888
  }
6938
7889
  get _outerClasses() {
6939
- return E({
6940
- [D.card]: !0,
6941
- [D.cardShadow]: !this.flat,
6942
- [D.cardSelected]: this.selected,
6943
- [D.cardFlat]: this.flat,
6944
- [this.selected ? D.cardFlatSelected : D.cardFlatUnselected]: this.flat
7890
+ return V({
7891
+ [eo.card]: !0,
7892
+ [eo.cardShadow]: !this.flat,
7893
+ [eo.cardSelected]: this.selected,
7894
+ [eo.cardFlat]: this.flat,
7895
+ [this.selected ? eo.cardFlatSelected : eo.cardFlatUnselected]: this.flat
6945
7896
  });
6946
7897
  }
6947
7898
  get _innerClasses() {
6948
- return E({
6949
- [D.cardOutline]: !0,
6950
- [this.selected ? D.cardOutlineSelected : D.cardOutlineUnselected]: !0
7899
+ return V({
7900
+ [eo.cardOutline]: !0,
7901
+ [this.selected ? eo.cardOutlineSelected : eo.cardOutlineUnselected]: !0
6951
7902
  });
6952
7903
  }
6953
7904
  get uuButton() {
6954
- return v`<button class="${D.a11y}" aria-pressed="${this.selected}" tabindex="-1">
7905
+ return f`<button class="${eo.a11y}" aria-pressed="${this.selected}" tabindex="-1">
6955
7906
  Velg
6956
7907
  </button>`;
6957
7908
  }
6958
7909
  get uuSpan() {
6959
- return v`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
7910
+ return f`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
6960
7911
  }
6961
7912
  keypressed(o) {
6962
- !this.clickable || o.altKey || o.ctrlKey || (o.key === Kr.ENTER || o.key === Kr.SPACE) && (o.preventDefault(), this.click());
7913
+ !this.clickable || o.altKey || o.ctrlKey || (o.key === Ee.ENTER || o.key === Ee.SPACE) && (o.preventDefault(), this.click());
6963
7914
  }
6964
7915
  render() {
6965
- return v`
7916
+ return f`
6966
7917
  <div
6967
- tabindex=${q(this.clickable ? "0" : void 0)}
7918
+ tabindex=${B(this.clickable ? "0" : void 0)}
6968
7919
  class="${this._outerClasses}"
6969
7920
  @keydown=${this.keypressed}
6970
7921
  >
@@ -6976,8 +7927,8 @@ class hr extends Y {
6976
7927
  `;
6977
7928
  }
6978
7929
  }
6979
- f(hr, "styles", [
6980
- A`
7930
+ Z(Hr, "styles", [
7931
+ Q`
6981
7932
  /* layer: preflights */
6982
7933
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
6983
7934
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -7638,19 +8589,19 @@ f(hr, "styles", [
7638
8589
  display: block;
7639
8590
  }
7640
8591
  `
7641
- ]), f(hr, "properties", {
8592
+ ]), Z(Hr, "properties", {
7642
8593
  selected: { type: Boolean, reflect: !0 },
7643
8594
  flat: { type: Boolean },
7644
8595
  clickable: { type: Boolean }
7645
8596
  });
7646
- customElements.get("w-card") || customElements.define("w-card", hr);
7647
- class oe extends Y {
8597
+ customElements.get("w-card") || customElements.define("w-card", Hr);
8598
+ class Ce extends I {
7648
8599
  render() {
7649
- return v`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
8600
+ return f`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
7650
8601
  }
7651
8602
  }
7652
- customElements.get("w-icon-chevron-down16", oe) || customElements.define("w-icon-chevron-down16", oe);
7653
- class wr extends jo(Y) {
8603
+ customElements.get("w-icon-chevron-down16", Ce) || customElements.define("w-icon-chevron-down16", Ce);
8604
+ class Qr extends Ko(I) {
7654
8605
  constructor() {
7655
8606
  super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
7656
8607
  }
@@ -7658,43 +8609,43 @@ class wr extends jo(Y) {
7658
8609
  this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
7659
8610
  }
7660
8611
  get _expandableSlot() {
7661
- return v`<div
7662
- class=${E({
8612
+ return f`<div
8613
+ class=${V({
7663
8614
  [this.contentClass || ""]: !0,
7664
- [H.box]: this.box,
7665
- [L.paddingTop]: this._hasTitle && this.box
8615
+ [no.box]: this.box,
8616
+ [U.paddingTop]: this._hasTitle && this.box
7666
8617
  })}
7667
8618
  >
7668
8619
  <slot></slot>
7669
8620
  </div>`;
7670
8621
  }
7671
8622
  render() {
7672
- return v` <div
7673
- class=${E({
7674
- [L.expandable]: !0,
7675
- [L.expandableBox]: this.box,
7676
- [L.expandableBleed]: this.bleed
8623
+ return f` <div
8624
+ class=${V({
8625
+ [U.expandable]: !0,
8626
+ [U.expandableBox]: this.box,
8627
+ [U.expandableBleed]: this.bleed
7677
8628
  })}
7678
8629
  >
7679
- ${this._hasTitle ? v`<w-unstyled-heading level=${this.headingLevel}>
8630
+ ${this._hasTitle ? f`<w-unstyled-heading level=${this.headingLevel}>
7680
8631
  <button
7681
8632
  type="button"
7682
8633
  aria-expanded="${this.expanded}"
7683
- class=${E({
8634
+ class=${V({
7684
8635
  [this.buttonClass || ""]: !0,
7685
- [L.button]: !0,
7686
- [L.buttonBox]: this.box
8636
+ [U.button]: !0,
8637
+ [U.buttonBox]: this.box
7687
8638
  })}
7688
8639
  @click=${() => this.expanded = !this.expanded}
7689
8640
  >
7690
- <div class="${L.title}">
7691
- ${this.title ? v`<span class="${L.titleType}">${this.title}</span>` : v`<slot name="title"></slot>`}
7692
- ${this.noChevron ? "" : v`<div
7693
- class=${E({
7694
- [L.chevron]: !0,
7695
- [L.chevronExpanded]: this.expanded,
7696
- [L.chevronBox]: this.box,
7697
- [L.chevronNonBox]: !this.box
8641
+ <div class="${U.title}">
8642
+ ${this.title ? f`<span class="${U.titleType}">${this.title}</span>` : f`<slot name="title"></slot>`}
8643
+ ${this.noChevron ? "" : f`<div
8644
+ class=${V({
8645
+ [U.chevron]: !0,
8646
+ [U.chevronExpanded]: this.expanded,
8647
+ [U.chevronBox]: this.box,
8648
+ [U.chevronNonBox]: !this.box
7698
8649
  })}
7699
8650
  >
7700
8651
  <w-icon-chevron-down16></w-icon-chevron-down16>
@@ -7702,21 +8653,21 @@ class wr extends jo(Y) {
7702
8653
  </div>
7703
8654
  </button>
7704
8655
  </w-unstyled-heading>` : ""}
7705
- ${this.animated ? v`<w-expand-transition ?show=${this.expanded}>
8656
+ ${this.animated ? f`<w-expand-transition ?show=${this.expanded}>
7706
8657
  ${this._expandableSlot}
7707
- </w-expand-transition>` : v`<div
7708
- class=${E({
7709
- [L.expansion]: !0,
7710
- [L.expansionNotExpanded]: !this.expanded
8658
+ </w-expand-transition>` : f`<div
8659
+ class=${V({
8660
+ [U.expansion]: !0,
8661
+ [U.expansionNotExpanded]: !this.expanded
7711
8662
  })}
7712
- aria-hidden=${q(this.expanded ? void 0 : !0)}
8663
+ aria-hidden=${B(this.expanded ? void 0 : !0)}
7713
8664
  >
7714
8665
  ${this._expandableSlot}
7715
8666
  </div>`}
7716
8667
  </div>`;
7717
8668
  }
7718
8669
  }
7719
- f(wr, "properties", {
8670
+ Z(Qr, "properties", {
7720
8671
  expanded: { type: Boolean, reflect: !0 },
7721
8672
  title: { type: String },
7722
8673
  info: { type: Boolean },
@@ -7732,8 +8683,8 @@ f(wr, "properties", {
7732
8683
  // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
7733
8684
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
7734
8685
  // https://stackoverflow.com/a/61631668
7735
- f(wr, "styles", [
7736
- A`
8686
+ Z(Qr, "styles", [
8687
+ Q`
7737
8688
  /* layer: preflights */
7738
8689
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
7739
8690
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -8390,13 +9341,13 @@ f(wr, "styles", [
8390
9341
  }
8391
9342
  `
8392
9343
  ]);
8393
- customElements.get("w-expandable") || customElements.define("w-expandable", wr);
9344
+ customElements.get("w-expandable") || customElements.define("w-expandable", Qr);
8394
9345
  /**
8395
9346
  * @license
8396
9347
  * Copyright 2021 Google LLC
8397
9348
  * SPDX-License-Identifier: BSD-3-Clause
8398
9349
  */
8399
- function Mo(r, o, e) {
9350
+ function ir(r, o, e) {
8400
9351
  return r ? o() : e == null ? void 0 : e();
8401
9352
  }
8402
9353
  /**
@@ -8404,15 +9355,15 @@ function Mo(r, o, e) {
8404
9355
  * Copyright 2017 Google LLC
8405
9356
  * SPDX-License-Identifier: BSD-3-Clause
8406
9357
  */
8407
- class xr extends jr {
9358
+ class Ur extends ae {
8408
9359
  constructor(o) {
8409
- if (super(o), this.et = _, o.type !== Xr.CHILD)
9360
+ if (super(o), this.et = N, o.type !== ee.CHILD)
8410
9361
  throw Error(this.constructor.directiveName + "() can only be used in child bindings");
8411
9362
  }
8412
9363
  render(o) {
8413
- if (o === _ || o == null)
9364
+ if (o === N || o == null)
8414
9365
  return this.ft = void 0, this.et = o;
8415
- if (o === V)
9366
+ if (o === ho)
8416
9367
  return o;
8417
9368
  if (typeof o != "string")
8418
9369
  throw Error(this.constructor.directiveName + "() called with a non-string value");
@@ -8423,50 +9374,58 @@ class xr extends jr {
8423
9374
  return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
8424
9375
  }
8425
9376
  }
8426
- xr.directiveName = "unsafeHTML", xr.resultType = 1;
8427
- const qe = Yr(xr);
8428
- var Wo, _e, Uo, Xe, Vo, Ye, Go, je, so, To, uo, Bo;
8429
- class mr extends jo(Y) {
9377
+ Ur.directiveName = "unsafeHTML", Ur.resultType = 1;
9378
+ const ht = te(Ur), Wa = JSON.parse('{"select.label.optional":"(optional)"}'), Va = JSON.parse('{"select.label.optional":"(valgfritt)"}'), Ga = JSON.parse('{"select.label.optional":"(valinnainen)"}');
9379
+ var fr, pt, kr, wt, $r, xt, yr, mt, Co, lr, Lo, dr;
9380
+ class Fr extends Ko(I) {
8430
9381
  constructor() {
8431
9382
  super();
8432
- J(this, Wo);
8433
- J(this, Uo);
8434
- J(this, Vo);
8435
- J(this, Go);
8436
- J(this, so);
8437
- J(this, uo);
8438
- this._options = this.innerHTML;
9383
+ fo(this, fr);
9384
+ fo(this, kr);
9385
+ fo(this, $r);
9386
+ fo(this, yr);
9387
+ fo(this, Co);
9388
+ fo(this, Lo);
9389
+ de(Wa, Va, Ga), this._options = this.innerHTML;
8439
9390
  }
8440
9391
  render() {
8441
- return v`<div class="${bo.wrapper}">
8442
- ${Mo(
9392
+ return f`<div class="${So.wrapper}">
9393
+ ${ir(
8443
9394
  this.label,
8444
- () => v`<label class="${T(this, Uo, Xe)}" for="${T(this, so, To)}">
9395
+ () => f`<label class="${J(this, kr, wt)}" for="${J(this, Co, lr)}">
8445
9396
  ${this.label}
8446
- ${Mo(
9397
+ ${ir(
8447
9398
  this.optional,
8448
- () => v`<span class="${fo.optional}">(valgfritt)</span>`
9399
+ () => f`<span class="${Po.optional}"
9400
+ >${Vo._({
9401
+ id: "select.label.optional",
9402
+ message: "(optional)",
9403
+ comment: "Shown behind label when marked as optional"
9404
+ })}</span
9405
+ >`
8449
9406
  )}</label
8450
9407
  >`
8451
9408
  )}
8452
- <div class="${bo.selectWrapper}">
9409
+ <div class="${So.selectWrapper}">
8453
9410
  <select
8454
- class="${T(this, Wo, _e)}"
8455
- id="${T(this, so, To)}"
9411
+ class="${J(this, fr, pt)}"
9412
+ id="${J(this, Co, lr)}"
8456
9413
  ?autofocus=${this.autoFocus}
8457
- aria-describedby="${q(T(this, uo, Bo))}"
8458
- aria-invalid="${q(this.invalid)}"
8459
- aria-errormessage="${q(this.invalid && T(this, uo, Bo))}"
9414
+ aria-describedby="${B(J(this, Lo, dr))}"
9415
+ aria-invalid="${B(this.invalid)}"
9416
+ aria-errormessage="${B(
9417
+ this.invalid && J(this, Lo, dr)
9418
+ )}"
8460
9419
  >
8461
- ${qe(this._options)}
9420
+ ${ht(this._options)}
8462
9421
  </select>
8463
- <div class="${T(this, Go, je)}">
9422
+ <div class="${J(this, yr, mt)}">
8464
9423
  <svg
8465
- xmlns="http://www.w3.org/2000/svg"
8466
- width="16"
8467
- height="16"
8468
- fill="none"
8469
- viewBox="0 0 16 16"
9424
+ xmlns="http://www.w3.org/2000/svg"
9425
+ width="16"
9426
+ height="16"
9427
+ fill="none"
9428
+ viewBox="0 0 16 16"
8470
9429
  >
8471
9430
  <path
8472
9431
  stroke="currentColor"
@@ -8478,38 +9437,43 @@ class mr extends jo(Y) {
8478
9437
  </svg>
8479
9438
  </div>
8480
9439
  </div>
8481
- ${Mo(
9440
+ ${ir(
8482
9441
  this.always || this.invalid,
8483
- () => v`<div id="${T(this, uo, Bo)}" class="${T(this, Vo, Ye)}">${this.hint}</div>`
9442
+ () => f`<div
9443
+ id="${J(this, Lo, dr)}"
9444
+ class="${J(this, $r, xt)}"
9445
+ >
9446
+ ${this.hint}
9447
+ </div>`
8484
9448
  )}
8485
9449
  </div>`;
8486
9450
  }
8487
9451
  }
8488
- Wo = new WeakSet(), _e = function() {
8489
- return W({
8490
- [bo.default]: !0,
8491
- [bo.invalid]: this.invalid
9452
+ fr = new WeakSet(), pt = function() {
9453
+ return uo({
9454
+ [So.default]: !0,
9455
+ [So.invalid]: this.invalid
8492
9456
  });
8493
- }, Uo = new WeakSet(), Xe = function() {
8494
- return W({
8495
- [fo.label]: !0,
8496
- [fo.labelInvalid]: this.invalid
9457
+ }, kr = new WeakSet(), wt = function() {
9458
+ return uo({
9459
+ [Po.label]: !0,
9460
+ [Po.labelInvalid]: this.invalid
8497
9461
  });
8498
- }, Vo = new WeakSet(), Ye = function() {
8499
- return W({
8500
- [Io.helpText]: !0,
8501
- [Io.helpTextInvalid]: this.invalid
9462
+ }, $r = new WeakSet(), xt = function() {
9463
+ return uo({
9464
+ [gr.helpText]: !0,
9465
+ [gr.helpTextInvalid]: this.invalid
8502
9466
  });
8503
- }, Go = new WeakSet(), je = function() {
8504
- return W({
8505
- [bo.chevron]: !0,
8506
- [bo.chevronDisabled]: this.disabled
9467
+ }, yr = new WeakSet(), mt = function() {
9468
+ return uo({
9469
+ [So.chevron]: !0,
9470
+ [So.chevronDisabled]: this.disabled
8507
9471
  });
8508
- }, so = new WeakSet(), To = function() {
9472
+ }, Co = new WeakSet(), lr = function() {
8509
9473
  return "select_id";
8510
- }, uo = new WeakSet(), Bo = function() {
8511
- return this.hint ? `${T(this, so, To)}__hint` : void 0;
8512
- }, f(mr, "properties", {
9474
+ }, Lo = new WeakSet(), dr = function() {
9475
+ return this.hint ? `${J(this, Co, lr)}__hint` : void 0;
9476
+ }, Z(Fr, "properties", {
8513
9477
  // Whether the element should receive focus on render
8514
9478
  autoFocus: { type: Boolean, reflect: !0 },
8515
9479
  // Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
@@ -8523,7 +9487,7 @@ Wo = new WeakSet(), _e = function() {
8523
9487
  // Whether to show optional text
8524
9488
  optional: { type: Boolean, reflect: !0 },
8525
9489
  _options: { state: !0 }
8526
- }), f(mr, "styles", A`
9490
+ }), Z(Fr, "styles", Q`
8527
9491
  /* layer: preflights */
8528
9492
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
8529
9493
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -9171,38 +10135,38 @@ Wo = new WeakSet(), _e = function() {
9171
10135
  .sm\\:px-32{padding-left:3.2rem;padding-right:3.2rem;}
9172
10136
  .sm\\:pb-32{padding-bottom:3.2rem;}
9173
10137
  .sm\\:pt-32{padding-top:3.2rem;}
9174
- }
10138
+ };
9175
10139
  `);
9176
- customElements.get("w-select") || customElements.define("w-select", mr);
9177
- class kr extends Y {
10140
+ customElements.get("w-select") || customElements.define("w-select", Fr);
10141
+ class Wr extends I {
9178
10142
  constructor() {
9179
10143
  super(), this.type = "text";
9180
10144
  }
9181
10145
  get _inputStyles() {
9182
- return E({
9183
- [ro.default]: !0,
9184
- [ro.invalid]: this.invalid,
9185
- [ro.disabled]: this.disabled,
9186
- [ro.readOnly]: this.readOnly,
9187
- [ro.suffix]: this._hasSuffix,
9188
- [ro.prefix]: this._hasPrefix
10146
+ return V({
10147
+ [yo.default]: !0,
10148
+ [yo.invalid]: this.invalid,
10149
+ [yo.disabled]: this.disabled,
10150
+ [yo.readOnly]: this.readOnly,
10151
+ [yo.suffix]: this._hasSuffix,
10152
+ [yo.prefix]: this._hasPrefix
9189
10153
  });
9190
10154
  }
9191
10155
  get _helpTextStyles() {
9192
- return E({
9193
- [Io.helpText]: !0,
9194
- [Io.helpTextInvalid]: this.invalid
10156
+ return V({
10157
+ [gr.helpText]: !0,
10158
+ [gr.helpTextInvalid]: this.invalid
9195
10159
  });
9196
10160
  }
9197
10161
  get _labelStyles() {
9198
- return E({
9199
- [fo.label]: !0,
9200
- [fo.labelInvalid]: this.invalid
10162
+ return V({
10163
+ [Po.label]: !0,
10164
+ [Po.labelInvalid]: this.invalid
9201
10165
  });
9202
10166
  }
9203
10167
  get _label() {
9204
10168
  if (this.label)
9205
- return v`<label for="${this._id}" class=${this._labelStyles}>${this.label}</label>`;
10169
+ return f`<label for="${this._id}" class=${this._labelStyles}>${this.label}</label>`;
9206
10170
  }
9207
10171
  get _helpId() {
9208
10172
  if (this.helpText)
@@ -9232,25 +10196,25 @@ class kr extends Y {
9232
10196
  this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
9233
10197
  }
9234
10198
  render() {
9235
- return v`
10199
+ return f`
9236
10200
  ${this._label}
9237
- <div class="${ro.wrapper}">
10201
+ <div class="${yo.wrapper}">
9238
10202
  <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
9239
10203
  <input
9240
10204
  class="${this._inputStyles}"
9241
10205
  type="${this.type}"
9242
- min="${q(this.min)}"
9243
- max="${q(this.max)}"
9244
- size="${q(this.size)}"
9245
- minlength="${q(this.minLength)}"
9246
- maxlength="${q(this.maxLength)}"
9247
- name="${q(this.name)}"
9248
- pattern="${q(this.pattern)}"
9249
- placeholder="${q(this.placeholder)}"
9250
- value="${q(this.value)}"
9251
- aria-describedby="${q(this._helpId)}"
9252
- aria-errormessage="${q(this._error)}"
9253
- aria-invalid="${q(this.invalid)}"
10206
+ min="${B(this.min)}"
10207
+ max="${B(this.max)}"
10208
+ size="${B(this.size)}"
10209
+ minlength="${B(this.minLength)}"
10210
+ maxlength="${B(this.maxLength)}"
10211
+ name="${B(this.name)}"
10212
+ pattern="${B(this.pattern)}"
10213
+ placeholder="${B(this.placeholder)}"
10214
+ value="${B(this.value)}"
10215
+ aria-describedby="${B(this._helpId)}"
10216
+ aria-errormessage="${B(this._error)}"
10217
+ aria-invalid="${B(this.invalid)}"
9254
10218
  id="${this._id}"
9255
10219
  ?disabled="${this.disabled}"
9256
10220
  ?readonly="${this.readOnly}"
@@ -9261,11 +10225,11 @@ class kr extends Y {
9261
10225
  />
9262
10226
  <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
9263
10227
  </div>
9264
- ${this.helpText && v`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
10228
+ ${this.helpText && f`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
9265
10229
  `;
9266
10230
  }
9267
10231
  }
9268
- f(kr, "properties", {
10232
+ Z(Wr, "properties", {
9269
10233
  disabled: { type: Boolean },
9270
10234
  invalid: { type: Boolean },
9271
10235
  id: { type: String },
@@ -9289,8 +10253,8 @@ f(kr, "properties", {
9289
10253
  // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
9290
10254
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
9291
10255
  // https://stackoverflow.com/a/61631668
9292
- f(kr, "styles", [
9293
- A`
10256
+ Z(Wr, "styles", [
10257
+ Q`
9294
10258
  /* layer: preflights */
9295
10259
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
9296
10260
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -9947,9 +10911,9 @@ f(kr, "styles", [
9947
10911
  }
9948
10912
  `
9949
10913
  ]);
9950
- customElements.get("w-textfield") || customElements.define("w-textfield", kr);
9951
- function Wt(r, o) {
9952
- if (!Xo)
10914
+ customElements.get("w-textfield") || customElements.define("w-textfield", Wr);
10915
+ function vc(r, o) {
10916
+ if (!Go)
9953
10917
  return;
9954
10918
  const e = customElements.get("w-toast-container").init(), t = {
9955
10919
  id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
@@ -9960,57 +10924,57 @@ function Wt(r, o) {
9960
10924
  };
9961
10925
  return e.set(t), t;
9962
10926
  }
9963
- function Ut(r) {
9964
- return Xo ? customElements.get("w-toast-container").init().del(r) : void 0;
10927
+ function hc(r) {
10928
+ return Go ? customElements.get("w-toast-container").init().del(r) : void 0;
9965
10929
  }
9966
- function Vt(r, o) {
9967
- if (!Xo)
10930
+ function pc(r, o) {
10931
+ if (!Go)
9968
10932
  return;
9969
10933
  const e = customElements.get("w-toast-container").init();
9970
10934
  return e.set({ ...e.get(r), ...o }), e.get(r);
9971
10935
  }
9972
- const Sr = typeof window < "u";
9973
- let Ze = !0;
9974
- if (Sr) {
9975
- const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => Ze = !e;
10936
+ const ne = typeof window < "u";
10937
+ let ft = !0;
10938
+ if (ne) {
10939
+ const r = window.matchMedia("(prefers-reduced-motion: reduce)"), o = ({ matches: e }) => ft = !e;
9976
10940
  r.addEventListener && r.addEventListener("change", o), o(r);
9977
10941
  }
9978
- const Ae = (r) => {
10942
+ const kt = (r) => {
9979
10943
  r.style.transition = null, r.style.backfaceVisibility = null, r.style.overflow = null;
9980
- }, Se = (r) => {
9981
- const o = Ze ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
10944
+ }, $t = (r) => {
10945
+ const o = ft ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
9982
10946
  r.style.transition = `height ${o}`, r.style.backfaceVisibility = "hidden", r.style.overflow = "hidden";
9983
- }, St = (r, o) => () => {
10947
+ }, Ja = (r, o) => () => {
9984
10948
  r.style.height = "auto", r.style.overflow = null, o && o();
9985
- }, Ct = (r) => () => {
10949
+ }, Ka = (r) => () => {
9986
10950
  r && r();
9987
- }, Ce = (r, o) => {
10951
+ }, yt = (r, o) => {
9988
10952
  const e = (() => {
9989
10953
  if (!o)
9990
10954
  return new Promise((c) => {
9991
10955
  o = c;
9992
10956
  });
9993
- })(), t = St(r, o);
9994
- Ae(r), r.style.height = "auto";
10957
+ })(), t = Ja(r, o);
10958
+ kt(r), r.style.height = "auto";
9995
10959
  let a = r.scrollHeight;
9996
- if (Sr && requestAnimationFrame(() => {
9997
- r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", Se(r), requestAnimationFrame(() => r.style.height = a + "px");
10960
+ if (ne && requestAnimationFrame(() => {
10961
+ r.addEventListener("transitionend", t, { once: !0 }), r.style.height = "0px", r.style.transitionTimingFunction = "ease-out", $t(r), requestAnimationFrame(() => r.style.height = a + "px");
9998
10962
  }), e)
9999
10963
  return e;
10000
- }, Le = (r, o) => {
10964
+ }, zt = (r, o) => {
10001
10965
  const e = (() => {
10002
10966
  if (!o)
10003
10967
  return new Promise((c) => {
10004
10968
  o = c;
10005
10969
  });
10006
- })(), t = Ct(o);
10007
- Ae(r);
10970
+ })(), t = Ka(o);
10971
+ kt(r);
10008
10972
  let a = r.scrollHeight;
10009
- if (Sr && requestAnimationFrame(() => {
10010
- r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", Se(r), requestAnimationFrame(() => r.style.height = "0px");
10973
+ if (ne && requestAnimationFrame(() => {
10974
+ r.addEventListener("transitionend", t, { once: !0 }), r.style.height = a + "px", r.style.transitionTimingFunction = "ease-in", $t(r), requestAnimationFrame(() => r.style.height = "0px");
10011
10975
  }), e)
10012
10976
  return e;
10013
- }, Lt = () => v`
10977
+ }, oc = () => f`
10014
10978
  <svg
10015
10979
  role="img"
10016
10980
  aria-label="Lukk"
@@ -10020,9 +10984,9 @@ const Ae = (r) => {
10020
10984
  fill="none"
10021
10985
  viewBox="0 0 16 16"
10022
10986
  >
10023
- ${Bt}
10987
+ ${ac}
10024
10988
  </svg>
10025
- `, Et = (r) => v`<svg
10989
+ `, rc = (r) => f`<svg
10026
10990
  aria-label="${r.typeLabel}"
10027
10991
  role="img"
10028
10992
  xmlns="http://www.w3.org/2000/svg"
@@ -10030,8 +10994,8 @@ const Ae = (r) => {
10030
10994
  height="16"
10031
10995
  fill="none"
10032
10996
  >
10033
- ${Rt}
10034
- </svg>`, Mt = (r) => v`<svg
10997
+ ${cc}
10998
+ </svg>`, ec = (r) => f`<svg
10035
10999
  aria-label="${r.typeLabel}"
10036
11000
  role="img"
10037
11001
  width="16"
@@ -10039,8 +11003,8 @@ const Ae = (r) => {
10039
11003
  fill="none"
10040
11004
  xmlns="http://www.w3.org/2000/svg"
10041
11005
  >
10042
- ${Dt}
10043
- </svg> `, Tt = (r) => v`<svg
11006
+ ${ic}
11007
+ </svg> `, tc = (r) => f`<svg
10044
11008
  aria-label="${r.typeLabel}"
10045
11009
  role="img"
10046
11010
  width="16"
@@ -10048,14 +11012,14 @@ const Ae = (r) => {
10048
11012
  fill="none"
10049
11013
  xmlns="http://www.w3.org/2000/svg"
10050
11014
  >
10051
- ${Nt}
10052
- </svg> `, Bt = G`
11015
+ ${lc}
11016
+ </svg> `, ac = po`
10053
11017
  <path
10054
11018
  fill="currentColor"
10055
11019
  fill-rule="evenodd"
10056
11020
  d="M4.03 2.97a.75.75 0 00-1.06 1.06L6.94 8l-3.97 3.97a.75.75 0 101.06 1.06L8 9.06l3.97 3.97a.75.75 0 101.06-1.06L9.06 8l3.97-3.97a.75.75 0 00-1.06-1.06L8 6.94 4.03 2.97z"
10057
11021
  clipRule="evenodd"
10058
- />`, Rt = G`
11022
+ />`, cc = po`
10059
11023
  <path
10060
11024
  d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
10061
11025
  fill="currentColor"
@@ -10066,13 +11030,13 @@ const Ae = (r) => {
10066
11030
  d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
10067
11031
  fill="#fff"
10068
11032
  />
10069
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Dt = G`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
11033
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ic = po`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
10070
11034
  <path
10071
11035
  fill-rule="evenodd"
10072
11036
  clip-rule="evenodd"
10073
11037
  d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
10074
11038
  fill="#fff"
10075
- />`, Nt = G`
11039
+ />`, lc = po`
10076
11040
  <path
10077
11041
  d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
10078
11042
  fill="currentColor"
@@ -10083,18 +11047,18 @@ const Ae = (r) => {
10083
11047
  d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
10084
11048
  fill="#fff"
10085
11049
  />
10086
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, re = (r) => {
11050
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Le = (r) => {
10087
11051
  const o = {};
10088
11052
  for (const [e, t] of Object.entries(r))
10089
11053
  for (const a of e.split(" "))
10090
11054
  o[a] = t;
10091
- return ve(o);
10092
- }, R = {
11055
+ return Fe(o);
11056
+ }, oo = {
10093
11057
  success: "success",
10094
11058
  error: "error",
10095
11059
  warning: "warning"
10096
11060
  };
10097
- class fr extends Y {
11061
+ class Vr extends I {
10098
11062
  constructor() {
10099
11063
  super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
10100
11064
  }
@@ -10105,22 +11069,22 @@ class fr extends Y {
10105
11069
  super.disconnectedCallback();
10106
11070
  }
10107
11071
  updated() {
10108
- !this._expanded && this._wrapper && Ce(this._wrapper, () => this._expanded = !0);
11072
+ !this._expanded && this._wrapper && yt(this._wrapper, () => this._expanded = !0);
10109
11073
  }
10110
11074
  get _primaryClasses() {
10111
- return re({
10112
- [B.toast]: !0,
10113
- [B.positive]: this.type === R.success,
10114
- [B.warning]: this.type === R.warning,
10115
- [B.negative]: this.type === R.error
11075
+ return Le({
11076
+ [K.toast]: !0,
11077
+ [K.positive]: this.type === oo.success,
11078
+ [K.warning]: this.type === oo.warning,
11079
+ [K.negative]: this.type === oo.error
10116
11080
  });
10117
11081
  }
10118
11082
  get _iconClasses() {
10119
- return re({
10120
- [B.icon]: !0,
10121
- [B.iconPositive]: this.type == R.success,
10122
- [B.iconWarning]: this.type === R.warning,
10123
- [B.iconNegative]: this.type === R.error
11083
+ return Le({
11084
+ [K.icon]: !0,
11085
+ [K.iconPositive]: this.type == oo.success,
11086
+ [K.iconWarning]: this.type === oo.warning,
11087
+ [K.iconNegative]: this.type === oo.error
10124
11088
  });
10125
11089
  }
10126
11090
  get _wrapper() {
@@ -10128,13 +11092,13 @@ class fr extends Y {
10128
11092
  return ((o = this.renderRoot) == null ? void 0 : o.querySelector("section")) ?? null;
10129
11093
  }
10130
11094
  get _success() {
10131
- return this.type === R.success;
11095
+ return this.type === oo.success;
10132
11096
  }
10133
11097
  get _warning() {
10134
- return this.type === R.warning;
11098
+ return this.type === oo.warning;
10135
11099
  }
10136
11100
  get _error() {
10137
- return this.type === R.error;
11101
+ return this.type === oo.error;
10138
11102
  }
10139
11103
  get _role() {
10140
11104
  return this._error || this._warning ? "alert" : "status";
@@ -10143,11 +11107,11 @@ class fr extends Y {
10143
11107
  return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
10144
11108
  }
10145
11109
  get _iconMarkup() {
10146
- return this.type === R.success ? Mt({ typeLabel: this._typeLabel }) : this.type === R.warning ? Tt({ typeLabel: this._typeLabel }) : Et({ typeLabel: this._typeLabel, isInfo: this._info });
11110
+ return this.type === oo.success ? ec({ typeLabel: this._typeLabel }) : this.type === oo.warning ? tc({ typeLabel: this._typeLabel }) : rc({ typeLabel: this._typeLabel, isInfo: this._info });
10147
11111
  }
10148
11112
  async collapse() {
10149
11113
  return new Promise((o) => {
10150
- this._expanded && this._wrapper ? Le(this._wrapper, o) : o();
11114
+ this._expanded && this._wrapper ? zt(this._wrapper, o) : o();
10151
11115
  });
10152
11116
  }
10153
11117
  close() {
@@ -10159,22 +11123,22 @@ class fr extends Y {
10159
11123
  this.updateComplete.then(() => this.dispatchEvent(o));
10160
11124
  }
10161
11125
  render() {
10162
- return this.text ? v` <section class="${B.wrapper}" aria-label="${this._typeLabel}">
11126
+ return this.text ? f` <section class="${K.wrapper}" aria-label="${this._typeLabel}">
10163
11127
  <div class="${this._primaryClasses}">
10164
11128
  <div class="${this._iconClasses}">${this._iconMarkup}</div>
10165
- <div role="${this._role}" class="${B.content}">
11129
+ <div role="${this._role}" class="${K.content}">
10166
11130
  <p>${this.text}</p>
10167
11131
  </div>
10168
- ${Mo(
11132
+ ${ir(
10169
11133
  this.canclose === !0,
10170
- () => v`<button class="${B.close}" @click="${this.close}">${Lt()}</button>`
11134
+ () => f`<button class="${K.close}" @click="${this.close}">${oc()}</button>`
10171
11135
  )}
10172
11136
  </div>
10173
- </section>` : v``;
11137
+ </section>` : f``;
10174
11138
  }
10175
11139
  }
10176
- f(fr, "styles", [
10177
- A`
11140
+ Z(Vr, "styles", [
11141
+ Q`
10178
11142
  /* layer: preflights */
10179
11143
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
10180
11144
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -10827,14 +11791,14 @@ f(fr, "styles", [
10827
11791
  display: block;
10828
11792
  }
10829
11793
  `
10830
- ]), f(fr, "properties", {
11794
+ ]), Z(Vr, "properties", {
10831
11795
  id: { type: String, attribute: !0, reflect: !0 },
10832
11796
  type: { type: String, attribute: !0, reflect: !0 },
10833
11797
  text: { type: String, attribute: !0, reflect: !0 },
10834
11798
  canclose: { type: Boolean, attribute: !0, reflect: !0 }
10835
11799
  });
10836
- customElements.get("w-toast") || customElements.define("w-toast", fr);
10837
- class $r extends Y {
11800
+ customElements.get("w-toast") || customElements.define("w-toast", Vr);
11801
+ class Gr extends I {
10838
11802
  constructor() {
10839
11803
  super(), this._toasts = /* @__PURE__ */ new Map();
10840
11804
  }
@@ -10907,14 +11871,14 @@ class $r extends Y {
10907
11871
  return this._toasts = new Map(Array.from(this._toasts)), t;
10908
11872
  }
10909
11873
  render() {
10910
- return v`
10911
- <aside class="${tr.container}">
10912
- <div class="${tr.toaster}" id="w-toast-container-list">
10913
- ${ze(
11874
+ return f`
11875
+ <aside class="${jr.container}">
11876
+ <div class="${jr.toaster}" id="w-toast-container-list">
11877
+ ${vt(
10914
11878
  this._toastsArray,
10915
11879
  (o) => o.id,
10916
- (o) => v` <w-toast
10917
- class="${tr.content}"
11880
+ (o) => f` <w-toast
11881
+ class="${jr.content}"
10918
11882
  id="${o.id}"
10919
11883
  type="${o.type}"
10920
11884
  text="${o.text}"
@@ -10928,8 +11892,8 @@ class $r extends Y {
10928
11892
  `;
10929
11893
  }
10930
11894
  }
10931
- f($r, "styles", [
10932
- A`
11895
+ Z(Gr, "styles", [
11896
+ Q`
10933
11897
  /* layer: preflights */
10934
11898
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
10935
11899
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -11582,15 +12546,11 @@ f($r, "styles", [
11582
12546
  display: block;
11583
12547
  }
11584
12548
  `
11585
- ]), f($r, "properties", {
12549
+ ]), Z(Gr, "properties", {
11586
12550
  _toasts: { state: !0 }
11587
12551
  });
11588
- customElements.get("w-toast-container") || customElements.define("w-toast-container", $r);
11589
- const Ee = A`
11590
- @import "https://assets.finn.no/pkg/@warp-ds/fonts/v1/finn-no.css";
11591
- @import "https://assets.finn.no/pkg/@warp-ds/css/v1/tokens/finn-no.css";
11592
- `;
11593
- class yr extends Y {
12552
+ customElements.get("w-toast-container") || customElements.define("w-toast-container", Gr);
12553
+ class Jr extends I {
11594
12554
  constructor() {
11595
12555
  super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
11596
12556
  }
@@ -11603,27 +12563,26 @@ class yr extends Y {
11603
12563
  this._mounted = !0;
11604
12564
  return;
11605
12565
  }
11606
- this.show && Ce(this._wrapper), !this.show && !this._removeElement && Le(this._wrapper, () => this._removeElement = !0);
12566
+ this.show && yt(this._wrapper), !this.show && !this._removeElement && zt(this._wrapper, () => this._removeElement = !0);
11607
12567
  }
11608
12568
  }
11609
12569
  get _wrapper() {
11610
12570
  return this ?? null;
11611
12571
  }
11612
12572
  render() {
11613
- return v`<div aria-hidden=${q(this.show ? void 0 : "true")}>
11614
- ${this._removeElement ? v`` : v`<slot></slot>`}
12573
+ return f`<div aria-hidden=${B(this.show ? void 0 : "true")}>
12574
+ ${this._removeElement ? f`` : f`<slot></slot>`}
11615
12575
  </div>`;
11616
12576
  }
11617
12577
  }
11618
- f(yr, "properties", {
12578
+ Z(Jr, "properties", {
11619
12579
  show: {
11620
12580
  type: Boolean,
11621
12581
  reflect: !0
11622
12582
  },
11623
12583
  _removeElement: { type: Boolean, state: !0 }
11624
- }), f(yr, "styles", [
11625
- Ee,
11626
- A`
12584
+ }), Z(Jr, "styles", [
12585
+ Q`
11627
12586
  /* layer: preflights */
11628
12587
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
11629
12588
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
@@ -12277,8 +13236,8 @@ f(yr, "properties", {
12277
13236
  }
12278
13237
  `
12279
13238
  ]);
12280
- customElements.get("w-expand-transition") || customElements.define("w-expand-transition", yr);
12281
- class zr extends Y {
13239
+ customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Jr);
13240
+ class Kr extends I {
12282
13241
  get _markup() {
12283
13242
  return `<h${this.level}
12284
13243
  style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
@@ -12288,13 +13247,14 @@ class zr extends Y {
12288
13247
  `;
12289
13248
  }
12290
13249
  render() {
12291
- return this.level ? qe(this._markup) : v`<slot></slot>`;
13250
+ return this.level ? ht(this._markup) : f`<slot></slot>`;
12292
13251
  }
12293
13252
  }
12294
- f(zr, "properties", {
13253
+ Z(Kr, "properties", {
12295
13254
  level: { type: Number }
12296
- }), f(zr, "styles", [Ee, A`
12297
- /* layer: preflights */
13255
+ }), Z(Kr, "styles", [
13256
+ Q`
13257
+ /* layer: preflights */
12298
13258
  *,::before,::after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;}
12299
13259
  *,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border,var(--w-s-color-border-default))}html{font-size:62.5%}body{background-color:var(--w-s-color-background,var(--w-s-color-background-default));min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text,var(--w-s-color-text-default))}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{-webkit-text-decoration:var(--w-decoration-text-link);text-decoration:var(--w-decoration-text-link)}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{min-width:0;border:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}
12300
13260
  /* layer: shortcuts */
@@ -12942,26 +13902,27 @@ f(zr, "properties", {
12942
13902
  .sm\\:pb-32{padding-bottom:3.2rem;}
12943
13903
  .sm\\:pt-32{padding-top:3.2rem;}
12944
13904
  }
12945
- `]);
12946
- customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", zr);
13905
+ `
13906
+ ]);
13907
+ customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Kr);
12947
13908
  export {
12948
- yr as ExpandTransition,
12949
- zr as UnstyledHeading,
12950
- lr as WarpAffix,
12951
- dr as WarpAlert,
12952
- gr as WarpAttention,
12953
- sr as WarpBadge,
12954
- ur as WarpBox,
12955
- vr as WarpBreadcrumbs,
12956
- pr as WarpBroadcast,
12957
- Eo as WarpButton,
12958
- hr as WarpCard,
12959
- wr as WarpExpandable,
12960
- mr as WarpSelect,
12961
- kr as WarpTextField,
12962
- fr as WarpToast,
12963
- $r as WarpToastContainer,
12964
- Ut as removeToast,
12965
- Wt as toast,
12966
- Vt as updateToast
13909
+ Jr as ExpandTransition,
13910
+ Kr as UnstyledHeading,
13911
+ Cr as WarpAffix,
13912
+ Lr as WarpAlert,
13913
+ Or as WarpAttention,
13914
+ Br as WarpBadge,
13915
+ Nr as WarpBox,
13916
+ Pr as WarpBreadcrumbs,
13917
+ Ir as WarpBroadcast,
13918
+ cr as WarpButton,
13919
+ Hr as WarpCard,
13920
+ Qr as WarpExpandable,
13921
+ Fr as WarpSelect,
13922
+ Wr as WarpTextField,
13923
+ Vr as WarpToast,
13924
+ Gr as WarpToastContainer,
13925
+ hc as removeToast,
13926
+ vc as toast,
13927
+ pc as updateToast
12967
13928
  };