import { E } from "./lit-DKg0et_P.mjs"; /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const f$1 = (o2) => void 0 === o2.strings; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const t = { CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 }); class i { constructor(t2) { } get _$AU() { return this._$AM._$AU; } _$AT(t2, e2, i2) { this._$Ct = t2, this._$AM = e2, this._$Ci = i2; } _$AS(t2, e2) { return this.update(t2, e2); } update(t2, e2) { return this.render(...e2); } } /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const s = (i2, t2) => { const e2 = i2._$AN; if (void 0 === e2) return false; for (const i3 of e2) i3._$AO?.(t2, false), s(i3, t2); return true; }, o$1 = (i2) => { let t2, e2; do { if (void 0 === (t2 = i2._$AM)) break; e2 = t2._$AN, e2.delete(i2), i2 = t2; } while (0 === e2?.size); }, r = (i2) => { for (let t2; t2 = i2._$AM; i2 = t2) { let e2 = t2._$AN; if (void 0 === e2) t2._$AN = e2 = /* @__PURE__ */ new Set(); else if (e2.has(i2)) break; e2.add(i2), c(t2); } }; function h$1(i2) { void 0 !== this._$AN ? (o$1(this), this._$AM = i2, r(this)) : this._$AM = i2; } function n$1(i2, t2 = false, e2 = 0) { const r2 = this._$AH, h2 = this._$AN; if (void 0 !== h2 && 0 !== h2.size) if (t2) if (Array.isArray(r2)) for (let i3 = e2; i3 < r2.length; i3++) s(r2[i3], false), o$1(r2[i3]); else null != r2 && (s(r2, false), o$1(r2)); else s(this, i2); } const c = (i2) => { i2.type == t.CHILD && (i2._$AP ??= n$1, i2._$AQ ??= h$1); }; class f extends i { constructor() { super(...arguments), this._$AN = void 0; } _$AT(i2, t2, e2) { super._$AT(i2, t2, e2), r(this), this.isConnected = i2._$AU; } _$AO(i2, t2 = true) { i2 !== this.isConnected && (this.isConnected = i2, i2 ? this.reconnected?.() : this.disconnected?.()), t2 && (s(this, i2), o$1(this)); } setValue(t2) { if (f$1(this._$Ct)) this._$Ct._$AI(t2, this); else { const i2 = [...this._$Ct._$AH]; i2[this._$Ci] = t2, this._$Ct._$AI(i2, this, 0); } } disconnected() { } reconnected() { } } /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const e = () => new h(); class h { } const o = /* @__PURE__ */ new WeakMap(), n = e$1(class extends f { render(i2) { return E; } update(i2, [s2]) { const e2 = s2 !== this.G; return e2 && void 0 !== this.G && this.rt(void 0), (e2 || this.lt !== this.ct) && (this.G = s2, this.ht = i2.options?.host, this.rt(this.ct = i2.element)), E; } rt(t2) { if (this.isConnected || (t2 = void 0), "function" == typeof this.G) { const i2 = this.ht ?? globalThis; let s2 = o.get(i2); void 0 === s2 && (s2 = /* @__PURE__ */ new WeakMap(), o.set(i2, s2)), void 0 !== s2.get(this.G) && this.G.call(this.ht, void 0), s2.set(this.G, t2), void 0 !== t2 && this.G.call(this.ht, t2); } else this.G.value = t2; } get lt() { return "function" == typeof this.G ? o.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value; } disconnected() { this.lt === this.ct && this.rt(void 0); } reconnected() { this.rt(this.ct); } }); export { e, n };