@illinois-toolkit/ilw-hero 0.9.1 → 1.0.0-alpha

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.
@@ -0,0 +1,757 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const k = globalThis, B = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), I = /* @__PURE__ */ new WeakMap();
7
+ let Y = class {
8
+ constructor(t, e, i) {
9
+ if (this._$cssResult$ = !0, i !== D)
10
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
+ this.cssText = t, this.t = e;
12
+ }
13
+ get styleSheet() {
14
+ let t = this.o;
15
+ const e = this.t;
16
+ if (B && t === void 0) {
17
+ const i = e !== void 0 && e.length === 1;
18
+ i && (t = I.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && I.set(e, t));
19
+ }
20
+ return t;
21
+ }
22
+ toString() {
23
+ return this.cssText;
24
+ }
25
+ };
26
+ const ot = (n) => new Y(typeof n == "string" ? n : n + "", void 0, D), ht = (n, ...t) => {
27
+ const e = n.length === 1 ? n[0] : t.reduce((i, s, o) => i + ((r) => {
28
+ if (r._$cssResult$ === !0)
29
+ return r.cssText;
30
+ if (typeof r == "number")
31
+ return r;
32
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
+ })(s) + n[o + 1], n[0]);
34
+ return new Y(e, n, D);
35
+ }, at = (n, t) => {
36
+ if (B)
37
+ n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
+ else
39
+ for (const e of t) {
40
+ const i = document.createElement("style"), s = k.litNonce;
41
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
42
+ }
43
+ }, W = B ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
44
+ let e = "";
45
+ for (const i of t.cssRules)
46
+ e += i.cssText;
47
+ return ot(e);
48
+ })(n) : n;
49
+ /**
50
+ * @license
51
+ * Copyright 2017 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */
54
+ const { is: lt, defineProperty: ct, getOwnPropertyDescriptor: dt, getOwnPropertyNames: pt, getOwnPropertySymbols: ut, getPrototypeOf: $t } = Object, _ = globalThis, V = _.trustedTypes, gt = V ? V.emptyScript : "", R = _.reactiveElementPolyfillSupport, x = (n, t) => n, j = { toAttribute(n, t) {
55
+ switch (t) {
56
+ case Boolean:
57
+ n = n ? gt : null;
58
+ break;
59
+ case Object:
60
+ case Array:
61
+ n = n == null ? n : JSON.stringify(n);
62
+ }
63
+ return n;
64
+ }, fromAttribute(n, t) {
65
+ let e = n;
66
+ switch (t) {
67
+ case Boolean:
68
+ e = n !== null;
69
+ break;
70
+ case Number:
71
+ e = n === null ? null : Number(n);
72
+ break;
73
+ case Object:
74
+ case Array:
75
+ try {
76
+ e = JSON.parse(n);
77
+ } catch {
78
+ e = null;
79
+ }
80
+ }
81
+ return e;
82
+ } }, tt = (n, t) => !lt(n, t), q = { attribute: !0, type: String, converter: j, reflect: !1, hasChanged: tt };
83
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
+ class y extends HTMLElement {
85
+ static addInitializer(t) {
86
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
+ }
88
+ static get observedAttributes() {
89
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
+ }
91
+ static createProperty(t, e = q) {
92
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
+ const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
94
+ s !== void 0 && ct(this.prototype, t, s);
95
+ }
96
+ }
97
+ static getPropertyDescriptor(t, e, i) {
98
+ const { get: s, set: o } = dt(this.prototype, t) ?? { get() {
99
+ return this[e];
100
+ }, set(r) {
101
+ this[e] = r;
102
+ } };
103
+ return { get() {
104
+ return s == null ? void 0 : s.call(this);
105
+ }, set(r) {
106
+ const l = s == null ? void 0 : s.call(this);
107
+ o.call(this, r), this.requestUpdate(t, l, i);
108
+ }, configurable: !0, enumerable: !0 };
109
+ }
110
+ static getPropertyOptions(t) {
111
+ return this.elementProperties.get(t) ?? q;
112
+ }
113
+ static _$Ei() {
114
+ if (this.hasOwnProperty(x("elementProperties")))
115
+ return;
116
+ const t = $t(this);
117
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
+ }
119
+ static finalize() {
120
+ if (this.hasOwnProperty(x("finalized")))
121
+ return;
122
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(x("properties"))) {
123
+ const e = this.properties, i = [...pt(e), ...ut(e)];
124
+ for (const s of i)
125
+ this.createProperty(s, e[s]);
126
+ }
127
+ const t = this[Symbol.metadata];
128
+ if (t !== null) {
129
+ const e = litPropertyMetadata.get(t);
130
+ if (e !== void 0)
131
+ for (const [i, s] of e)
132
+ this.elementProperties.set(i, s);
133
+ }
134
+ this._$Eh = /* @__PURE__ */ new Map();
135
+ for (const [e, i] of this.elementProperties) {
136
+ const s = this._$Eu(e, i);
137
+ s !== void 0 && this._$Eh.set(s, e);
138
+ }
139
+ this.elementStyles = this.finalizeStyles(this.styles);
140
+ }
141
+ static finalizeStyles(t) {
142
+ const e = [];
143
+ if (Array.isArray(t)) {
144
+ const i = new Set(t.flat(1 / 0).reverse());
145
+ for (const s of i)
146
+ e.unshift(W(s));
147
+ } else
148
+ t !== void 0 && e.push(W(t));
149
+ return e;
150
+ }
151
+ static _$Eu(t, e) {
152
+ const i = e.attribute;
153
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
154
+ }
155
+ constructor() {
156
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
157
+ }
158
+ _$Ev() {
159
+ var t;
160
+ 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));
161
+ }
162
+ addController(t) {
163
+ var e;
164
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
165
+ }
166
+ removeController(t) {
167
+ var e;
168
+ (e = this._$EO) == null || e.delete(t);
169
+ }
170
+ _$E_() {
171
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
172
+ for (const i of e.keys())
173
+ this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
174
+ t.size > 0 && (this._$Ep = t);
175
+ }
176
+ createRenderRoot() {
177
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
178
+ return at(t, this.constructor.elementStyles), t;
179
+ }
180
+ connectedCallback() {
181
+ var t;
182
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
183
+ var i;
184
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
185
+ });
186
+ }
187
+ enableUpdating(t) {
188
+ }
189
+ disconnectedCallback() {
190
+ var t;
191
+ (t = this._$EO) == null || t.forEach((e) => {
192
+ var i;
193
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
194
+ });
195
+ }
196
+ attributeChangedCallback(t, e, i) {
197
+ this._$AK(t, i);
198
+ }
199
+ _$EC(t, e) {
200
+ var o;
201
+ const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
202
+ if (s !== void 0 && i.reflect === !0) {
203
+ const r = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : j).toAttribute(e, i.type);
204
+ this._$Em = t, r == null ? this.removeAttribute(s) : this.setAttribute(s, r), this._$Em = null;
205
+ }
206
+ }
207
+ _$AK(t, e) {
208
+ var o;
209
+ const i = this.constructor, s = i._$Eh.get(t);
210
+ if (s !== void 0 && this._$Em !== s) {
211
+ const r = i.getPropertyOptions(s), l = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : j;
212
+ this._$Em = s, this[s] = l.fromAttribute(e, r.type), this._$Em = null;
213
+ }
214
+ }
215
+ requestUpdate(t, e, i) {
216
+ if (t !== void 0) {
217
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? tt)(this[t], e))
218
+ return;
219
+ this.P(t, e, i);
220
+ }
221
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
222
+ }
223
+ P(t, e, i) {
224
+ this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
225
+ }
226
+ async _$ET() {
227
+ this.isUpdatePending = !0;
228
+ try {
229
+ await this._$ES;
230
+ } catch (e) {
231
+ Promise.reject(e);
232
+ }
233
+ const t = this.scheduleUpdate();
234
+ return t != null && await t, !this.isUpdatePending;
235
+ }
236
+ scheduleUpdate() {
237
+ return this.performUpdate();
238
+ }
239
+ performUpdate() {
240
+ var i;
241
+ if (!this.isUpdatePending)
242
+ return;
243
+ if (!this.hasUpdated) {
244
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
245
+ for (const [o, r] of this._$Ep)
246
+ this[o] = r;
247
+ this._$Ep = void 0;
248
+ }
249
+ const s = this.constructor.elementProperties;
250
+ if (s.size > 0)
251
+ for (const [o, r] of s)
252
+ r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], r);
253
+ }
254
+ let t = !1;
255
+ const e = this._$AL;
256
+ try {
257
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
258
+ var o;
259
+ return (o = s.hostUpdate) == null ? void 0 : o.call(s);
260
+ }), this.update(e)) : this._$EU();
261
+ } catch (s) {
262
+ throw t = !1, this._$EU(), s;
263
+ }
264
+ t && this._$AE(e);
265
+ }
266
+ willUpdate(t) {
267
+ }
268
+ _$AE(t) {
269
+ var e;
270
+ (e = this._$EO) == null || e.forEach((i) => {
271
+ var s;
272
+ return (s = i.hostUpdated) == null ? void 0 : s.call(i);
273
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
274
+ }
275
+ _$EU() {
276
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
277
+ }
278
+ get updateComplete() {
279
+ return this.getUpdateComplete();
280
+ }
281
+ getUpdateComplete() {
282
+ return this._$ES;
283
+ }
284
+ shouldUpdate(t) {
285
+ return !0;
286
+ }
287
+ update(t) {
288
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
289
+ }
290
+ updated(t) {
291
+ }
292
+ firstUpdated(t) {
293
+ }
294
+ }
295
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[x("elementProperties")] = /* @__PURE__ */ new Map(), y[x("finalized")] = /* @__PURE__ */ new Map(), R == null || R({ ReactiveElement: y }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
296
+ /**
297
+ * @license
298
+ * Copyright 2017 Google LLC
299
+ * SPDX-License-Identifier: BSD-3-Clause
300
+ */
301
+ const E = globalThis, N = E.trustedTypes, J = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, et = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + g, _t = `<${it}>`, A = document, C = () => A.createComment(""), P = (n) => n === null || typeof n != "object" && typeof n != "function", st = Array.isArray, ft = (n) => st(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", M = `[
302
+ \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, F = />/g, f = RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, mt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), At = mt(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), m = A.createTreeWalker(A, 129);
304
+ function rt(n, t) {
305
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
306
+ throw Error("invalid template strings array");
307
+ return J !== void 0 ? J.createHTML(t) : t;
308
+ }
309
+ const yt = (n, t) => {
310
+ const e = n.length - 1, i = [];
311
+ let s, o = t === 2 ? "<svg>" : "", r = S;
312
+ for (let l = 0; l < e; l++) {
313
+ const h = n[l];
314
+ let c, p, a = -1, u = 0;
315
+ for (; u < h.length && (r.lastIndex = u, p = r.exec(h), p !== null); )
316
+ u = r.lastIndex, r === S ? p[1] === "!--" ? r = K : p[1] !== void 0 ? r = F : p[2] !== void 0 ? (nt.test(p[2]) && (s = RegExp("</" + p[2], "g")), r = f) : p[3] !== void 0 && (r = f) : r === f ? p[0] === ">" ? (r = s ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = r.lastIndex - p[2].length, c = p[1], r = p[3] === void 0 ? f : p[3] === '"' ? G : Z) : r === G || r === Z ? r = f : r === K || r === F ? r = S : (r = f, s = void 0);
317
+ const $ = r === f && n[l + 1].startsWith("/>") ? " " : "";
318
+ o += r === S ? h + _t : a >= 0 ? (i.push(c), h.slice(0, a) + et + h.slice(a) + g + $) : h + g + (a === -2 ? l : $);
319
+ }
320
+ return [rt(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
321
+ };
322
+ class U {
323
+ constructor({ strings: t, _$litType$: e }, i) {
324
+ let s;
325
+ this.parts = [];
326
+ let o = 0, r = 0;
327
+ const l = t.length - 1, h = this.parts, [c, p] = yt(t, e);
328
+ if (this.el = U.createElement(c, i), m.currentNode = this.el.content, e === 2) {
329
+ const a = this.el.content.firstChild;
330
+ a.replaceWith(...a.childNodes);
331
+ }
332
+ for (; (s = m.nextNode()) !== null && h.length < l; ) {
333
+ if (s.nodeType === 1) {
334
+ if (s.hasAttributes())
335
+ for (const a of s.getAttributeNames())
336
+ if (a.endsWith(et)) {
337
+ const u = p[r++], $ = s.getAttribute(a).split(g), T = /([.?@])?(.*)/.exec(u);
338
+ h.push({ type: 1, index: o, name: T[2], strings: $, ctor: T[1] === "." ? bt : T[1] === "?" ? St : T[1] === "@" ? xt : O }), s.removeAttribute(a);
339
+ } else
340
+ a.startsWith(g) && (h.push({ type: 6, index: o }), s.removeAttribute(a));
341
+ if (nt.test(s.tagName)) {
342
+ const a = s.textContent.split(g), u = a.length - 1;
343
+ if (u > 0) {
344
+ s.textContent = N ? N.emptyScript : "";
345
+ for (let $ = 0; $ < u; $++)
346
+ s.append(a[$], C()), m.nextNode(), h.push({ type: 2, index: ++o });
347
+ s.append(a[u], C());
348
+ }
349
+ }
350
+ } else if (s.nodeType === 8)
351
+ if (s.data === it)
352
+ h.push({ type: 2, index: o });
353
+ else {
354
+ let a = -1;
355
+ for (; (a = s.data.indexOf(g, a + 1)) !== -1; )
356
+ h.push({ type: 7, index: o }), a += g.length - 1;
357
+ }
358
+ o++;
359
+ }
360
+ }
361
+ static createElement(t, e) {
362
+ const i = A.createElement("template");
363
+ return i.innerHTML = t, i;
364
+ }
365
+ }
366
+ function b(n, t, e = n, i) {
367
+ var r, l;
368
+ if (t === v)
369
+ return t;
370
+ let s = i !== void 0 ? (r = e._$Co) == null ? void 0 : r[i] : e._$Cl;
371
+ const o = P(t) ? void 0 : t._$litDirective$;
372
+ return (s == null ? void 0 : s.constructor) !== o && ((l = s == null ? void 0 : s._$AO) == null || l.call(s, !1), o === void 0 ? s = void 0 : (s = new o(n), s._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = b(n, s._$AS(n, t.values), s, i)), t;
373
+ }
374
+ class vt {
375
+ constructor(t, e) {
376
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
377
+ }
378
+ get parentNode() {
379
+ return this._$AM.parentNode;
380
+ }
381
+ get _$AU() {
382
+ return this._$AM._$AU;
383
+ }
384
+ u(t) {
385
+ const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
386
+ m.currentNode = s;
387
+ let o = m.nextNode(), r = 0, l = 0, h = i[0];
388
+ for (; h !== void 0; ) {
389
+ if (r === h.index) {
390
+ let c;
391
+ h.type === 2 ? c = new H(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new Et(o, this, t)), this._$AV.push(c), h = i[++l];
392
+ }
393
+ r !== (h == null ? void 0 : h.index) && (o = m.nextNode(), r++);
394
+ }
395
+ return m.currentNode = A, s;
396
+ }
397
+ p(t) {
398
+ let e = 0;
399
+ for (const i of this._$AV)
400
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
401
+ }
402
+ }
403
+ class H {
404
+ get _$AU() {
405
+ var t;
406
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
407
+ }
408
+ constructor(t, e, i, s) {
409
+ 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;
410
+ }
411
+ get parentNode() {
412
+ let t = this._$AA.parentNode;
413
+ const e = this._$AM;
414
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
415
+ }
416
+ get startNode() {
417
+ return this._$AA;
418
+ }
419
+ get endNode() {
420
+ return this._$AB;
421
+ }
422
+ _$AI(t, e = this) {
423
+ t = b(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ft(t) ? this.k(t) : this._(t);
424
+ }
425
+ S(t) {
426
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
427
+ }
428
+ T(t) {
429
+ this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
430
+ }
431
+ _(t) {
432
+ this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
433
+ }
434
+ $(t) {
435
+ var o;
436
+ const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = U.createElement(rt(i.h, i.h[0]), this.options)), i);
437
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === s)
438
+ this._$AH.p(e);
439
+ else {
440
+ const r = new vt(s, this), l = r.u(this.options);
441
+ r.p(e), this.T(l), this._$AH = r;
442
+ }
443
+ }
444
+ _$AC(t) {
445
+ let e = Q.get(t.strings);
446
+ return e === void 0 && Q.set(t.strings, e = new U(t)), e;
447
+ }
448
+ k(t) {
449
+ st(this._$AH) || (this._$AH = [], this._$AR());
450
+ const e = this._$AH;
451
+ let i, s = 0;
452
+ for (const o of t)
453
+ s === e.length ? e.push(i = new H(this.S(C()), this.S(C()), this, this.options)) : i = e[s], i._$AI(o), s++;
454
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
455
+ }
456
+ _$AR(t = this._$AA.nextSibling, e) {
457
+ var i;
458
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
459
+ const s = t.nextSibling;
460
+ t.remove(), t = s;
461
+ }
462
+ }
463
+ setConnected(t) {
464
+ var e;
465
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
466
+ }
467
+ }
468
+ class O {
469
+ get tagName() {
470
+ return this.element.tagName;
471
+ }
472
+ get _$AU() {
473
+ return this._$AM._$AU;
474
+ }
475
+ constructor(t, e, i, s, o) {
476
+ 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;
477
+ }
478
+ _$AI(t, e = this, i, s) {
479
+ const o = this.strings;
480
+ let r = !1;
481
+ if (o === void 0)
482
+ t = b(this, t, e, 0), r = !P(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
483
+ else {
484
+ const l = t;
485
+ let h, c;
486
+ for (t = o[0], h = 0; h < o.length - 1; h++)
487
+ c = b(this, l[i + h], e, h), c === v && (c = this._$AH[h]), r || (r = !P(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
488
+ }
489
+ r && !s && this.j(t);
490
+ }
491
+ j(t) {
492
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
493
+ }
494
+ }
495
+ class bt extends O {
496
+ constructor() {
497
+ super(...arguments), this.type = 3;
498
+ }
499
+ j(t) {
500
+ this.element[this.name] = t === d ? void 0 : t;
501
+ }
502
+ }
503
+ class St extends O {
504
+ constructor() {
505
+ super(...arguments), this.type = 4;
506
+ }
507
+ j(t) {
508
+ this.element.toggleAttribute(this.name, !!t && t !== d);
509
+ }
510
+ }
511
+ class xt extends O {
512
+ constructor(t, e, i, s, o) {
513
+ super(t, e, i, s, o), this.type = 5;
514
+ }
515
+ _$AI(t, e = this) {
516
+ if ((t = b(this, t, e, 0) ?? d) === v)
517
+ return;
518
+ 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);
519
+ s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
520
+ }
521
+ handleEvent(t) {
522
+ var e;
523
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
524
+ }
525
+ }
526
+ class Et {
527
+ constructor(t, e, i) {
528
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
529
+ }
530
+ get _$AU() {
531
+ return this._$AM._$AU;
532
+ }
533
+ _$AI(t) {
534
+ b(this, t);
535
+ }
536
+ }
537
+ const z = E.litHtmlPolyfillSupport;
538
+ z == null || z(U, H), (E.litHtmlVersions ?? (E.litHtmlVersions = [])).push("3.1.3");
539
+ const wt = (n, t, e) => {
540
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
541
+ let s = i._$litPart$;
542
+ if (s === void 0) {
543
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
544
+ i._$litPart$ = s = new H(t.insertBefore(C(), o), o, void 0, e ?? {});
545
+ }
546
+ return s._$AI(n), s;
547
+ };
548
+ /**
549
+ * @license
550
+ * Copyright 2017 Google LLC
551
+ * SPDX-License-Identifier: BSD-3-Clause
552
+ */
553
+ class w extends y {
554
+ constructor() {
555
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
556
+ }
557
+ createRenderRoot() {
558
+ var e;
559
+ const t = super.createRenderRoot();
560
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
561
+ }
562
+ update(t) {
563
+ const e = this.render();
564
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
565
+ }
566
+ connectedCallback() {
567
+ var t;
568
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
569
+ }
570
+ disconnectedCallback() {
571
+ var t;
572
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
573
+ }
574
+ render() {
575
+ return v;
576
+ }
577
+ }
578
+ var X;
579
+ w._$litElement$ = !0, w.finalized = !0, (X = globalThis.litElementHydrateSupport) == null || X.call(globalThis, { LitElement: w });
580
+ const L = globalThis.litElementPolyfillSupport;
581
+ L == null || L({ LitElement: w });
582
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
583
+ const Ct = ht`
584
+
585
+ .hero {
586
+ position: relative;
587
+ }
588
+
589
+ .hero.fixed {
590
+ left:50%;
591
+ margin-left:-50vw;
592
+ margin-right:-50vw;
593
+ padding-left:0;
594
+ padding-right:0;
595
+ position:relative;
596
+ right:50%;
597
+ width:100vw;
598
+ }
599
+
600
+ .background {
601
+ position: relative;
602
+ width: 100%;
603
+ height: var(--ilw-hero--height, 223px);
604
+ background-color: var(--ilw-hero--background);
605
+ }
606
+
607
+ .background.collapse {
608
+ display: none;
609
+ }
610
+
611
+ img {
612
+ display: block;
613
+ position: relative;
614
+ object-fit: cover;
615
+ object-position: center;
616
+ }
617
+
618
+ .content-outer {
619
+ background: var(--ilw-hero--background);
620
+ position: relative;
621
+ z-index: 100;
622
+ padding: 0 20px;
623
+ }
624
+
625
+ .content-inner {
626
+ padding: 18px 0 36px 0;
627
+ }
628
+
629
+ @media (min-width: 576px) {
630
+ .content-inner {
631
+ padding: 36px 0px 72px;
632
+ }
633
+ }
634
+
635
+ @media (min-width: 767px) {
636
+ .background {
637
+ position: absolute;
638
+ width: 100%;
639
+ top: 0;
640
+ left: 0;
641
+ z-index: 1;
642
+ }
643
+ .background img {
644
+ position: absolute;
645
+ width: 100%;
646
+ height: 100%;
647
+ top: 0;
648
+ left: 0;
649
+ z-index: 101;
650
+ }
651
+ .background.collapse {
652
+ display: block;
653
+ }
654
+
655
+
656
+ .content-outer {
657
+ background: transparent;
658
+ height: var(--ilw-hero--height, 223px);
659
+ display: flex;
660
+ }
661
+
662
+ .content-inner {
663
+ width: 60%;
664
+ margin: auto;
665
+ display: flex;
666
+ flex-direction: column;
667
+ text-align: center;
668
+ align-items: center;
669
+ max-width: 1200px;
670
+ }
671
+
672
+ .content-inner.left {
673
+ text-align: left;
674
+ align-items: flex-start;
675
+ margin-left: 100px;
676
+ }
677
+
678
+ .content-inner.right {
679
+ text-align: right;
680
+ align-items: flex-end;
681
+ margin-right: 100px;
682
+ }
683
+
684
+ .content-inner.top {
685
+ margin-top: 0;
686
+ }
687
+
688
+ .content-inner.bottom {
689
+ margin-bottom: 0;
690
+ }
691
+ .content-inner.top-left {
692
+ text-align: left;
693
+ align-items: flex-start;
694
+ margin: 0 auto auto 100px;
695
+ }
696
+
697
+ .content-inner.top-right {
698
+ text-align: left;
699
+ align-items: flex-start;
700
+ margin: 0 100px auto auto;
701
+ }
702
+
703
+ .content-inner.bottom-left {
704
+ text-align: right;
705
+ align-items: flex-end;
706
+ margin: auto auto 0 100px;
707
+ }
708
+
709
+ .content-inner.bottom-right {
710
+ text-align: right;
711
+ align-items: flex-end;
712
+ margin: auto 100px 0 auto;
713
+ }
714
+ }
715
+
716
+ @media (min-width: 992px) {
717
+ .content-inner {
718
+ width: var(--ilw-hero--text-width);
719
+ }
720
+ }
721
+ `;
722
+ class Pt extends w {
723
+ static get properties() {
724
+ return {
725
+ theme: { type: String, attribute: !0 },
726
+ focus: { type: String, attribute: !0 },
727
+ shadow: { type: Boolean, attribute: !0 },
728
+ collapse: { type: Boolean, attribute: !0 },
729
+ align: { type: String, attribute: !0 },
730
+ width: { type: String, attribute: !0 }
731
+ };
732
+ }
733
+ static get styles() {
734
+ return Ct;
735
+ }
736
+ constructor() {
737
+ super(), this.align = "", this.focus = "", this.shadow = !1, this.collapse = !1, this.theme = "", this.width = "";
738
+ }
739
+ get outerWidth() {
740
+ return this.width == "full" || this.width == "auto" ? "fixed" : "";
741
+ }
742
+ render() {
743
+ return At`
744
+ <div class="hero ${this.outerWidth}">
745
+ <div role="presentation" class="background ${this.collapse ? "collapse" : ""}">
746
+ <slot name="background"></slot>
747
+ </div>
748
+ <div class="content-outer">
749
+ <div class="content-inner ${this.align.replace("-", " ")}">
750
+ <slot></slot>
751
+ </div>
752
+ </div>
753
+ </div>
754
+ `;
755
+ }
756
+ }
757
+ customElements.define("ilw-hero", Pt);