const ie = "ui-skeleton", oe = (
  /* ui-skeleton */
  { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !1, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !1, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !1, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !1, vdomPropOrAttr: !1, vdomRef: !1, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
);
var ce = Object.defineProperty, $e = (e, t) => {
  for (var r in t)
    ce(e, r, { get: t[r], enumerable: !0 });
}, U = /* @__PURE__ */ new WeakMap(), b = (e) => U.get(e), Ge = (e, t) => U.set(t.$lazyInstance$ = e, t), fe = (e, t) => {
  const r = {
    $flags$: 0,
    $hostElement$: e,
    $cmpMeta$: t,
    $instanceValues$: /* @__PURE__ */ new Map()
  };
  return r.$onReadyPromise$ = new Promise((n) => r.$onReadyResolve$ = n), e["s-p"] = [], e["s-rc"] = [], U.set(e, r);
}, w = (e, t) => (0, console.error)(e, t), O = /* @__PURE__ */ new Map(), ue = (e, t, r) => {
  const n = e.$tagName$.replace(/-/g, "_"), s = e.$lazyBundleId$;
  if (!s)
    return;
  const a = O.get(s);
  if (a)
    return a[n];
  {
    const l = (i) => (O.set(s, i), i[n]);
    switch (s) {
      case "ui-skeleton":
        return import(
          /* webpackMode: "lazy" */
          "./ui-skeleton-BKDs0-7H.js"
        ).then(l, w);
    }
  }
  return import(
    /* @vite-ignore */
    /* webpackInclude: /\.entry\.js$/ */
    /* webpackExclude: /\.system\.entry\.js$/ */
    /* webpackMode: "lazy" */
    `./${s}.entry.js`
  ).then((l) => (O.set(s, l), l[n]), w);
}, L = /* @__PURE__ */ new Map(), de = "{visibility:hidden}.hydrated{visibility:inherit}", Y = "slot-fb{display:contents}slot-fb[hidden]{display:none}", B = typeof window < "u" ? window : {}, y = B.document || { head: {} }, h = {
  $flags$: 0,
  $resourcesUrl$: "",
  jmp: (e) => e(),
  raf: (e) => requestAnimationFrame(e),
  ael: (e, t, r, n) => e.addEventListener(t, r, n),
  rel: (e, t, r, n) => e.removeEventListener(t, r, n),
  ce: (e, t) => new CustomEvent(e, t)
}, me = (e) => Promise.resolve(e), pe = /* @__PURE__ */ (() => {
  try {
    return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
  } catch {
  }
  return !1;
})(), _ = !1, I = [], G = [], he = (e, t) => (r) => {
  e.push(r), _ || (_ = !0, h.$flags$ & 4 ? D(j) : h.raf(j));
}, z = (e) => {
  for (let t = 0; t < e.length; t++)
    try {
      e[t](performance.now());
    } catch (r) {
      w(r);
    }
  e.length = 0;
}, j = () => {
  z(I), z(G), (_ = I.length > 0) && h.raf(j);
}, D = (e) => me().then(e), ve = /* @__PURE__ */ he(G), F = {}, J = (e) => (e = typeof e, e === "object" || e === "function");
function K(e) {
  var t, r, n;
  return (n = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? n : void 0;
}
var ge = {};
$e(ge, {
  err: () => X,
  map: () => ye,
  ok: () => N,
  unwrap: () => Se,
  unwrapErr: () => be
});
var N = (e) => ({
  isOk: !0,
  isErr: !1,
  value: e
}), X = (e) => ({
  isOk: !1,
  isErr: !0,
  value: e
});
function ye(e, t) {
  if (e.isOk) {
    const r = t(e.value);
    return r instanceof Promise ? r.then((n) => N(n)) : N(r);
  }
  if (e.isErr) {
    const r = e.value;
    return X(r);
  }
  throw "should never get here";
}
var Se = (e) => {
  if (e.isOk)
    return e.value;
  throw e.value;
}, be = (e) => {
  if (e.isErr)
    return e.value;
  throw e.value;
}, S = (e, t = "") => () => {
}, ke = (e, t) => () => {
}, we = (e, t, ...r) => {
  let n = null, s = null, a = !1, l = !1;
  const i = [], o = ($) => {
    for (let f = 0; f < $.length; f++)
      n = $[f], Array.isArray(n) ? o(n) : n != null && typeof n != "boolean" && ((a = typeof e != "function" && !J(n)) && (n = String(n)), a && l ? i[i.length - 1].$text$ += n : i.push(a ? C(null, n) : n), l = a);
  };
  if (o(r), t) {
    t.key && (s = t.key);
    {
      const $ = t.className || t.class;
      $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
    }
  }
  const c = C(e, null);
  return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = s, c;
}, C = (e, t) => {
  const r = {
    $flags$: 0,
    $tag$: e,
    $text$: t,
    $elm$: null,
    $children$: null
  };
  return r.$attrs$ = null, r.$key$ = null, r;
}, Ee = {}, xe = (e) => e && e.$tag$ === Ee, Te = (e, t) => e != null && !J(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Le = (e, t, r) => {
  const n = h.ce(t, r);
  return e.dispatchEvent(n), n;
}, q = /* @__PURE__ */ new WeakMap(), Pe = (e, t, r) => {
  let n = L.get(e);
  pe && r ? (n = n || new CSSStyleSheet(), typeof n == "string" ? n = t : n.replaceSync(t)) : n = t, L.set(e, n);
}, Ae = (e, t, r) => {
  var n;
  const s = R(t), a = L.get(s);
  if (e = e.nodeType === 11 ? e : y, a)
    if (typeof a == "string") {
      e = e.head || e;
      let l = q.get(e), i;
      if (l || q.set(e, l = /* @__PURE__ */ new Set()), !l.has(s)) {
        {
          i = y.createElement("style"), i.innerHTML = a;
          const o = (n = h.$nonce$) != null ? n : K(y);
          o != null && i.setAttribute("nonce", o), e.insertBefore(i, e.querySelector("link"));
        }
        t.$flags$ & 4 && (i.innerHTML += Y), l && l.add(s);
      }
    } else
      e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
  return s;
}, Oe = (e) => {
  const t = e.$cmpMeta$, r = e.$hostElement$, n = S("attachStyles", t.$tagName$);
  Ae(
    r.getRootNode(),
    t
  ), n();
}, R = (e, t) => "sc-" + e.$tagName$, W = (e, t, r, n, s, a) => {
  if (r !== n && (t.toLowerCase(), t === "class")) {
    const l = e.classList, i = M(r), o = M(n);
    l.remove(...i.filter((c) => c && !o.includes(c))), l.add(...o.filter((c) => c && !i.includes(c)));
  }
}, _e = /\s/, M = (e) => e ? e.split(_e) : [], Z = (e, t, r) => {
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, s = e && e.$attrs$ || F, a = t.$attrs$ || F;
  for (const l of Q(Object.keys(s)))
    l in a || W(n, l, s[l], void 0);
  for (const l of Q(Object.keys(a)))
    W(n, l, s[l], a[l]);
};
function Q(e) {
  return e.includes("ref") ? (
    // we need to sort these to ensure that `'ref'` is the last attr
    [...e.filter((t) => t !== "ref"), "ref"]
  ) : (
    // no need to sort, return the original array
    e
  );
}
var V, P = (e, t, r, n) => {
  const s = t.$children$[r];
  let a = 0, l, i;
  if (s.$text$ !== null)
    l = s.$elm$ = y.createTextNode(s.$text$);
  else if (l = s.$elm$ = y.createElement(
    s.$tag$
  ), Z(null, s), s.$children$)
    for (a = 0; a < s.$children$.length; ++a)
      i = P(e, s, a), i && l.appendChild(i);
  return l["s-hn"] = V, l;
}, ee = (e, t, r, n, s, a) => {
  let l = e, i;
  for (; s <= a; ++s)
    n[s] && (i = P(null, r, s), i && (n[s].$elm$ = i, T(l, i, t)));
}, te = (e, t, r) => {
  for (let n = t; n <= r; ++n) {
    const s = e[n];
    if (s) {
      const a = s.$elm$;
      a && a.remove();
    }
  }
}, je = (e, t, r, n, s = !1) => {
  let a = 0, l = 0, i = 0, o = 0, c = t.length - 1, $ = t[0], f = t[c], u = n.length - 1, d = n[0], m = n[u], p, v;
  for (; a <= c && l <= u; )
    if ($ == null)
      $ = t[++a];
    else if (f == null)
      f = t[--c];
    else if (d == null)
      d = n[++l];
    else if (m == null)
      m = n[--u];
    else if (x($, d, s))
      k($, d, s), $ = t[++a], d = n[++l];
    else if (x(f, m, s))
      k(f, m, s), f = t[--c], m = n[--u];
    else if (x($, m, s))
      k($, m, s), T(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], m = n[--u];
    else if (x(f, d, s))
      k(f, d, s), T(e, f.$elm$, $.$elm$), f = t[--c], d = n[++l];
    else {
      for (i = -1, o = a; o <= c; ++o)
        if (t[o] && t[o].$key$ !== null && t[o].$key$ === d.$key$) {
          i = o;
          break;
        }
      i >= 0 ? (v = t[i], v.$tag$ !== d.$tag$ ? p = P(t && t[l], r, i) : (k(v, d, s), t[i] = void 0, p = v.$elm$), d = n[++l]) : (p = P(t && t[l], r, l), d = n[++l]), p && T($.$elm$.parentNode, p, $.$elm$);
    }
  a > c ? ee(
    e,
    n[u + 1] == null ? null : n[u + 1].$elm$,
    r,
    n,
    l,
    u
  ) : l > u && te(t, a, c);
}, x = (e, t, r = !1) => e.$tag$ === t.$tag$ ? r ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, r = !1) => {
  const n = t.$elm$ = e.$elm$, s = e.$children$, a = t.$children$, l = t.$text$;
  l === null ? (Z(e, t), s !== null && a !== null ? je(n, s, t, a, r) : a !== null ? (e.$text$ !== null && (n.textContent = ""), ee(n, null, t, a, 0, a.length - 1)) : s !== null && te(s, 0, s.length - 1)) : e.$text$ !== l && (n.data = l);
}, T = (e, t, r) => e?.insertBefore(t, r), Ne = (e, t, r = !1) => {
  const n = e.$hostElement$, s = e.$vnode$ || C(null, null), a = xe(t) ? t : we(null, null, t);
  if (V = n.tagName, r && a.$attrs$)
    for (const l of Object.keys(a.$attrs$))
      n.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = n[l]);
  a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = s.$elm$ = n, k(s, a, r);
}, se = (e, t) => {
  t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
}, H = (e, t) => {
  if (e.$flags$ |= 16, e.$flags$ & 4) {
    e.$flags$ |= 512;
    return;
  }
  return se(e, e.$ancestorComponent$), ve(() => Ce(e, t));
}, Ce = (e, t) => {
  const r = e.$hostElement$, n = S("scheduleUpdate", e.$cmpMeta$.$tagName$), s = e.$lazyInstance$;
  if (!s)
    throw new Error(
      `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
    );
  let a;
  return n(), Ue(a, () => De(e, s, t));
}, Ue = (e, t) => Be(e) ? e.then(t).catch((r) => {
  console.error(r), t();
}) : t(), Be = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", De = async (e, t, r) => {
  var n;
  const s = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = s["s-rc"];
  r && Oe(e);
  const i = S("render", e.$cmpMeta$.$tagName$);
  He(e, t, s, r), l && (l.map((o) => o()), s["s-rc"] = void 0), i(), a();
  {
    const o = (n = s["s-p"]) != null ? n : [], c = () => Ie(e);
    o.length === 0 ? c() : (Promise.all(o).then(c), e.$flags$ |= 4, o.length = 0);
  }
}, He = (e, t, r, n) => {
  try {
    t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ne(e, t, n);
  } catch (s) {
    w(s, e.$hostElement$);
  }
  return null;
}, Ie = (e) => {
  const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, n = S("postUpdate", t), s = e.$ancestorComponent$;
  e.$flags$ & 64 ? n() : (e.$flags$ |= 64, re(r), n(), e.$onReadyResolve$(r), s || ne()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && D(() => H(e, !1)), e.$flags$ &= -517;
}, ne = (e) => {
  re(y.documentElement), D(() => Le(B, "appload", { detail: { namespace: ie } }));
}, re = (e) => {
  var t;
  return e.classList.add((t = oe.hydratedSelectorName) != null ? t : "hydrated");
}, ze = (e, t) => b(e).$instanceValues$.get(t), Fe = (e, t, r, n) => {
  const s = b(e);
  if (!s)
    throw new Error(
      `Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
    );
  const a = s.$hostElement$, l = s.$instanceValues$.get(t), i = s.$flags$, o = s.$lazyInstance$;
  r = Te(r, n.$members$[t][0]);
  const c = Number.isNaN(l) && Number.isNaN(r), $ = r !== l && !c;
  if ((!(i & 8) || l === void 0) && $ && (s.$instanceValues$.set(t, r), o)) {
    if (n.$watchers$ && i & 128) {
      const f = n.$watchers$[t];
      f && f.map((u) => {
        try {
          o[u](r, l, t);
        } catch (d) {
          w(d, a);
        }
      });
    }
    (i & 18) === 2 && H(s, !1);
  }
}, le = (e, t, r) => {
  var n, s;
  const a = e.prototype;
  if (t.$members$ || t.$watchers$ || e.watchers) {
    e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
    const l = Object.entries((n = t.$members$) != null ? n : {});
    if (l.map(([i, [o]]) => {
      (o & 31 || r & 2 && o & 32) && Object.defineProperty(a, i, {
        get() {
          return ze(this, i);
        },
        set(c) {
          Fe(this, i, c, t);
        },
        configurable: !0,
        enumerable: !0
      });
    }), r & 1) {
      const i = /* @__PURE__ */ new Map();
      a.attributeChangedCallback = function(o, c, $) {
        h.jmp(() => {
          var f;
          const u = i.get(o);
          if (this.hasOwnProperty(u))
            $ = this[u], delete this[u];
          else {
            if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == $)
              return;
            if (u == null) {
              const d = b(this), m = d?.$flags$;
              if (m && !(m & 8) && m & 128 && $ !== c) {
                const p = d.$lazyInstance$, v = (f = t.$watchers$) == null ? void 0 : f[o];
                v?.forEach((g) => {
                  p[g] != null && p[g].call(p, $, c, o);
                });
              }
              return;
            }
          }
          this[u] = $ === null && typeof this[u] == "boolean" ? !1 : $;
        });
      }, e.observedAttributes = Array.from(
        /* @__PURE__ */ new Set([
          ...Object.keys((s = t.$watchers$) != null ? s : {}),
          ...l.filter(
            ([o, c]) => c[0] & 15
            /* HasAttribute */
          ).map(([o, c]) => {
            const $ = c[1] || o;
            return i.set($, o), $;
          })
        ])
      );
    }
  }
  return e;
}, qe = async (e, t, r, n) => {
  let s;
  if (!(t.$flags$ & 32)) {
    if (t.$flags$ |= 32, r.$lazyBundleId$) {
      const o = ue(r);
      if (o && "then" in o) {
        const $ = ke();
        s = await o, $();
      } else
        s = o;
      if (!s)
        throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);
      s.isProxied || (r.$watchers$ = s.watchers, le(
        s,
        r,
        2
        /* proxyState */
      ), s.isProxied = !0);
      const c = S("createInstance", r.$tagName$);
      t.$flags$ |= 8;
      try {
        new s(t);
      } catch ($) {
        w($);
      }
      t.$flags$ &= -9, t.$flags$ |= 128, c();
    } else {
      s = e.constructor;
      const o = e.localName;
      customElements.whenDefined(o).then(
        () => t.$flags$ |= 128
        /* isWatchReady */
      );
    }
    if (s && s.style) {
      let o;
      typeof s.style == "string" && (o = s.style);
      const c = R(r);
      if (!L.has(c)) {
        const $ = S("registerStyles", r.$tagName$);
        Pe(c, o, !!(r.$flags$ & 1)), $();
      }
    }
  }
  const a = t.$ancestorComponent$, l = () => H(t, !0);
  a && a["s-rc"] ? a["s-rc"].push(l) : l();
}, We = (e) => {
}, Me = (e) => {
  if (!(h.$flags$ & 1)) {
    const t = b(e), r = t.$cmpMeta$, n = S("connectedCallback", r.$tagName$);
    if (t.$flags$ & 1)
      t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => We());
    else {
      t.$flags$ |= 1;
      {
        let s = e;
        for (; s = s.parentNode || s.host; )
          if (s["s-p"]) {
            se(t, t.$ancestorComponent$ = s);
            break;
          }
      }
      r.$members$ && Object.entries(r.$members$).map(([s, [a]]) => {
        if (a & 31 && e.hasOwnProperty(s)) {
          const l = e[s];
          delete e[s], e[s] = l;
        }
      }), qe(e, t, r);
    }
    n();
  }
}, Qe = (e) => {
}, Ye = async (e) => {
  if (!(h.$flags$ & 1)) {
    const t = b(e);
    t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Qe());
  }
}, Je = (e, t = {}) => {
  var r;
  const n = S(), s = [], a = t.exclude || [], l = B.customElements, i = y.head, o = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ y.createElement("style"), $ = [];
  let f, u = !0;
  Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", y.baseURI).href;
  let d = !1;
  if (e.map((m) => {
    m[1].map((p) => {
      var v;
      const g = {
        $flags$: p[0],
        $tagName$: p[1],
        $members$: p[2],
        $listeners$: p[3]
      };
      g.$flags$ & 4 && (d = !0), g.$members$ = p[2], g.$watchers$ = (v = p[4]) != null ? v : {};
      const E = g.$tagName$, ae = class extends HTMLElement {
        // StencilLazyHost
        constructor(A) {
          super(A), this.hasRegisteredEventListeners = !1, A = this, fe(A, g);
        }
        connectedCallback() {
          b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? $.push(this) : h.jmp(() => Me(this));
        }
        disconnectedCallback() {
          h.jmp(() => Ye(this));
        }
        componentOnReady() {
          return b(this).$onReadyPromise$;
        }
      };
      g.$lazyBundleId$ = m[0], !a.includes(E) && !l.get(E) && (s.push(E), l.define(
        E,
        le(
          ae,
          g,
          1
          /* isElementConstructor */
        )
      ));
    });
  }), s.length > 0 && (d && (c.textContent += Y), c.textContent += s.sort() + de, c.innerHTML.length)) {
    c.setAttribute("data-styles", "");
    const m = (r = h.$nonce$) != null ? r : K(y);
    m != null && c.setAttribute("nonce", m), i.insertBefore(c, o ? o.nextSibling : i.firstChild);
  }
  u = !1, $.length ? $.map((m) => m.connectedCallback()) : h.jmp(() => f = setTimeout(ne, 30)), n();
};
export {
  Ee as H,
  Je as b,
  we as h,
  me as p,
  Ge as r
};
