@florid-kit/components 2.6.18 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/assets/icons/icons-occ.d.ts +315 -0
  2. package/assets/icons/icons.d.ts +12 -84
  3. package/assets/icons/svg-utils.d.ts +13 -0
  4. package/behaviors/performance-mixin.d.ts +0 -23
  5. package/behaviors/performance-reporter.d.ts +1 -0
  6. package/components/accordion-group.mjs +61 -0
  7. package/components/accordion.mjs +185 -0
  8. package/components/arch-image.mjs +135 -0
  9. package/components/badge.mjs +75 -0
  10. package/components/breadcrumb.mjs +83 -0
  11. package/components/breadcrumbs.mjs +35 -0
  12. package/components/button.d.ts +3 -0
  13. package/components/button.mjs +12 -0
  14. package/components/checkbox.mjs +188 -0
  15. package/components/chip.mjs +158 -0
  16. package/components/chipset.mjs +44 -0
  17. package/components/dots.mjs +60 -0
  18. package/components/dropdown-variant.d.ts +1 -0
  19. package/components/dropdown-variant.mjs +446 -0
  20. package/components/dropdown.d.ts +1 -0
  21. package/components/dropdown.mjs +303 -0
  22. package/components/feedback-message.mjs +136 -0
  23. package/components/filter-chip.mjs +215 -0
  24. package/components/footer-simplify.mjs +178 -0
  25. package/components/header-simplify.mjs +234 -0
  26. package/components/icon-button.d.ts +5 -0
  27. package/components/icon-button.mjs +340 -0
  28. package/components/input.mjs +298 -0
  29. package/components/link.mjs +172 -0
  30. package/components/mediumtile.mjs +307 -0
  31. package/components/minitile.mjs +234 -0
  32. package/components/option-tile-group.mjs +105 -0
  33. package/components/option-tile.mjs +413 -0
  34. package/components/popin.mjs +412 -0
  35. package/components/radio.mjs +165 -0
  36. package/components/rating.mjs +81 -0
  37. package/components/reassurance.mjs +163 -0
  38. package/components/search-input-dropdown.mjs +314 -0
  39. package/components/search-input.mjs +107 -0
  40. package/components/side-panel.mjs +1206 -0
  41. package/components/tab.mjs +140 -0
  42. package/components/tablist.mjs +44 -0
  43. package/components/tag.mjs +86 -0
  44. package/components/textarea.mjs +269 -0
  45. package/components/thumbnail-navigation.mjs +232 -0
  46. package/components/toast.mjs +191 -0
  47. package/components/tooltip.mjs +125 -0
  48. package/components/wishlist-button.mjs +132 -0
  49. package/css-C8WrrxT-.mjs +41 -0
  50. package/directive-helpers-BHuwIghp.mjs +11 -0
  51. package/directive-oAbCiebi.mjs +27 -0
  52. package/element-internals-Dw7LndlH.mjs +19 -0
  53. package/icons-Pdn_6YtT.mjs +104 -0
  54. package/icons-occ.mjs +834 -0
  55. package/if-defined-j0wE2gL4.mjs +10 -0
  56. package/index.mjs +41 -9719
  57. package/live-C_TUoYRm.mjs +30 -0
  58. package/loader.d.ts +3 -0
  59. package/loader.mjs +78 -0
  60. package/logo-CEgaTL93.mjs +4 -0
  61. package/package.json +19 -1
  62. package/performance-mixin-D7YmSeqN.mjs +628 -0
  63. package/performance-reporter-B7ZOqnDk.mjs +89 -0
  64. package/property-S_Y9cb04.mjs +36 -0
  65. package/query-NJDNu0-P.mjs +25 -0
  66. package/state-DjMxXomO.mjs +12 -0
  67. package/svg-utils-CRDBD8ES.mjs +47 -0
  68. package/unsafe-svg-C3uTocNg.mjs +34 -0
  69. package/index.js +0 -5755
