import { Z as d } from "./lit-element.jLBm65_O.js";
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const { I: c } = d, v = (e) => e.strings === void 0, f = () => document.createComment(""), p = (e, i, t) => {
  const s = e._$AA.parentNode, $ = i === void 0 ? e._$AB : i._$AA;
  if (t === void 0) {
    const r = s.insertBefore(f(), $), _ = s.insertBefore(f(), $);
    t = new c(r, _, e, e.options);
  } else {
    const r = t._$AB.nextSibling, _ = t._$AM, o = _ !== e;
    if (o) {
      let A;
      t._$AQ?.(e), t._$AM = e, t._$AP !== void 0 && (A = e._$AU) !== _._$AU && t._$AP(A);
    }
    if (r !== $ || o) {
      let A = t._$AA;
      for (; A !== r; ) {
        const n = A.nextSibling;
        s.insertBefore(A, $), A = n;
      }
    }
  }
  return t;
}, B = (e, i, t = e) => (e._$AI(i, t), e), m = {}, a = (e, i = m) => e._$AH = i, g = (e) => e._$AH, u = (e) => {
  e._$AR(), e._$AA.remove();
};
export {
  u as M,
  v as f,
  a as m,
  g as p,
  p as s,
  B as v
};
