ma-icons 0.3.7 → 0.3.9

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.
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
6
  const z = globalThis, W = z.ShadowRoot && (z.ShadyCSS === void 0 || z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, F = Symbol(), Z = /* @__PURE__ */ new WeakMap();
7
- let ot = class {
7
+ let nt = class {
8
8
  constructor(t, e, s) {
9
9
  if (this._$cssResult$ = !0, s !== F) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = t, this.t = e;
@@ -22,13 +22,13 @@ let ot = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const dt = (r) => new ot(typeof r == "string" ? r : r + "", void 0, F), pt = (r, ...t) => {
26
- const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((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
- })(i) + r[o + 1], r[0]);
31
- return new ot(e, r, F);
25
+ const dt = (r) => new nt(typeof r == "string" ? r : r + "", void 0, F), pt = (r, ...t) => {
26
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
27
+ if (o._$cssResult$ === !0) return o.cssText;
28
+ if (typeof o == "number") return o;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(i) + r[n + 1], r[0]);
31
+ return new nt(e, r, F);
32
32
  }, ut = (r, t) => {
33
33
  if (W) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
@@ -45,7 +45,7 @@ const dt = (r) => new ot(typeof r == "string" ? r : r + "", void 0, F), pt = (r,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnPropertyNames: mt, getOwnPropertySymbols: gt, getPrototypeOf: yt } = Object, m = globalThis, Q = m.trustedTypes, At = Q ? Q.emptyScript : "", I = m.reactiveElementPolyfillSupport, O = (r, t) => r, D = { toAttribute(r, t) {
48
+ const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnPropertyNames: yt, getOwnPropertySymbols: mt, getPrototypeOf: gt } = Object, g = globalThis, Q = g.trustedTypes, At = Q ? Q.emptyScript : "", I = g.reactiveElementPolyfillSupport, O = (r, t) => r, D = { toAttribute(r, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  r = r ? At : null;
@@ -74,7 +74,7 @@ const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnProperty
74
74
  }
75
75
  return e;
76
76
  } }, J = (r, t) => !$t(r, t), X = { attribute: !0, type: String, converter: D, reflect: !1, useDefault: !1, hasChanged: J };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), g.litPropertyMetadata ?? (g.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let w = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -89,14 +89,14 @@ let w = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, s) {
92
- const { get: i, set: o } = _t(this.prototype, t) ?? { get() {
92
+ const { get: i, set: n } = _t(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
- }, set(n) {
95
- this[e] = n;
94
+ }, set(o) {
95
+ this[e] = o;
96
96
  } };
97
- return { get: i, set(n) {
97
+ return { get: i, set(o) {
98
98
  const a = i == null ? void 0 : i.call(this);
99
- o == null || o.call(this, n), this.requestUpdate(t, a, s);
99
+ n == null || n.call(this, o), this.requestUpdate(t, a, s);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
@@ -104,13 +104,13 @@ let w = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(O("elementProperties"))) return;
107
- const t = yt(this);
107
+ const t = gt(this);
108
108
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
109
  }
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(O("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
113
- const e = this.properties, s = [...mt(e), ...gt(e)];
113
+ const e = this.properties, s = [...yt(e), ...mt(e)];
114
114
  for (const i of s) this.createProperty(i, e[i]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
@@ -181,32 +181,32 @@ let w = class extends HTMLElement {
181
181
  this._$AK(t, s);
182
182
  }
183
183
  _$ET(t, e) {
184
- var o;
184
+ var n;
185
185
  const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
186
186
  if (i !== void 0 && s.reflect === !0) {
187
- const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : D).toAttribute(e, s.type);
188
- this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
187
+ const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : D).toAttribute(e, s.type);
188
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
- var o, n;
192
+ var n, o;
193
193
  const s = this.constructor, i = s._$Eh.get(t);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : D;
196
- this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((n = this._$Ej) == null ? void 0 : n.get(i)) ?? null, this._$Em = null;
195
+ const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : D;
196
+ this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
199
  requestUpdate(t, e, s) {
200
200
  var i;
201
201
  if (t !== void 0) {
202
- const o = this.constructor, n = this[t];
203
- if (s ?? (s = o.getPropertyOptions(t)), !((s.hasChanged ?? J)(n, e) || s.useDefault && s.reflect && n === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(o._$Eu(t, s)))) return;
202
+ const n = this.constructor, o = this[t];
203
+ if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? J)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
204
204
  this.C(t, e, s);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
207
  }
208
- C(t, e, { useDefault: s, reflect: i, wrapped: o }, n) {
209
- s && !(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 || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
208
+ C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
209
+ s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
210
  }
211
211
  async _$EP() {
212
212
  this.isUpdatePending = !0;
@@ -226,21 +226,21 @@ let w = class extends HTMLElement {
226
226
  if (!this.isUpdatePending) return;
227
227
  if (!this.hasUpdated) {
228
228
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
- for (const [o, n] of this._$Ep) this[o] = n;
229
+ for (const [n, o] of this._$Ep) this[n] = o;
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const i = this.constructor.elementProperties;
233
- if (i.size > 0) for (const [o, n] of i) {
234
- const { wrapped: a } = n, h = this[o];
235
- a !== !0 || this._$AL.has(o) || h === void 0 || this.C(o, void 0, n, h);
233
+ if (i.size > 0) for (const [n, o] of i) {
234
+ const { wrapped: a } = o, h = this[n];
235
+ a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, o, h);
236
236
  }
237
237
  }
238
238
  let t = !1;
239
239
  const e = this._$AL;
240
240
  try {
241
241
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
242
- var o;
243
- return (o = i.hostUpdate) == null ? void 0 : o.call(i);
242
+ var n;
243
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
244
244
  }), this.update(e)) : this._$EM();
245
245
  } catch (i) {
246
246
  throw t = !1, this._$EM(), i;
@@ -276,74 +276,74 @@ let w = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[O("elementProperties")] = /* @__PURE__ */ new Map(), w[O("finalized")] = /* @__PURE__ */ new Map(), I == null || I({ ReactiveElement: w }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.1.0");
279
+ w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[O("elementProperties")] = /* @__PURE__ */ new Map(), w[O("finalized")] = /* @__PURE__ */ new Map(), I == null || I({ ReactiveElement: w }), (g.reactiveElementVersions ?? (g.reactiveElementVersions = [])).push("2.1.0");
280
280
  /**
281
281
  * @license
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const U = globalThis, j = U.trustedTypes, Y = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ht = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + _, vt = `<${at}>`, b = document, T = () => b.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", K = Array.isArray, bt = (r) => K(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", B = `[
286
- \f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g, y = RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), st = /'/g, it = /"/g, lt = /^(?:script|style|textarea|title)$/i, St = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), E = St(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), rt = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
285
+ const U = globalThis, j = U.trustedTypes, Y = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ht = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + m, vt = `<${at}>`, S = document, T = () => S.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", K = Array.isArray, bt = (r) => K(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", B = `[
286
+ \f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g, A = RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), st = /'/g, it = /"/g, lt = /^(?:script|style|textarea|title)$/i, St = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), E = St(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), rt = /* @__PURE__ */ new WeakMap(), v = S.createTreeWalker(S, 129);
288
288
  function ct(r, t) {
289
289
  if (!K(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return Y !== void 0 ? Y.createHTML(t) : t;
291
291
  }
292
292
  const Et = (r, t) => {
293
293
  const e = r.length - 1, s = [];
294
- let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = x;
294
+ let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = x;
295
295
  for (let a = 0; a < e; a++) {
296
296
  const h = r[a];
297
- let c, p, l = -1, $ = 0;
298
- for (; $ < h.length && (n.lastIndex = $, p = n.exec(h), p !== null); ) $ = n.lastIndex, n === x ? p[1] === "!--" ? n = tt : p[1] !== void 0 ? n = et : p[2] !== void 0 ? (lt.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = y) : p[3] !== void 0 && (n = y) : n === y ? p[0] === ">" ? (n = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? y : p[3] === '"' ? it : st) : n === it || n === st ? n = y : n === tt || n === et ? n = x : (n = y, i = void 0);
299
- const f = n === y && r[a + 1].startsWith("/>") ? " " : "";
300
- o += n === x ? h + vt : l >= 0 ? (s.push(c), h.slice(0, l) + ht + h.slice(l) + _ + f) : h + _ + (l === -2 ? a : f);
297
+ let c, p, l = -1, f = 0;
298
+ for (; f < h.length && (o.lastIndex = f, p = o.exec(h), p !== null); ) f = o.lastIndex, o === x ? p[1] === "!--" ? o = tt : p[1] !== void 0 ? o = et : p[2] !== void 0 ? (lt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = A) : p[3] !== void 0 && (o = A) : o === A ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? A : p[3] === '"' ? it : st) : o === it || o === st ? o = A : o === tt || o === et ? o = x : (o = A, i = void 0);
299
+ const y = o === A && r[a + 1].startsWith("/>") ? " " : "";
300
+ n += o === x ? h + vt : l >= 0 ? (s.push(c), h.slice(0, l) + ht + h.slice(l) + m + y) : h + m + (l === -2 ? a : y);
301
301
  }
302
- return [ct(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
302
+ return [ct(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
303
303
  };
304
304
  class N {
305
305
  constructor({ strings: t, _$litType$: e }, s) {
306
306
  let i;
307
307
  this.parts = [];
308
- let o = 0, n = 0;
308
+ let n = 0, o = 0;
309
309
  const a = t.length - 1, h = this.parts, [c, p] = Et(t, e);
310
- if (this.el = N.createElement(c, s), A.currentNode = this.el.content, e === 2 || e === 3) {
310
+ if (this.el = N.createElement(c, s), v.currentNode = this.el.content, e === 2 || e === 3) {
311
311
  const l = this.el.content.firstChild;
312
312
  l.replaceWith(...l.childNodes);
313
313
  }
314
- for (; (i = A.nextNode()) !== null && h.length < a; ) {
314
+ for (; (i = v.nextNode()) !== null && h.length < a; ) {
315
315
  if (i.nodeType === 1) {
316
316
  if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(ht)) {
317
- const $ = p[n++], f = i.getAttribute(l).split(_), k = /([.?@])?(.*)/.exec($);
318
- h.push({ type: 1, index: o, name: k[2], strings: f, ctor: k[1] === "." ? Pt : k[1] === "?" ? Ct : k[1] === "@" ? xt : L }), i.removeAttribute(l);
319
- } else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
317
+ const f = p[o++], y = i.getAttribute(l).split(m), k = /([.?@])?(.*)/.exec(f);
318
+ h.push({ type: 1, index: n, name: k[2], strings: y, ctor: k[1] === "." ? Pt : k[1] === "?" ? Ct : k[1] === "@" ? xt : L }), i.removeAttribute(l);
319
+ } else l.startsWith(m) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
320
320
  if (lt.test(i.tagName)) {
321
- const l = i.textContent.split(_), $ = l.length - 1;
322
- if ($ > 0) {
321
+ const l = i.textContent.split(m), f = l.length - 1;
322
+ if (f > 0) {
323
323
  i.textContent = j ? j.emptyScript : "";
324
- for (let f = 0; f < $; f++) i.append(l[f], T()), A.nextNode(), h.push({ type: 2, index: ++o });
325
- i.append(l[$], T());
324
+ for (let y = 0; y < f; y++) i.append(l[y], T()), v.nextNode(), h.push({ type: 2, index: ++n });
325
+ i.append(l[f], T());
326
326
  }
327
327
  }
328
- } else if (i.nodeType === 8) if (i.data === at) h.push({ type: 2, index: o });
328
+ } else if (i.nodeType === 8) if (i.data === at) h.push({ type: 2, index: n });
329
329
  else {
330
330
  let l = -1;
331
- for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1;
331
+ for (; (l = i.data.indexOf(m, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += m.length - 1;
332
332
  }
333
- o++;
333
+ n++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const s = b.createElement("template");
337
+ const s = S.createElement("template");
338
338
  return s.innerHTML = t, s;
339
339
  }
340
340
  }
341
341
  function C(r, t, e = r, s) {
342
- var n, a;
342
+ var o, a;
343
343
  if (t === P) return t;
344
- let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
345
- const o = H(t) ? void 0 : t._$litDirective$;
346
- return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = C(r, i._$AS(r, t.values), i, s)), t;
344
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
345
+ const n = H(t) ? void 0 : t._$litDirective$;
346
+ return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = C(r, i._$AS(r, t.values), i, s)), t;
347
347
  }
348
348
  class wt {
349
349
  constructor(t, e) {
@@ -356,17 +356,17 @@ class wt {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
360
- A.currentNode = i;
361
- let o = A.nextNode(), n = 0, a = 0, h = s[0];
359
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
360
+ v.currentNode = i;
361
+ let n = v.nextNode(), o = 0, a = 0, h = s[0];
362
362
  for (; h !== void 0; ) {
363
- if (n === h.index) {
363
+ if (o === h.index) {
364
364
  let c;
365
- h.type === 2 ? c = new R(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new Ot(o, this, t)), this._$AV.push(c), h = s[++a];
365
+ h.type === 2 ? c = new R(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Ot(n, this, t)), this._$AV.push(c), h = s[++a];
366
366
  }
367
- n !== (h == null ? void 0 : h.index) && (o = A.nextNode(), n++);
367
+ o !== (h == null ? void 0 : h.index) && (n = v.nextNode(), o++);
368
368
  }
369
- return A.currentNode = b, i;
369
+ return v.currentNode = S, i;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
@@ -402,15 +402,15 @@ class R {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(b.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
- var o;
408
+ var n;
409
409
  const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = N.createElement(ct(s.h, s.h[0]), this.options)), s);
410
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
410
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
411
411
  else {
412
- const n = new wt(i, this), a = n.u(this.options);
413
- n.p(e), this.T(a), this._$AH = n;
412
+ const o = new wt(i, this), a = o.u(this.options);
413
+ o.p(e), this.T(a), this._$AH = o;
414
414
  }
415
415
  }
416
416
  _$AC(t) {
@@ -421,7 +421,7 @@ class R {
421
421
  K(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
423
  let s, i = 0;
424
- for (const o of t) i === e.length ? e.push(s = new R(this.O(T()), this.O(T()), this, this.options)) : s = e[i], s._$AI(o), i++;
424
+ for (const n of t) i === e.length ? e.push(s = new R(this.O(T()), this.O(T()), this, this.options)) : s = e[i], s._$AI(n), i++;
425
425
  i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, e) {
@@ -443,19 +443,19 @@ class L {
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, s, i, o) {
447
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
446
+ constructor(t, e, s, i, n) {
447
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
448
448
  }
449
449
  _$AI(t, e = this, s, i) {
450
- const o = this.strings;
451
- let n = !1;
452
- if (o === void 0) t = C(this, t, e, 0), n = !H(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
450
+ const n = this.strings;
451
+ let o = !1;
452
+ if (n === void 0) t = C(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
453
453
  else {
454
454
  const a = t;
455
455
  let h, c;
456
- for (t = o[0], h = 0; h < o.length - 1; h++) c = C(this, a[s + h], e, h), c === P && (c = this._$AH[h]), n || (n = !H(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
456
+ for (t = n[0], h = 0; h < n.length - 1; h++) c = C(this, a[s + h], e, h), c === P && (c = this._$AH[h]), o || (o = !H(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
457
457
  }
458
- n && !i && this.j(t);
458
+ o && !i && this.j(t);
459
459
  }
460
460
  j(t) {
461
461
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -478,13 +478,13 @@ class Ct extends L {
478
478
  }
479
479
  }
480
480
  class xt extends L {
481
- constructor(t, e, s, i, o) {
482
- super(t, e, s, i, o), this.type = 5;
481
+ constructor(t, e, s, i, n) {
482
+ super(t, e, s, i, n), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
485
  if ((t = C(this, t, e, 0) ?? d) === P) return;
486
- const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
487
- i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
486
+ const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
487
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
490
490
  var e;
@@ -508,8 +508,8 @@ const Ut = (r, t, e) => {
508
508
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
509
509
  let i = s._$litPart$;
510
510
  if (i === void 0) {
511
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
512
- s._$litPart$ = i = new R(t.insertBefore(T(), o), o, void 0, e ?? {});
511
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
512
+ s._$litPart$ = i = new R(t.insertBefore(T(), n), n, void 0, e ?? {});
513
513
  }
514
514
  return i._$AI(r), i;
515
515
  };
@@ -518,7 +518,7 @@ const Ut = (r, t, e) => {
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const v = globalThis;
521
+ const b = globalThis;
522
522
  class M extends w {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -544,11 +544,11 @@ class M extends w {
544
544
  return P;
545
545
  }
546
546
  }
547
- var nt;
548
- M._$litElement$ = !0, M.finalized = !0, (nt = v.litElementHydrateSupport) == null || nt.call(v, { LitElement: M });
549
- const V = v.litElementPolyfillSupport;
547
+ var ot;
548
+ M._$litElement$ = !0, M.finalized = !0, (ot = b.litElementHydrateSupport) == null || ot.call(b, { LitElement: M });
549
+ const V = b.litElementPolyfillSupport;
550
550
  V == null || V({ LitElement: M });
551
- (v.litElementVersions ?? (v.litElementVersions = [])).push("4.2.0");
551
+ (b.litElementVersions ?? (b.litElementVersions = [])).push("4.2.0");
552
552
  /**
553
553
  * @license
554
554
  * Copyright 2017 Google LLC
@@ -566,29 +566,29 @@ const Mt = (r) => (t, e) => {
566
566
  */
567
567
  const Tt = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: J }, Ht = (r = Tt, t, e) => {
568
568
  const { kind: s, metadata: i } = e;
569
- let o = globalThis.litPropertyMetadata.get(i);
570
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(e.name, r), s === "accessor") {
571
- const { name: n } = e;
569
+ let n = globalThis.litPropertyMetadata.get(i);
570
+ if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
571
+ const { name: o } = e;
572
572
  return { set(a) {
573
573
  const h = t.get.call(this);
574
- t.set.call(this, a), this.requestUpdate(n, h, r);
574
+ t.set.call(this, a), this.requestUpdate(o, h, r);
575
575
  }, init(a) {
576
- return a !== void 0 && this.C(n, void 0, r, a), a;
576
+ return a !== void 0 && this.C(o, void 0, r, a), a;
577
577
  } };
578
578
  }
579
579
  if (s === "setter") {
580
- const { name: n } = e;
580
+ const { name: o } = e;
581
581
  return function(a) {
582
- const h = this[n];
583
- t.call(this, a), this.requestUpdate(n, h, r);
582
+ const h = this[o];
583
+ t.call(this, a), this.requestUpdate(o, h, r);
584
584
  };
585
585
  }
586
586
  throw Error("Unsupported decorator location: " + s);
587
587
  };
588
- function S(r) {
589
- return (t, e) => typeof e == "object" ? Ht(r, t, e) : ((s, i, o) => {
590
- const n = i.hasOwnProperty(o);
591
- return i.constructor.createProperty(o, s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
588
+ function _(r) {
589
+ return (t, e) => typeof e == "object" ? Ht(r, t, e) : ((s, i, n) => {
590
+ const o = i.hasOwnProperty(n);
591
+ return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
592
592
  })(r, t, e);
593
593
  }
594
594
  /**
@@ -597,16 +597,16 @@ function S(r) {
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
599
  function Nt(r) {
600
- return S({ ...r, state: !0, attribute: !1 });
600
+ return _({ ...r, state: !0, attribute: !1 });
601
601
  }
602
- var Rt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, g = (r, t, e, s) => {
603
- for (var i = s > 1 ? void 0 : s ? kt(t, e) : t, o = r.length - 1, n; o >= 0; o--)
604
- (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
602
+ var Rt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, $ = (r, t, e, s) => {
603
+ for (var i = s > 1 ? void 0 : s ? kt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
604
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
605
605
  return s && i && Rt(t, e, i), i;
606
606
  };
607
607
  let u = class extends M {
608
608
  constructor() {
609
- super(...arguments), this.leading = !1, this.name = "top-right", this.size = "16", this.weight = "5", this.color = "hsl(0deg 0% 0%)", this.svg = null;
609
+ super(...arguments), this.styled = !1, this.download = !1, this.leading = !1, this.name = "top-right", this.size = "16", this.weight = "5", this.color = "hsl(0deg 0% 0%)", this.svg = null;
610
610
  }
611
611
  updated(r) {
612
612
  super.updated(r), r.has("name") && this.modifySvg();
@@ -614,13 +614,13 @@ let u = class extends M {
614
614
  render() {
615
615
  const r = this.svg ? E`<span .innerHTML=${this.svg}></span>` : E``;
616
616
  return this.href != null ? E`
617
- <a href=${this.href}>
617
+ <a download=${this.download} href=${this.href} class="${this.styled ? "styled" : ""}">
618
618
  ${this.leading ? E`${r}&thinsp;` : ""}<slot></slot>${this.leading ? "" : E`&thinsp;${r}`}
619
619
  </a>
620
620
  ` : E`${r}`;
621
621
  }
622
622
  async modifySvg() {
623
- const t = await (await fetch("https://raw.githubusercontent.com/taavirubenhagen/ma-icons/main/icons/" + this.name + ".svg")).text(), e = new DOMParser().parseFromString(t, "image/svg+xml"), s = e.querySelector("svg");
623
+ const t = await (await fetch("../icons/" + (this.download ? "download" : this.name) + ".svg")).text(), e = new DOMParser().parseFromString(t, "image/svg+xml"), s = e.querySelector("svg");
624
624
  if (!s) return "";
625
625
  s == null || s.setAttribute("width", this.size), s == null || s.setAttribute("height", this.size), s == null || s.setAttribute("fill", "none"), e.querySelectorAll("[stroke]").forEach((i) => i.setAttribute("stroke", this.href ? "hsl(0deg 0% 0% / calc(100% * 3/8))" : this.color)), e.querySelectorAll("[stroke-width]").forEach((i) => i.setAttribute("stroke-width", this.weight)), this.svg = s == null ? void 0 : s.outerHTML;
626
626
  }
@@ -631,43 +631,52 @@ u.styles = pt`
631
631
  }
632
632
 
633
633
  a {
634
- transition-property: all;
635
- transition-duration: 200ms;
636
634
  display: inline-flex;
637
635
  align-items: center;
638
636
  opacity: inherit;
639
- color: hsl(0deg 0% 0% / calc(100% * 3/8));
640
637
  text-decoration: inherit;
641
638
  font-family: inherit;
642
639
  font-size: inherit;
643
640
  }
644
641
 
645
- a:hover {
642
+ .styled {
643
+ transition-property: all;
644
+ transition-duration: 200ms;
645
+ color: hsl(0deg 0% 0% / calc(100% * 3/8));
646
+ }
647
+
648
+ .styled:hover {
646
649
  opacity: 75%;
647
650
  }
648
651
  `;
649
- g([
650
- S()
652
+ $([
653
+ _()
654
+ ], u.prototype, "styled", 2);
655
+ $([
656
+ _()
657
+ ], u.prototype, "download", 2);
658
+ $([
659
+ _()
651
660
  ], u.prototype, "href", 2);
652
- g([
653
- S()
661
+ $([
662
+ _()
654
663
  ], u.prototype, "leading", 2);
655
- g([
656
- S()
664
+ $([
665
+ _()
657
666
  ], u.prototype, "name", 2);
658
- g([
659
- S()
667
+ $([
668
+ _()
660
669
  ], u.prototype, "size", 2);
661
- g([
662
- S()
670
+ $([
671
+ _()
663
672
  ], u.prototype, "weight", 2);
664
- g([
665
- S()
673
+ $([
674
+ _()
666
675
  ], u.prototype, "color", 2);
667
- g([
676
+ $([
668
677
  Nt()
669
678
  ], u.prototype, "svg", 2);
670
- u = g([
679
+ u = $([
671
680
  Mt("ma-icon")
672
681
  ], u);
673
682
  const jt = [
@@ -2,21 +2,21 @@ var MaIcons=function(I){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var dt;const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,q=Symbol(),G=new WeakMap;let Q=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=G.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&G.set(e,t))}return t}toString(){return this.cssText}};const pt=r=>new Q(typeof r=="string"?r:r+"",void 0,q),ut=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;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.")})(i)+r[o+1],r[0]);return new Q(e,r,q)},$t=(r,t)=>{if(B)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},X=B?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return pt(e)})(r):r;/**
5
+ */var dt;const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,q=Symbol(),G=new WeakMap;let Q=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=G.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&G.set(e,t))}return t}toString(){return this.cssText}};const pt=r=>new Q(typeof r=="string"?r:r+"",void 0,q),ut=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new Q(e,r,q)},$t=(r,t)=>{if(B)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},X=B?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return pt(e)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:ft,defineProperty:_t,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:yt,getPrototypeOf:At}=Object,f=globalThis,Y=f.trustedTypes,vt=Y?Y.emptyScript:"",V=f.reactiveElementPolyfillSupport,x=(r,t)=>r,z={toAttribute(r,t){switch(t){case Boolean:r=r?vt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},W=(r,t)=>!ft(r,t),tt={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f.litPropertyMetadata??(f.litPropertyMetadata=new WeakMap);let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){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){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&_t(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=mt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const a=i==null?void 0:i.call(this);o==null||o.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tt}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=At(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...gt(e),...yt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(X(i))}else t!==void 0&&e.push(X(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o,n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),h=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:z;this._$Em=i,this[i]=h.fromAttribute(e,a.type)??((n=this._$Ej)==null?void 0:n.get(i))??null,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const o=this.constructor,n=this[t];if(s??(s=o.getPropertyOptions(t)),!((s.hasChanged??W)(n,e)||s.useDefault&&s.reflect&&n===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i){const{wrapped:a}=n,h=this[o];a!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,n,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[x("elementProperties")]=new Map,E[x("finalized")]=new Map,V==null||V({ReactiveElement:E}),(f.reactiveElementVersions??(f.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:ft,defineProperty:_t,getOwnPropertyDescriptor:yt,getOwnPropertyNames:mt,getOwnPropertySymbols:gt,getPrototypeOf:At}=Object,y=globalThis,Y=y.trustedTypes,vt=Y?Y.emptyScript:"",V=y.reactiveElementPolyfillSupport,x=(r,t)=>r,z={toAttribute(r,t){switch(t){case Boolean:r=r?vt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},W=(r,t)=>!ft(r,t),tt={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.litPropertyMetadata=new WeakMap);let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){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){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&_t(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=yt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tt}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=At(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...mt(e),...gt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(X(i))}else t!==void 0&&e.push(X(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),h=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:z;this._$Em=i,this[i]=h.fromAttribute(e,a.type)??((o=this._$Ej)==null?void 0:o.get(i))??null,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??W)(o,e)||s.useDefault&&s.reflect&&o===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,h=this[n];a!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,o,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[x("elementProperties")]=new Map,E[x("finalized")]=new Map,V==null||V({ReactiveElement:E}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const O=globalThis,D=O.trustedTypes,et=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,st="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+_,bt=`<${it}>`,y=document,U=()=>y.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",F=Array.isArray,St=r=>F(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
14
- \f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,nt=/>/g,A=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,Et=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Et(1),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,v=y.createTreeWalker(y,129);function ct(r,t){if(!F(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}const wt=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":t===3?"<math>":"",n=T;for(let a=0;a<e;a++){const h=r[a];let d,p,l=-1,$=0;for(;$<h.length&&(n.lastIndex=$,p=n.exec(h),p!==null);)$=n.lastIndex,n===T?p[1]==="!--"?n=rt:p[1]!==void 0?n=nt:p[2]!==void 0?(at.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=A):p[3]!==void 0&&(n=A):n===A?p[0]===">"?(n=i??T,l=-1):p[1]===void 0?l=-2:(l=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?A:p[3]==='"'?ht:ot):n===ht||n===ot?n=A:n===rt||n===nt?n=T:(n=A,i=void 0);const g=n===A&&r[a+1].startsWith("/>")?" ":"";o+=n===T?h+bt:l>=0?(s.push(d),h.slice(0,l)+st+h.slice(l)+_+g):h+_+(l===-2?a:g)}return[ct(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const a=t.length-1,h=this.parts,[d,p]=wt(t,e);if(this.el=H.createElement(d,s),v.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=v.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(st)){const $=p[n++],g=i.getAttribute(l).split(_),L=/([.?@])?(.*)/.exec($);h.push({type:1,index:o,name:L[2],strings:g,ctor:L[1]==="."?Ct:L[1]==="?"?xt:L[1]==="@"?Ot:j}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(at.test(i.tagName)){const l=i.textContent.split(_),$=l.length-1;if($>0){i.textContent=D?D.emptyScript:"";for(let g=0;g<$;g++)i.append(l[g],U()),v.nextNode(),h.push({type:2,index:++o});i.append(l[$],U())}}}else if(i.nodeType===8)if(i.data===it)h.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}}function C(r,t,e=r,s){var n,a;if(t===P)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=M(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=C(r,i._$AS(r,t.values),i,s)),t}class Pt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??y).importNode(e,!0);v.currentNode=i;let o=v.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let d;h.type===2?d=new N(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new Ut(o,this,t)),this._$AV.push(d),h=s[++a]}n!==(h==null?void 0:h.index)&&(o=v.nextNode(),n++)}return v.currentNode=y,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),M(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):St(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new Pt(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=lt.get(t.strings);return e===void 0&&lt.set(t.strings,e=new H(t)),e}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new N(this.O(U()),this.O(U()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class j{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=C(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const a=t;let h,d;for(t=o[0],h=0;h<o.length-1;h++)d=C(this,a[s+h],e,h),d===P&&(d=this._$AH[h]),n||(n=!M(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+o[h+1]),this._$AH[h]=d}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class xt extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class Ot extends j{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??c)===P)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ut{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const K=O.litHtmlPolyfillSupport;K==null||K(H,N),(O.litHtmlVersions??(O.litHtmlVersions=[])).push("3.3.0");const Mt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new N(t.insertBefore(U(),o),o,void 0,e??{})}return i._$AI(r),i};/**
13
+ */const O=globalThis,D=O.trustedTypes,et=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,st="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+m,bt=`<${it}>`,A=document,U=()=>A.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",F=Array.isArray,St=r=>F(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
14
+ \f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,v=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,Et=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Et(1),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,b=A.createTreeWalker(A,129);function ct(r,t){if(!F(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}const wt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=T;for(let a=0;a<e;a++){const h=r[a];let d,p,l=-1,_=0;for(;_<h.length&&(o.lastIndex=_,p=o.exec(h),p!==null);)_=o.lastIndex,o===T?p[1]==="!--"?o=rt:p[1]!==void 0?o=ot:p[2]!==void 0?(at.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=i??T,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ht:nt):o===ht||o===nt?o=v:o===rt||o===ot?o=T:(o=v,i=void 0);const g=o===v&&r[a+1].startsWith("/>")?" ":"";n+=o===T?h+bt:l>=0?(s.push(d),h.slice(0,l)+st+h.slice(l)+m+g):h+m+(l===-2?a:g)}return[ct(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const a=t.length-1,h=this.parts,[d,p]=wt(t,e);if(this.el=H.createElement(d,s),b.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=b.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(st)){const _=p[o++],g=i.getAttribute(l).split(m),L=/([.?@])?(.*)/.exec(_);h.push({type:1,index:n,name:L[2],strings:g,ctor:L[1]==="."?Ct:L[1]==="?"?xt:L[1]==="@"?Ot:j}),i.removeAttribute(l)}else l.startsWith(m)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(at.test(i.tagName)){const l=i.textContent.split(m),_=l.length-1;if(_>0){i.textContent=D?D.emptyScript:"";for(let g=0;g<_;g++)i.append(l[g],U()),b.nextNode(),h.push({type:2,index:++n});i.append(l[_],U())}}}else if(i.nodeType===8)if(i.data===it)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(m,l+1))!==-1;)h.push({type:7,index:n}),l+=m.length-1}n++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function C(r,t,e=r,s){var o,a;if(t===P)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=M(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=C(r,i._$AS(r,t.values),i,s)),t}class Pt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);b.currentNode=i;let n=b.nextNode(),o=0,a=0,h=s[0];for(;h!==void 0;){if(o===h.index){let d;h.type===2?d=new N(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Ut(n,this,t)),this._$AV.push(d),h=s[++a]}o!==(h==null?void 0:h.index)&&(n=b.nextNode(),o++)}return b.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),M(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):St(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Pt(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=lt.get(t.strings);return e===void 0&&lt.set(t.strings,e=new H(t)),e}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new N(this.O(U()),this.O(U()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class j{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let h,d;for(t=n[0],h=0;h<n.length-1;h++)d=C(this,a[s+h],e,h),d===P&&(d=this._$AH[h]),o||(o=!M(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+n[h+1]),this._$AH[h]=d}o&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class xt extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class Ot extends j{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??c)===P)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ut{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const K=O.litHtmlPolyfillSupport;K==null||K(H,N),(O.litHtmlVersions??(O.litHtmlVersions=[])).push("3.3.0");const Mt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new N(t.insertBefore(U(),n),n,void 0,e??{})}return i._$AI(r),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const b=globalThis;class R extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}}R._$litElement$=!0,R.finalized=!0,(dt=b.litElementHydrateSupport)==null||dt.call(b,{LitElement:R});const Z=b.litElementPolyfillSupport;Z==null||Z({LitElement:R}),(b.litElementVersions??(b.litElementVersions=[])).push("4.2.0");/**
19
+ */const S=globalThis;class R extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}}R._$litElement$=!0,R.finalized=!0,(dt=S.litElementHydrateSupport)==null||dt.call(S,{LitElement:R});const Z=S.litElementPolyfillSupport;Z==null||Z({LitElement:R}),(S.litElementVersions??(S.litElementVersions=[])).push("4.2.0");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,32 +24,35 @@ var MaIcons=function(I){"use strict";/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Ht={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:W},Nt=(r=Ht,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(a){const h=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,h,r)},init(a){return a!==void 0&&this.C(n,void 0,r,a),a}}}if(s==="setter"){const{name:n}=e;return function(a){const h=this[n];t.call(this,a),this.requestUpdate(n,h,r)}}throw Error("Unsupported decorator location: "+s)};function S(r){return(t,e)=>typeof e=="object"?Nt(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}/**
27
+ */const Ht={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:W},Nt=(r=Ht,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(a){const h=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,h,r)},init(a){return a!==void 0&&this.C(o,void 0,r,a),a}}}if(s==="setter"){const{name:o}=e;return function(a){const h=this[o];t.call(this,a),this.requestUpdate(o,h,r)}}throw Error("Unsupported decorator location: "+s)};function f(r){return(t,e)=>typeof e=="object"?Nt(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function Rt(r){return S({...r,state:!0,attribute:!1})}var kt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,m=(r,t,e,s)=>{for(var i=s>1?void 0:s?zt(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&kt(t,e,i),i};let u=class extends R{constructor(){super(...arguments),this.leading=!1,this.name="top-right",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(r){super.updated(r),r.has("name")&&this.modifySvg()}render(){const r=this.svg?w`<span .innerHTML=${this.svg}></span>`:w``;return this.href!=null?w`
32
- <a href=${this.href}>
31
+ */function Rt(r){return f({...r,state:!0,attribute:!1})}var kt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$=(r,t,e,s)=>{for(var i=s>1?void 0:s?zt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&kt(t,e,i),i};let u=class extends R{constructor(){super(...arguments),this.styled=!1,this.download=!1,this.leading=!1,this.name="top-right",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(r){super.updated(r),r.has("name")&&this.modifySvg()}render(){const r=this.svg?w`<span .innerHTML=${this.svg}></span>`:w``;return this.href!=null?w`
32
+ <a download=${this.download} href=${this.href} class="${this.styled?"styled":""}">
33
33
  ${this.leading?w`${r}&thinsp;`:""}<slot></slot>${this.leading?"":w`&thinsp;${r}`}
34
34
  </a>
35
- `:w`${r}`}async modifySvg(){const t=await(await fetch("https://raw.githubusercontent.com/taavirubenhagen/ma-icons/main/icons/"+this.name+".svg")).text(),e=new DOMParser().parseFromString(t,"image/svg+xml"),s=e.querySelector("svg");if(!s)return"";s==null||s.setAttribute("width",this.size),s==null||s.setAttribute("height",this.size),s==null||s.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(i=>i.setAttribute("stroke",this.href?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),e.querySelectorAll("[stroke-width]").forEach(i=>i.setAttribute("stroke-width",this.weight)),this.svg=s==null?void 0:s.outerHTML}};u.styles=ut`
35
+ `:w`${r}`}async modifySvg(){const t=await(await fetch("../icons/"+(this.download?"download":this.name)+".svg")).text(),e=new DOMParser().parseFromString(t,"image/svg+xml"),s=e.querySelector("svg");if(!s)return"";s==null||s.setAttribute("width",this.size),s==null||s.setAttribute("height",this.size),s==null||s.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(i=>i.setAttribute("stroke",this.href?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),e.querySelectorAll("[stroke-width]").forEach(i=>i.setAttribute("stroke-width",this.weight)),this.svg=s==null?void 0:s.outerHTML}};u.styles=ut`
36
36
  svg {
37
37
  display: block;
38
38
  }
39
39
 
40
40
  a {
41
- transition-property: all;
42
- transition-duration: 200ms;
43
41
  display: inline-flex;
44
42
  align-items: center;
45
43
  opacity: inherit;
46
- color: hsl(0deg 0% 0% / calc(100% * 3/8));
47
44
  text-decoration: inherit;
48
45
  font-family: inherit;
49
46
  font-size: inherit;
50
47
  }
51
48
 
52
- a:hover {
49
+ .styled {
50
+ transition-property: all;
51
+ transition-duration: 200ms;
52
+ color: hsl(0deg 0% 0% / calc(100% * 3/8));
53
+ }
54
+
55
+ .styled:hover {
53
56
  opacity: 75%;
54
57
  }
55
- `,m([S()],u.prototype,"href",2),m([S()],u.prototype,"leading",2),m([S()],u.prototype,"name",2),m([S()],u.prototype,"size",2),m([S()],u.prototype,"weight",2),m([S()],u.prototype,"color",2),m([Rt()],u.prototype,"svg",2),u=m([Tt("ma-icon")],u);const Dt=["add-circle","bottom-left","bottom-right","camera","camera-video","cmd","code","down","download","edit","explore","external-2","fullscreen","fullscreen-exit","github","heart","heart-filled","home","info","input","instagram","left","lock","lock-closed","lock-open","login","ma","ma-2","menu","options","pants","pause","person","play","remove-circle","right","search","send","settings","tiktok","top-left","top-right","trash","up","youtube"];return I.names=Dt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),I}({});
58
+ `,$([f()],u.prototype,"styled",2),$([f()],u.prototype,"download",2),$([f()],u.prototype,"href",2),$([f()],u.prototype,"leading",2),$([f()],u.prototype,"name",2),$([f()],u.prototype,"size",2),$([f()],u.prototype,"weight",2),$([f()],u.prototype,"color",2),$([Rt()],u.prototype,"svg",2),u=$([Tt("ma-icon")],u);const Dt=["add-circle","bottom-left","bottom-right","camera","camera-video","cmd","code","down","download","edit","explore","external-2","fullscreen","fullscreen-exit","github","heart","heart-filled","home","info","input","instagram","left","lock","lock-closed","lock-open","login","ma","ma-2","menu","options","pants","pause","person","play","remove-circle","right","search","send","settings","tiktok","top-left","top-right","trash","up","youtube"];return I.names=Dt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),I}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ma-icons",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Ma Icons by Taavi Rübenhagen",
5
5
  "type": "module",
6
6
  "main": "dist/ma-icons.iife.js",