@@ -0,0 +1,628 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const T = globalThis, I = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j = Symbol(), V = /* @__PURE__ */ new WeakMap();
7
+ let st = class {
8
+ constructor(t, e, i) {
9
+ if (this._$cssResult$ = !0, i !== j) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = t, this.t = e;
11
+ }
12
+ get styleSheet() {
13
+ let t = this.o;
14
+ const e = this.t;
15
+ if (I && t === void 0) {
16
+ const i = e !== void 0 && e.length === 1;
17
+ i && (t = V.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && V.set(e, t));
18
+ }
19
+ return t;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ const lt = (r) => new st(typeof r == "string" ? r : r + "", void 0, j), Ot = (r, ...t) => {
26
+ const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
27
+ if (n._$cssResult$ === !0) return n.cssText;
28
+ if (typeof n == "number") return n;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(s) + r[o + 1], r[0]);
31
+ return new st(e, r, j);
32
+ }, ct = (r, t) => {
33
+ if (I) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
+ else for (const e of t) {
35
+ const i = document.createElement("style"), s = T.litNonce;
36
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
37
+ }
38
+ }, W = I ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
39
+ let e = "";
40
+ for (const i of t.cssRules) e += i.cssText;
41
+ return lt(e);
42
+ })(r) : r;
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ const { is: dt, defineProperty: pt, getOwnPropertyDescriptor: ut, getOwnPropertyNames: $t, getOwnPropertySymbols: ft, getPrototypeOf: _t } = Object, _ = globalThis, q = _.trustedTypes, mt = q ? q.emptyScript : "", R = _.reactiveElementPolyfillSupport, w = (r, t) => r, B = { toAttribute(r, t) {
49
+ switch (t) {
50
+ case Boolean:
51
+ r = r ? mt : null;
52
+ break;
53
+ case Object:
54
+ case Array:
55
+ r = r == null ? r : JSON.stringify(r);
56
+ }
57
+ return r;
58
+ }, fromAttribute(r, t) {
59
+ let e = r;
60
+ switch (t) {
61
+ case Boolean:
62
+ e = r !== null;
63
+ break;
64
+ case Number:
65
+ e = r === null ? null : Number(r);
66
+ break;
67
+ case Object:
68
+ case Array:
69
+ try {
70
+ e = JSON.parse(r);
71
+ } catch {
72
+ e = null;
73
+ }
74
+ }
75
+ return e;
76
+ } }, it = (r, t) => !dt(r, t), F = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: it };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let v = class extends HTMLElement {
79
+ static addInitializer(t) {
80
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
+ }
82
+ static get observedAttributes() {
83
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
+ }
85
+ static createProperty(t, e = F) {
86
+ if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
87
+ const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
88
+ s !== void 0 && pt(this.prototype, t, s);
89
+ }
90
+ }
91
+ static getPropertyDescriptor(t, e, i) {
92
+ const { get: s, set: o } = ut(this.prototype, t) ?? { get() {
93
+ return this[e];
94
+ }, set(n) {
95
+ this[e] = n;
96
+ } };
97
+ return { get: s, set(n) {
98
+ const h = s == null ? void 0 : s.call(this);
99
+ o == null || o.call(this, n), this.requestUpdate(t, h, i);
100
+ }, configurable: !0, enumerable: !0 };
101
+ }
102
+ static getPropertyOptions(t) {
103
+ return this.elementProperties.get(t) ?? F;
104
+ }
105
+ static _$Ei() {
106
+ if (this.hasOwnProperty(w("elementProperties"))) return;
107
+ const t = _t(this);
108
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
+ }
110
+ static finalize() {
111
+ if (this.hasOwnProperty(w("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
113
+ const e = this.properties, i = [...$t(e), ...ft(e)];
114
+ for (const s of i) this.createProperty(s, e[s]);
115
+ }
116
+ const t = this[Symbol.metadata];
117
+ if (t !== null) {
118
+ const e = litPropertyMetadata.get(t);
119
+ if (e !== void 0) for (const [i, s] of e) this.elementProperties.set(i, s);
120
+ }
121
+ this._$Eh = /* @__PURE__ */ new Map();
122
+ for (const [e, i] of this.elementProperties) {
123
+ const s = this._$Eu(e, i);
124
+ s !== void 0 && this._$Eh.set(s, e);
125
+ }
126
+ this.elementStyles = this.finalizeStyles(this.styles);
127
+ }
128
+ static finalizeStyles(t) {
129
+ const e = [];
130
+ if (Array.isArray(t)) {
131
+ const i = new Set(t.flat(1 / 0).reverse());
132
+ for (const s of i) e.unshift(W(s));
133
+ } else t !== void 0 && e.push(W(t));
134
+ return e;
135
+ }
136
+ static _$Eu(t, e) {
137
+ const i = e.attribute;
138
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
139
+ }
140
+ constructor() {
141
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
+ }
143
+ _$Ev() {
144
+ var t;
145
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
146
+ }
147
+ addController(t) {
148
+ var e;
149
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
150
+ }
151
+ removeController(t) {
152
+ var e;
153
+ (e = this._$EO) == null || e.delete(t);
154
+ }
155
+ _$E_() {
156
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
157
+ for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
158
+ t.size > 0 && (this._$Ep = t);
159
+ }
160
+ createRenderRoot() {
161
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
+ return ct(t, this.constructor.elementStyles), t;
163
+ }
164
+ connectedCallback() {
165
+ var t;
166
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
167
+ var i;
168
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
169
+ });
170
+ }
171
+ enableUpdating(t) {
172
+ }
173
+ disconnectedCallback() {
174
+ var t;
175
+ (t = this._$EO) == null || t.forEach((e) => {
176
+ var i;
177
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
178
+ });
179
+ }
180
+ attributeChangedCallback(t, e, i) {
181
+ this._$AK(t, i);
182
+ }
183
+ _$ET(t, e) {
184
+ var o;
185
+ const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
186
+ if (s !== void 0 && i.reflect === !0) {
187
+ const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : B).toAttribute(e, i.type);
188
+ this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
189
+ }
190
+ }
191
+ _$AK(t, e) {
192
+ var o, n;
193
+ const i = this.constructor, s = i._$Eh.get(t);
194
+ if (s !== void 0 && this._$Em !== s) {
195
+ const h = i.getPropertyOptions(s), a = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((o = h.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? h.converter : B;
196
+ this._$Em = s, this[s] = a.fromAttribute(e, h.type) ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? null, this._$Em = null;
197
+ }
198
+ }
199
+ requestUpdate(t, e, i) {
200
+ var s;
201
+ if (t !== void 0) {
202
+ const o = this.constructor, n = this[t];
203
+ if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? it)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
204
+ this.C(t, e, i);
205
+ }
206
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
+ }
208
+ C(t, e, { useDefault: i, reflect: s, wrapped: o }, n) {
209
+ i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, n ?? e ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
+ }
211
+ async _$EP() {
212
+ this.isUpdatePending = !0;
213
+ try {
214
+ await this._$ES;
215
+ } catch (e) {
216
+ Promise.reject(e);
217
+ }
218
+ const t = this.scheduleUpdate();
219
+ return t != null && await t, !this.isUpdatePending;
220
+ }
221
+ scheduleUpdate() {
222
+ return this.performUpdate();
223
+ }
224
+ performUpdate() {
225
+ var i;
226
+ if (!this.isUpdatePending) return;
227
+ if (!this.hasUpdated) {
228
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
+ for (const [o, n] of this._$Ep) this[o] = n;
230
+ this._$Ep = void 0;
231
+ }
232
+ const s = this.constructor.elementProperties;
233
+ if (s.size > 0) for (const [o, n] of s) {
234
+ const { wrapped: h } = n, a = this[o];
235
+ h !== !0 || this._$AL.has(o) || a === void 0 || this.C(o, void 0, n, a);
236
+ }
237
+ }
238
+ let t = !1;
239
+ const e = this._$AL;
240
+ try {
241
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
242
+ var o;
243
+ return (o = s.hostUpdate) == null ? void 0 : o.call(s);
244
+ }), this.update(e)) : this._$EM();
245
+ } catch (s) {
246
+ throw t = !1, this._$EM(), s;
247
+ }
248
+ t && this._$AE(e);
249
+ }
250
+ willUpdate(t) {
251
+ }
252
+ _$AE(t) {
253
+ var e;
254
+ (e = this._$EO) == null || e.forEach((i) => {
255
+ var s;
256
+ return (s = i.hostUpdated) == null ? void 0 : s.call(i);
257
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
258
+ }
259
+ _$EM() {
260
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
261
+ }
262
+ get updateComplete() {
263
+ return this.getUpdateComplete();
264
+ }
265
+ getUpdateComplete() {
266
+ return this._$ES;
267
+ }
268
+ shouldUpdate(t) {
269
+ return !0;
270
+ }
271
+ update(t) {
272
+ this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
273
+ }
274
+ updated(t) {
275
+ }
276
+ firstUpdated(t) {
277
+ }
278
+ };
279
+ v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[w("elementProperties")] = /* @__PURE__ */ new Map(), v[w("finalized")] = /* @__PURE__ */ new Map(), R == null || R({ ReactiveElement: v }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.0");
280
+ /**
281
+ * @license
282
+ * Copyright 2017 Google LLC
283
+ * SPDX-License-Identifier: BSD-3-Clause
284
+ */
285
+ const C = globalThis, H = C.trustedTypes, J = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, rt = "$lit$", f = `lit$${Math.random().toFixed(9).slice(2)}$`, nt = "?" + f, At = `<${nt}>`, g = document, P = () => g.createComment(""), x = (r) => r === null || typeof r != "object" && typeof r != "function", K = Array.isArray, yt = (r) => K(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", L = `[
286
+ \f\r]`, b = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, Z = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), G = /'/g, Q = /"/g, ot = /^(?:script|style|textarea|title)$/i, gt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Tt = gt(1), E = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), X = /* @__PURE__ */ new WeakMap(), A = g.createTreeWalker(g, 129);
288
+ function at(r, t) {
289
+ if (!K(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
+ return J !== void 0 ? J.createHTML(t) : t;
291
+ }
292
+ const vt = (r, t) => {
293
+ const e = r.length - 1, i = [];
294
+ let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = b;
295
+ for (let h = 0; h < e; h++) {
296
+ const a = r[h];
297
+ let c, p, l = -1, u = 0;
298
+ for (; u < a.length && (n.lastIndex = u, p = n.exec(a), p !== null); ) u = n.lastIndex, n === b ? p[1] === "!--" ? n = Y : p[1] !== void 0 ? n = Z : p[2] !== void 0 ? (ot.test(p[2]) && (s = RegExp("</" + p[2], "g")), n = m) : p[3] !== void 0 && (n = m) : n === m ? p[0] === ">" ? (n = s ?? b, l = -1) : p[1] === void 0 ? l = -2 : (l = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? m : p[3] === '"' ? Q : G) : n === Q || n === G ? n = m : n === Y || n === Z ? n = b : (n = m, s = void 0);
299
+ const $ = n === m && r[h + 1].startsWith("/>") ? " " : "";
300
+ o += n === b ? a + At : l >= 0 ? (i.push(c), a.slice(0, l) + rt + a.slice(l) + f + $) : a + f + (l === -2 ? h : $);
301
+ }
302
+ return [at(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
303
+ };
304
+ class U {
305
+ constructor({ strings: t, _$litType$: e }, i) {
306
+ let s;
307
+ this.parts = [];
308
+ let o = 0, n = 0;
309
+ const h = t.length - 1, a = this.parts, [c, p] = vt(t, e);
310
+ if (this.el = U.createElement(c, i), A.currentNode = this.el.content, e === 2 || e === 3) {
311
+ const l = this.el.content.firstChild;
312
+ l.replaceWith(...l.childNodes);
313
+ }
314
+ for (; (s = A.nextNode()) !== null && a.length < h; ) {
315
+ if (s.nodeType === 1) {
316
+ if (s.hasAttributes()) for (const l of s.getAttributeNames()) if (l.endsWith(rt)) {
317
+ const u = p[n++], $ = s.getAttribute(l).split(f), N = /([.?@])?(.*)/.exec(u);
318
+ a.push({ type: 1, index: o, name: N[2], strings: $, ctor: N[1] === "." ? St : N[1] === "?" ? bt : N[1] === "@" ? wt : k }), s.removeAttribute(l);
319
+ } else l.startsWith(f) && (a.push({ type: 6, index: o }), s.removeAttribute(l));
320
+ if (ot.test(s.tagName)) {
321
+ const l = s.textContent.split(f), u = l.length - 1;
322
+ if (u > 0) {
323
+ s.textContent = H ? H.emptyScript : "";
324
+ for (let $ = 0; $ < u; $++) s.append(l[$], P()), A.nextNode(), a.push({ type: 2, index: ++o });
325
+ s.append(l[u], P());
326
+ }
327
+ }
328
+ } else if (s.nodeType === 8) if (s.data === nt) a.push({ type: 2, index: o });
329
+ else {
330
+ let l = -1;
331
+ for (; (l = s.data.indexOf(f, l + 1)) !== -1; ) a.push({ type: 7, index: o }), l += f.length - 1;
332
+ }
333
+ o++;
334
+ }
335
+ }
336
+ static createElement(t, e) {
337
+ const i = g.createElement("template");
338
+ return i.innerHTML = t, i;
339
+ }
340
+ }
341
+ function S(r, t, e = r, i) {
342
+ var n, h;
343
+ if (t === E) return t;
344
+ let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
345
+ const o = x(t) ? void 0 : t._$litDirective$;
346
+ return (s == null ? void 0 : s.constructor) !== o && ((h = s == null ? void 0 : s._$AO) == null || h.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = S(r, s._$AS(r, t.values), s, i)), t;
347
+ }
348
+ class Et {
349
+ constructor(t, e) {
350
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
351
+ }
352
+ get parentNode() {
353
+ return this._$AM.parentNode;
354
+ }
355
+ get _$AU() {
356
+ return this._$AM._$AU;
357
+ }
358
+ u(t) {
359
+ const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
360
+ A.currentNode = s;
361
+ let o = A.nextNode(), n = 0, h = 0, a = i[0];
362
+ for (; a !== void 0; ) {
363
+ if (n === a.index) {
364
+ let c;
365
+ a.type === 2 ? c = new O(o, o.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (c = new Ct(o, this, t)), this._$AV.push(c), a = i[++h];
366
+ }
367
+ n !== (a == null ? void 0 : a.index) && (o = A.nextNode(), n++);
368
+ }
369
+ return A.currentNode = g, s;
370
+ }
371
+ p(t) {
372
+ let e = 0;
373
+ for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
374
+ }
375
+ }
376
+ class O {
377
+ get _$AU() {
378
+ var t;
379
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
380
+ }
381
+ constructor(t, e, i, s) {
382
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
383
+ }
384
+ get parentNode() {
385
+ let t = this._$AA.parentNode;
386
+ const e = this._$AM;
387
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
388
+ }
389
+ get startNode() {
390
+ return this._$AA;
391
+ }
392
+ get endNode() {
393
+ return this._$AB;
394
+ }
395
+ _$AI(t, e = this) {
396
+ t = S(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : yt(t) ? this.k(t) : this._(t);
397
+ }
398
+ O(t) {
399
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
400
+ }
401
+ T(t) {
402
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
+ }
404
+ _(t) {
405
+ this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
406
+ }
407
+ $(t) {
408
+ var o;
409
+ const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = U.createElement(at(i.h, i.h[0]), this.options)), i);
410
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
411
+ else {
412
+ const n = new Et(s, this), h = n.u(this.options);
413
+ n.p(e), this.T(h), this._$AH = n;
414
+ }
415
+ }
416
+ _$AC(t) {
417
+ let e = X.get(t.strings);
418
+ return e === void 0 && X.set(t.strings, e = new U(t)), e;
419
+ }
420
+ k(t) {
421
+ K(this._$AH) || (this._$AH = [], this._$AR());
422
+ const e = this._$AH;
423
+ let i, s = 0;
424
+ for (const o of t) s === e.length ? e.push(i = new O(this.O(P()), this.O(P()), this, this.options)) : i = e[s], i._$AI(o), s++;
425
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
426
+ }
427
+ _$AR(t = this._$AA.nextSibling, e) {
428
+ var i;
429
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
+ const s = t.nextSibling;
431
+ t.remove(), t = s;
432
+ }
433
+ }
434
+ setConnected(t) {
435
+ var e;
436
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
437
+ }
438
+ }
439
+ class k {
440
+ get tagName() {
441
+ return this.element.tagName;
442
+ }
443
+ get _$AU() {
444
+ return this._$AM._$AU;
445
+ }
446
+ constructor(t, e, i, s, o) {
447
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
448
+ }
449
+ _$AI(t, e = this, i, s) {
450
+ const o = this.strings;
451
+ let n = !1;
452
+ if (o === void 0) t = S(this, t, e, 0), n = !x(t) || t !== this._$AH && t !== E, n && (this._$AH = t);
453
+ else {
454
+ const h = t;
455
+ let a, c;
456
+ for (t = o[0], a = 0; a < o.length - 1; a++) c = S(this, h[i + a], e, a), c === E && (c = this._$AH[a]), n || (n = !x(c) || c !== this._$AH[a]), c === d ? t = d : t !== d && (t += (c ?? "") + o[a + 1]), this._$AH[a] = c;
457
+ }
458
+ n && !s && this.j(t);
459
+ }
460
+ j(t) {
461
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
+ }
463
+ }
464
+ class St extends k {
465
+ constructor() {
466
+ super(...arguments), this.type = 3;
467
+ }
468
+ j(t) {
469
+ this.element[this.name] = t === d ? void 0 : t;
470
+ }
471
+ }
472
+ class bt extends k {
473
+ constructor() {
474
+ super(...arguments), this.type = 4;
475
+ }
476
+ j(t) {
477
+ this.element.toggleAttribute(this.name, !!t && t !== d);
478
+ }
479
+ }
480
+ class wt extends k {
481
+ constructor(t, e, i, s, o) {
482
+ super(t, e, i, s, o), this.type = 5;
483
+ }
484
+ _$AI(t, e = this) {
485
+ if ((t = S(this, t, e, 0) ?? d) === E) return;
486
+ const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== d && (i === d || s);
487
+ s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
+ }
489
+ handleEvent(t) {
490
+ var e;
491
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
492
+ }
493
+ }
494
+ class Ct {
495
+ constructor(t, e, i) {
496
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
497
+ }
498
+ get _$AU() {
499
+ return this._$AM._$AU;
500
+ }
501
+ _$AI(t) {
502
+ S(this, t);
503
+ }
504
+ }
505
+ const D = C.litHtmlPolyfillSupport;
506
+ D == null || D(U, O), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.3.0");
507
+ const Pt = (r, t, e) => {
508
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
509
+ let s = i._$litPart$;
510
+ if (s === void 0) {
511
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
512
+ i._$litPart$ = s = new O(t.insertBefore(P(), o), o, void 0, e ?? {});
513
+ }
514
+ return s._$AI(r), s;
515
+ };
516
+ /**
517
+ * @license
518
+ * Copyright 2017 Google LLC
519
+ * SPDX-License-Identifier: BSD-3-Clause
520
+ */
521
+ const y = globalThis;
522
+ class M extends v {
523
+ constructor() {
524
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
525
+ }
526
+ createRenderRoot() {
527
+ var e;
528
+ const t = super.createRenderRoot();
529
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
530
+ }
531
+ update(t) {
532
+ const e = this.render();
533
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Pt(e, this.renderRoot, this.renderOptions);
534
+ }
535
+ connectedCallback() {
536
+ var t;
537
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
538
+ }
539
+ disconnectedCallback() {
540
+ var t;
541
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
542
+ }
543
+ render() {
544
+ return E;
545
+ }
546
+ }
547
+ var et;
548
+ M._$litElement$ = !0, M.finalized = !0, (et = y.litElementHydrateSupport) == null || et.call(y, { LitElement: M });
549
+ const z = y.litElementPolyfillSupport;
550
+ z == null || z({ LitElement: M });
551
+ (y.litElementVersions ?? (y.litElementVersions = [])).push("4.2.0");
552
+ /**
553
+ * @license
554
+ * Copyright 2017 Google LLC
555
+ * SPDX-License-Identifier: BSD-3-Clause
556
+ */
557
+ const Mt = (r) => (t, e) => {
558
+ e !== void 0 ? e.addInitializer(() => {
559
+ customElements.define(r, t);
560
+ }) : customElements.define(r, t);
561
+ }, ht = new URLSearchParams(location.search).has("perf"), tt = () => {
562
+ var r;
563
+ return ht || ((r = window.__florid__) == null ? void 0 : r.performance) === !0;
564
+ };
565
+ let xt = 0;
566
+ ht && !window.__STORYBOOK_ADDONS_CHANNEL__ && import("./performance-reporter-B7ZOqnDk.mjs").then((r) => r.start());
567
+ function Ht(r) {
568
+ class t extends r {
569
+ connectedCallback() {
570
+ tt() && (this._perfKey = `${this.tagName.toLowerCase()}#${++xt}`, this._perfParent = this._getParentContext(), this._perfStartTime = performance.now(), performance.mark(`${this._perfKey}:start`)), super.connectedCallback();
571
+ }
572
+ disconnectedCallback() {
573
+ super.disconnectedCallback(), this._clearPerfState();
574
+ }
575
+ firstUpdated(i) {
576
+ super.firstUpdated(i);
577
+ const s = this._perfKey, o = this._perfParent, n = this._perfStartTime;
578
+ if (this._perfKey = void 0, this._perfParent = void 0, this._perfStartTime = void 0, !tt() || !s) {
579
+ s && performance.clearMarks(`${s}:start`);
580
+ return;
581
+ }
582
+ const h = this.tagName.toLowerCase();
583
+ try {
584
+ performance.mark(`${s}:end`), performance.measure(`${h}:init`, {
585
+ start: `${s}:start`,
586
+ end: `${s}:end`,
587
+ detail: { parent: o ?? "unknown" }
588
+ });
589
+ } catch {
590
+ } finally {
591
+ performance.clearMarks(`${s}:start`), performance.clearMarks(`${s}:end`);
592
+ }
593
+ n !== void 0 && requestAnimationFrame(() => {
594
+ performance.measure(`${h}:to-paint`, {
595
+ start: n,
596
+ detail: { parent: o ?? "unknown" }
597
+ });
598
+ });
599
+ }
600
+ _getParentContext() {
601
+ var o;
602
+ const i = (o = this.closest("[data-perf-context]")) == null ? void 0 : o.getAttribute("data-perf-context");
603
+ if (i) return i;
604
+ let s = this.parentElement;
605
+ for (let n = 0; n < 5 && s && s.tagName !== "BODY"; n++, s = s.parentElement) {
606
+ const h = typeof s.className == "string" ? s.className.trim() : "";
607
+ if (h) return `.${h.split(/\s+/)[0]}`;
608
+ if (s.id) return `#${s.id}`;
609
+ }
610
+ return "body";
611
+ }
612
+ _clearPerfState() {
613
+ this._perfKey && (performance.clearMarks(`${this._perfKey}:start`), this._perfKey = void 0, this._perfParent = void 0, this._perfStartTime = void 0);
614
+ }
615
+ }
616
+ return t;
617
+ }
618
+ export {
619
+ d as E,
620
+ E as T,
621
+ M as a,
622
+ it as f,
623
+ Ot as i,
624
+ Ht as m,
625
+ Mt as t,
626
+ B as u,
627
+ Tt as x
628
+ };